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

Improve undef checks #11

Closed
lou1306 opened this issue Sep 28, 2018 · 0 comments
Closed

Improve undef checks #11

lou1306 opened this issue Sep 28, 2018 · 0 comments

Comments

@lou1306
Copy link
Collaborator

lou1306 commented Sep 28, 2018

The semantics of our guards and link predicates rely on the assumption that the examined variables have a defined value. That is, the process

x > 3 -> P

should only proceed as P if the variable x has a value that is higher than 3.

The current implementation stores 0x7FFFFFFF in all variables that are initialized to undef. This should be treated as a sentinel value everywhere a guard or link predicate is evaluated and it should disallow the evaluation to proceed.

By the way, this also means that the logic of guards is "intuitionistic", in the sense that guards like this:

φ or !φ -> P

are not guaranteed to succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant