// RUN: %dafny  /compile:3 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

method F() returns(x:int)
  ensures x == 6;
{
  x := 5;
  x := (var y := 1; y + x);
}

method Main()
{
  var x := F();
  print x;
}