README: extra "from"
[cdsspec-compiler.git] / scanalysis.h
index 3ad69e57023b074993083c4268c74aac0ec341c9..988c8f75c13ad58f0fdfc44ebd3e936bb59601e1 100644 (file)
@@ -3,6 +3,12 @@
 #include "traceanalysis.h"
 #include "hashtable.h"
 
+struct sc_statistics {
+       unsigned long long elapsedtime;
+       unsigned int sccount;
+       unsigned int nonsccount;
+};
+
 class SCAnalysis : public TraceAnalysis {
  public:
        SCAnalysis();
@@ -11,9 +17,12 @@ class SCAnalysis : public TraceAnalysis {
        virtual void analyze(action_list_t *);
        virtual const char * name();
        virtual bool option(char *);
+       virtual void finish();
+
 
        SNAPSHOTALLOC
  private:
+       void update_stats();
        void print_list(action_list_t *list);
        int buildVectors(action_list_t *);
        bool updateConstraints(ModelAction *act);
@@ -35,5 +44,8 @@ class SCAnalysis : public TraceAnalysis {
        ModelExecution *execution;
        bool print_always;
        bool print_buggy;
+       bool print_nonsc;
+       bool time;
+       struct sc_statistics *stats;
 };
 #endif