oracle raises CooperDec.COOPER instead of COOPER (this is eliminated). Erronous old behaviour due to this exception is now correcrted.
authorchaieb
Thu, 09 Nov 2006 23:33:55 +0100
changeset 21278 9442e9d75ada
parent 21277 ac2d7e03a3b1
child 21279 2cb5f1621bcf
oracle raises CooperDec.COOPER instead of COOPER (this is eliminated). Erronous old behaviour due to this exception is now correcrted.
src/HOL/Integ/reflected_cooper.ML
src/HOL/Tools/Presburger/reflected_cooper.ML
--- a/src/HOL/Integ/reflected_cooper.ML	Thu Nov 09 21:44:35 2006 +0100
+++ b/src/HOL/Integ/reflected_cooper.ML	Thu Nov 09 23:33:55 2006 +0100
@@ -110,14 +110,12 @@
       | _ => error "If this is raised, Isabelle/HOL or generate_code is inconsistent!";
 
 (* The oracle *)
- exception COOPER; 
-
 fun presburger_oracle thy t =
     let val vs = start_vs t
 	val result = lift_un (term_of_qf vs) (pa (qf_of_term vs t))
     in 
     case result of 
-	None => raise COOPER
+	None => raise CooperDec.COOPER
       | Some t' => HOLogic.mk_Trueprop (HOLogic.mk_eq(t,t'))
     end ;
  
--- a/src/HOL/Tools/Presburger/reflected_cooper.ML	Thu Nov 09 21:44:35 2006 +0100
+++ b/src/HOL/Tools/Presburger/reflected_cooper.ML	Thu Nov 09 23:33:55 2006 +0100
@@ -110,14 +110,12 @@
       | _ => error "If this is raised, Isabelle/HOL or generate_code is inconsistent!";
 
 (* The oracle *)
- exception COOPER; 
-
 fun presburger_oracle thy t =
     let val vs = start_vs t
 	val result = lift_un (term_of_qf vs) (pa (qf_of_term vs t))
     in 
     case result of 
-	None => raise COOPER
+	None => raise CooperDec.COOPER
       | Some t' => HOLogic.mk_Trueprop (HOLogic.mk_eq(t,t'))
     end ;