test/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Tue, 28 Sep 2010 07:28:10 +0200
branchisac-update-Isa09-2
changeset 38025 67a110289e4e
parent 38024 20231cdf39e7
child 38058 ad0485155c0e
permissions -rw-r--r--
repaired fun uminus_to_string, fun rewrite_terms_

rewrite now adjusts to 2 changes from 2002 to 2009-2
(1) Pattern.match requires _Trueprop $_ pat
(2) rewrite returns assumptions without _Trueprop $_ asm
     1 (* Title Run_Tests on isac
     2 $ cd /usr/local/isabisac/test/Tools/isac
     3 $ /usr/local/isabisac/bin/isabelle emacs -l Isac Test_Isac.thy &
     4 
     5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     6 !!!!!!! actual version is src/Tools/isac/Test_isac.thy !!!!!!!
     7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     8 
     9 RESTART emacs after having created a new Isac heap.
    10 was sml/RTEST-root.sml in isac-2002
    11 
    12 12345678901234567890123456789012345678901234567890123456789012345678901234567890
    13         10        20        30        40        50        60        70        80
    14 *)
    15 
    16 theory Test_Isac imports 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 ML {*
    36 val t1 = @{term "1+2::real"};
    37 val t2 = @{term "abc"};
    38 term2str t2 = "abc";
    39 fun terms2str ts = (strs2str o (map term2str )) ts;
    40 terms2str [t1,t2] = "[\"1 + 2\",\"abc\"]";
    41 fun terms2str' ts = (strs2str' o (map term2str )) ts;
    42 terms2str' [t1,t2] = "[1 + 2,abc]";
    43 fun terms2strs ts = (map term2str) ts;
    44 terms2strs [t1,t2] = ["1 + 2", "abc"];
    45 *}
    46 
    47 (*
    48 cd"smltest/Scripts";
    49  	use"calculate-float.sml";
    50 *)
    51 use"ProgLang/calculate.sml"; (*part.*)
    52 (*
    53 	use"listg.sml";
    54 *)
    55 use"ProgLang/rewrite.sml"; (*part.*)
    56 (*
    57  	use"scrtools.sml";
    58         use"termC.sml";
    59  	use"tools.sml";
    60  	cd "../.."; 
    61 cd"smltest/ME";
    62         use"ctree.sml";
    63 *)
    64 use "Interpret/calchead.sml" (*part.*)
    65 (*
    66        	use"calchead.sml"; 
    67  	use"rewtools.sml";
    68         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    69         use"inform.sml";
    70 	use"me.sml";
    71        	use"ptyps.sml"; 
    72  	cd "../.."; 
    73 cd"smltest/xmlsrc";
    74  	use"datatypes.sml";        
    75        	use"pbl-met-hierarchy.sml"; 
    76        	use"thy-hierarchy.sml"; 
    77  	cd "../.."; 
    78 cd"smltest/FE-interface";
    79        	use"interface.sml";
    80  	cd "../..";
    81 *)
    82 ML{* writeln "**** run tests on math-engine complete ******************" *};
    83 (*
    84 cd"smltest/IsacKnowledge";
    85         use"atools.sml";
    86  	use"complex.sml";
    87  	use"diff.sml";
    88  	use"diffapp.sml";
    89 (**)
    90 use "Knowledge/integrate.sml"; (*part.*)
    91 
    92 	use"equation.sml";
    93 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
    94  	use"logexp.sml";
    95 *)
    96 use"Knowledge/poly.sml"; (*part.*)
    97 (*
    98  	use"polyminus.sml";
    99  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
   100  			     ? also check others without check 'diff.behav.'*);
   101  	use"rateq.sml";
   102  	use"rational.sml" (*TODO add_fractions_p throws overflow-exn      WN*);
   103  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
   104  			     for simplification search MG 
   105  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
   106  	use"root.sml";
   107  	use"rooteq.sml";
   108  	use"rootrateq.sml";
   109  	use"termorder.sml";
   110  	use"trig.sml";
   111  	use"vect.sml";  
   112 	use"wn.sml";
   113 	use"eqsystem.sml";
   114 	use"biegelinie.sml";
   115 	use"algein.sml";
   116  	cd "../..";
   117 *)
   118 (* TODO
   119 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
   120 
   121 *** Could not find theory file "Foo_Language.thy" in "1language", "/usr/local/isabisac/test/Tools/isac", ".", "$ISABELLE_HOME/src/HOL/Library"
   122 *** Theory loader: the error(s) above occurred while examining theory "Foo_Language"
   123 
   124 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
   125 *)
   126 use_thy "../../Pure/Isar/Test_Parse_Term"
   127 use_thy "../../Pure/Isar/Test_Parsers"
   128 
   129 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   130 (*
   131 val path = "/home/neuper/proto2/testsml2xml/"; 
   132 pbl_hierarchy2file (path ^ "pbl/");
   133 pbls2file          (path ^ "pbl/");
   134 met_hierarchy2file (path ^ "met/");
   135 mets2file          (path ^ "met/");
   136 thy_hierarchy2file (path ^ "thy/");
   137 thes2file          (path ^ "thy/");
   138 cd"sml";
   139 *)
   140 ML{* writeln "**** tested creation of xmldata *************************" *};
   141 
   142 ML{*states:=[];
   143      writeln "=========================================================";
   144      
   145      writeln "**** run systests complete ***************** re-organize!";
   146      writeln "**** run tests on math-engine complete ******************";
   147      writeln "**** run tests on IsacKnowledge complete ****************";
   148      writeln "**** build isac kernel + run tests complete *************";
   149      writeln "**** tested creation of xmldata *************************";
   150 *}
   151 
   152 end