// AssertBy.dfy

method M0(x: int, y: int)
{
  assert x == 6;
  assert y == 8;
}

method M1(x: int, y: int)
{
  assert x == 6 by {
    assume x == 6;
    assume y == 8;
  }
  assert y == 8;
}
AssertBy.dfy(6,11): Error: assertion violation
Execution trace:
    (0,0): anon0
AssertBy.dfy(7,11): Error: assertion violation
Execution trace:
    (0,0): anon0
AssertBy.dfy(16,11): Error: assertion violation
Execution trace:
    (0,0): anon0
    AssertBy.dfy(12,3): anon3_Else

Dafny program verifier finished with 0 verified, 3 errors
