Skip to content

Move utility module to generic template bindings - #464

Merged
linusheck merged 1 commit into
stormchecker:devfrom
linusheck:generic-types-utility
Sep 18, 2026
Merged

linusheck merged 1 commit into
stormchecker:devfrom
linusheck:generic-types-utility

Conversation

@linusheck

Copy link
Copy Markdown
Contributor

Move utility to the new generic system (#449).

- JsonContainer<double/Rational> becomes the JsonContainer[ValueType]
  template family; the Python-side dunder extensions are applied to all
  registered instantiations.
- Remove vestigial suffix parameter from the Kwek-Mehlhorn bindings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review comments are reported, and all reviewed files are covered by the submitted changes.

Pull request overview

Moves utility bindings to the generic template system while preserving simulator behavior.

Changes:

  • Migrates JSON containers to generic template bindings.
  • Simplifies Kwek–Mehlhorn binding signatures.
  • Updates Python exposure and simulator tests.
File summaries
File Reviewed change
tests/simulator/test_simulator.py Updates tests for generic JSON container types.
src/utility/kwekMehlhorn.h Updates the Kwek–Mehlhorn declaration.
src/utility/kwekMehlhorn.cpp Simplifies the binding definition.
src/utility/json.h Updates the JSON binding declaration.
src/utility/json.cpp Registers generic JSON container specializations.
src/mod_utility.cpp Uses the updated binding APIs.
lib/stormpy/utility/__init__.py Exposes JsonContainer as a generic family.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@volkm volkm left a comment

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.

LGTM.

@linusheck
linusheck merged commit 8facb7a into stormchecker:dev Sep 18, 2026
23 checks passed
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.

3 participants