diff options
author | Lucas Franceschino | 2024-06-03 16:53:09 +0200 |
---|---|---|
committer | Lucas Franceschino | 2024-06-03 16:53:12 +0200 |
commit | ec039b63748c2a95f89c0538a843e18d3a51cdf3 (patch) | |
tree | c094722733426709f59f38a11819df2e2dd3f481 /compiler/FunsAnalysis.ml | |
parent | 170ce1c399d3ae6b2ff9485037eae4d89e7879f2 (diff) |
feat: basic handling for `RValue::Len`, following AeneasVerif/charon#209
Diffstat (limited to 'compiler/FunsAnalysis.ml')
-rw-r--r-- | compiler/FunsAnalysis.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/FunsAnalysis.ml b/compiler/FunsAnalysis.ml index eadd8f8a..815c470f 100644 --- a/compiler/FunsAnalysis.ml +++ b/compiler/FunsAnalysis.ml @@ -103,7 +103,9 @@ let analyze_module (m : crate) (funs_map : fun_decl FunDeclId.Map.t) method! visit_rvalue _env rv = match rv with - | Use _ | RvRef _ | Global _ | Discriminant _ | Aggregate _ -> () + | Use _ | RvRef _ | Global _ | Discriminant _ | Aggregate _ | Len _ + -> + () | UnaryOp (uop, _) -> can_fail := unop_can_fail uop || !can_fail | BinaryOp (bop, _, _) -> can_fail := binop_can_fail bop || !can_fail |