scanalysis: install ModelExecution object in the analysis
[model-checker.git] / scanalysis.cc
index ff7854a87e8a31aec8e3ae105d403ad0b3559c66..7e0e8453f2d060a45b5a1c723d9ab2612a837550 100644 (file)
@@ -2,8 +2,11 @@
 #include "action.h"
 #include "threads-model.h"
 #include "clockvector.h"
+#include "execution.h"
 
-SCAnalysis::SCAnalysis() {
+SCAnalysis::SCAnalysis(const ModelExecution *execution) :
+       execution(execution)
+{
        cvmap=new HashTable<const ModelAction *, ClockVector *, uintptr_t, 4>();
        cycleset=new HashTable<const ModelAction *, const ModelAction *, uintptr_t, 4>();
        threadlists=new SnapVector<action_list_t>(1);