ClearBlue
SailfishSrcWpSummaryBuilder.h
1 //
2 // Created by yongchao on 12/26/22.
3 //
4 
5 #ifndef CLEARBLUE_SAILFISHSRCWPSUMMARYBUILDER_H
6 #define CLEARBLUE_SAILFISHSRCWPSUMMARYBUILDER_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  size_t NumSrcWp;
17 
18 public:
20  : SailfishFunctionChecker(P, F) {
21  NumSrcWp = 0;
22  time(&start_time);
23  }
24  virtual ~SailfishSrcWpSummaryBuilder() {
25  time_t curr_time;
26  time(&curr_time);
27  PTL->Statistics.emplace_back(F->getName(), "SrcWp", NumSrcWp,
28  Smry->SrcWpSummarySet.size(),
29  (size_t)difftime(curr_time, start_time));
30  }
31 
32  virtual void run() override;
33 
34  virtual void storeSummary(SummaryBase *R) override;
35 };
36 
37 #endif // CLEARBLUE_SAILFISHSRCWPSUMMARYBUILDER_H
SailfishSrcWpSummaryBuilder
Definition: SailfishSrcWpSummaryBuilder.h:13
SailfishChecker
Definition: SailfishChecker.h:42
SailfishFunctionChecker
Definition: SailfishFunctionChecker.h:22