X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=scanalysis.h;h=3b9fed3547dc74b8cf7d27c80eb25fbc423c87c3;hp=047793045e63c954b03b775fd433738aaf8d08d7;hb=6a2d1dcdcff89e68d8a2fe9de1f38ecfac345caf;hpb=473bdc841f3b03b722911a5fa0b4f21ba3a217ed diff --git a/scanalysis.h b/scanalysis.h index 0477930..3b9fed3 100644 --- a/scanalysis.h +++ b/scanalysis.h @@ -12,15 +12,16 @@ class SCAnalysis : public TraceAnalysis { SNAPSHOTALLOC private: void print_list(action_list_t *list); - void buildVectors(action_list_t *); + int buildVectors(action_list_t *); bool updateConstraints(ModelAction *act); void computeCV(action_list_t *); action_list_t * generateSC(action_list_t *); bool processRead(ModelAction *read, ClockVector *cv); - ModelAction * getNextAction(); + int getNextActions(ModelAction **array); bool merge(ClockVector *cv, const ModelAction *act, const ModelAction *act2); void check_rf(action_list_t *list); - + void reset(action_list_t *list); + ModelAction* pruneArray(ModelAction**, int); int maxthreads; HashTable cvmap;