public WhileStmt(Expr cond, Stmt body) { if (!cond.Type.IsScalar) { throw new InvalidProgramException(); } this.Cond = cond; this.Body = body; }