Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VDM-SL traces fail when referencing state data #252

Closed
nickbattle opened this issue Jan 1, 2014 · 1 comment
Closed

VDM-SL traces fail when referencing state data #252

nickbattle opened this issue Jan 1, 2014 · 1 comment
Assignees
Labels
bug Incorrect behaviour of the tool Mergable A fix is available on a branch to merge for release
Milestone

Comments

@nickbattle
Copy link
Contributor

Combinatorial traces can reference state data in VDM-SL (just as they can reference instance variables in VDM++). But there is a bug which prevents state values from being populated in the runtime environment. So the following specification has no type errors, but at runtime the "s" state variable cannot be found.

state Sigma of
    s : nat
    init z == z = mk_Sigma(1)
end

traces
    T: let x = s in op(x)     -- "s" is not found at test expansion

The fix will be available in 2.0.2.

@ghost ghost assigned nickbattle Jan 1, 2014
@nickbattle
Copy link
Contributor Author

Fixed in ncb/development. I forgot the "#" in the "fixes #252", sorry.

See commit ccb8922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour of the tool Mergable A fix is available on a branch to merge for release
Projects
None yet
Development

No branches or pull requests

2 participants