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

Probabilistic model checking #8

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

attilusleung
Copy link

Overview

Implemented probabilistic model checking in harmony. It allows assertions in harmony code to check the probability of reaching a label from the beginning of execution.

Changes Made

  • --probabilistic flag enables probability assertions
  • hyper_assert(<label>) <comparison op> <expr> statements added to assert/print reachability of label
  • generates .hpo files for harmony files if specified as an output, which shows all the probabilities of each assertion statement in the program.

Test Coverage

Tested on an implementation of Knuth-Yao algorithm and several simulations of the Ben-Or algorithm, and verified the results.

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

Successfully merging this pull request may close these issues.

1 participant