Created
August 21, 2014 17:02
-
-
Save agacek/8405be414597b05cd1c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node integ(x : int) returns (sum : int); | |
let | |
sum = x + (0 -> pre sum); | |
tel; | |
node main(x : int; y : int; r : real) returns (z : int); | |
var | |
history : bool; | |
prop1 : bool; | |
prop2 : bool; | |
let | |
z = integ(x); | |
history = x > 0 and (true -> pre history); | |
prop1 = history => z > 0; | |
--%PROPERTY prop1; | |
prop2 = integ(x) + integ(y) = integ(x + y) -> pre(integ(x) + integ(y) = integ(x + y) -> not(0.0 < r and r < 1.0)); | |
--%PROPERTY prop2; | |
tel; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment