Add a helper for checking equality to SValBuilder
Diff Detail
Event Timeline
lib/StaticAnalyzer/Core/SValBuilder.cpp | ||
---|---|---|
417 | Hmm. "Saying that LHS is unequal to RHS is not definitely true". Which means it's either false or unknown. Which means they're either equal or not known to be unequal. Which is not what we want. We want to make sure that they cannot be unequal. | |
427 | I don't think you need explicit casts here. |
"Saying that LHS is unequal to RHS is not definitely true". Which means it's either false or unknown. Which means they're either equal or not known to be unequal. Which is not what we want. We want to make sure that they cannot be unequal.
After thinking about this a bit more, saying that two things are equal is ambiguous in a three-valued logic (are we saying they are definitely equal or that they could be equal?)
Let's do it in a different way.
lib/StaticAnalyzer/Core/SValBuilder.cpp | ||
---|---|---|
427 | But then I would not be able to call it from evalEQ. |
Hmm.
"Saying that LHS is unequal to RHS is not definitely true". Which means it's either false or unknown. Which means they're either equal or not known to be unequal. Which is not what we want. We want to make sure that they cannot be unequal.