26 const std::string& relationName,
const SrcLocation& srcLocation) {
27 const char* messageType =
"@t-nonrecursive-relation";
28 std::stringstream line;
29 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";";
33 const std::string& relationName,
const SrcLocation& srcLocation) {
34 const char* messageType =
"@t-relation-loadtime";
35 std::stringstream line;
36 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";loadtime;";
41 const std::string& relationName,
const SrcLocation& srcLocation) {
42 const char* messageType =
"@t-relation-savetime";
43 std::stringstream line;
44 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";savetime;";
49 const std::string& relationName,
const SrcLocation& srcLocation) {
50 const char* messageType =
"@n-nonrecursive-relation";
51 std::stringstream line;
52 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";";
57 const std::string& relationName,
const SrcLocation& srcLocation,
const std::string& datalogText) {
58 const char* messageType =
"@t-nonrecursive-rule";
59 std::stringstream line;
60 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";" << datalogText <<
";";
65 const std::string& relationName,
const SrcLocation& srcLocation,
const std::string& datalogText) {
66 const char* messageType =
"@n-nonrecursive-rule";
67 std::stringstream line;
68 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";" << datalogText <<
";";
72 static const std::string
tRecursiveRule(
const std::string& relationName,
const int version,
73 const SrcLocation& srcLocation,
const std::string& datalogText) {
74 const char* messageType =
"@t-recursive-rule";
75 std::stringstream line;
76 line << messageType <<
";" << relationName <<
";" << version <<
";" << srcLocation <<
";"
77 << datalogText <<
";";
81 static const std::string
nRecursiveRule(
const std::string& relationName,
const int version,
82 const SrcLocation& srcLocation,
const std::string& datalogText) {
83 const char* messageType =
"@n-recursive-rule";
84 std::stringstream line;
85 line << messageType <<
";" << relationName <<
";" << version <<
";" << srcLocation <<
";"
86 << datalogText <<
";";
91 const std::string& relationName,
const SrcLocation& srcLocation) {
92 const char* messageType =
"@t-recursive-relation";
93 std::stringstream line;
94 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";";
99 const std::string& relationName,
const SrcLocation& srcLocation) {
100 const char* messageType =
"@n-recursive-relation";
101 std::stringstream line;
102 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";";
107 const std::string& relationName,
const SrcLocation& srcLocation) {
108 const char* messageType =
"@c-recursive-relation";
109 std::stringstream line;
110 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";";
115 const std::string& relationName,
const SrcLocation& srcLocation,
const std::string& datalogText) {
118 const char* messageType =
"#p-proof-counter";
119 std::stringstream line;
120 line << messageType <<
";" << relationName <<
";" << srcLocation <<
";" << datalogText <<
";";
127 static const std::string
runtime() {
128 const char* messageType =
"@runtime";
129 std::stringstream line;
130 line << messageType <<
";";
135 const char* messageType =
"@start-debug";
136 std::stringstream line;