summaryrefslogtreecommitdiff
path: root/src/util.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-08-29 18:00:51 +0100
committerAlasdair Armstrong2017-08-29 18:00:51 +0100
commit04c32956a50d2e0a2f62b02828e9b549854a2b8c (patch)
treecbdaadcb1f11fa8c740378d7fa6a3e04b63f7802 /src/util.ml
parent9cc9b5afff769b9185c6e6e4afad496d58d1a38d (diff)
parent2300d45d6645faae3c00a183e80547c1a6cb9165 (diff)
Merge branch 'experiments' of https://bitbucket.org/Peter_Sewell/sail into experiments
Diffstat (limited to 'src/util.ml')
-rw-r--r--src/util.ml4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.ml b/src/util.ml
index 75732376..c89cc1ef 100644
--- a/src/util.ml
+++ b/src/util.ml
@@ -204,10 +204,8 @@ let option_bind f = function
| Some(o) -> f o
let rec option_binop f x y = match x, y with
- | None, None -> None
- | Some x, None -> Some x
- | None, Some y -> Some y
| Some x, Some y -> Some (f x y)
+ | _ -> None
let changed2 f g x h y =
match (g x, h y) with