potassco / potassco/constraint-handler
Unnecessary executions
@AbdallahS is already working on this.
Since Apr 15, 2026.
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 20
Description
In the grounding, rules are created stating:
_execution_exec("c0"),error(statement(pythonError),"(Statement(symbol=<StatementWarning.pythonError: 'pythonError'>), NameError(\"name 'x' is not defined\"))")):-_execution_mapped("c0"),()).
when using a statement_python and the variable is clearly declared as input for the execution_declare.
A similar error is:
TypeError(\"'>=' not supported between instances of 'NoneType' and 'int'\"))")
As apparently None is some kind of default.
This is technically not wrong but could probably be improved.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.