C++/C#: Sync identical files.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-05-17 15:42:44 +01:00
parent 57cc316ecd
commit 9e05569121
4 changed files with 12 additions and 8 deletions

View File

@@ -271,8 +271,9 @@ private module Cached {
/** Holds if `i` is the `index`th instruction in `block`. */
cached
Instruction getInstruction(TIRBlock block, int index) {
exists(Instruction first |
block = MkIRBlock(first) and
exists(Instruction first | block = MkIRBlock(first) |
first = result and index = 0
or
index = getMemberIndex(result) and
BlockAdjacency::getEquivalenceClass(first) = BlockAdjacency::getEquivalenceClass(result)
)

View File

@@ -271,8 +271,9 @@ private module Cached {
/** Holds if `i` is the `index`th instruction in `block`. */
cached
Instruction getInstruction(TIRBlock block, int index) {
exists(Instruction first |
block = MkIRBlock(first) and
exists(Instruction first | block = MkIRBlock(first) |
first = result and index = 0
or
index = getMemberIndex(result) and
BlockAdjacency::getEquivalenceClass(first) = BlockAdjacency::getEquivalenceClass(result)
)