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

magic causes different result #2375

Open
DerZc opened this issue Dec 20, 2022 · 0 comments
Open

magic causes different result #2375

DerZc opened this issue Dec 20, 2022 · 0 comments

Comments

@DerZc
Copy link

DerZc commented Dec 20, 2022

Hi,

Consider the following program:

.decl yona(A:symbol, C:float)
.decl idck(B:float) magic
.decl zsjo(A:float) 

yona("DrdskfIQ9A", 0).

idck(A) :- yona(D, A).
zsjo(D) :- idck(D), idck(min(-D,D)).

.output zsjo

This program has an empty result in interpreter mode. But if I remove the magic keyword, the result becomes 0.
I notice that there was a similar issue #1732, but I modify magic to inline, the result still is 0, which equals to that of without any keyword.
I found this problem on version 3cd802d

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