summaryrefslogtreecommitdiff
path: root/Test/test2/NeverPattern.bpl
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-12-16 17:46:41 -0800
committerGravatar Rustan Leino <unknown>2013-12-16 17:46:41 -0800
commit0f4f6e8c38ef02fd5761480623d1c16460528727 (patch)
tree12de587e5a573decfdf25c97760d25cc2bdafa1d /Test/test2/NeverPattern.bpl
parent5cf49ba3db93534e001f40ac389e6218da9bb64c (diff)
Fixed another :never_pattern bug related to nested quantifiers
Diffstat (limited to 'Test/test2/NeverPattern.bpl')
-rw-r--r--Test/test2/NeverPattern.bpl12
1 files changed, 10 insertions, 2 deletions
diff --git a/Test/test2/NeverPattern.bpl b/Test/test2/NeverPattern.bpl
index 07e4be9c..1e0fed76 100644
--- a/Test/test2/NeverPattern.bpl
+++ b/Test/test2/NeverPattern.bpl
@@ -30,13 +30,13 @@ procedure bar2()
// ----- nested binders -----
-function {:never_pattern true} P(int): bool;
+function {:never_pattern} P(int): bool;
function F(int, int): int;
function G(int): bool;
procedure NestedBinders()
{
- goto A, B, C;
+ goto A, B, C, D;
A:
assume (forall s: int ::
// the occurrence of P in the next line had once caused a crash
@@ -56,5 +56,13 @@ procedure NestedBinders()
(lambda x: int :: P(F(s, x))) == m);
goto End;
+ D:
+ assume (forall x0: int ::
+ // The following quantifier will get a {:nopats P(x1,s)}, which is good.
+ // But that added trigger expression had once caused the outer quantifier
+ // to crash.
+ (forall x1: int :: P(x1)));
+ goto End;
+
End:
}