We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71347e4 + a7ef84f commit 6c7e809Copy full SHA for 6c7e809
1 file changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/internal/TOperand.qll
@@ -23,9 +23,8 @@ private module Internal {
23
newtype TOperand =
24
// RAW
25
TRegisterOperand(TRawInstruction useInstr, RegisterOperandTag tag, TRawInstruction defInstr) {
26
- defInstr = RawConstruction::getRegisterOperandDefinition(useInstr, tag) and
27
- not RawConstruction::isInCycle(useInstr) and
28
- strictcount(RawConstruction::getRegisterOperandDefinition(useInstr, tag)) = 1
+ defInstr = unique( | | RawConstruction::getRegisterOperandDefinition(useInstr, tag)) and
+ not RawConstruction::isInCycle(useInstr)
29
} or
30
// Placeholder for Phi and Chi operands in stages that don't have the corresponding instructions
31
TNoOperand() { none() } or
0 commit comments