aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorletouzey2013-03-12 23:59:05 +0000
committerletouzey2013-03-12 23:59:05 +0000
commit3b7ecfa6d4da684a635b2469c2d9a2e1e0ed0807 (patch)
tree2ce23cad6a0067480658001f0636efbdd3269b51 /tactics
parentb66d099bdda2ce1cfaeeb7938346a348ef4d40cd (diff)
invalid_arg instead of raise (Invalid_argement ...)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16270 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/rewrite.ml48
1 files changed, 4 insertions, 4 deletions
diff --git a/tactics/rewrite.ml4 b/tactics/rewrite.ml4
index f7f52de70d..20bcb84a75 100644
--- a/tactics/rewrite.ml4
+++ b/tactics/rewrite.ml4
@@ -471,8 +471,8 @@ let rec decomp_pointwise n c =
decomp_pointwise (pred n) relb
| App (f, [| a; b; arelb |]) when eq_constr f (Lazy.force forall_relation) ->
decomp_pointwise (pred n) (Reductionops.beta_applist (arelb, [mkRel 1]))
- | _ -> raise (Invalid_argument "decomp_pointwise")
-
+ | _ -> invalid_arg "decomp_pointwise"
+
let rec apply_pointwise rel = function
| arg :: args ->
(match kind_of_term rel with
@@ -480,7 +480,7 @@ let rec apply_pointwise rel = function
apply_pointwise relb args
| App (f, [| a; b; arelb |]) when eq_constr f (Lazy.force forall_relation) ->
apply_pointwise (Reductionops.beta_applist (arelb, [arg])) args
- | _ -> raise (Invalid_argument "apply_pointwise"))
+ | _ -> invalid_arg "apply_pointwise")
| [] -> rel
let pointwise_or_dep_relation n t car rel =
@@ -577,7 +577,7 @@ let resolve_morphism env avoid oldt m ?(fnewt=fun x -> x) args args' cstr evars
let evars, morph_instance, proj, sigargs, m', args, args' =
let first = match (Array.findi (fun _ b -> not (Option.is_empty b)) args') with
| Some i -> i
- | None -> raise (Invalid_argument "resolve_morphism") in
+ | None -> invalid_arg "resolve_morphism" in
let morphargs, morphobjs = Array.chop first args in
let morphargs', morphobjs' = Array.chop first args' in
let appm = mkApp(m, morphargs) in