diff options
author | Son Ho | 2022-03-03 17:36:33 +0100 |
---|---|---|
committer | Son Ho | 2022-03-03 17:36:33 +0100 |
commit | 00104884e101d3125e62dde9757b9c1cacb3feec (patch) | |
tree | 95714d86561013b328e00138f12bb9889576eca5 /src/PureUtils.ml | |
parent | 80d0d22f152386ffe28b48f42f42f8f736170014 (diff) |
Make good progress on adding support for external and opaque
declarations
Diffstat (limited to '')
-rw-r--r-- | src/PureUtils.ml | 7 |
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 |