File tree Expand file tree Collapse file tree 3 files changed +6
-9
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 +6
-9
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ private module Cached {
64
64
result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
65
65
}
66
66
67
- cached
68
- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69
-
70
67
cached
71
68
predicate hasModeledMemoryResult ( Instruction instruction ) {
72
69
exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341
338
342
339
private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343
340
341
+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342
+
344
343
private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345
344
result = chiInstruction ( _, primaryInstr )
346
345
}
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ private module Cached {
64
64
result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
65
65
}
66
66
67
- cached
68
- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69
-
70
67
cached
71
68
predicate hasModeledMemoryResult ( Instruction instruction ) {
72
69
exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341
338
342
339
private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343
340
341
+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342
+
344
343
private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345
344
result = chiInstruction ( _, primaryInstr )
346
345
}
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ private module Cached {
64
64
result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
65
65
}
66
66
67
- cached
68
- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69
-
70
67
cached
71
68
predicate hasModeledMemoryResult ( Instruction instruction ) {
72
69
exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341
338
342
339
private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343
340
341
+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342
+
344
343
private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345
344
result = chiInstruction ( _, primaryInstr )
346
345
}
You can’t perform that action at this time.
0 commit comments