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

add option to preserve facts in symbol table #457

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

rkaminsk
Copy link
Member

@rkaminsk rkaminsk commented Oct 2, 2023

This replaces option --keep-facts by option --preserve-facts, which accepts an argument to specify which facts to preserve in the output.

$ echo 'a. b:-a.' | clingo --text --preserve-facts=body 
a.
b:-a.

$ echo 'a. b.' | clingo --mode=gringo --preserve-facts=symtab | lpconvert --text
a.
b.

While at it, hidden option --foobar is now available as --show-preds to specify which predicates to show on the command line:

$ echo 'a. b. c.' | clingo -V0 --show-preds='a/0,b/0'
a b
SATISFIABLE

@rkaminsk rkaminsk linked an issue Oct 2, 2023 that may be closed by this pull request
@rkaminsk rkaminsk added this to the v5.7.0 milestone Oct 2, 2023
@rkaminsk rkaminsk self-assigned this Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add an option to preserve atoms of facts in the symbol table
1 participant