souffle  2.0.2-371-g6315b36
ExecutionPlanChecker.h
Go to the documentation of this file.
1 /*
2  * Souffle - A Datalog Compiler
3  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved
4  * Licensed under the Universal Permissive License v 1.0 as shown at:
5  * - https://opensource.org/licenses/UPL
6  * - <souffle root>/licenses/SOUFFLE-UPL.txt
7  */
8 
9 /************************************************************************
10  *
11  * @file ExecutionPlanChecker.h
12  *
13  * Defines the execution plan checker pass.
14  *
15  ***********************************************************************/
16 
17 #pragma once
18 
19 #include "ast/TranslationUnit.h"
21 #include <string>
22 
23 namespace souffle::ast::transform {
24 
25 class ExecutionPlanChecker : public Transformer {
26 public:
27  std::string getName() const override {
28  return "ExecutionPlanChecker";
29  }
30 
31  ExecutionPlanChecker* clone() const override {
32  return new ExecutionPlanChecker();
33  }
34 
35 private:
36  bool transform(TranslationUnit& translationUnit) override;
37 };
38 
39 } // namespace souffle::ast::transform
TranslationUnit.h
Transformer.h
souffle::ast::TranslationUnit
Translation unit class for the translation pipeline.
Definition: TranslationUnit.h:51
souffle::ast::transform::ExecutionPlanChecker::clone
ExecutionPlanChecker * clone() const override
Definition: ExecutionPlanChecker.h:43
souffle::ast::transform
Definition: Program.h:45
souffle::ast::transform::ExecutionPlanChecker::transform
bool transform(TranslationUnit &translationUnit) override
Definition: ExecutionPlanChecker.cpp:42
souffle::ast::transform::ExecutionPlanChecker
Definition: ExecutionPlanChecker.h:31
souffle::ast::transform::ExecutionPlanChecker::getName
std::string getName() const override
Definition: ExecutionPlanChecker.h:39