Skip to content

Add measures for program statistics - #66

Merged
tzschmidt merged 1 commit into
masterfrom
add-measures
Sep 15, 2026
Merged

tzschmidt merged 1 commit into
masterfrom
add-measures

Conversation

@tzschmidt

Copy link
Copy Markdown
Collaborator

Add the following measures:

  • rules (simplified + original)
  • choice_rules (simplified + original)
  • atoms (simplified + original)
  • bodies (simplified + original)
  • count (simplified + original)
  • sum (simplified + original)
  • tight
  • variables
  • constraints

"error": ("string", re.compile(r"^\*\*\* clasp ERROR: (?P<val>.*)$")),
"rstatus": ("string", re.compile(r"^\[runlim\] status:\s*(?P<val>.*)$")),
"mem": ("float", re.compile(r"^\[runlim\] space:\s*(?P<val>[0-9]+(\.[0-9]+)?) MB")),
"rules": (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick and Just FYI: Stats for rules, atoms, and bodies are only printed when solving a logic program and hence, you don't need to check for the SAT/PB-only comment prefix "c ".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are remnants from copying the lines above, but good to know.

@tzschmidt
tzschmidt merged commit 82ce1f6 into master Sep 15, 2026
1 check passed
@tzschmidt
tzschmidt deleted the add-measures branch September 15, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants