File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation/unaliased_ssa/internal Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ private module Cached {
5151
5252 cached
5353 predicate hasInstruction ( TStageInstruction instr ) {
54- instr instanceof TRawInstruction implies instr instanceof OldInstruction
54+ instr instanceof TRawInstruction and instr instanceof OldInstruction
55+ or
56+ instr instanceof TPhiInstruction
57+ or
58+ instr instanceof TChiInstruction
59+ or
60+ instr instanceof TUnreachedInstruction
5561 }
5662
5763 private IRBlock getNewBlock ( OldBlock oldBlock ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ private module Cached {
5151
5252 cached
5353 predicate hasInstruction ( TStageInstruction instr ) {
54- instr instanceof TRawInstruction implies instr instanceof OldInstruction
54+ instr instanceof TRawInstruction and instr instanceof OldInstruction
55+ or
56+ instr instanceof TPhiInstruction
57+ or
58+ instr instanceof TChiInstruction
59+ or
60+ instr instanceof TUnreachedInstruction
5561 }
5662
5763 private IRBlock getNewBlock ( OldBlock oldBlock ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ private module Cached {
5151
5252 cached
5353 predicate hasInstruction ( TStageInstruction instr ) {
54- instr instanceof TRawInstruction implies instr instanceof OldInstruction
54+ instr instanceof TRawInstruction and instr instanceof OldInstruction
55+ or
56+ instr instanceof TPhiInstruction
57+ or
58+ instr instanceof TChiInstruction
59+ or
60+ instr instanceof TUnreachedInstruction
5561 }
5662
5763 private IRBlock getNewBlock ( OldBlock oldBlock ) {
You can’t perform that action at this time.
0 commit comments