cleanup plugin interface a little more.
[model-checker.git] / scanalysis.h
index 0ef12ba407ffa4a80e8b0d82723a2ab872094d05..3ad69e57023b074993083c4268c74aac0ec341c9 100644 (file)
@@ -1,11 +1,39 @@
 #ifndef SCANALYSIS_H
 #define SCANALYSIS_H
 #include "traceanalysis.h"
+#include "hashtable.h"
 
-class SCAnalysis : public Trace_Analysis {
+class SCAnalysis : public TraceAnalysis {
  public:
        SCAnalysis();
+       ~SCAnalysis();
+       virtual void setExecution(ModelExecution * execution);
        virtual void analyze(action_list_t *);
+       virtual const char * name();
+       virtual bool option(char *);
 
+       SNAPSHOTALLOC
+ private:
+       void print_list(action_list_t *list);
+       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);
+       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<const ModelAction *, ClockVector *, uintptr_t, 4 > cvmap;
+       bool cyclic;
+       HashTable<const ModelAction *, const ModelAction *, uintptr_t, 4 > badrfset;
+       HashTable<void *, const ModelAction *, uintptr_t, 4 > lastwrmap;
+       SnapVector<action_list_t> threadlists;
+       ModelExecution *execution;
+       bool print_always;
+       bool print_buggy;
 };
 #endif