Skip to content

Make pass post-condition aware of model changes? #214

@iksnagreb

Description

@iksnagreb

Currently post-conditions are unaware of (potential) model changes, however, it could be interesting to know if the last call of the pass changed the model (or at least reports a potential model change via the PassResult). As an example: I am (ab?)using the pre- and post-condition for two things, logging, which I always want to do, no matter the model state, and rather costly verification of model correctness, which could be skipped for unchanged models.

Right now I see two options for implementing this: Either a state variable as a member of the PassBase tracking the .modified from the last call's PassResult, or alternatively forwarding the entire PassResult to the post-condition (ensures call). The first option would introduce state into the - up until now - stateless PassBase, not sure if that is desired. The second option would probably be a breaking change to the API.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions