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
119
Issues
119
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
87fa0578
Commit
87fa0578
authored
Jul 19, 2018
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update example of issue 116
parent
fa8c97b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
examples/bts/116_array_access.mlw
examples/bts/116_array_access.mlw
+6
-4
examples/bts/116_array_access/why3session.xml
examples/bts/116_array_access/why3session.xml
+5
-1
examples/bts/116_array_access/why3shapes.gz
examples/bts/116_array_access/why3shapes.gz
+0
-0
No files found.
examples/bts/116_array_access.mlw
View file @
87fa0578
...
...
@@ -4,12 +4,14 @@ module Test
use mach.array.Array63
constant d: Array.array int
constant
e: Array63.array int
val
e: Array63.array int
(* goal a: e[1] = 5*)
goal a: d[1] = 5
goal c: Array.([]) d 3 = 5
let f i =
e[i] <- 5;
e[i]
(* goal g: Array63.([]) e 3 = 5 *)
goal c: d[3] = 5
end
examples/bts/116_array_access/why3session.xml
View file @
87fa0578
...
...
@@ -2,8 +2,12 @@
<!DOCTYPE why3session PUBLIC "-//Why3//proof session v5//EN"
"http://why3.lri.fr/why3session.dtd">
<why3session
shape_version=
"5"
>
<file
name=
"../116_array_access.mlw"
proved=
"true"
>
<file
name=
"../116_array_access.mlw"
>
<theory
name=
"Test"
>
<goal
name=
"a"
>
</goal>
<goal
name=
"VC f"
expl=
"VC for f"
>
</goal>
<goal
name=
"c"
>
</goal>
</theory>
...
...
examples/bts/116_array_access/why3shapes.gz
View file @
87fa0578
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