C++/C#: Stop caching getOldInstruction()

This commit is contained in:
Dave Bartolomeo
2020-06-12 16:22:58 -04:00
parent ac169931b3
commit 2aabe431f6
3 changed files with 6 additions and 9 deletions

View File

@@ -64,9 +64,6 @@ private module Cached {
result.getFirstInstruction() = getNewInstruction(oldBlock.getFirstInstruction())
}
cached
OldInstruction getOldInstruction(Instruction instr) { instr = result }
cached
predicate hasModeledMemoryResult(Instruction instruction) {
exists(Alias::getResultMemoryLocation(getOldInstruction(instruction))) or
@@ -341,6 +338,8 @@ private module Cached {
private Instruction getNewInstruction(OldInstruction instr) { getOldInstruction(result) = instr }
private OldInstruction getOldInstruction(Instruction instr) { instr = result }
private ChiInstruction getChi(OldInstruction primaryInstr) {
result = chiInstruction(_, primaryInstr)
}

View File

@@ -64,9 +64,6 @@ private module Cached {
result.getFirstInstruction() = getNewInstruction(oldBlock.getFirstInstruction())
}
cached
OldInstruction getOldInstruction(Instruction instr) { instr = result }
cached
predicate hasModeledMemoryResult(Instruction instruction) {
exists(Alias::getResultMemoryLocation(getOldInstruction(instruction))) or
@@ -341,6 +338,8 @@ private module Cached {
private Instruction getNewInstruction(OldInstruction instr) { getOldInstruction(result) = instr }
private OldInstruction getOldInstruction(Instruction instr) { instr = result }
private ChiInstruction getChi(OldInstruction primaryInstr) {
result = chiInstruction(_, primaryInstr)
}

View File

@@ -64,9 +64,6 @@ private module Cached {
result.getFirstInstruction() = getNewInstruction(oldBlock.getFirstInstruction())
}
cached
OldInstruction getOldInstruction(Instruction instr) { instr = result }
cached
predicate hasModeledMemoryResult(Instruction instruction) {
exists(Alias::getResultMemoryLocation(getOldInstruction(instruction))) or
@@ -341,6 +338,8 @@ private module Cached {
private Instruction getNewInstruction(OldInstruction instr) { getOldInstruction(result) = instr }
private OldInstruction getOldInstruction(Instruction instr) { instr = result }
private ChiInstruction getChi(OldInstruction primaryInstr) {
result = chiInstruction(_, primaryInstr)
}