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
121
Issues
121
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
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
06e080dd
Commit
06e080dd
authored
Dec 01, 2010
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Api doc
parent
f2569144
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
src/core/task.ml
src/core/task.ml
+1
-0
src/core/theory.mli
src/core/theory.mli
+2
-0
src/core/ty.mli
src/core/ty.mli
+5
-0
No files found.
src/core/task.ml
View file @
06e080dd
...
...
@@ -227,6 +227,7 @@ let find_tagged_ts t tds acc =
Stdecl
.
fold
(
fun
td
acc
->
match
td
.
td_node
with
|
Meta
(
s
,
MAts
ts
::
_
)
when
meta_equal
s
t
->
Sts
.
add
ts
acc
|
_
->
assert
false
)
tds
.
tds_set
acc
(* TODO an exception instead of an assert false (wrong META used) *)
let
find_tagged_ls
t
tds
acc
=
begin
match
t
.
meta_type
with
...
...
src/core/theory.mli
View file @
06e080dd
...
...
@@ -73,6 +73,8 @@ val meta_hash : meta -> int
val
register_meta
:
string
->
meta_arg_type
list
->
meta
val
register_meta_excl
:
string
->
meta_arg_type
list
->
meta
(** Register exclusive meta, each new setting remove the previous one.
Useful for transformation or printer parameters *)
val
lookup_meta
:
string
->
meta
val
list_metas
:
unit
->
meta
list
...
...
src/core/ty.mli
View file @
06e080dd
...
...
@@ -78,11 +78,16 @@ val create_tysymbol : preid -> tvsymbol list -> ty option -> tysymbol
val
ty_var
:
tvsymbol
->
ty
val
ty_app
:
tysymbol
->
ty
list
->
ty
(** {3 generic traversal functions} *)
(** traverse only one level of constructor, if you want full traversal
you need to call those function inside your function *)
val
ty_map
:
(
ty
->
ty
)
->
ty
->
ty
val
ty_fold
:
(
'
a
->
ty
->
'
a
)
->
'
a
->
ty
->
'
a
val
ty_all
:
(
ty
->
bool
)
->
ty
->
bool
val
ty_any
:
(
ty
->
bool
)
->
ty
->
bool
(** {3 symbol-wise map/fold} *)
(** visites every symbol of the type} *)
val
ty_s_map
:
(
tysymbol
->
tysymbol
)
->
ty
->
ty
val
ty_s_fold
:
(
'
a
->
tysymbol
->
'
a
)
->
'
a
->
ty
->
'
a
val
ty_s_all
:
(
tysymbol
->
bool
)
->
ty
->
bool
...
...
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