Skip to content

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