mirror of
https://github.com/github/codeql.git
synced 2026-01-05 18:50:23 +01:00
14 lines
385 B
Plaintext
14 lines
385 B
Plaintext
import cpp
|
|
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
|