C++: Simplify logic to an implication

This commit is contained in:
Dave Bartolomeo
2020-06-12 09:31:19 -04:00
parent 41df7000c5
commit 4331b9b54e
3 changed files with 3 additions and 9 deletions

View File

@@ -51,9 +51,7 @@ private module Cached {
cached
predicate hasInstruction(TStageInstruction instr) {
instr instanceof TRawInstruction and instr instanceof OldInstruction
or
not instr instanceof TRawInstruction
instr instanceof TRawInstruction implies instr instanceof OldInstruction
}
private IRBlock getNewBlock(OldBlock oldBlock) {

View File

@@ -51,9 +51,7 @@ private module Cached {
cached
predicate hasInstruction(TStageInstruction instr) {
instr instanceof TRawInstruction and instr instanceof OldInstruction
or
not instr instanceof TRawInstruction
instr instanceof TRawInstruction implies instr instanceof OldInstruction
}
private IRBlock getNewBlock(OldBlock oldBlock) {