forked from cubicle-model-checker/cubicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.mli
79 lines (59 loc) · 2.49 KB
/
util.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
(**************************************************************************)
(* *)
(* Cubicle *)
(* *)
(* Copyright (C) 2011-2014 *)
(* *)
(* Sylvain Conchon and Alain Mebsout *)
(* Universite Paris-Sud 11 *)
(* *)
(* *)
(* This file is distributed under the terms of the Apache Software *)
(* License version 2.0 *)
(* *)
(**************************************************************************)
(** Utilitaries *)
(** {2 Timers } *)
module TimerSubset : Timer.S
module TimerApply : Timer.S
module TimeFix : Timer.S
module TimeEasyFix : Timer.S
module TimeHardFix : Timer.S
module TimeRP : Timer.S
module TimePre : Timer.S
module TimeSort : Timer.S
module TimeForward : Timer.S
module TimeCheckCand : Timer.S
module TimeFormula : Timer.S
module TimeSimpl : Timer.S
module TimeCertificate : Timer.S
(** {2 Misc } *)
val nb_digits : int -> int
(** Returns the number of digits of a positive integer *)
val set_liberal_gc : unit -> unit
(** Changes garbage collector parameters limit its effect *)
val reset_gc_params : unit -> unit
(** Reset the parameters of the GC to its default values. Call after
{!set_liberal_gc}. *)
val syscall : string -> string
(** Captures the output of a unix command *)
val syscall_full : string -> string * string * Unix.process_status
(** Captures the standard and error output of a unix command with its exit
status *)
val remove_trailing_whitespaces_end : string -> string
type color =
{ c_red : float;
c_green : float;
c_blue : float; }
val red : color
val green : color
val blue : color
val black : color
val white : color
val magenta : color
val hex_color : color -> string
val chromatic : color -> color -> int -> unit -> color
type loc = Lexing.position * Lexing.position
(** Location in file *)
val report_loc : Format.formatter -> loc -> unit
(** Report location on formatter *)