summaryrefslogtreecommitdiff
path: root/src/lem_interp/instruction_extractor.lem
diff options
context:
space:
mode:
authorKathy Gray2014-09-30 16:52:38 +0100
committerKathy Gray2014-09-30 16:52:38 +0100
commit02e4b62028411bc107ba63eff87b8d996baae695 (patch)
tree23331d400ab87869cf10c06054fee359ca3c975b /src/lem_interp/instruction_extractor.lem
parentb023f5bb216a4c47eb1611dd96dc2e1b43867343 (diff)
Add type annotations to funcls to track effects and constraints from one function-clause
Diffstat (limited to 'src/lem_interp/instruction_extractor.lem')
-rw-r--r--src/lem_interp/instruction_extractor.lem6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lem_interp/instruction_extractor.lem b/src/lem_interp/instruction_extractor.lem
index 52361911..74e5fd4c 100644
--- a/src/lem_interp/instruction_extractor.lem
+++ b/src/lem_interp/instruction_extractor.lem
@@ -38,11 +38,9 @@ end
let rec extract_effects_of_pat id execute = match execute with
| [] -> []
- | FCL_aux (FCL_Funcl _ (P_aux (P_app (Id_aux (Id i) _) _) _) exp) _ :: executes ->
+ | FCL_aux (FCL_Funcl _ (P_aux (P_app (Id_aux (Id i) _) _) _) _) (_,(Just(_,_,_,Effect_aux(Effect_set efs) _))) :: executes ->
if i = id
- then match exp with
- | E_aux e (_,Just(_,_,_,Effect_aux (Effect_set efs) _)) -> efs
- | _ -> [] end
+ then efs
else extract_effects_of_pat id executes
| _::executes -> extract_effects_of_pat id executes
end