Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
ec888b85
Commit
ec888b85
authored
6 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Add an "ignore_missing_diverges" debug flag, and use it to check trywhy3's examples.
parent
65cba90e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bench/bench
+1
-0
1 addition, 0 deletions
bench/bench
src/mlw/vc.ml
+4
-0
4 additions, 0 deletions
src/mlw/vc.ml
with
5 additions
and
0 deletions
bench/bench
+
1
−
0
View file @
ec888b85
...
...
@@ -261,6 +261,7 @@ goods bench/typing/x-good --parse-only
bads bench/typing/x-good
--type-only
goods bench/programs/good
goods bench/ce
goods src/trywhy3/examples
"--debug ignore_missing_diverges"
goods examples/bts
goods examples/tests
goods examples/tests-provers
...
...
This diff is collapsed.
Click to expand it.
src/mlw/vc.ml
+
4
−
0
View file @
ec888b85
...
...
@@ -32,6 +32,9 @@ let debug_sp = Debug.register_flag "vc_sp"
let
no_eval
=
Debug
.
register_flag
"vc_no_eval"
~
desc
:
"Do@ not@ simplify@ pattern@ matching@ on@ record@ datatypes@ in@ VCs."
let
debug_ignore_missing_diverges
=
Debug
.
register_info_flag
"ignore_missing_diverges"
~
desc
:
"Suppress@ warnings@ on@ missing@ diverges"
let
case_split
=
Ident
.
create_attribute
"case_split"
let
add_case
t
=
t_attr_add
case_split
t
...
...
@@ -520,6 +523,7 @@ let rec k_expr env lps e res xmap =
let
var_or_proxy
=
var_or_proxy_case
xmap
in
let
check_divergence
k
=
if
eff
.
eff_oneway
&&
not
env
.
divergent
then
begin
if
Debug
.
test_noflag
debug_ignore_missing_diverges
then
Warning
.
emit
?
loc
"termination@ of@ this@ expression@ \
cannot@ be@ proved,@ but@ there@ is@ no@ `diverges'@ \
clause@ in@ the@ outer@ specification"
;
...
...
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