Merge pull request #4782 from johnlugton/patch-1

Fix FlowVar overflow bug
This commit is contained in:
Aditya Sharad
2020-12-04 10:48:44 -08:00
committed by GitHub

View File

@@ -598,7 +598,7 @@ module FlowVar_internal {
private predicate largeVariable(Variable v, int liveBlocks, int defs) {
liveBlocks = strictcount(SubBasicBlock sbb | variableLiveInSBB(sbb, v)) and
defs = strictcount(SubBasicBlock sbb | exists(TBlockVar(sbb, v))) and
liveBlocks * defs > 10000
liveBlocks.(float) * defs.(float) > 10000.0
}
/**