potassco / potassco/constraint-handler

Unnecessary executions

Open
#247 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.