ClearBlue
SailfishParamSummaryBuilder.h
1 //
2 // Created by yongchao on 12/25/22.
3 //
4 
5 #ifndef CLEARBLUE_SAILFISHPARAMSUMMARYBUILDER_H
6 #define CLEARBLUE_SAILFISHPARAMSUMMARYBUILDER_H
7 
8 #include "Checker/PSA/TraceSummary.h"
9 #include "Checker/Sailfish/SailfishFunctionChecker.h"
10 
11 using namespace llvm;
12 
14 private:
15  time_t start_time;
16 
17 public:
19  : SailfishFunctionChecker(P, F) {
20  time(&start_time);
21  }
22  virtual ~SailfishParamSummaryBuilder() {
23  time_t curr_time;
24  time(&curr_time);
25  PTL->Statistics.emplace_back(
26  F->getName(), "Param", SEG->getNumCommonArgument(),
27  Smry->ParamSummarySet.size(), (size_t)difftime(curr_time, start_time));
28  }
29 
30  virtual void run() override;
31 
32  virtual void storeSummary(SummaryBase *R) override;
33 };
34 
35 #endif // CLEARBLUE_SAILFISHPARAMSUMMARYBUILDER_H
SailfishParamSummaryBuilder
Definition: SailfishParamSummaryBuilder.h:13
SailfishChecker
Definition: SailfishChecker.h:42
SailfishFunctionChecker
Definition: SailfishFunctionChecker.h:22