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

[BUG] Better error reporting for recursive operators #272

Closed
konnov opened this issue Oct 13, 2020 · 0 comments
Closed

[BUG] Better error reporting for recursive operators #272

konnov opened this issue Oct 13, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@konnov
Copy link
Collaborator

konnov commented Oct 13, 2020

The following specification produces exceptions:

--------------------------- MODULE Rec10 -------------------------------------
EXTENDS Integers

VARIABLES f

RECURSIVE Fact(_)

Fact(n) ==
  IF n <= 1
  THEN 1
  ELSE n * Fact(n - 1)

Init == f = Fact(4)

Next == f' = Fact(7)

Inv == f >= 1
========================================================================

While the messages in the exceptions are right, they should be reported as normal errors. Additionally, a pointer to the manual should be given.

@konnov konnov added the bug label Oct 13, 2020
@konnov konnov added this to the v0.12.0-user-care milestone Oct 13, 2020
@konnov konnov self-assigned this Oct 13, 2020
konnov added a commit that referenced this issue Oct 13, 2020
closing #272: better diagnostics for recursive operators
@konnov konnov closed this as completed Oct 13, 2020
@konnov konnov modified the milestones: v0.12.0-user-care, backlog2020 Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant