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

handle undef values with non-deterministic assignments

parent 8a21c93a
......@@ -137,7 +137,9 @@ 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()) {
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