From 1780ee94238d722401f43791736b769cead01c43 Mon Sep 17 00:00:00 2001 From: akashlal Date: Sun, 5 May 2013 14:25:09 +0530 Subject: AbsHoudini: Each function can specify its own abstract domain. Also added typechecking --- Test/AbsHoudini/pred4.bpl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Test/AbsHoudini/pred4.bpl (limited to 'Test/AbsHoudini') diff --git a/Test/AbsHoudini/pred4.bpl b/Test/AbsHoudini/pred4.bpl new file mode 100644 index 00000000..d4741720 --- /dev/null +++ b/Test/AbsHoudini/pred4.bpl @@ -0,0 +1,21 @@ +function {:existential true} b1(x:bool, y:bool): bool; +function {:existential true} {:absdomain "Intervals"} b3(x:int): bool; + +var g: int; + +procedure main() +modifies g; +{ + g := 0; + if(*) { g := 5; } + call foo(); +} + +procedure foo() + modifies g; + requires b1(g == 0, g == 5); + ensures b3(g); +{ + assume g != 5; +} + -- cgit v1.2.3