@@ -208,7 +208,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
208208
209209 private newtype TInstructionTag =
210210 ZeroTag ( ) or
211- CmpDefTag ( ConditionKind k ) or
211+ CmpDefTag ( BinaryConditionKind k ) or
212212 InitializeParameterTag ( Instruction1:: Variable v ) { isReadBeforeInitialization ( v , _) }
213213
214214 class LocalVariableTag extends Void {
@@ -228,9 +228,9 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
228228 this = ZeroTag ( ) and
229229 result = "ZeroTag"
230230 or
231- exists ( ConditionKind k |
231+ exists ( BinaryConditionKind k |
232232 this = CmpDefTag ( k ) and
233- result = "CmpDefTag(" + stringOfConditionKind ( k ) + ")"
233+ result = "CmpDefTag(" + stringOfBinaryConditionKind ( k ) + ")"
234234 )
235235 or
236236 exists ( Instruction1:: Variable v |
@@ -367,7 +367,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
367367 * There is only a result if the condition part of `cmp` may be undefined.
368368 */
369369 private predicate controlFlowsToCmp (
370- Instruction1:: Instruction i , Instruction1:: CJumpInstruction cjump , ConditionKind kind
370+ Instruction1:: Instruction i , Instruction1:: CJumpInstruction cjump , BinaryConditionKind kind
371371 ) {
372372 // There is control-flow from i to cjump without a write to the
373373 // variable that is used as a condition to cjump
@@ -512,7 +512,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
512512
513513 private newtype TTranslatedElement =
514514 TTranslatedComparisonInstruction (
515- Instruction1:: Instruction i , Instruction1:: CJumpInstruction cjump , ConditionKind kind
515+ Instruction1:: Instruction i , Instruction1:: CJumpInstruction cjump , BinaryConditionKind kind
516516 ) {
517517 controlFlowsToCmp ( i , cjump , kind )
518518 } or
@@ -539,7 +539,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
539539
540540 int getConstantValue ( InstructionTag tag ) { none ( ) }
541541
542- predicate hasJumpCondition ( InstructionTag tag , ConditionKind kind ) { none ( ) }
542+ predicate hasJumpCondition ( InstructionTag tag , BinaryConditionKind kind ) { none ( ) }
543543
544544 predicate hasTempVariable ( TempVariableTag tag ) { none ( ) }
545545
@@ -571,7 +571,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
571571 }
572572
573573 private class TranslatedComparisonInstruction extends TranslatedInstruction {
574- ConditionKind kind ;
574+ BinaryConditionKind kind ;
575575 Instruction1:: CJumpInstruction cjump ;
576576
577577 TranslatedComparisonInstruction ( ) {
@@ -639,7 +639,7 @@ private module InstructionInput implements Transform<Instruction1>::TransformInp
639639 result = 0
640640 }
641641
642- override predicate hasJumpCondition ( InstructionTag tag , ConditionKind k ) {
642+ override predicate hasJumpCondition ( InstructionTag tag , BinaryConditionKind k ) {
643643 kind = k and
644644 tag = CmpDefTag ( kind )
645645 }
0 commit comments