Verified Commit 60700023 authored by Tim Gymnich's avatar Tim Gymnich
Browse files

handle undef values with non-deterministic assignments

parent 8a21c93a
...@@ -137,8 +137,10 @@ void NormalizedConjunction::applyDefault(Instruction const& inst) { ...@@ -137,8 +137,10 @@ void NormalizedConjunction::applyDefault(Instruction const& inst) {
type = dyn_cast<IntegerType>(inst.getOperand(1)->getType()); type = dyn_cast<IntegerType>(inst.getOperand(1)->getType());
if (not type) return nonDeterminsticAssignment(&inst); 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()) { for (Value const* value: inst.operand_values()) {
operands.push_back(LinearEquality(value)); operands.push_back(LinearEquality(value));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment