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
6d76a68b
Commit
6d76a68b
authored
Jul 07, 2014
by
Kim Nguyễn
Browse files
Do not instantiate monomorphic variables when generating constraints.
parent
c1bc6a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
types/types.ml
View file @
6d76a68b
...
@@ -3047,10 +3047,13 @@ module Tallying = struct
...
@@ -3047,10 +3047,13 @@ module Tallying = struct
(* if there is only one variable then is it A <= 0 or 1 <= A *)
(* if there is only one variable then is it A <= 0 or 1 <= A *)
else
if
is_var
t
then
else
if
is_var
t
then
let
(
v
,
p
)
=
TLV
.
max
t
.
toplvars
in
let
(
v
,
p
)
=
TLV
.
max
t
.
toplvars
in
let
s
=
if
p
then
(
Pos
(
v
,
empty
))
else
(
Neg
(
any
,
v
))
in
if
Var
.
Set
.
mem
v
delta
then
CS
.
unsat
CS
.
singleton
delta
s
else
let
s
=
if
p
then
(
Pos
(
v
,
empty
))
else
(
Neg
(
any
,
v
))
in
CS
.
singleton
delta
s
(* if there are no vars, and it is not empty then unsat *)
(* if there are no vars, and it is not empty then unsat *)
else
if
no_var
t
then
CS
.
unsat
else
if
(*no_var t*)
Var
.
Set
.
subset
t
.
toplvars
.
TLV
.
fv
delta
then
CS
.
unsat
else
begin
else
begin
let
mem
=
DescrSet
.
add
t
mem
in
let
mem
=
DescrSet
.
add
t
mem
in
let
aux
single
norm_aux
acc
l
=
big_prod
delta
(
toplevel
delta
single
norm_aux
mem
)
acc
l
in
let
aux
single
norm_aux
acc
l
=
big_prod
delta
(
toplevel
delta
single
norm_aux
mem
)
acc
l
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