Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Martin Jonáš
BVExprSimplifier
Commits
7f0cae84
Commit
7f0cae84
authored
Oct 20, 2016
by
Martin Jonas
Browse files
Fix bvsle/bvule with negative polarity.
parent
8757688e
Changes
1
Hide whitespace changes
Inline
Side-by-side
UnconstrainedVariableSimplifier.cpp
View file @
7f0cae84
...
...
@@ -214,6 +214,7 @@ void UnconstrainedVariableSimplifier::SimplifyIte()
oldHash
=
expression
.
hash
();
SimplifyOnce
();
expression
=
expression
.
simplify
();
// std::cout << "Simplify once" << std::endl;
//expression = simplifier.PushNegations(expression);
...
...
@@ -480,7 +481,7 @@ z3::expr UnconstrainedVariableSimplifier::simplifyOnce(expr e, std::vector<Bound
}
else
{
return
!
(
e
.
arg
(
1
)
==
concat
(
context
->
bv_val
(
0
,
1
),
context
->
bv_val
(
-
1
,
bvSize
-
1
))
)
;
return
e
.
arg
(
1
)
==
concat
(
context
->
bv_val
(
0
,
1
),
context
->
bv_val
(
-
1
,
bvSize
-
1
));
}
}
else
...
...
@@ -509,7 +510,7 @@ z3::expr UnconstrainedVariableSimplifier::simplifyOnce(expr e, std::vector<Bound
}
else
{
return
!
(
e
.
arg
(
0
)
==
concat
(
context
->
bv_val
(
1
,
1
),
context
->
bv_val
(
0
,
bvSize
-
1
))
)
;
return
e
.
arg
(
0
)
==
concat
(
context
->
bv_val
(
1
,
1
),
context
->
bv_val
(
0
,
bvSize
-
1
));
}
}
else
...
...
@@ -602,7 +603,7 @@ z3::expr UnconstrainedVariableSimplifier::simplifyOnce(expr e, std::vector<Bound
}
else
{
return
!
(
e
.
arg
(
1
)
==
context
->
bv_val
(
-
1
,
bvSize
)
)
;
return
e
.
arg
(
1
)
==
context
->
bv_val
(
-
1
,
bvSize
);
}
}
else
...
...
@@ -631,7 +632,7 @@ z3::expr UnconstrainedVariableSimplifier::simplifyOnce(expr e, std::vector<Bound
}
else
{
return
!
(
e
.
arg
(
0
)
==
context
->
bv_val
(
0
,
bvSize
)
)
;
return
e
.
arg
(
0
)
==
context
->
bv_val
(
0
,
bvSize
);
}
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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