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 {
6464 result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
6565 }
6666
67- cached
68- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69-
7067 cached
7168 predicate hasModeledMemoryResult ( Instruction instruction ) {
7269 exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341338
342339private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343340
341+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342+
344343private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345344 result = chiInstruction ( _, primaryInstr )
346345}
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ private module Cached {
6464 result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
6565 }
6666
67- cached
68- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69-
7067 cached
7168 predicate hasModeledMemoryResult ( Instruction instruction ) {
7269 exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341338
342339private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343340
341+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342+
344343private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345344 result = chiInstruction ( _, primaryInstr )
346345}
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ private module Cached {
6464 result .getFirstInstruction ( ) = getNewInstruction ( oldBlock .getFirstInstruction ( ) )
6565 }
6666
67- cached
68- OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
69-
7067 cached
7168 predicate hasModeledMemoryResult ( Instruction instruction ) {
7269 exists ( Alias:: getResultMemoryLocation ( getOldInstruction ( instruction ) ) ) or
@@ -341,6 +338,8 @@ private module Cached {
341338
342339private Instruction getNewInstruction ( OldInstruction instr ) { getOldInstruction ( result ) = instr }
343340
341+ private OldInstruction getOldInstruction ( Instruction instr ) { instr = result }
342+
344343private ChiInstruction getChi ( OldInstruction primaryInstr ) {
345344 result = chiInstruction ( _, primaryInstr )
346345}
You can’t perform that action at this time.
0 commit comments