GP-3019 Detect flow of NaN into floating-point comparison

This commit is contained in:
caheckman 2023-07-21 18:26:22 +00:00
parent 285c90f1c5
commit f61367bf19
13 changed files with 320 additions and 13 deletions

View file

@ -1549,6 +1549,8 @@ public:
};
class RuleIgnoreNan : public Rule {
static bool checkBackForCompare(Varnode *floatVar,Varnode *root);
static Varnode *testForComparison(Varnode *floatVar,PcodeOp *op,int4 slot,OpCode matchCode,int4 &count,Funcdata &data);
public:
RuleIgnoreNan(const string &g) : Rule( g, 0, "ignorenan") {} ///< Constructor
virtual Rule *clone(const ActionGroupList &grouplist) const {