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
cduce
cduce
Commits
e98b1638
Commit
e98b1638
authored
May 19, 2014
by
Pietro Abate
Browse files
fix printer for negated polymorphic variables
parent
692a2904
Changes
4
Hide whitespace changes
Inline
Side-by-side
types/sortedList.ml
View file @
e98b1638
...
...
@@ -153,6 +153,8 @@ module Map = struct
let
is_empty
l
=
l
=
[]
let
singleton
x
y
=
[
(
x
,
y
)
]
let
fold
f
l
acc
=
List
.
fold_left
(
fun
tacc
(
k
,
v
)
->
f
k
v
tacc
)
acc
l
let
length
=
List
.
length
let
domain
l
=
List
.
map
fst
l
...
...
types/sortedList.mli
View file @
e98b1638
...
...
@@ -37,6 +37,7 @@ sig
val
domain
:
'
a
map
->
t
val
restrict
:
'
a
map
->
t
->
'
a
map
val
empty
:
'
a
map
val
fold
:
(
X
.
t
->
'
a
->
'
b
->
'
b
)
->
'
a
map
->
'
b
->
'
b
val
iter
:
(
'
a
->
unit
)
->
'
a
map
->
unit
val
iteri
:
(
X
.
t
->
'
a
->
unit
)
->
'
a
map
->
unit
val
filter
:
(
X
.
t
->
'
a
->
bool
)
->
'
a
map
->
'
a
map
...
...
types/types.ml
View file @
e98b1638
...
...
@@ -1653,7 +1653,7 @@ struct
let
l2
=
List
.
fold_left
(
fun
acc
->
function
|
(
`Var
v
)
as
x
->
if
not
(
TLV
.
mem
(
x
,
tru
e
)
tlv
)
then
if
not
(
TLV
.
mem
(
x
,
fals
e
)
tlv
)
then
(
Atomic
(
fun
ppf
->
Format
.
fprintf
ppf
"~ %a"
Var
.
print
x
))
::
acc
else
acc
|
`Atm
bdd
->
assert
false
...
...
typing/typer.ml
View file @
e98b1638
...
...
@@ -1132,9 +1132,9 @@ and branches_aux loc env targ tres constr precise = function
(* Xi_j *)
let
xj
=
let
pattpolyvars
=
List
.
fold_left
(
fun
acc
(
_
,
t
)
->
IdMap
.
fold
(
fun
_
t
acc
->
Var
.
Set
.
union
acc
(
Types
.
all_vars
(
Types
.
descr
t
))
)
Var
.
Set
.
empty
env'
.
gamma
)
env'
.
gamma
Var
.
Set
.
empty
in
Var
.
Set
.
diff
pattpolyvars
env'
.
delta
in
...
...
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