diff options
author | Son Ho | 2022-01-28 14:54:51 +0100 |
---|---|---|
committer | Son Ho | 2022-01-28 14:54:51 +0100 |
commit | 057c6cc1f445449022b953b08f691e3f83386634 (patch) | |
tree | 42a4ae74cae2b13606051ca75311f4729c98054c /src/Pure.ml | |
parent | c6eedd0ebe3c4f986cdea36ecec468ae1cadb537 (diff) |
Finish implementing to_monadic
Diffstat (limited to '')
-rw-r--r-- | src/Pure.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Pure.ml b/src/Pure.ml index 30d4a0a8..90f6dc26 100644 --- a/src/Pure.ml +++ b/src/Pure.ml @@ -468,6 +468,8 @@ type fun_sig = { outputs : ty list; (** The list of outputs. + Immediately after the translation from symbolic to pure we have this + the following: In case of a forward function, the list will have length = 1. However, in case of backward function, the list may have length > 1. If the length is > 1, it gets extracted to a tuple type. Followingly, @@ -475,6 +477,9 @@ type fun_sig = { want to account for the fact that we immediately deconstruct the tuple upon calling the backward function (because the backward function is called to update a set of values in the environment). + + After the "to monadic" pass, the list has size exactly one (and we + use the `Result` type). *) } |