[sledge] Minor code simplification in Trm.map

Reviewed By: ngorogiannis

Differential Revision: D24746230

fbshipit-source-id: c515e5543
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 82581e4074
commit 0e3868c35f

@ -462,9 +462,7 @@ let rec map_vars e ~f =
let map e ~f = let map e ~f =
match e with match e with
| Var _ | Z _ | Q _ -> e | Var _ | Z _ | Q _ -> e
| Arith a -> | Arith a -> map1 (Arith.map ~f) e _Arith a
let a' = Arith.map ~f a in
if a == a' then e else _Arith a'
| Splat x -> map1 f e _Splat x | Splat x -> map1 f e _Splat x
| Sized {seq; siz} -> map2 f e _Sized seq siz | Sized {seq; siz} -> map2 f e _Sized seq siz
| Extract {seq; off; len} -> map3 f e _Extract seq off len | Extract {seq; off; len} -> map3 f e _Extract seq off len

Loading…
Cancel
Save