X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FIR%2FImplicitSchema.java;h=f229334e87696c791017656abd7e88e21d4ff65a;hp=b00c06b31d335cfc1671c2789f83d74ee93a71b9;hb=95271a46ce6573ff5532fda46561d2936cb25393;hpb=b24eb0d37301ac2bd08abb65eb3e505efeece4e7 diff --git a/Repair/RepairCompiler/MCC/IR/ImplicitSchema.java b/Repair/RepairCompiler/MCC/IR/ImplicitSchema.java index b00c06b..f229334 100755 --- a/Repair/RepairCompiler/MCC/IR/ImplicitSchema.java +++ b/Repair/RepairCompiler/MCC/IR/ImplicitSchema.java @@ -9,7 +9,7 @@ public class ImplicitSchema { SetAnalysis setanalysis; public ImplicitSchema(State state) { this.state=state; - this.setanalysis=new SetAnalysis(state); + this.setanalysis=state.setanalysis; } public void update() { @@ -27,6 +27,11 @@ public class ImplicitSchema { boolean needDR(RelationDescriptor rd,boolean isdomain) { Vector rules=state.vRules; SetDescriptor sd=isdomain?rd.getDomain():rd.getRange(); + if (sd instanceof ReservedSetDescriptor) + return false; + + /* See if there is a rule that adds the corresponding range or domain + of the relation to the correct set */ for(int i=0;i