summaryrefslogtreecommitdiff
path: root/compiler/InterpreterStatements.ml
diff options
context:
space:
mode:
authorLucas Franceschino2024-06-03 16:53:09 +0200
committerLucas Franceschino2024-06-03 16:53:12 +0200
commitec039b63748c2a95f89c0538a843e18d3a51cdf3 (patch)
treec094722733426709f59f38a11819df2e2dd3f481 /compiler/InterpreterStatements.ml
parent170ce1c399d3ae6b2ff9485037eae4d89e7879f2 (diff)
feat: basic handling for `RValue::Len`, following AeneasVerif/charon#209
Diffstat (limited to '')
-rw-r--r--compiler/InterpreterStatements.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/InterpreterStatements.ml b/compiler/InterpreterStatements.ml
index c6a65757..c60be905 100644
--- a/compiler/InterpreterStatements.ml
+++ b/compiler/InterpreterStatements.ml
@@ -950,6 +950,7 @@ let rec eval_statement (config : config) (st : statement) : stl_cm_fun =
let cc =
match rvalue with
| Global _ -> craise __FILE__ __LINE__ st.span "Unreachable"
+ | Len _ -> craise __FILE__ __LINE__ st.span "Unhandled Len"
| Use _
| RvRef (_, (BShared | BMut | BTwoPhaseMut | BShallow))
| UnaryOp _ | BinaryOp _ | Discriminant _ | Aggregate _ ->