Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange results in datalog computation #4844

Closed
bertram-gil opened this issue Dec 2, 2020 · 0 comments
Closed

Strange results in datalog computation #4844

bertram-gil opened this issue Dec 2, 2020 · 0 comments

Comments

@bertram-gil
Copy link

On the master branch (6d427d9), on the following datalog file, I am getting strange results:

Z 64

in(A:Z) input
out(A:Z) printtuples

in(43).
in(33).

out(a) :- in(a), in(a), in(a).

I should just be getting 43 and 33. right? But I am getting:

Tuples in out: 
	(A=43(0))
	(A=33(1))
	(A=2(2))
	(A=3(3))
	(A=4(4))
	(A=5(5))
	(A=6(6))
	(A=7(7))
	(A=8(8))
	(A=9(9))
	(A=10(10))
	(A=11(11))
	(A=12(12))
	(A=13(13))
	(A=14(14))
	(A=15(15))
	(A=16(16))
	(A=17(17))
	(A=18(18))
	(A=19(19))
	(A=20(20))
	(A=21(21))
	(A=22(22))
	(A=23(23))
	(A=24(24))
	(A=25(25))
	(A=26(26))
	(A=27(27))
	(A=28(28))
	(A=29(29))
	(A=30(30))
	(A=31(31))
	(A=32(32))
	(A=33(33))
	(A=34(34))
	(A=35(35))
	(A=36(36))
	(A=37(37))
	(A=38(38))
	(A=39(39))
	(A=40(40))
	(A=41(41))
	(A=42(42))
	(A=43(43))
	(A=44(44))
	(A=45(45))
	(A=46(46))
	(A=47(47))
	(A=48(48))
	(A=49(49))
	(A=50(50))
	(A=51(51))
	(A=52(52))
	(A=53(53))
	(A=54(54))
	(A=55(55))
	(A=56(56))
	(A=57(57))
	(A=58(58))
	(A=59(59))
	(A=60(60))
	(A=61(61))
	(A=62(62))
	(A=63(63))
Time: 3ms
Parsing: 0ms, other: 2ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant