mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
C++/C#: Sync
This commit is contained in:
@@ -573,13 +573,19 @@ module DefUse {
|
|||||||
// An odd offset corresponds to the `Chi` instruction.
|
// An odd offset corresponds to the `Chi` instruction.
|
||||||
defOffset = oldOffset * 2 + 1 and
|
defOffset = oldOffset * 2 + 1 and
|
||||||
result = Chi(oldInstr) and
|
result = Chi(oldInstr) and
|
||||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
(
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr) or
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr).getVirtualVariable()
|
||||||
|
) and
|
||||||
actualDefLocation = defLocation.getVirtualVariable()
|
actualDefLocation = defLocation.getVirtualVariable()
|
||||||
or
|
or
|
||||||
// An even offset corresponds to the original instruction.
|
// An even offset corresponds to the original instruction.
|
||||||
defOffset = oldOffset * 2 and
|
defOffset = oldOffset * 2 and
|
||||||
result = getNewInstruction(oldInstr) and
|
result = getNewInstruction(oldInstr) and
|
||||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
(
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr) or
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr).getVirtualVariable()
|
||||||
|
) and
|
||||||
actualDefLocation = defLocation
|
actualDefLocation = defLocation
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
|
|||||||
@@ -573,13 +573,19 @@ module DefUse {
|
|||||||
// An odd offset corresponds to the `Chi` instruction.
|
// An odd offset corresponds to the `Chi` instruction.
|
||||||
defOffset = oldOffset * 2 + 1 and
|
defOffset = oldOffset * 2 + 1 and
|
||||||
result = Chi(oldInstr) and
|
result = Chi(oldInstr) and
|
||||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
(
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr) or
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr).getVirtualVariable()
|
||||||
|
) and
|
||||||
actualDefLocation = defLocation.getVirtualVariable()
|
actualDefLocation = defLocation.getVirtualVariable()
|
||||||
or
|
or
|
||||||
// An even offset corresponds to the original instruction.
|
// An even offset corresponds to the original instruction.
|
||||||
defOffset = oldOffset * 2 and
|
defOffset = oldOffset * 2 and
|
||||||
result = getNewInstruction(oldInstr) and
|
result = getNewInstruction(oldInstr) and
|
||||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
(
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr) or
|
||||||
|
defLocation = Alias::getResultMemoryLocation(oldInstr).getVirtualVariable()
|
||||||
|
) and
|
||||||
actualDefLocation = defLocation
|
actualDefLocation = defLocation
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user