Skip to content

Commit 357a2ba

Browse files
committed
C++: Sync identical files.
1 parent 458ee13 commit 357a2ba

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/constant/ConstantAnalysis.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ private int getBinaryInstructionValue(BinaryInstruction instr) {
3838
or
3939
instr instanceof DivInstruction and result = div(left, right)
4040
or
41+
instr instanceof BitOrInstruction and result = bitOr(left, right)
42+
or
43+
instr instanceof BitAndInstruction and result = bitAnd(left, right)
44+
or
45+
instr instanceof BitXorInstruction and result = bitXor(left, right)
46+
or
4147
instr instanceof CompareEQInstruction and result = compareEQ(left, right)
4248
or
4349
instr instanceof CompareNEInstruction and result = compareNE(left, right)

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/constant/ConstantAnalysis.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ private int getBinaryInstructionValue(BinaryInstruction instr) {
3838
or
3939
instr instanceof DivInstruction and result = div(left, right)
4040
or
41+
instr instanceof BitOrInstruction and result = bitOr(left, right)
42+
or
43+
instr instanceof BitAndInstruction and result = bitAnd(left, right)
44+
or
45+
instr instanceof BitXorInstruction and result = bitXor(left, right)
46+
or
4147
instr instanceof CompareEQInstruction and result = compareEQ(left, right)
4248
or
4349
instr instanceof CompareNEInstruction and result = compareNE(left, right)

0 commit comments

Comments
 (0)