Files
circ/examples/datalog/parse_test/one_rule.pl
Alex Ozdemir 8140b1369e reduce traversal memory usage through iterators (#209)
Previously, the traversal stack held (node, children queued) pairs.
When visiting a node without it's children queued, we would queue them
all. They take a lot of memory!

Now, the stack holds children iterators.

Also: this patch fixes many bugs introduced by the prior one.
2024-09-29 13:27:26 -07:00

5 lines
192 B
Prolog

main(Z: field) :- ((Z + Y) + Y) + ~!-Y + to_field(Y);
Z;
exists A: field. A * Z = 1;
exists B: field, C: bool. B * C * Z = 4.