From: bdemsky Date: Tue, 6 Jan 2004 03:24:20 +0000 (+0000) Subject: More changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce993d16a8b0057b8d5881be15aed42926e54783;p=repair.git More changes --- diff --git a/Repair/RepairCompiler/MCC/IR/BooleanLiteralExpr.java b/Repair/RepairCompiler/MCC/IR/BooleanLiteralExpr.java index d0729e6..be7eb88 100755 --- a/Repair/RepairCompiler/MCC/IR/BooleanLiteralExpr.java +++ b/Repair/RepairCompiler/MCC/IR/BooleanLiteralExpr.java @@ -11,6 +11,14 @@ public class BooleanLiteralExpr extends LiteralExpr { td = ReservedTypeDescriptor.INT; } + public abstract boolean equals(Map remap, Expr e) { + if (e==null) + return false; + else if (!e instanceof BooleanLiteralExpr) + return false; + else return (((BooleanLiteralExpr)e).value==value); + } + public boolean getValue() { return value; } diff --git a/Repair/RepairCompiler/MCC/IR/CastExpr.java b/Repair/RepairCompiler/MCC/IR/CastExpr.java index 83a1ddb..dc9c543 100755 --- a/Repair/RepairCompiler/MCC/IR/CastExpr.java +++ b/Repair/RepairCompiler/MCC/IR/CastExpr.java @@ -12,6 +12,14 @@ public class CastExpr extends Expr { this.expr = expr; } + public abstract boolean equals(Map remap, Expr e) { + if (e==null) + return false; + else if (!e instanceof CastExpr) + return false; + else return ((this.type==((CastExpr)e).type)&&equals(remap,expr,((CastExpr)e).expr)); + } + public Set getRequiredDescriptors() { return expr.getRequiredDescriptors(); } diff --git a/Repair/RepairCompiler/MCC/IR/ConcreteInterferes.java b/Repair/RepairCompiler/MCC/IR/ConcreteInterferes.java index d728062..e6718a6 100755 --- a/Repair/RepairCompiler/MCC/IR/ConcreteInterferes.java +++ b/Repair/RepairCompiler/MCC/IR/ConcreteInterferes.java @@ -6,12 +6,13 @@ class ConcreteInterferes { UpdateNode un=mun.getUpdate(i); for (int j=0;j