-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datalog: Implement import*.dl via include
Now the FactGenerator and Datalog code have the same source of truth about relation and file names.
- Loading branch information
1 parent
2010dcf
commit c4ebcca
Showing
9 changed files
with
32 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#include "predicate_groups.hpp" | ||
using namespace cclyzer::predicates; | ||
|
||
// GROUP_BEGIN, GROUP_END not needed | ||
// | ||
// Try: gcc -I include -E src/predicate_groups.cpp | ||
// | ||
// GROUP_BEGIN, GROUP_END not needed | ||
#define GROUP_BEGIN(g) | ||
#define GROUP_END(group_end) | ||
// TODO(lb): Derive filename from group and predicate, e.g., | ||
// #define PREDICATE(g, p, f) pred_t g::p (std::string(#g) + std::string("_") + | ||
// std::string(#p)); | ||
#define Q(x) #x | ||
#define QUOTE(x) Q(x) | ||
#define PREDICATE(g, p, f) pred_t g::p(#f); | ||
#include "predicates.inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.