summaryrefslogtreecommitdiff
path: root/Test/doomed/smoke0.bpl
diff options
context:
space:
mode:
authorGravatar schaef <unknown>2009-11-02 13:23:48 +0000
committerGravatar schaef <unknown>2009-11-02 13:23:48 +0000
commit1787f47733a1f656b95e14ba881d7c3089b1b048 (patch)
tree5a5708eb988a33269f18ed66bfdc23452785c254 /Test/doomed/smoke0.bpl
parenteb1598e70398a9449613dbce7b3f4617b6558eb0 (diff)
vc:doomed does not use the console anymore to report results
added first test cases for doomed (including the ones from smoke) minor bug fixes minor speed-ups
Diffstat (limited to 'Test/doomed/smoke0.bpl')
-rw-r--r--Test/doomed/smoke0.bpl79
1 files changed, 79 insertions, 0 deletions
diff --git a/Test/doomed/smoke0.bpl b/Test/doomed/smoke0.bpl
new file mode 100644
index 00000000..db01233f
--- /dev/null
+++ b/Test/doomed/smoke0.bpl
@@ -0,0 +1,79 @@
+procedure a(x:int)
+{
+ var y : int;
+
+ if(x<0) {
+ y := 1;
+ } else {
+ y := 2;
+ }
+}
+
+
+procedure b(x:int)
+ requires x>0;
+{
+ var y : int;
+
+ if(x<0) {
+ y := 1;
+ } else {
+ y := 2;
+ }
+}
+
+
+
+procedure c(x:int)
+ requires x>0;
+{
+ var y : int;
+
+ if(x<0) {
+ y := 1;
+ assert false;
+ } else {
+ y := 2;
+ }
+}
+
+procedure d(x:int)
+ requires x>0;
+{
+ var y : int;
+
+ if(x<0) {
+ assert false;
+ y := 1;
+ } else {
+ y := 2;
+ }
+}
+
+
+procedure doomed1(x:int)
+{
+ var y : int;
+ y := 0;
+ if(x<0) {
+ y := 1;
+ } else {
+ assert y!=0;
+ }
+}
+
+
+procedure doomed2(x:int)
+{
+ var y : int;
+ y := 0;
+ if(x!=0) {
+ y := 1;
+ } else {
+ assert x!=0;
+ }
+}
+
+
+
+