summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-02-08 12:28:25 -0800
committerGravatar qunyanm <unknown>2016-02-08 12:28:25 -0800
commite9c589851d913a6566c421c87483dc7e94519f91 (patch)
treeefa24458fa658006bb72da97c10fa36a9ee17b7b /Test
parent6ea62e3009f326ca553521c169dec67a262a7217 (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.dfy14
-rw-r--r--Test/dafny4/Bug124.dfy.expect2
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