diff options
author | Alex Auvolat <alex.auvolat@ansys.com> | 2014-07-10 18:01:28 +0200 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ansys.com> | 2014-07-10 18:01:28 +0200 |
commit | 9ca8bcb35eb0385c8f9852045bb282c445bd6901 (patch) | |
tree | fde546b834bee10f7bdcfaefe3f54d322e44524f /tests | |
parent | 354e8ed50b1fc1b6dadc1a2a8d54837b5b47e6be (diff) | |
download | scade-analyzer-9ca8bcb35eb0385c8f9852045bb282c445bd6901.tar.gz scade-analyzer-9ca8bcb35eb0385c8f9852045bb282c445bd6901.zip |
Add heuristic...
Diffstat (limited to 'tests')
-rw-r--r-- | tests/source/jeannet.scade | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/source/jeannet.scade b/tests/source/jeannet.scade new file mode 100644 index 0000000..9fca060 --- /dev/null +++ b/tests/source/jeannet.scade @@ -0,0 +1,16 @@ +node test() returns(x, y, probe z: int; a, b: bool) +var px, py: int; +let + a = false -> pre b; + b = true -> not pre a; + + px = pre x; + py = pre y; + + x = 0 -> (if a = b then px + 1 else px); + y = 0 -> (if a = b then py else py + 1); + + z = x - y; + + guarantee g1: x >= y; +tel |