From fc7921c8ddb57cb1a3ca29f642f24e1b6b04ab91 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 10 May 2006 18:01:46 +0000 Subject: [PATCH] Code should build now --- Robust/src/IR/TaskDescriptor.java | 6 ++--- Robust/src/IR/Tree/BuildIR.java | 39 +++++++++++++--------------- Robust/src/IR/Tree/TaskExitNode.java | 7 ++--- 3 files changed, 25 insertions(+), 27 deletions(-) diff --git a/Robust/src/IR/TaskDescriptor.java b/Robust/src/IR/TaskDescriptor.java index c737dfa8..96489bc8 100644 --- a/Robust/src/IR/TaskDescriptor.java +++ b/Robust/src/IR/TaskDescriptor.java @@ -16,7 +16,7 @@ public class TaskDescriptor extends Descriptor { protected SymbolTable paramtable; protected VarDescriptor thisvd; protected Hashtable flagstable; - protected FlagEffects fe; + protected Vector vfe; public TaskDescriptor(String identifier) { super(identifier); @@ -28,8 +28,8 @@ public class TaskDescriptor extends Descriptor { thisvd=null; } - public void addFlagEffects(FlagEffects fe) { - this.fe=fe; + public void addFlagEffects(Vector vfe) { + this.vfe=vfe; } public String getSafeMethodDescriptor() { diff --git a/Robust/src/IR/Tree/BuildIR.java b/Robust/src/IR/Tree/BuildIR.java index 89868c2c..db52e189 100644 --- a/Robust/src/IR/Tree/BuildIR.java +++ b/Robust/src/IR/Tree/BuildIR.java @@ -42,32 +42,29 @@ public class BuildIR { parseParameterList(td, pn); state.addTreeCode(td,bn); if (pn.getChild("flag_effects_list")!=null) - td.addFlagEffects(parseFlagEffects(pn.getChild("flag_effects_list"))); + td.addFlagEffects(parseFlags(pn.getChild("flag_effects_list"))); return td; } - public FlagEffects parseFlagEffects(ParseNode pn) { - ParseNodeVector pnv=pn.getChildren(); - FlagEffects fes=new FlagEffects(); - for(int i=0;i