-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathStats.fs
More file actions
40 lines (31 loc) · 1.1 KB
/
Stats.fs
File metadata and controls
40 lines (31 loc) · 1.1 KB
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
module Stats
open System.Collections.Generic
open Microsoft.Z3
type Statistics () =
member val propagations = ref 0
member val conflicts = ref 0
member val decisions = ref 0
member val modelAssignments = ref 0
member val intrThLits = ref 0
member val intrNumerals = ref 0
member r.Implication() =
incr r.propagations
member r.Conflict() =
incr r.conflicts
member r.Decision() =
incr r.decisions
member r.ModelAssignment() =
incr r.modelAssignments
member r.NewThLiteral() =
incr r.intrThLits
member r.NewNumeral() =
incr r.intrNumerals
member r.Print() =
printfn "+------- Statistics --------+"
printfn "| Decisions : % 10d |" (!r.decisions)
printfn "| Propagations : % 10d |" (!r.propagations)
printfn "| Conflicts : % 10d |" (!r.conflicts)
printfn "| MAssignments : % 10d |" (!r.modelAssignments)
printfn "| Theory Lits : % 10d |" (!r.intrThLits)
printfn "| Numerals : % 10d |" (!r.intrNumerals)
printfn "+---------------------------+"