Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
126
Issues
126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
c4a44c96
Commit
c4a44c96
authored
Feb 12, 2019
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply test: add new tests for let.
parent
d144bf12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
2 deletions
+58
-2
examples/bts/265_apply.mlw
examples/bts/265_apply.mlw
+36
-2
examples/bts/265_apply/why3session.xml
examples/bts/265_apply/why3session.xml
+22
-0
examples/bts/265_apply/why3shapes.gz
examples/bts/265_apply/why3shapes.gz
+0
-0
No files found.
examples/bts/265_apply.mlw
View file @
c4a44c96
...
...
@@ -2,16 +2,50 @@ module Test
predicate p int
function f int: int
axiom H: forall x. let y = f x in let z = f y in p z
axiom H2: forall x. let y = f x in let z = f y in let a = f z in p a
axiom H1: forall x. let y = x in let z = y in p z
axiom H3: forall x. let y = f x in x = y -> let z = f y in let a = f z in p a
axiom H4: forall x. (let v = x in f v = x) -> let z = f x in let a = f z in p a
goal g: p 17
end
module Test2
inductive test int =
| test_bad: forall x.
let y = x in
let z = y in
test z
| test_good: forall x.
let z =
let y = x in
y
in
test z
goal g: test 0
end
module Test3
predicate test int
function f int : int
axiom H1 : forall x:int. let y = f x in test y
goal g1: test 42
axiom H2 : forall x:int. let y = f x in let z = f y in test z
goal g2: test 42
end
examples/bts/265_apply/why3session.xml
View file @
c4a44c96
...
...
@@ -33,5 +33,27 @@
</transf>
</goal>
</theory>
<theory
name=
"Test2"
>
<goal
name=
"g"
>
<transf
name=
"apply"
arg1=
"test_bad"
arg2=
"with"
arg3=
"23"
>
<goal
name=
"g.0"
expl=
"apply premises"
>
</goal>
</transf>
</goal>
</theory>
<theory
name=
"Test3"
>
<goal
name=
"g1"
>
<transf
name=
"apply"
arg1=
"H1"
arg2=
"with"
arg3=
"23"
>
<goal
name=
"g1.0"
expl=
"apply premises"
>
</goal>
</transf>
</goal>
<goal
name=
"g2"
>
<transf
name=
"apply"
arg1=
"H2"
arg2=
"with"
arg3=
"48"
>
<goal
name=
"g2.0"
expl=
"apply premises"
>
</goal>
</transf>
</goal>
</theory>
</file>
</why3session>
examples/bts/265_apply/why3shapes.gz
View file @
c4a44c96
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment