src/Tools/isac/BaseDefinitions/tracing.sml
author Walther Neuper <walther.neuper@jku.at>
Fri, 17 Apr 2020 15:12:19 +0200
changeset 59882 f3782753c805
child 59884 3063a52db028
permissions -rw-r--r--
prep. take apart struct.Celem
walther@59882
     1
(* Title:  BaseDefinitions/tracing.sml
walther@59882
     2
   Author: Walther Neuper
walther@59882
     3
   (c) due to copyright terms
walther@59882
     4
walther@59882
     5
This structure could be dropped due to improved reflection in Isabelle;
walther@59882
     6
but ThmC.sym_thm requires still an identifying string thm_id.
walther@59882
     7
*)
walther@59882
     8
signature TRACING =
walther@59882
     9
sig
walther@59882
    10
(*/------- to Trace from Celem -------\*)
walther@59882
    11
    val trace_calc: bool Unsynchronized.ref
walther@59882
    12
    val trace_rewrite: bool Unsynchronized.ref
walther@59882
    13
(*\------- to Trace from Celem --------/*)
walther@59882
    14
(* ---- for tests only: shifted from below to remove the Warning "unused" at fun.def. --------- *)
walther@59882
    15
  (*NONE*)
walther@59882
    16
(*/-------------------------------------------------------- ! aktivate for Test_Isac BEGIN ---\* )
walther@59882
    17
  (*NONE*)
walther@59882
    18
( *\--- ! aktivate for Test_Isac END ----------------------------------------------------------/*)
walther@59882
    19
end
walther@59882
    20
walther@59882
    21
(**)
walther@59882
    22
structure Trace(**): TRACING(**) =
walther@59882
    23
struct
walther@59882
    24
(**)
walther@59882
    25
walther@59882
    26
(*/------- to Trace from Celem -------\*)
walther@59882
    27
(* trace internal steps of isac's numeral calculations *)
walther@59882
    28
val trace_calc = Unsynchronized.ref false;
walther@59882
    29
(* trace internal steps of isac's rewriter *)
walther@59882
    30
val trace_rewrite = Unsynchronized.ref false;
walther@59882
    31
(* depth of recursion in traces of the rewriter, if trace_rewrite:=true *)
walther@59882
    32
val depth = Unsynchronized.ref 99999;
walther@59882
    33
(* no of rewrites exceeding this int -> NO rewrite *)
walther@59882
    34
val lim_deriv = Unsynchronized.ref 100;
walther@59882
    35
(* switch for checking guhs unique before storing a pbl or met;
walther@59882
    36
   set true at startup (done at begin of ROOT.ML)
walther@59882
    37
   set false for editing IsacKnowledge (done at end of ROOT.ML) *)
walther@59882
    38
val check_guhs_unique = Unsynchronized.ref true;
walther@59882
    39
(*\------- to Trace from Celem --------/*)
walther@59882
    40
walther@59882
    41
(**)end(**)