equal
deleted
inserted
replaced
202 | filter_crit ctxt (SOME goal) Elim = filter_elim ctxt goal |
202 | filter_crit ctxt (SOME goal) Elim = filter_elim ctxt goal |
203 | filter_crit ctxt (SOME goal) Dest = filter_dest ctxt goal |
203 | filter_crit ctxt (SOME goal) Dest = filter_dest ctxt goal |
204 | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat |
204 | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat |
205 | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat; |
205 | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat; |
206 |
206 |
207 fun opt_not x = if isSome x then NONE else SOME (0, 0); |
207 fun opt_not x = if is_some x then NONE else SOME (0, 0); |
208 |
208 |
209 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y : int) |
209 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y : int) |
210 | opt_add _ _ = NONE; |
210 | opt_add _ _ = NONE; |
211 |
211 |
212 in |
212 in |