From: bdemsky Date: Tue, 16 May 2006 00:09:18 +0000 (+0000) Subject: Changed inheritance to separate task/method descriptors again X-Git-Tag: preEdgeChange~884 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7fb198fbffac163b51a482b191267de1d5ee0450;p=IRC.git Changed inheritance to separate task/method descriptors again Push task generation through flat code... --- diff --git a/Robust/src/IR/Flat/BuildFlat.java b/Robust/src/IR/Flat/BuildFlat.java index 9eaebf8d..211dddc6 100644 --- a/Robust/src/IR/Flat/BuildFlat.java +++ b/Robust/src/IR/Flat/BuildFlat.java @@ -22,8 +22,25 @@ public class BuildFlat { ClassDescriptor cn=(ClassDescriptor)it.next(); flattenClass(cn); } + + Iterator task_it=state.getTaskSymbolTable().getDescriptorsIterator(); + while(task_it.hasNext()) { + TaskDescriptor td=(TaskDescriptor)task_it.next(); + flattenTask(td); + } } + private void flattenTask(TaskDescriptor td) { + BlockNode bn=state.getMethodBody(td); + FlatNode fn=flattenBlockNode(bn).getBegin(); + FlatMethod fm=new FlatMethod(td, fn); + + for(int i=0;i