@@ -996,7 +996,7 @@ deprecated predicate canReuseSSAForMemoryResult = canReuseSsaForMemoryResult/1;
996996
997997/**
998998 * Expose some of the internal predicates to PrintSSA.qll. We do this by publicly importing those modules in the
999- * `DebugSSA ` module, which is then imported by PrintSSA.
999+ * `DebugSsa ` module, which is then imported by PrintSSA.
10001000 */
10011001module DebugSsa {
10021002 import PhiInsertion
@@ -1063,62 +1063,6 @@ private module CachedForDebugging {
10631063 int maxValue ( ) { result = 2147483647 }
10641064}
10651065
1066- module SsaConsistency {
1067- /**
1068- * Holds if a `MemoryOperand` has more than one `MemoryLocation` assigned by alias analysis.
1069- */
1070- query predicate multipleOperandMemoryLocations (
1071- OldIR:: MemoryOperand operand , string message , OldIR:: IRFunction func , string funcText
1072- ) {
1073- exists ( int locationCount |
1074- locationCount = strictcount ( Alias:: getOperandMemoryLocation ( operand ) ) and
1075- locationCount > 1 and
1076- func = operand .getEnclosingIRFunction ( ) and
1077- funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
1078- message =
1079- operand .getUse ( ) .toString ( ) + " " + "Operand has " + locationCount .toString ( ) +
1080- " memory accesses in function '$@': " +
1081- strictconcat ( Alias:: getOperandMemoryLocation ( operand ) .toString ( ) , ", " )
1082- )
1083- }
1084-
1085- /**
1086- * Holds if a `MemoryLocation` does not have an associated `VirtualVariable`.
1087- */
1088- query predicate missingVirtualVariableForMemoryLocation (
1089- Alias:: MemoryLocation location , string message , OldIR:: IRFunction func , string funcText
1090- ) {
1091- not exists ( location .getVirtualVariable ( ) ) and
1092- func = location .getIRFunction ( ) and
1093- funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
1094- message = "Memory location has no virtual variable in function '$@'."
1095- }
1096-
1097- /**
1098- * Holds if a `MemoryLocation` is a member of more than one `VirtualVariable`.
1099- */
1100- query predicate multipleVirtualVariablesForMemoryLocation (
1101- Alias:: MemoryLocation location , string message , OldIR:: IRFunction func , string funcText
1102- ) {
1103- exists ( int vvarCount |
1104- vvarCount = strictcount ( location .getVirtualVariable ( ) ) and
1105- vvarCount > 1 and
1106- func = location .getIRFunction ( ) and
1107- funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
1108- message =
1109- "Memory location has " + vvarCount .toString ( ) + " virtual variables in function '$@': (" +
1110- concat ( Alias:: VirtualVariable vvar |
1111- vvar = location .getVirtualVariable ( )
1112- |
1113- vvar .toString ( ) , ", "
1114- ) + ")."
1115- )
1116- }
1117- }
1118-
1119- /** DEPRECATED: Alias for SsaConsistency */
1120- deprecated module SSAConsistency = SsaConsistency;
1121-
11221066/**
11231067 * Provides the portion of the parameterized IR interface that is used to construct the SSA stages
11241068 * of the IR. The raw stage of the IR does not expose these predicates.
0 commit comments