-
Notifications
You must be signed in to change notification settings - Fork 664
spirv-fuzz: Fact manager deduces incorrect equation facts #4008
Copy link
Copy link
Closed
Description
The bug is in
SPIRV-Tools/source/fuzz/fact_manager/data_synonym_and_id_equation_facts.cpp
Lines 179 to 184 in f7da527
| if (synonymous_.IsEquivalent(*equation.operands[0], *rhs_dds[1])) { | |
| // Equation form: "a = (c - e) + c" | |
| // We can thus infer "a = -e" | |
| AddEquationFactRecursive(lhs_dd, SpvOpSNegate, | |
| {equation.operands[1]}); | |
| } |
If we have an equation
a = (c - e) + c then a = -e is obviously false.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels