mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
10 lines
347 B
Plaintext
10 lines
347 B
Plaintext
import default
|
|
import semmle.code.cpp.ir.IR
|
|
import semmle.code.cpp.ir.implementation.aliased_ssa.constant.ConstantAnalysis
|
|
import semmle.code.cpp.ir.internal.IntegerConstant
|
|
|
|
from IRFunction irFunc, int value
|
|
where
|
|
value = getValue(getConstantValue(irFunc.getReturnInstruction().(ReturnValueInstruction).getReturnValue()))
|
|
select irFunc, value
|