summaryrefslogtreecommitdiff
path: root/src/PureUtils.ml
diff options
context:
space:
mode:
authorSon Ho2022-03-03 17:36:33 +0100
committerSon Ho2022-03-03 17:36:33 +0100
commit00104884e101d3125e62dde9757b9c1cacb3feec (patch)
tree95714d86561013b328e00138f12bb9889576eca5 /src/PureUtils.ml
parent80d0d22f152386ffe28b48f42f42f8f736170014 (diff)
Make good progress on adding support for external and opaque
declarations
Diffstat (limited to '')
-rw-r--r--src/PureUtils.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/PureUtils.ml b/src/PureUtils.ml
index cfc8a270..2a56b6e0 100644
--- a/src/PureUtils.ml
+++ b/src/PureUtils.ml
@@ -251,8 +251,11 @@ let functions_not_mutually_recursive (funs : fun_decl list) : bool =
in
try
- obj#visit_texpression () fdef.body;
- true
+ match fdef.body with
+ | None -> true
+ | Some body ->
+ obj#visit_texpression () body.body;
+ true
with Utils.Found -> false
in
List.for_all body_only_calls_itself funs