Commit Graph
100 Commits
Author SHA1 Message Date
patrick 188a24f5b5 Added some annotations to the simplification code. 2017-03-23 13:39:34 +01:00
patrick ddbd4061e4 Moved recursive formula visitor to separate header file. 2017-03-23 13:28:09 +01:00
patrick 7bb78656f4 Updated change log with recent bug fix. 2017-03-23 02:14:10 +01:00
patrick 906f83a527 Merge branch 'develop' of github.com:potassco/anthem into fix-disjunctions 2017-03-23 02:13:00 +01:00
patrick 09c2674148 Fixed incorrectly translated choice rules with multiple elements in the aggregate. 2017-03-23 02:06:19 +01:00
patrick 283cdd2abf Preparations for returning multiple formulas per input rule (as necessary with head aggregates). 2017-03-23 01:23:17 +01:00
patrick 2d2f2cd0dd Updated change log with basic simplification features. 2017-03-23 01:12:55 +01:00
patrick 9084e72303 Added back support for GCC 5. 2017-03-23 01:06:44 +01:00
patrick 0bb79b6b23 Removed quirk that has become unnecessary with Clingo’s variants. 2017-03-23 01:02:53 +01:00
patrick 13ed0b013a Made substitution of variables with terms fully recursive. 2017-03-23 01:00:54 +01:00
patrick 825cd4de39 Refactored formula simplification with Clingo’s variants. 2017-03-23 00:44:10 +01:00
patrick bf8cf75369 Implemented advanced simplification (some formulas not covered yet). 2017-03-17 02:42:48 +01:00
patrick fc538eb7fc Started implementing output simplifications. 2017-03-16 15:45:55 +01:00
patrick f85236955f Updated Catch. 2017-03-15 19:23:15 +01:00
patrick ad9850fa7c Fixed compiler error with GCC. 2017-03-15 17:08:40 +01:00
patrick 73f67f5c17 Added back support for function symbols. 2017-03-15 17:01:09 +01:00
patrick 2b2049171f Fixed incorrect error message. 2017-03-15 16:49:42 +01:00
patrick 33e47ae089 Updated change log with new explicit formula representation. 2017-03-15 16:32:26 +01:00
patrick a7e23210f6 Minor formatting. 2017-03-15 16:32:07 +01:00
patrick f6a57053b0 Dropped support for GCC 5. 2017-03-15 16:22:03 +01:00
patrick 9e6d135781 Implemented explicit syntax tree representation for first-order formulas. 2017-03-15 16:00:43 +01:00
patrick 7ff537a515 Updated MapBox variant. 2017-03-13 15:20:08 +01:00
patrick e6a9ccf167 Updated clingo. 2017-03-10 15:48:04 +01:00
patrick f139e375f1 Added initial abstract syntax tree for first-order logic formulas. 2017-03-08 01:21:03 +01:00
patrick afe49dce6c Added MapBox variant to include path. 2017-03-08 00:06:31 +01:00
patrick 64dd8e9910 Forcing colored compiler output with Ninja. 2017-03-08 00:02:13 +01:00
patrick 76fb530492 Added MapBox variant library as submodule. 2017-03-07 23:51:58 +01:00
patrick dbf3fced9e Updated clingo. 2017-03-07 23:49:34 +01:00
patrick 74338a5ab7 Version bump after release 0.1.1. 2017-03-06 18:09:48 +01:00
patrick 40341e41f3 Version bump for release 0.1.1. 2017-03-06 17:20:29 +01:00
patrick a75307400a Updated Catch to 1.8.1. 2017-03-06 17:06:25 +01:00
patrick ffe46738de Updated change log with support for choice rules. 2017-03-06 16:51:21 +01:00
patrick c294aa1337 Added test covering choice rules with bodies. 2017-03-06 15:55:00 +01:00
patrick 2a0b7ef3b5 Added tests covering simple choice rules. 2017-03-06 15:49:40 +01:00
patrick 71e6e4107a Minor restructuring. 2017-03-06 15:42:38 +01:00
patrick 70cb79b233 Implemented choice rules. 2017-03-06 15:40:23 +01:00
patrick c819eeabfc Minor renaming. 2017-03-06 14:51:46 +01:00
patrick c66c711823 Updated Catch. 2016-12-05 16:21:00 +01:00
patrick 259ec5ae2f Fixed minor typos in include guards. 2016-11-29 03:32:50 +01:00
patrick a653556d77 Resolved minor warnings. 2016-11-29 02:29:54 +01:00
patrick 5d67d74395 Added extra compiler warning flag. 2016-11-29 02:12:44 +01:00
patrick ecd5fc404c Updated clingo. 2016-11-25 17:38:25 +01:00
patrick d2259bca63 Version bump after release 0.1.0. 2016-11-25 00:02:52 +01:00
patrick fe81714798 Version bump for release 0.1.0. 2016-11-24 23:52:15 +01:00
patrick 39d691c7ad Added change log. 2016-11-24 23:50:15 +01:00
patrick 4d533dfd0b Minor formatting. 2016-11-24 23:38:06 +01:00
patrick 4bd95fe163 Printing all status messages to std::cerr. 2016-11-24 23:37:15 +01:00
patrick 30bd40ab45 Changed usage information in app and readme. 2016-11-24 23:34:43 +01:00
patrick a0cf6e21e4 Implemented command-line option for setting the output log priority. 2016-11-24 23:25:53 +01:00
patrick 5816207af7 Renamed “note” to “info.” 2016-11-24 22:58:13 +01:00
patrick da63f984c1 Updated dependencies in readme. 2016-11-24 22:49:42 +01:00
patrick 78511d9929 Added CMake option for statically linking the binary. 2016-11-24 22:46:44 +01:00
patrick f11097180a Extended unit tests related to facts and integrity constraints. 2016-11-24 17:45:22 +01:00
patrick 6167a83a99 Fixed issue with empty integrity constraints and extended unit test. 2016-11-24 17:38:44 +01:00
patrick 25a55a6457 Added unit test for alternative syntax for disjunctive heads. 2016-11-24 17:33:19 +01:00
patrick 384cd8677c Minor formatting of logged messages. 2016-11-24 17:33:09 +01:00
patrick 884dcbc51a Added unit test for comparisons. 2016-11-24 17:00:08 +01:00
patrick cff5ed8cec Added unit test for intervals. 2016-11-24 16:53:04 +01:00
patrick 712530150f Fixed incorrect output of functions and added unit test. 2016-11-24 16:51:17 +01:00
patrick 442fa8791a Fixed continuous numbering of auxiliary variables. 2016-11-24 16:50:35 +01:00
patrick fc89a65ce7 Improved output of negated literals and added unit test. 2016-11-24 16:04:53 +01:00
patrick b675946927 Added unit tests for tuples. 2016-11-24 16:00:44 +01:00
patrick b15212cb55 Added unit tests for strings. 2016-11-24 15:58:59 +01:00
patrick faf6cd0f6c Fixed incorrect output of #sup and added unit test. 2016-11-24 15:51:25 +01:00
patrick 790162532e Added unit test for 0-ary facts. 2016-11-24 15:51:11 +01:00
patrick ac1f464ce3 Added unit tests for facts and integrity constraints. 2016-11-24 15:44:46 +01:00
patrick cdfdd8f4ca Added unit test to check whether escaped user variable names are correctly escaped. 2016-11-24 15:38:55 +01:00
patrick 7702441d24 Added unit tests for complicated rule heads. 2016-11-24 15:31:52 +01:00
patrick 1bc1aaa900 Added unit tests for translating simple rules. 2016-11-24 15:25:34 +01:00
patrick c24147cb2c Renamed auxiliary variables according to paper draft. 2016-11-24 15:25:34 +01:00
patrick 223d380a03 Indexing variables from 1 on and not 0. 2016-11-24 15:25:34 +01:00
patrick de34d05898 Fixed incorrect variable IDs (missing offset). 2016-11-24 15:23:10 +01:00
patrick c12da5d44a Added command-line option to control color output. 2016-11-24 15:01:37 +01:00
patrick f6e6b6fd60 Fixed bug in color support detection. 2016-11-24 15:01:15 +01:00
patrick c92de5e461 Removed unwanted newline. 2016-11-24 14:47:02 +01:00
patrick 83737755fc Changed Logger to print all status messages to std::cerr and not just errors. 2016-11-24 13:55:18 +01:00
patrick eff3b45089 Added Logger constructors to write output to arbitrary streams. 2016-11-24 13:54:40 +01:00
patrick 8a587eb57a Removed unnecessary default constructors. 2016-11-24 13:46:11 +01:00
patrick 4795284413 Removed unintended commented-out code. 2016-11-24 13:43:32 +01:00
patrick 66acbb8965 Changed output format of auxiliary variables and treated potential name collisions. 2016-11-24 13:42:36 +01:00
patrick cf786e05b2 Added missing inline directive in header-only function. 2016-11-24 13:27:22 +01:00
patrick c760edb141 Fixed missing usages of new output format. 2016-11-24 03:36:14 +01:00
patrick e2a450daa6 Implemented syntax highlighting for the body part. 2016-11-24 03:31:28 +01:00
patrick 47d7058f5a Consistently printing operators and Booleans. 2016-11-24 03:20:22 +01:00
patrick 098f2bf813 Implemented syntax highlighting for consequent part. 2016-11-24 03:16:37 +01:00
patrick e65ec9b6c1 Fixed incorrect auxiliary variable naming. 2016-11-24 03:11:36 +01:00
patrick 3fbe8ac407 Fixed missing reset on collected head term vector. 2016-11-24 03:08:36 +01:00
patrick 2046edbee3 Enabled new output in app. 2016-11-24 02:57:33 +01:00
patrick 6f5f7eace7 Changed format of empty pool expression. 2016-11-24 02:45:16 +01:00
patrick b3da15c537 Changed formatting of and/or/xor operators. 2016-11-24 02:44:58 +01:00
patrick 018559b8cf Started implementing color output (currently for head only). 2016-11-24 02:42:32 +01:00
patrick e0d46c2e99 Fixed incorrect assertion. 2016-11-24 00:59:41 +01:00
patrick f704ad64fd Fixed syntax error in assertion. 2016-11-24 00:57:35 +01:00
patrick 6af3b7b875 Made all visitors consistent in taking an Context object as an argument. 2016-11-24 00:52:28 +01:00
patrick 1103f5cbf1 Printing messages only if message has at least a specified priority. 2016-11-24 00:24:35 +01:00
patrick 93597f16a0 Added default message format and text. 2016-11-24 00:24:19 +01:00
patrick e6a9ee1cc7 Started implementing improved output utilities. 2016-11-24 00:21:01 +01:00
patrick 5019922488 Fixed incorrect order of commands in building instructions. 2016-11-23 12:23:11 +01:00
patrick 225816538b Implemented translation of negated body literals. 2016-11-23 05:00:34 +01:00
patrick b7c661bddc Printing constant symbols correctly. 2016-11-23 05:00:34 +01:00