Logtk.UtilSourceVarious helpers for the provers.
It provides counters for statistics, basic profilers, helper functions, debugging functions…
time elapsed since start of program, in seconds
Set debug level of Section.root
Current debug level for Section.root
val debugf :
?section:Section.t ->
int ->
('a, Format.formatter, unit, unit) format4 ->
('a -> unit) ->
unitPrint a debug message, with the given section and verbosity level. The message might be dropped if its level is too high.
Same as CCFormat.ksprintf, but without colors
Version of sprintf that adds a colored "error" prefix
Emit warning
Emit warning, with formatting
generalist error that do not really belong elsewhere. Error (where,what) means that error what was raised from where.
error msg raises Error msg
Formatting version of error
Limit the amount of memory available to the process (in MB)
Limit the CPU time available to the process (in seconds)
requires ocaml >= 4.01
comment prefix
finally ~do_ f calls f () and returns its result. If it raises, the same exception is raised; in any case, do_ () is called after f () terminates.
val pp_pair :
?sep:string ->
'a CCFormat.printer ->
'b CCFormat.printer ->
('a * 'b) CCFormat.printerPrint a list without begin/end separators
Print a list with a whitespace in front if it's non empty, or does nothing if the list is empty Default separator is " "
Is this name a proper TSTP identifier, or does it need ' ' around it?
possibly escaping
String escaping for graphviz