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
70914ae2
Commit
70914ae2
authored
May 17, 2014
by
Pietro Abate
Browse files
Handling few basic cases directly in Tallying.norm
micro performance improvement
parent
d3b48589
Changes
1
Hide whitespace changes
Inline
Side-by-side
types/types.ml
View file @
70914ae2
...
@@ -3008,7 +3008,6 @@ module Tallying = struct
...
@@ -3008,7 +3008,6 @@ module Tallying = struct
if
DescrSet
.
mem
t
mem
||
is_empty
t
then
begin
if
DescrSet
.
mem
t
mem
||
is_empty
t
then
begin
(*Format.printf "Sat for type %a\n%!" Print.print t; *)
(*Format.printf "Sat for type %a\n%!" Print.print t; *)
CS
.
sat
end
else
begin
CS
.
sat
end
else
begin
(*
if
is_empty
t
then
CS
.
sat
if
is_empty
t
then
CS
.
sat
(* 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
...
@@ -3017,7 +3016,7 @@ module Tallying = struct
...
@@ -3017,7 +3016,7 @@ module Tallying = struct
CS
.
singleton
s
CS
.
singleton
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
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
(
toplevel
single
norm_aux
mem
)
acc
l
in
let
aux
single
norm_aux
acc
l
=
big_prod
(
toplevel
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