diff options
| author | Maxime Dénès | 2019-09-02 14:23:46 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2019-09-02 14:23:46 +0200 |
| commit | 61750abbc38dee8f9299b309979e0382d48ac323 (patch) | |
| tree | 404ee1c6c4ab6a5392c03360c3b69aef6b433052 /plugins | |
| parent | de164747a3296f693a2ac9bb11c1778b487a50c4 (diff) | |
| parent | 970404f2bfa7a26ad64692844441261cebd80082 (diff) | |
Merge PR #10648: [extraction] Fix #7191: Avoid unsound eta-reduction
Reviewed-by: maximedenes
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/extraction/mlutil.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/extraction/mlutil.ml b/plugins/extraction/mlutil.ml index 2d5872718f..c57daf0047 100644 --- a/plugins/extraction/mlutil.ml +++ b/plugins/extraction/mlutil.ml @@ -779,7 +779,7 @@ let eta_red e = else e | _ -> e -(* Performs an eta-reduction when the core is atomic, +(* Performs an eta-reduction when the core is atomic and value, or otherwise returns None *) let atomic_eta_red e = @@ -789,7 +789,7 @@ let atomic_eta_red e = | MLapp (f,a) when test_eta_args_lift 0 n a -> (match f with | MLrel k when k>n -> Some (MLrel (k-n)) - | MLglob _ | MLexn _ | MLdummy _ -> Some f + | MLglob _ | MLdummy _ -> Some f | _ -> None) | _ -> None |
