Skip to content

Bug With Anonymous Records? #2156

Answered by b-scholz
cwarden asked this question in Q&A
Dec 13, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This seems to be a bug - please, can you post it on the issue list. Is it the latest version of Souffle?
You can rewrite the code above as follows:

.type Cell = [
   row: number,
   column: number
]

.decl cell_size(cell: Cell, size: number)
.decl number_bigger(cell: Cell, num: number)

cell_size([0, 1], 5).
cell_size([1, 1], 3).

number_bigger([r1, p1], n) :-
   cell_size([r1, p1], A),
   n = count : { cell_size([r2, p2], B),
   r1 != r2,
   p1 != p2,
   A < B}.

.output number_bigger(IO=stdout, headers=true)

and you may be luckier but I see that the aggregate transformer is failing as well.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cwarden
Comment options

Answer selected by cwarden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants