From d652155ae013f36a1ee17653a8e458baad2d9c2c Mon Sep 17 00:00:00 2001 From: Checkmate50 Date: Mon, 6 Jun 2016 23:14:18 -0600 Subject: Merging complete. Everything looks good *crosses fingers* --- Test/test0/WhereParsing0.bpl | 68 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'Test/test0/WhereParsing0.bpl') diff --git a/Test/test0/WhereParsing0.bpl b/Test/test0/WhereParsing0.bpl index da26bc5e..9e9579df 100644 --- a/Test/test0/WhereParsing0.bpl +++ b/Test/test0/WhereParsing0.bpl @@ -1,34 +1,34 @@ -// RUN: %boogie -noVerify "%s" > "%t" -// RUN: %diff "%s.expect" "%t" -const x: int; - -function R(int) returns (bool); -function Even(int) returns (bool); - -var y: int where R(y); -var g: int where g == 12; - -procedure P(x: int where x > 0) returns (y: int where y < 0); - requires x < 100; - modifies g; - ensures -100 < y; - -procedure Q(x: int where x > 0) returns (y: int where y < 0) - requires x < 100; - modifies g; - ensures (forall t: int where Even(t) :: -100 < y + t) || // error: where not allowed in quant - (exists t: int where Even(t) :: -100 < y + t); // error: where not allowed in quant -{ - var a: int; - var b: int; - - start: - a := x; - call b := P(a); - y := b; - return; -} - -axiom (forall yu: bool, {:myAttr} x: int :: x < 100); -axiom (forall {:myAttr} x: int :: x < 100); -axiom (forall {:myAttr} x: T :: x == x); +// RUN: %boogie -noVerify "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +const x: int; + +function R(int) returns (bool); +function Even(int) returns (bool); + +var y: int where R(y); +var g: int where g == 12; + +procedure P(x: int where x > 0) returns (y: int where y < 0); + requires x < 100; + modifies g; + ensures -100 < y; + +procedure Q(x: int where x > 0) returns (y: int where y < 0) + requires x < 100; + modifies g; + ensures (forall t: int where Even(t) :: -100 < y + t) || // error: where not allowed in quant + (exists t: int where Even(t) :: -100 < y + t); // error: where not allowed in quant +{ + var a: int; + var b: int; + + start: + a := x; + call b := P(a); + y := b; + return; +} + +axiom (forall yu: bool, {:myAttr} x: int :: x < 100); +axiom (forall {:myAttr} x: int :: x < 100); +axiom (forall {:myAttr} x: T :: x == x); -- cgit v1.2.3