diff options
author | Checkmate50 <dgeisler50@gmail.com> | 2016-06-06 23:14:18 -0600 |
---|---|---|
committer | Checkmate50 <dgeisler50@gmail.com> | 2016-06-06 23:14:18 -0600 |
commit | d652155ae013f36a1ee17653a8e458baad2d9c2c (patch) | |
tree | 067d600fe3cd1723afc11682935f0123a1eab653 /Test/z3api/boog0.bpl | |
parent | d7fc0deb2ca6d7ebee094b6ea5430d9b41f163ec (diff) |
Merging complete. Everything looks good *crosses fingers*
Diffstat (limited to 'Test/z3api/boog0.bpl')
-rw-r--r-- | Test/z3api/boog0.bpl | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/Test/z3api/boog0.bpl b/Test/z3api/boog0.bpl index 4206152b..7681589a 100644 --- a/Test/z3api/boog0.bpl +++ b/Test/z3api/boog0.bpl @@ -1,49 +1,49 @@ -type ref;
-type Wicket;
-const w: Wicket;
-var favorite: Wicket;
-function age(Wicket) returns (int);
-
-axiom age(w)==7;
-
-procedure NewFavorite(p: Wicket);
- modifies favorite;
-
- ensures favorite==p;
-
-implementation NewFavorite(l: Wicket) {
- favorite:=l;
-}
-
-const myBool: bool;
-const myRef: ref;
-const v: Wicket;
-
-axiom 7 < 8;
-axiom 7 <= 8;
-axiom 8 > 7;
-axiom 8 >= 7;
-axiom 6 != 7;
-
-axiom 7+1==8;
-axiom 8-1==7;
-axiom 7/1==7;
-axiom 7%2==1;
-axiom 4*2==8;
-
-axiom ((7==7) || (8==8));
-axiom ((7==7) ==> (7<8));
-axiom ((7==7) <==> (10==10));
-axiom ((7==7) && (8==8));
-
-var favorite2: Wicket;
-procedure SwapFavorites()
- modifies favorite,favorite2;
-
- ensures (favorite==old(favorite2)) && (favorite2==old(favorite));
-{
- var temp: Wicket;
- temp:=favorite;
- favorite:=favorite2;
- // favorite2:=temp; // commenting this line seeds a bug
-}
+type ref; +type Wicket; +const w: Wicket; +var favorite: Wicket; +function age(Wicket) returns (int); + +axiom age(w)==7; + +procedure NewFavorite(p: Wicket); + modifies favorite; + + ensures favorite==p; + +implementation NewFavorite(l: Wicket) { + favorite:=l; +} + +const myBool: bool; +const myRef: ref; +const v: Wicket; + +axiom 7 < 8; +axiom 7 <= 8; +axiom 8 > 7; +axiom 8 >= 7; +axiom 6 != 7; + +axiom 7+1==8; +axiom 8-1==7; +axiom 7/1==7; +axiom 7%2==1; +axiom 4*2==8; + +axiom ((7==7) || (8==8)); +axiom ((7==7) ==> (7<8)); +axiom ((7==7) <==> (10==10)); +axiom ((7==7) && (8==8)); + +var favorite2: Wicket; +procedure SwapFavorites() + modifies favorite,favorite2; + + ensures (favorite==old(favorite2)) && (favorite2==old(favorite)); +{ + var temp: Wicket; + temp:=favorite; + favorite:=favorite2; + // favorite2:=temp; // commenting this line seeds a bug +} |