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

Typo in example or guard semantics unclear? #11

Closed
asolove opened this issue Jul 1, 2022 · 1 comment
Closed

Typo in example or guard semantics unclear? #11

asolove opened this issue Jul 1, 2022 · 1 comment

Comments

@asolove
Copy link

asolove commented Jul 1, 2022

The conceptual overview starts with pseudocode:

image

and naively I read this as python-ish code, where the if is controlling whether the other two lines run, in which case I think the guard expression is backwards (from.balance should be greater than or equal to the amount for it to work?)

(but perhaps some other pseudo-code format is intended, in which case I just got confused? or perhaps the typo is intentional and a later section will describe how model-checking interacts with things like unit tests or other ways to check for typos in the non-model real code? or perhaps I am doing the logic wrong myself?)

@hwayne
Copy link
Owner

hwayne commented Jul 2, 2022

Nope, it's a bug. Someone else pushed a fix, so should be clear now!

@hwayne hwayne closed this as completed Jul 2, 2022
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

No branches or pull requests

2 participants