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
126
Issues
126
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
f64a0c8a
Commit
f64a0c8a
authored
Jan 17, 2016
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect_polymorphism: minor
parent
1fd7832d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/transform/detect_polymorphism.ml
src/transform/detect_polymorphism.ml
+5
-4
No files found.
src/transform/detect_polymorphism.ml
View file @
f64a0c8a
...
...
@@ -13,11 +13,12 @@ open Decl
open
Theory
let
debug
=
Debug
.
register_info_flag
"detect_poly"
~
desc
:
"Print@ debugging@ messages@ of@ the@ 'detect_polymorphism'@ transformation."
~
desc
:
"Print@ debugging@ messages@ of@ the@ \
'detect_polymorphism'@ transformation."
(* metas to attach to symbols or propositions to tell their polymorphic
nature can be ignored because it will be treated specifically by
drivers *)
nature can be ignored because it will be treated specifically by
drivers *)
let
meta_ignore_polymorphism_ts
=
register_meta
...
...
@@ -50,7 +51,7 @@ let check_ls ign_ls ls =
List
.
fold_left
(
fun
acc
ty
->
acc
||
not
(
Ty
.
ty_closed
ty
))
false
(
Opt
.
fold
(
fun
acc
x
->
x
::
acc
)
ls
.
Term
.
ls_args
ls
.
Term
.
ls_value
)
(
Ty
.
oty_cons
ls
.
Term
.
ls_args
ls
.
Term
.
ls_value
)
let
detect_polymorphism_in_decl
ign_ts
ign_ls
ign_pr
d
=
Debug
.
dprintf
debug
"[detect_polymorphism] |sts|=%d |sls|=%d |spr|=%d@."
...
...
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