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
8980fa19
Commit
8980fa19
authored
Apr 20, 2020
by
Benedikt Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix examples/use_api_mlw_tree.ml and bench
parent
67a84b35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
examples/use_api/mlw_tree.ml
examples/use_api/mlw_tree.ml
+1
-1
examples/use_api/oracles/test-api-mlw_tree.stdout
examples/use_api/oracles/test-api-mlw_tree.stdout
+17
-18
No files found.
examples/use_api/mlw_tree.ml
View file @
8980fa19
...
...
@@ -310,7 +310,7 @@ let mods = Typing.type_mlw_file env [] "myfile.mlw" mlw_file
(* END{typemodules} *)
(* BEGIN{typemoduleserror} *)
let
mods
=
let
_
mods
=
try
Typing
.
type_mlw_file
env
[]
"myfile.mlw"
mlw_file
with
Loc
.
Located
(
loc
,
e
)
->
(* A located exception [e] *)
...
...
examples/use_api/oracles/test-api-mlw_tree.stdout
View file @
8980fa19
module M1
use int.Int
use int.Int
goal g: Int.(=) 4 (Int.(+) 2 2)
end
module M2
use int.Int
use int.Int
let f (x: int) requires { x = 6 } ensures { result = 42 } = Int.(*) x 7
let f (x : int)
requires {(x = 6)}
ensures { (result = 42) } =
(Int.(*) x 7)
end
module M3
use int.Int
use ref.Ref
use int.Int
use ref.Ref
let f (_: ())
ensures { Int.(>=) result 0 } =
let x = Ref.ref 42 in (Ref.(!) x)
let f (_ : ())
ensures { (Int.(>=) result 0) } =
(let x = (Ref.ref 42) in Ref.(!) x)
end
module M4
use int.Int
use array.Array
use int.Int
use array.Array
let f (a: Array.array int)
requires { Int.(>=) (Array.length a) 1 }
returns { _ -> ((Array.([]) a 0) = 42) } =
Array.([]<-) a 0 42
let f (a : Array.array int)
requires {(Int.(>=) (Array.length a) 1)}
returns { _ -> (Array.([]) a 0) = 42 } =
(Array.([]<-) a 0 42)
end
Tasks are:
Task 1: theory Task
...
...
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