src/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 30 Dec 2010 14:24:43 +0100
branchdecompose-isar
changeset 38081 89480ba7be8d
parent 38080 53ee777684ca
child 38082 5b2d3303e56e
permissions -rw-r--r--
analysed error *** nxt_add: EX itm. not(dat(itm)<=dat(ori))

this error is caused in test/../polyminus
by wrong input data to me, autoCalculate, and NOT by bugs in me,
because me work in test/../integrate.sml and test/../diff.sml,
the latter checked in this changeset.

the error probably occurs in all expls with simplify.
     1 (* Title: Run_Tests on isac
     2    Author: Walther Neuper 100808
     3    (c) due to copyright terms
     4 
     5 $ cd /usr/local/isabisac/src/Tools/isac
     6 $ /usr/local/isabisac/bin/isabelle emacs -l Isac Test_Isac.thy &
     7 $ /usr/local/isabisac/bin/isabelle emacs Test_Isac.thy &
     8 
     9 RESTART emacs after having created a new Isac heap with
    10 $ /usr/local/isabisac/bin/isabelle usedir -b HOL Isac
    11 
    12 12345678901234567890123456789012345678901234567890123456789012345678901234567890
    13         10        20        30        40        50        60        70        80
    14 *)
    15 
    16 theory Test_Isac imports "Knowledge/Isac" begin
    17 
    18 ML{* writeln "**** run the tests **************************************" *};
    19 ML {* Toplevel.debug := true; *}
    20 (* 
    21 cd "systest";
    22 (*+ check kbtest/diffapp.sml for additional items in met-model*)
    23        	use"root-equ.sml"; 
    24        	use"script.sml";   
    25 	(* use"script_if.sml"; WN03 missing: is_rootequation_in*)
    26        	use"scriptnew.sml";     
    27        	use"subp-rooteq.sml";   
    28 	use"tacis.sml";
    29 	use"interface-xml.sml";
    30 	(* use"testdaten.sml"; no update after dropping 'errorBound'*)    
    31  	cd "../..";
    32 *)
    33 ML{* writeln "**** run systests complete ******************************" *};
    34 
    35 use"../../../test/Tools/isac/calcelems.sml"; (*complete*)
    36 
    37 (*
    38 cd"smltest/Scripts";
    39 *)
    40 use"../../../test/Tools/isac/ProgLang/termC.sml"; (*part.*)
    41 
    42 
    43 use"../../../test/Tools/isac/ProgLang/calculate.sml"; (*part.*)
    44 use"../../../test/Tools/isac/ProgLang/rewrite.sml"; (*GOON*)
    45 (*
    46 	use"listg.sml";
    47  	use"scrtools.sml";
    48  	use"tools.sml";
    49  	cd "../.."; 
    50 cd"smltest/ME";
    51 *)
    52 use "../../../test/Tools/isac/Interpret/mstools.sml"; (*empty*)
    53 (*      use"ctree.sml";
    54 *)
    55 use "../../../test/Tools/isac/Interpret/ptyps.sml";   (*TODO*)
    56 use "../../../test/Tools/isac/Interpret/calchead.sml";
    57 ML {*print_depth 999*}
    58 use "../../../test/Tools/isac/Interpret/rewtools.sml"; (**)
    59 (*
    60         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    61         use"inform.sml";
    62 *)
    63 ML {*print_depth 5*}
    64 use "../../../test/Tools/isac/Interpret/mathengine.sml"; (*part.*)
    65 (*
    66 	use"me.sml";
    67  	cd "../.."; 
    68 cd"smltest/xmlsrc";
    69  	use"datatypes.sml";        
    70        	use"pbl-met-hierarchy.sml"; 
    71 use"../../../test/Tools/isac/xmlsrc/thy-hierarchy.sml"; (**)
    72 *)
    73 
    74 use"../../../test/Tools/isac/Frontend/interface.sml"; (**)
    75 (*
    76  	cd "../..";
    77 *)
    78 ML{* writeln "**** run tests on math-engine complete ******************" *};
    79 (*
    80 cd"smltest/IsacKnowledge"; ---below the order as in theory Isac---
    81         use"atools.sml";
    82  	use"termorder.sml";
    83 *)
    84 ML {*
    85 print_depth 999
    86 *}
    87 ML {*print_depth 5*}
    88 use"../../../test/Tools/isac/Knowledge/simplify.sml"; (*part.*)
    89 (*
    90        use"poly.sml"
    91 *)
    92 use"../../../test/Tools/isac/Knowledge/rational.sml"; (*part.*)
    93 (*
    94 	use"equation.sml";
    95  	use"root.sml";
    96 *)
    97 use "../../../test/Tools/isac/Knowledge/inssort.sml"; (*part.*)
    98 (*
    99 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
   100  	use"rooteq.sml";
   101  	use"rateq.sml";
   102  	use"rootrateq.sml";
   103 
   104  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
   105  			     ? also check others without check 'diff.behav.'*);
   106  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
   107  			     for simplification search MG 
   108  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
   109 	use"wn.sml";
   110  	use"trig.sml";
   111  	use"logexp.sml";
   112  	use"diff.sml";
   113 *)
   114 ML {*print_depth 5*}
   115 use "../../../test/Tools/isac/Knowledge/integrate.sml"; (*complete*)
   116 (*
   117 	use"eqsystem.sml";
   118 *)
   119 use "../../../test/Tools/isac/Knowledge/polyminus.sml"; (* part. *)
   120 (*
   121  	use"vect.sml";  
   122  	use"diffapp.sml";
   123 	use"biegelinie.sml";
   124 	use"algein.sml";
   125 *)
   126 ML {*
   127 theory "Isac"
   128 *}
   129 use "../../../test/Tools/isac/Knowledge/isac.sml"; (**)
   130 
   131 ML {*print_depth 3*}
   132 ML {*111*}
   133 
   134 (*
   135  	cd "../..";
   136 *)
   137 (* TODO
   138 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
   139 :
   140 *** Could not find theory file "Foo_Language.thy" in "1language", "/usr/local/isabisac/test/Tools/isac", ".", "$ISABELLE_HOME/src/HOL/Library"
   141 *** Theory loader: the error(s) above occurred while examining theory "Foo_Language"
   142 
   143 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
   144 *)
   145 use "../../../test/Pure/library.sml" (**)
   146 use_thy "../../../test/Pure/General/Basics"
   147 
   148 use_thy "../../../test/Pure/Isar/Test_Parse_Term"
   149 use_thy "../../../test/Pure/Isar/Test_Parsers"
   150 
   151 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   152 (*
   153 val path = "/home/neuper/proto3/testsml2xml/"; 
   154 pbl_hierarchy2file (path ^ "pbl/");
   155 pbls2file          (path ^ "pbl/");
   156 met_hierarchy2file (path ^ "met/");
   157 mets2file          (path ^ "met/");
   158 thy_hierarchy2file (path ^ "thy/");
   159 thes2file          (path ^ "thy/");
   160 cd"sml";
   161 *)
   162 ML{* writeln "**** tested creation of xmldata *************************" *};
   163 
   164 ML{*states:=[];
   165      writeln "=========================================================";
   166      
   167      writeln "**** run systests complete ***************** re-organize!";
   168      writeln "**** run tests on math-engine complete ******************";
   169      writeln "**** run tests on IsacKnowledge complete ****************";
   170      writeln "**** build isac kernel + run tests complete *************";
   171      writeln "**** tested creation of xmldata *************************";
   172 *}
   173 
   174 end
   175 
   176 (*=== inhibit exn ?=============================================================
   177 ===== inhibit exn ?===========================================================*)
   178 
   179 
   180 (*========== inhibit exn =======================================================
   181 
   182 "########### testcode inserted vvv ###########################################";
   183 "########### testcode inserted ^^^ ###########################################";
   184 
   185 ============ inhibit exn =====================================================*)
   186 
   187 
   188 (*-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
   189 -.-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*)