diff options
author | qunyanm <unknown> | 2016-02-08 12:28:25 -0800 |
---|---|---|
committer | qunyanm <unknown> | 2016-02-08 12:28:25 -0800 |
commit | e9c589851d913a6566c421c87483dc7e94519f91 (patch) | |
tree | efa24458fa658006bb72da97c10fa36a9ee17b7b /Test | |
parent | 6ea62e3009f326ca553521c169dec67a262a7217 (diff) |
Fix issue 124. Consider math operators that later turned into function calls
as candidates for triggers.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug124.dfy | 14 | ||||
-rw-r--r-- | Test/dafny4/Bug124.dfy.expect | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Test/dafny4/Bug124.dfy b/Test/dafny4/Bug124.dfy new file mode 100644 index 00000000..60f26a00 --- /dev/null +++ b/Test/dafny4/Bug124.dfy @@ -0,0 +1,14 @@ +// RUN: %dafny /compile:0 /autoTriggers:1 /noNLarith "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function power(n:nat, e:nat) : int
+
+lemma lemma_power()
+ ensures forall n:nat, e:nat :: 0 <= n * e && power(n, e) == 5;
+{
+ forall n:nat, e:nat
+ ensures 0 <= n * e && power(n, e) == 5;
+ {
+ assume false;
+ }
+}
\ No newline at end of file diff --git a/Test/dafny4/Bug124.dfy.expect b/Test/dafny4/Bug124.dfy.expect new file mode 100644 index 00000000..52595bf9 --- /dev/null +++ b/Test/dafny4/Bug124.dfy.expect @@ -0,0 +1,2 @@ +
+Dafny program verifier finished with 3 verified, 0 errors
|