Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63f1d3d commit ef89e3bCopy full SHA for ef89e3b
1 file changed
cpp/ql/src/semmle/code/cpp/ir/internal/ASTValueNumbering.qll
@@ -51,6 +51,12 @@ private import semmle.code.cpp.ir.IR
51
* methods.
52
*/
53
class GVN extends TValueNumber {
54
+ GVN() {
55
+ exists(Instruction instr |
56
+ this = tvalueNumber(instr) and exists(instr.getUnconvertedResultExpression())
57
+ )
58
+ }
59
+
60
private Instruction getAnInstruction() { this = tvalueNumber(result) }
61
62
final string toString() { result = "GVN" }
0 commit comments