Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
Why3
why3
Commits
eefb88cd
Commit
eefb88cd
authored
14 years ago
by
Jean-Christophe Filliâtre
Browse files
Options
Downloads
Patches
Plain Diff
a bug to fix
parent
cc9e5dfc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
modules/random.mlw
+1
-1
1 addition, 1 deletion
modules/random.mlw
tests/test-pgm-jcf.mlw
+18
-0
18 additions, 0 deletions
tests/test-pgm-jcf.mlw
with
20 additions
and
2 deletions
.gitignore
+
1
−
1
View file @
eefb88cd
...
...
@@ -3,7 +3,7 @@
*.bak
*.o
.*.swp
why.conf
why
3
.conf
*.cmx
*.cmo
*.cmi
...
...
This diff is collapsed.
Click to expand it.
modules/random.mlw
+
1
−
1
View file @
eefb88cd
...
...
@@ -12,7 +12,7 @@
The following modules provide slightly more: pseudo-random generators
which are deterministic according to a state. The state is either
explicit (module State)
\/
global (module Random). Functions init allow
explicit (module State)
or
global (module Random). Functions init allow
to reset the generators according to a given seed.
*)
...
...
This diff is collapsed.
Click to expand it.
tests/test-pgm-jcf.mlw
+
18
−
0
View file @
eefb88cd
(*
module MutualRec
use import int.Int
...
...
@@ -12,6 +13,7 @@ module MutualRec
{ 0 = 0 }
end
*)
module PoorArrays
...
...
@@ -32,6 +34,22 @@ module PoorArrays
end
module Alias
use import int.Int
use import module ref.Ref
val r : ref int
let deref (x: ref int) =
!x + !r
(* TODO: should be rejected *)
let test1 () =
deref r
end
module M
use import int.Int
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment