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 {
51
51
52
52
cached
53
53
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
55
61
}
56
62
57
63
private IRBlock getNewBlock ( OldBlock oldBlock ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ private module Cached {
51
51
52
52
cached
53
53
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
55
61
}
56
62
57
63
private IRBlock getNewBlock ( OldBlock oldBlock ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ private module Cached {
51
51
52
52
cached
53
53
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
55
61
}
56
62
57
63
private IRBlock getNewBlock ( OldBlock oldBlock ) {
You can’t perform that action at this time.
0 commit comments