@@ -120,16 +120,15 @@ module SemanticExprConfig {
120
120
int getBasicBlockUniqueId ( BasicBlock block ) { idOf ( block .getFirstInstruction ( ) .getAst ( ) , result ) }
121
121
122
122
newtype TSsaVariable =
123
- TSsaInstruction ( IR:: Instruction instr ) {
124
- instr .hasMemoryResult ( )
125
- } or
123
+ TSsaInstruction ( IR:: Instruction instr ) { instr .hasMemoryResult ( ) } or
126
124
TSsaOperand ( IR:: Operand op ) { op .isDefinitionInexact ( ) } or
127
125
TSsaPointerArithmeticGuard ( IR:: PointerArithmeticInstruction instr ) {
128
126
exists ( Guard g , IR:: Operand use | use = instr .getAUse ( ) |
129
127
g .comparesLt ( use , _, _, _, _) or
130
128
g .comparesLt ( _, use , _, _, _) or
131
129
g .comparesEq ( use , _, _, _, _) or
132
- g .comparesEq ( _, use , _, _, _) )
130
+ g .comparesEq ( _, use , _, _, _)
131
+ )
133
132
}
134
133
135
134
class SsaVariable extends TSsaVariable {
@@ -238,7 +237,7 @@ module SemanticExprConfig {
238
237
exists ( IR:: Operand operand |
239
238
operand .getDef ( ) = v .asInstruction ( ) or
240
239
operand .getDef ( ) = valueNumber ( v .asPointerArithGuard ( ) ) .getAnInstruction ( )
241
- |
240
+ |
242
241
not operand instanceof IR:: PhiInputOperand and
243
242
operand .getUse ( ) .getBlock ( ) = block
244
243
)
@@ -259,7 +258,7 @@ module SemanticExprConfig {
259
258
exists ( IR:: PhiInputOperand operand |
260
259
operand .getDef ( ) = v .asInstruction ( ) or
261
260
operand .getDef ( ) = valueNumber ( v .asPointerArithGuard ( ) ) .getAnInstruction ( )
262
- |
261
+ |
263
262
operand .getPredecessorBlock ( ) = pred and
264
263
operand .getUse ( ) .getBlock ( ) = succ
265
264
)
0 commit comments