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

value not printed for string variables #25

Open
nrueh opened this issue May 17, 2024 · 1 comment
Open

value not printed for string variables #25

nrueh opened this issue May 17, 2024 · 1 comment

Comments

@nrueh
Copy link

nrueh commented May 17, 2024

This program has the following output

a("a").
&in{1..2} =: X :- a(X).

b :- &sum{"a"} = 1.
fclingo test.lp 0
fclingo version 0.1
Reading from test.lp
Solving...
Answer: 1
a("a")
Answer: 2
a("a") b
SATISFIABLE

Changing "a" to a gives the expected output

fclingo test.lp 0
fclingo version 0.1
Reading from test.lp
Solving...
Answer: 1
a(a) val(a,2)
Answer: 2
a(a) b val(a,1)
SATISFIABLE
@nrueh
Copy link
Author

nrueh commented May 17, 2024

This seems to affect printing only, inside my application class I have access to all the values through the __csp predicates.

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