-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ValueFlow: extracted valueFlowSymbolicOperators()
into separate file
#6845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/vf_common.cpp
Outdated
@@ -437,4 +440,32 @@ namespace ValueFlow | |||
scope = scope->nestedIn; | |||
return scope; | |||
} | |||
|
|||
Value inferCondition(const std::string& op, const Token* varTok, MathLib::bigint val) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
dc8ee28
to
ad1c990
Compare
ad1c990
to
2c58068
Compare
@@ -388,3 +387,35 @@ std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, cons | |||
return model->match(v); | |||
}).maxvalue; | |||
} | |||
|
|||
namespace { | |||
struct IntegralInferModel : InferModel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the SymbolicInferModel
should be moved here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Will do in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense to put them all in one place. But keeping them in the only place that uses them might also make sense. The compiler would also be able to see all the code...not 100% on what to do here.
There is also IteratorInferModel
and related classes in vf_infercondition.cpp
.
No further comments for two weeks - merging. |
…rate file (danmar#6845)" This reverts commit 66d53a2.
No description provided.