Skip to content

Commit 3b43f84

Browse files
authored
Merge pull request #15529 from MathiasVP/delete-get-interval-updated-by-chi
2 parents 43f1189 + b68824a commit 3b43f84

File tree

10 files changed

+0
-90
lines changed

10 files changed

+0
-90
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,13 +2125,6 @@ class ChiInstruction extends Instruction {
21252125
*/
21262126
final Instruction getPartial() { result = this.getPartialOperand().getDef() }
21272127

2128-
/**
2129-
* Gets the bit range `[startBit, endBit)` updated by the partial operand of this `ChiInstruction`, relative to the start address of the total operand.
2130-
*/
2131-
final predicate getUpdatedInterval(int startBit, int endBit) {
2132-
Construction::getIntervalUpdatedByChi(this, startBit, endBit)
2133-
}
2134-
21352128
/**
21362129
* Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
21372130
* This means that the `ChiPartialOperand` will not override the entire memory associated with the

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/internal/SSAConstruction.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,6 @@ private module Cached {
233233
)
234234
}
235235

236-
/**
237-
* Holds if the partial operand of this `ChiInstruction` updates the bit range
238-
* `[startBitOffset, endBitOffset)` of the total operand.
239-
*/
240-
cached
241-
predicate getIntervalUpdatedByChi(ChiInstruction chi, int startBitOffset, int endBitOffset) {
242-
exists(Alias::MemoryLocation location, OldInstruction oldInstruction |
243-
oldInstruction = getOldInstruction(chi.getPartial()) and
244-
location = Alias::getResultMemoryLocation(oldInstruction) and
245-
startBitOffset = Alias::getStartBitOffset(location) and
246-
endBitOffset = Alias::getEndBitOffset(location)
247-
)
248-
}
249-
250236
/**
251237
* Holds if `operand` totally overlaps with its definition and consumes the bit range
252238
* `[startBitOffset, endBitOffset)`.

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/Instruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,13 +2125,6 @@ class ChiInstruction extends Instruction {
21252125
*/
21262126
final Instruction getPartial() { result = this.getPartialOperand().getDef() }
21272127

2128-
/**
2129-
* Gets the bit range `[startBit, endBit)` updated by the partial operand of this `ChiInstruction`, relative to the start address of the total operand.
2130-
*/
2131-
final predicate getUpdatedInterval(int startBit, int endBit) {
2132-
Construction::getIntervalUpdatedByChi(this, startBit, endBit)
2133-
}
2134-
21352128
/**
21362129
* Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
21372130
* This means that the `ChiPartialOperand` will not override the entire memory associated with the

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,6 @@ Instruction getMemoryOperandDefinition(
202202
none()
203203
}
204204

205-
/**
206-
* Holds if the partial operand of this `ChiInstruction` updates the bit range
207-
* `[startBitOffset, endBitOffset)` of the total operand.
208-
*/
209-
predicate getIntervalUpdatedByChi(ChiInstruction chi, int startBit, int endBit) { none() }
210-
211205
/**
212206
* Holds if the operand totally overlaps with its definition and consumes the
213207
* bit range `[startBitOffset, endBitOffset)`.

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,13 +2125,6 @@ class ChiInstruction extends Instruction {
21252125
*/
21262126
final Instruction getPartial() { result = this.getPartialOperand().getDef() }
21272127

2128-
/**
2129-
* Gets the bit range `[startBit, endBit)` updated by the partial operand of this `ChiInstruction`, relative to the start address of the total operand.
2130-
*/
2131-
final predicate getUpdatedInterval(int startBit, int endBit) {
2132-
Construction::getIntervalUpdatedByChi(this, startBit, endBit)
2133-
}
2134-
21352128
/**
21362129
* Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
21372130
* This means that the `ChiPartialOperand` will not override the entire memory associated with the

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/SSAConstruction.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,6 @@ private module Cached {
233233
)
234234
}
235235

236-
/**
237-
* Holds if the partial operand of this `ChiInstruction` updates the bit range
238-
* `[startBitOffset, endBitOffset)` of the total operand.
239-
*/
240-
cached
241-
predicate getIntervalUpdatedByChi(ChiInstruction chi, int startBitOffset, int endBitOffset) {
242-
exists(Alias::MemoryLocation location, OldInstruction oldInstruction |
243-
oldInstruction = getOldInstruction(chi.getPartial()) and
244-
location = Alias::getResultMemoryLocation(oldInstruction) and
245-
startBitOffset = Alias::getStartBitOffset(location) and
246-
endBitOffset = Alias::getEndBitOffset(location)
247-
)
248-
}
249-
250236
/**
251237
* Holds if `operand` totally overlaps with its definition and consumes the bit range
252238
* `[startBitOffset, endBitOffset)`.

csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,13 +2125,6 @@ class ChiInstruction extends Instruction {
21252125
*/
21262126
final Instruction getPartial() { result = this.getPartialOperand().getDef() }
21272127

2128-
/**
2129-
* Gets the bit range `[startBit, endBit)` updated by the partial operand of this `ChiInstruction`, relative to the start address of the total operand.
2130-
*/
2131-
final predicate getUpdatedInterval(int startBit, int endBit) {
2132-
Construction::getIntervalUpdatedByChi(this, startBit, endBit)
2133-
}
2134-
21352128
/**
21362129
* Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
21372130
* This means that the `ChiPartialOperand` will not override the entire memory associated with the

csharp/ql/src/experimental/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,6 @@ private module Cached {
216216
result = getMemoryOperandDefinition(instr, _, _)
217217
}
218218

219-
/**
220-
* Holds if the partial operand of this `ChiInstruction` updates the bit range
221-
* `[startBitOffset, endBitOffset)` of the total operand.
222-
*/
223-
cached
224-
predicate getIntervalUpdatedByChi(ChiInstruction chi, int startBit, int endBit) { none() }
225-
226219
/**
227220
* Holds if the operand totally overlaps with its definition and consumes the
228221
* bit range `[startBitOffset, endBitOffset)`.

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,13 +2125,6 @@ class ChiInstruction extends Instruction {
21252125
*/
21262126
final Instruction getPartial() { result = this.getPartialOperand().getDef() }
21272127

2128-
/**
2129-
* Gets the bit range `[startBit, endBit)` updated by the partial operand of this `ChiInstruction`, relative to the start address of the total operand.
2130-
*/
2131-
final predicate getUpdatedInterval(int startBit, int endBit) {
2132-
Construction::getIntervalUpdatedByChi(this, startBit, endBit)
2133-
}
2134-
21352128
/**
21362129
* Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
21372130
* This means that the `ChiPartialOperand` will not override the entire memory associated with the

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/internal/SSAConstruction.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,6 @@ private module Cached {
233233
)
234234
}
235235

236-
/**
237-
* Holds if the partial operand of this `ChiInstruction` updates the bit range
238-
* `[startBitOffset, endBitOffset)` of the total operand.
239-
*/
240-
cached
241-
predicate getIntervalUpdatedByChi(ChiInstruction chi, int startBitOffset, int endBitOffset) {
242-
exists(Alias::MemoryLocation location, OldInstruction oldInstruction |
243-
oldInstruction = getOldInstruction(chi.getPartial()) and
244-
location = Alias::getResultMemoryLocation(oldInstruction) and
245-
startBitOffset = Alias::getStartBitOffset(location) and
246-
endBitOffset = Alias::getEndBitOffset(location)
247-
)
248-
}
249-
250236
/**
251237
* Holds if `operand` totally overlaps with its definition and consumes the bit range
252238
* `[startBitOffset, endBitOffset)`.

0 commit comments

Comments
 (0)