Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module ShowProvenance<

private module Models = TranslateModels<interpretModelForTest/2, provenance/1>;

/** Holds if `model` is the `r`-th pretty-printed model used in the edges relation. */
additional query predicate models(int r, string model) { Models::models(r, model) }

query predicate edges(PathNode a, PathNode b, string key, string val) {
Expand All @@ -119,8 +120,10 @@ module ShowProvenance<
* the provenance information.
*/
module TestPostProcessing {
/** Holds if a query result exists with the given relation, row, column, and data. */
external predicate queryResults(string relation, int row, int column, string data);

/** Holds if the given query relation exists. */
external predicate queryRelations(string relation);

/** Transforms a `PathGraph` by printing the provenance information. */
Expand All @@ -133,6 +136,7 @@ module TestPostProcessing {

private module Models = TranslateModels<interpretModelForTest/2, provenance/1>;

/** Holds if a result exists with the given relation, row, column, and data. */
query predicate results(string relation, int row, int column, string data) {
queryResults(relation, row, column, data) and
(relation != "edges" or column != provenanceColumn())
Expand All @@ -154,6 +158,7 @@ module TestPostProcessing {
)
}

/** Holds if the given result relation exists. */
query predicate resultRelations(string relation) { queryRelations(relation) }
}
}
Loading