mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: Prevent IR re-evaluation by importing GVN.
This commit is contained in:
@@ -12,8 +12,11 @@
|
||||
* security
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.ir.IR
|
||||
import cpp
|
||||
// We don't actually use the global value numbering library in this query, but without it we end up
|
||||
// recomputing the IR.
|
||||
private import semmle.code.cpp.valuenumbering.GlobalValueNumbering
|
||||
private import semmle.code.cpp.ir.IR
|
||||
|
||||
bindingset[n, result]
|
||||
int unbind(int n) { result >= n and result <= n }
|
||||
|
||||
Reference in New Issue
Block a user