Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
4e3e29cd
Commit
4e3e29cd
authored
Oct 06, 2010
by
MARCHE Claude
Browse files
bug with exceptions
parent
a46bf955
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/bench
View file @
4e3e29cd
...
...
@@ -113,13 +113,18 @@ test_prover () {
fi
}
echo
"=== Checking drivers ==="
drivers drivers
echo
""
echo
"=== Checking valid goals ==="
valid_goals bench/valid
echo
""
# 1. Syntax
echo
"=== Parsing good files ==="
goods bench/typing/bad
--parse-only
echo
""
# 2. Typing
echo
"=== Type-checking bad files ==="
bads bench/typing/bad
--type-only
echo
""
...
...
@@ -150,12 +155,10 @@ programs bench/programs/good
programs examples/programs
echo
""
echo
"=== Checking drivers ==="
drivers drivers
echo
""
echo
"=== Checking valid goals ==="
valid_goals bench/valid
echo
"=== VC generation on good programs ==="
pgml_options
=
programs bench/programs/good
programs examples/programs
echo
""
echo
"=== Checking provers ==="
...
...
bench/programs/good/exceptions.mlw
0 → 100644
View file @
4e3e29cd
exception Break
let f (n : int) : int =
{ true }
let i = ref n in
try
while (!i > 0) do
invariant { true }
variant { !i }
if (!i <= 10) then raise Break;
i := !i - 1
done
with Break -> ()
end;
!i
{ result <= 10 }
Write
Preview
Supports
Markdown
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