Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Sapan Bhatia edited this page Aug 18, 2018 · 2 revisions

Assumed condition cannot hold

Prepack was able to prove that a condition defined by the input code cannot possibly hold.

function checker() {
  let x = __abstract("boolean", "true");
  __assume(x);
  if (!x) {
    global.foo = 42; // This can never happen, PP0049
  }
}
Clone this wiki locally