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
Dr. Michael Petter
LLVM-abstractinterpretation
Commits
60700023
Verified
Commit
60700023
authored
Mar 14, 2020
by
Tim Gymnich
Browse files
handle undef values with non-deterministic assignments
parent
8a21c93a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/normalized_conjunction.cpp
View file @
60700023
...
...
@@ -137,8 +137,10 @@ void NormalizedConjunction::applyDefault(Instruction const& inst) {
type
=
dyn_cast
<
IntegerType
>
(
inst
.
getOperand
(
1
)
->
getType
());
if
(
not
type
)
return
nonDeterminsticAssignment
(
&
inst
);
// TODO: handle undef values
if
(
isa
<
UndefValue
>
(
inst
.
getOperand
(
0
))
||
isa
<
UndefValue
>
(
inst
.
getOperand
(
1
)))
{
return
nonDeterminsticAssignment
(
&
inst
);
}
for
(
Value
const
*
value
:
inst
.
operand_values
())
{
operands
.
push_back
(
LinearEquality
(
value
));
}
...
...
Write
Preview
Supports
Markdown
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