diff options
author | 2015-06-28 01:44:30 +0100 | |
---|---|---|
committer | 2015-06-28 01:44:30 +0100 | |
commit | 962f8d5252b3f5ec4d19e0cd2a430934bd55cc6d (patch) | |
tree | 27d5f9b0d130c6c1a6758bc0b7456b0aa51e34e0 /Test/test0/PrettyPrint.bpl | |
parent | e11d65009d0b4ba1327f5f5dd6b26367330611f0 (diff) |
Normalise line endings using a .gitattributes file. Unfortunately
this required that this commit globally modify most files. If you
want to use git blame to see the real author of a line use the
``-w`` flag so that whitespace changes are ignored.
Diffstat (limited to 'Test/test0/PrettyPrint.bpl')
-rw-r--r-- | Test/test0/PrettyPrint.bpl | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/Test/test0/PrettyPrint.bpl b/Test/test0/PrettyPrint.bpl index c79eff80..faa6bfd1 100644 --- a/Test/test0/PrettyPrint.bpl +++ b/Test/test0/PrettyPrint.bpl @@ -1,67 +1,67 @@ -// RUN: %boogie -pretty:0 -noVerify -printInstrumented "%s" > "%t"
-// RUN: %diff "%s.expect" "%t"
-const x: int;
-const y: int;
-const z: int;
-const r: real;
-const s: real;
-const t: real;
-const P: bool;
-const Q: bool;
-const R: bool;
-
-axiom x * (y + z) == x + (y * z);
-axiom (x * y) + z == (x + y) * z;
-
-axiom x * y * z == (x * (y * z));
-axiom (x * y) * (z * x) == (x * y) * z;
-
-axiom x div y div z == (x div (y div z));
-axiom (x div y) div (z div x) == (x div y) div z;
-
-axiom x + y mod z == ((y mod z) + x);
-axiom (x + y) mod z == (x mod z) + (y mod z);
-
-axiom x / y / z == (x / (y / z));
-axiom (x / y) / (z / x) == (x / y) / z;
-axiom x / s / z == (x / (s / z));
-axiom (x / s) / (z / x) == (x / s) / z;
-axiom r / s / t == (r / (s / t));
-axiom (r / s) / (t / r) == (r / s) / t;
-
-axiom ((r * s) / t) == r * s / t;
-axiom ((r / s) * t) == (r / s) * t;
-
-axiom (r * s) ** t == (r ** t) * (s ** t);
-axiom r ** (s + t) == r ** s * r ** t;
-
-axiom int(real(x)) == x;
-axiom r >= 0.0 ==> real(int(r)) <= r;
-axiom int(0e-3 - 0.02) == 0;
-axiom int(0e2 - 3.5e1) == -35;
-axiom int(27e-1) == 2;
-
-axiom x - y - z == (x - (y - z));
-axiom (x - y) - (z - x) == (x - y) - z;
-
-axiom x + y - z - x + y == 0;
-axiom ((((x + y) - z) - x) + y) == (x + (y - (z - (x + y))));
-
-axiom P ==> Q ==> R <==> (P ==> (Q ==> R));
-axiom ((P ==> Q) ==> (R ==> P)) == ((P ==> Q) ==> R);
-
-axiom P <==> Q <==> R;
-axiom P ==> Q <==> Q ==> R <==> R ==> P;
-
-axiom (P && Q) || (Q && R);
-axiom (P || Q) && (Q || R);
-axiom (P || Q) || (Q || R);
-axiom (P && Q) && (Q && R);
-
-// -------------- quantifier key-value decorations
-
-function f(int) returns (int);
-
-axiom (forall x: int :: {:xname "hello"}
- { :weight 5} {f(x+x)} {:ValueFunc f(x+1) } {f(x)*f(x)} {:nopats f(x+x+x)}
- f(f(x)) < 200);
+// RUN: %boogie -pretty:0 -noVerify -printInstrumented "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +const x: int; +const y: int; +const z: int; +const r: real; +const s: real; +const t: real; +const P: bool; +const Q: bool; +const R: bool; + +axiom x * (y + z) == x + (y * z); +axiom (x * y) + z == (x + y) * z; + +axiom x * y * z == (x * (y * z)); +axiom (x * y) * (z * x) == (x * y) * z; + +axiom x div y div z == (x div (y div z)); +axiom (x div y) div (z div x) == (x div y) div z; + +axiom x + y mod z == ((y mod z) + x); +axiom (x + y) mod z == (x mod z) + (y mod z); + +axiom x / y / z == (x / (y / z)); +axiom (x / y) / (z / x) == (x / y) / z; +axiom x / s / z == (x / (s / z)); +axiom (x / s) / (z / x) == (x / s) / z; +axiom r / s / t == (r / (s / t)); +axiom (r / s) / (t / r) == (r / s) / t; + +axiom ((r * s) / t) == r * s / t; +axiom ((r / s) * t) == (r / s) * t; + +axiom (r * s) ** t == (r ** t) * (s ** t); +axiom r ** (s + t) == r ** s * r ** t; + +axiom int(real(x)) == x; +axiom r >= 0.0 ==> real(int(r)) <= r; +axiom int(0e-3 - 0.02) == 0; +axiom int(0e2 - 3.5e1) == -35; +axiom int(27e-1) == 2; + +axiom x - y - z == (x - (y - z)); +axiom (x - y) - (z - x) == (x - y) - z; + +axiom x + y - z - x + y == 0; +axiom ((((x + y) - z) - x) + y) == (x + (y - (z - (x + y)))); + +axiom P ==> Q ==> R <==> (P ==> (Q ==> R)); +axiom ((P ==> Q) ==> (R ==> P)) == ((P ==> Q) ==> R); + +axiom P <==> Q <==> R; +axiom P ==> Q <==> Q ==> R <==> R ==> P; + +axiom (P && Q) || (Q && R); +axiom (P || Q) && (Q || R); +axiom (P || Q) || (Q || R); +axiom (P && Q) && (Q && R); + +// -------------- quantifier key-value decorations + +function f(int) returns (int); + +axiom (forall x: int :: {:xname "hello"} + { :weight 5} {f(x+x)} {:ValueFunc f(x+1) } {f(x)*f(x)} {:nopats f(x+x+x)} + f(f(x)) < 200); |