diff options
author | RustanLeino <leino@microsoft.com> | 2016-02-12 16:59:30 -0800 |
---|---|---|
committer | RustanLeino <leino@microsoft.com> | 2016-02-12 16:59:30 -0800 |
commit | 97095f7642c262934cd04996d8283b46ec184dc3 (patch) | |
tree | 631e8142afba9462e27996ef4c624e6d2d344a1b /Test | |
parent | 5fb565e439255ede7dc3653708af41678b6c1062 (diff) | |
parent | 83f675b0b0124872cc343ba0f14984803ee6eb18 (diff) |
Merge pull request #30 from qunyanm/type-parameter-bug-fix
Bug fix in determining whether a type parameter is bounded
Diffstat (limited to 'Test')
-rw-r--r-- | Test/test2/BoundedTypeParameterQuantifier.bpl | 14 | ||||
-rw-r--r-- | Test/test2/BoundedTypeParameterQuantifier.bpl.expect | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Test/test2/BoundedTypeParameterQuantifier.bpl b/Test/test2/BoundedTypeParameterQuantifier.bpl new file mode 100644 index 00000000..146ba445 --- /dev/null +++ b/Test/test2/BoundedTypeParameterQuantifier.bpl @@ -0,0 +1,14 @@ +// RUN: %boogie /proverWarnings:1 "%s" > "%t" +// RUN: %diff "%s.expect" "%t" + +function Map#Domain<QUN, YAN>(Map QUN YAN): [QUN] bool; +function Map#Empty<QUN, YAN>(): Map QUN YAN; +type Map QUN YAN; + +axiom (forall<QUN, YAN> u: QUN :: + { Map#Domain(Map#Empty(): Map QUN YAN)[u] } + !Map#Domain(Map#Empty(): Map QUN YAN)[u]); + +procedure P() +{ +} diff --git a/Test/test2/BoundedTypeParameterQuantifier.bpl.expect b/Test/test2/BoundedTypeParameterQuantifier.bpl.expect new file mode 100644 index 00000000..37fad75c --- /dev/null +++ b/Test/test2/BoundedTypeParameterQuantifier.bpl.expect @@ -0,0 +1,2 @@ + +Boogie program verifier finished with 1 verified, 0 errors |