Quantifiers use relations!!!
[repair.git] / Repair / RepairCompiler / MCC / IR / SemanticChecker.java
index 108a88379b46e48f20e31bdcb3351b849073004a..f450bb79db62fa13078ff4d967ef34a09633f110 100755 (executable)
@@ -527,6 +527,7 @@ public class SemanticChecker {
                 return null;
             }
 
+            rd.addUsage(RelationDescriptor.IMAGE);
             rq.setRelation(rd);
             vd1.setType(rd.getDomain().getType());
            vd1.setSet(rd.getDomain());
@@ -1099,7 +1100,7 @@ public class SemanticChecker {
         dCurrentType = type;
 
         // parse the labels and fields
-        if (!parse_labelsandfields(pn.getChild("lf"))) {
+        if (pn.getChild("lf")!=null && !parse_labelsandfields(pn.getChild("lf"))) {
             ok = false;
         }