c294a29cb2
Support placeholders with #external declarations
...
This adds support for declaring predicates as placeholders through the
“#external” directive in the input language of clingo.
Placeholders are not subject to completion. This prevents predicates
that represent instance-specific facts from being assumed as universally
false by default negation when translating an encoding.
This stretches clingo’s usual syntax a bit to make the implementation
lightweight. In order to declare a predicate with a specific arity as a
placeholder, the following statement needs to be added to the program:
#external <predicate name>(<arity>).
Multiple unit tests cover cases where placeholders are used or not as
well as a more complex graph coloring example.
2018-04-08 20:28:57 +02:00
5f8c144628
Fixed regression in simplifying predicates with more than one argument.
2017-06-12 18:27:39 +02:00
1f1006ea96
Corrected hiding predicates that are simple propositions.
2017-06-12 15:40:02 +02:00
7665cb7bf1
Added unit test for the completion of predicates with nested arguments.
2017-06-12 15:32:05 +02:00
a4cd133ba7
Correctly implemented hiding predicates with nested arguments.
2017-06-12 02:25:04 +02:00
649489a1eb
Renamed unit test for clarity.
2017-06-09 22:10:43 +02:00
cbe87d8cb7
Fixed issue with simplifying binary operations in arguments.
2017-06-09 22:00:00 +02:00
0285c1cbbb
Renamed internal variables for clarity.
2017-06-06 01:44:44 +02:00
19ede968ed
Added unit test that predicate arity is respected by #show statements.
2017-06-05 04:00:09 +02:00
7ae0a1f289
Removed unnecessary parentheses after simplification.
2017-06-05 03:58:39 +02:00
b272a91888
Extended unit test for circular dependencies and #show.
2017-06-05 03:40:41 +02:00
b91e55dfc4
Added unit test for recognizing Booleans when hiding statements.
2017-06-05 03:39:10 +02:00
7904b41e60
Added unit test covering circular dependencies with #show statements.
2017-06-05 03:34:13 +02:00
adabe1bf1a
Added simple unit tests for #show statements.
2017-06-05 03:26:09 +02:00
dcc504ebc0
Added another simplification step after completion.
2017-06-04 20:55:24 +02:00
0930e062c4
Enforcing color output when testing for convenience.
2017-06-01 03:08:05 +02:00
4baed6fbc6
Added back completion support.
2017-06-01 02:37:45 +02:00
0d8b1e94da
Refactored error handling.
2017-05-31 18:03:19 +02:00
664a57ec68
Fixed issue with multi-layer variable stacks.
2017-05-30 18:09:33 +02:00
1917f18b6a
Added back simplification support.
2017-05-30 04:06:56 +02:00
1c925d661b
Major refactoring to uniquely link variables to their declarations (breaks simplification and completion).
2017-05-30 03:56:35 +02:00
48271cea88
Removed obsolete to-do.
2017-05-05 13:51:07 +02:00
d056fabb8b
Fixes lost signs with negated 0-ary predicates.
2017-05-04 15:44:37 +02:00
5948d30e5c
Refactored implementation of completion.
2017-04-10 16:32:12 +02:00
d4ce0d54e8
Fixed typo.
2017-04-10 14:30:35 +02:00
b0388b9b28
Added example from the completion paper as unit test.
2017-04-08 20:22:50 +02:00
37526bcc8e
Fixed incorrect handling of implications with Booleans.
2017-04-08 20:17:01 +02:00
2ef3ef24a1
Fixed typos in unit test case.
2017-04-08 20:02:20 +02:00
2ae5cfbfa6
Enforcing unit tests not to throw exceptions.
2017-04-08 19:59:59 +02:00
a1648e27c9
Added tests covering completion of integrity constraints and facts.
2017-04-08 18:50:42 +02:00
350f31d0fd
Added simple unit tests for completion.
2017-04-08 18:47:06 +02:00
ac7a0f6d4c
Fixed typo.
2017-04-08 18:42:36 +02:00
8ddf068eeb
Removed unnecessary include directive.
2017-04-08 18:38:37 +02:00
f28873617d
Implemented translation of anonymous variables.
2017-03-29 21:28:46 +02:00
c8cd6fec48
Added test case for incorrectly simplified rules with comparison.
2017-03-28 17:10:38 +02:00
32e6301b5e
Added some unit tests for the simplification procedure.
2017-03-23 15:14:32 +01:00
09c2674148
Fixed incorrectly translated choice rules with multiple elements in the aggregate.
2017-03-23 02:06:19 +01:00
73f67f5c17
Added back support for function symbols.
2017-03-15 17:01:09 +01:00
9e6d135781
Implemented explicit syntax tree representation for first-order formulas.
2017-03-15 16:00:43 +01:00
c294aa1337
Added test covering choice rules with bodies.
2017-03-06 15:55:00 +01:00
2a0b7ef3b5
Added tests covering simple choice rules.
2017-03-06 15:49:40 +01:00
a653556d77
Resolved minor warnings.
2016-11-29 02:29:54 +01:00
f11097180a
Extended unit tests related to facts and integrity constraints.
2016-11-24 17:45:22 +01:00
6167a83a99
Fixed issue with empty integrity constraints and extended unit test.
2016-11-24 17:38:44 +01:00
25a55a6457
Added unit test for alternative syntax for disjunctive heads.
2016-11-24 17:33:19 +01:00
884dcbc51a
Added unit test for comparisons.
2016-11-24 17:00:08 +01:00
cff5ed8cec
Added unit test for intervals.
2016-11-24 16:53:04 +01:00
712530150f
Fixed incorrect output of functions and added unit test.
2016-11-24 16:51:17 +01:00
442fa8791a
Fixed continuous numbering of auxiliary variables.
2016-11-24 16:50:35 +01:00
fc89a65ce7
Improved output of negated literals and added unit test.
2016-11-24 16:04:53 +01:00