From 7e333e27f4e663660a2efba9d63d2c5362e06f69 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 10 Nov 2010 19:57:59 +0000 Subject: [PATCH] until weakly connected components are fixed, always use hashtable zero --- Robust/src/IR/Flat/BuildCode.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 10f8e1bc..6e9d5eb7 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -4778,11 +4778,22 @@ public class BuildCode { //XXXXXXXXX output.println(" struct rcrRecord *rec;"); output.println(" struct Hashtable_rcr ** hashstruct=runningSESE->parent->allHashStructures;"); + for(int i=0;ircrRecords["+i+"];"); output.println(" while(rec!=NULL) {"); output.println(" for(idx2=0;idx2index;idx2++) {"); - output.println(" rcr_RETIREHASHTABLE(hashstruct["+rcr.getWeakID(inset.get(i),fsen)+"],&(___params___->common), rec->array[idx2], (BinItem_rcr *) rec->ptrarray[idx2]);"); + + // HACK!!! PART OF THE allHashStructures HACK in + // RuntimeConflictResolver.java as well, the problem + // is that we are just using ONE hashtable for the momen + //int weaklyConnectedComponentIndex = rcr.getWeakID(inset.get(i),fsen); + int weaklyConnectedComponentIndex = 0; + + output.println(" rcr_RETIREHASHTABLE(hashstruct["+ + weaklyConnectedComponentIndex+ + "],&(___params___->common), rec->array[idx2], (BinItem_rcr *) rec->ptrarray[idx2]);"); + output.println(" }");// exit idx2 for loop output.println(" rec=rec->next;"); output.println(" }");// exit rec while loop -- 2.34.1