Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin committed Mar 21, 2022
1 parent 11d9be5 commit 10a8601
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ positive_test(tree)
positive_test(triangle)
positive_test(turing1)
positive_test(weighted_distances)
positive_test(lucas)
positive_test(nfsa2fsa)
Empty file added tests/example/lucas/lucas.err
Empty file.
Empty file added tests/example/lucas/lucas.out
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
node(x) :- graph(x,_,_) ; graph(_,x,_).

.decl edge(id:number, x:symbol, y:symbol, w:number)
edge($,x,y,w) :- graph(x,y,w).
edge(autoinc(),x,y,w) :- graph(x,y,w).

.decl edgePosition(id:number, pos:number)
edgePosition(id,0) :- edgeFirst(id).
Expand Down
2 changes: 1 addition & 1 deletion tests/example/peano_arithmetic/peano_arithmetic.dl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.decl A(x:SExpr)

// this represents the expression 2 * (1 + 1)
A($Mul($Succ($Succ($Zero)), $Add($Succ($Zero()),$Succ($Zero())))).
A($Mul($Succ($Succ($Zero())), $Add($Succ($Zero()),$Succ($Zero())))).

// Represents the symmetric reflexive transitive closure of the
// reduction relation usign an equivalence relation in Souffle.
Expand Down
2 changes: 1 addition & 1 deletion tests/example/sort/sort.dl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ToCat(s_b,[h,s_a]) :-

// Assign each value a unique index; 0,1,2,...
.decl Indexed(x : value, i : index)
Indexed(x, $) :- InputVals(x).
Indexed(x, autoinc()) :- InputVals(x).

// Build the list
.decl InList(l : list, i : index)
Expand Down

0 comments on commit 10a8601

Please sign in to comment.