Skip to content

Commit a4e19d6

Browse files
remove typechecking logic for Step
1 parent ca6813a commit a4e19d6

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/typecheck.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,6 @@ fn check_stmt_types(
6565
match &tr[stmt_id] {
6666
Stmt::Fork => Ok(()),
6767
Stmt::Step => Ok(()),
68-
// Stmt::Step(exprid) => {
69-
// let expr_type = check_expr_types(tr, st, handler, exprid)?;
70-
// if let Type::BitVec(_) = expr_type {
71-
// if let Expr::Const(val) = &tr[exprid] {
72-
// if val.to_i64().unwrap() >= 1 {
73-
// return Ok(());
74-
// }
75-
// handler.emit_diagnostic_expr(
76-
// tr,
77-
// exprid,
78-
// &format!("Argument to step must be a positive, non-zero integer literal."),
79-
// Level::Error,
80-
// );
81-
// }
82-
// Ok(())
83-
// } else {
84-
// handler.emit_diagnostic_stmt(
85-
// tr,
86-
// stmt_id,
87-
// &format!("Invalid type for [step] statement: {:?}", expr_type),
88-
// Level::Error,
89-
// );
90-
// Ok(())
91-
// }
92-
// }
9368
Stmt::Assign(lhs, rhs) => {
9469
// Function argument cannot be assigned
9570
if tr.args.iter().any(|arg| arg.symbol() == *lhs) {

0 commit comments

Comments
 (0)