summaryrefslogtreecommitdiff
path: root/compiler/ExtractToFStar.ml
diff options
context:
space:
mode:
authorSon Ho2022-11-09 22:03:04 +0100
committerSon HO2022-11-10 11:35:30 +0100
commit4ec8646c1bf426c848e8057cdf7c248df6999523 (patch)
tree2b5312e198167ef3a1797c1f338bfc511518a106 /compiler/ExtractToFStar.ml
parent98ecc4763beb6c6213b26f4ddeb4d7850f8a7c08 (diff)
Make a minor cleanup
Diffstat (limited to 'compiler/ExtractToFStar.ml')
-rw-r--r--compiler/ExtractToFStar.ml11
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/ExtractToFStar.ml b/compiler/ExtractToFStar.ml
index a995d4a6..fc04ce90 100644
--- a/compiler/ExtractToFStar.ml
+++ b/compiler/ExtractToFStar.ml
@@ -1456,16 +1456,7 @@ let extract_fun_decl (ctx : extraction_ctx) (fmt : F.formatter)
*)
let inputs_lvs =
let all_inputs = (Option.get def.body).inputs_lvs in
- (* We have to count:
- * - the forward inputs
- * - the state (if there is one)
- *)
- let num_fwd_inputs = def.signature.info.num_fwd_inputs in
- let num_fwd_inputs =
- if def.signature.info.effect_info.stateful_group then
- 1 + num_fwd_inputs
- else num_fwd_inputs
- in
+ let num_fwd_inputs = def.signature.info.num_fwd_inputs_with_state in
Collections.List.prefix num_fwd_inputs all_inputs
in
let _ =