@@ -3,13 +3,12 @@ using SoleLogics
33using SoleLogics. ManyValuedLogics
44using SoleReasoners
55using StatsBase
6- import SoleBase: initrng
76import SoleLogics: sample
87
98myalphabet = Atom .([" p" , " q" , " r" ])
109
1110min_height = 1
12- max_height = 7
11+ max_height = 6
1312max_it = 99999
1413max_avg = 200
1514max_timeout = 60 # seconds
@@ -52,7 +51,7 @@ append!(
5251mvhsopweights = [8 , 8 , 8 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ]
5352
5453using SoleLogics. ManyValuedLogics: booleanalgebra, G3, Ł3, G4, Ł4, H4
55- using SoleLogics. ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6
54+ using SoleLogics. ManyValuedLogics: G6, H6_1, H6_2, H6_3, H6, H9
5655
5756algebras = [
5857 (" BA" , booleanalgebra),
@@ -61,12 +60,12 @@ algebras = [
6160 (" G4" , G4 ),
6261 (" Ł4" , Ł4 ),
6362 (" H4" , H4 ),
64- # ("G5 ", G5 ),
65- # ("G6 ", G6 ),
66- # ("H6_1 ", H6_1 ),
67- # ("H6_2 ", H6_2 ),
68- # ("H6_3 ", H6_3 ),
69- # ("H6 ", H6 )
63+ ( " G6 " , G6 ),
64+ ( " H6_1 " , H6_1 ),
65+ ( " H6_2 " , H6_2 ),
66+ ( " H6_3 " , H6_3 ),
67+ ( " H6 " , H6 ),
68+ ( " H9 " , H9 )
7069]
7170
7271# Latex
@@ -83,7 +82,7 @@ for a in algebras
8382 unsats = zeros (Int64, max_height- min_height+ 1 ) # unsat for each height
8483 times = zeros (Float16, max_height- min_height+ 1 ) # times for each height
8584
86- rng = initrng ( Random. GLOBAL_RNG)
85+ rng = Random. GLOBAL_RNG
8786 aot = vcat (myalphabet,getdomain (a[2 ])) # atoms or truths
8887 aotweights = StatsBase. uweights (length (myalphabet)+ length (getdomain (a[2 ])))
8988 aotpicker = (rng)-> StatsBase. sample (rng, aot, aotweights)
@@ -182,6 +181,7 @@ for a in algebras
182181 print (" ($(i+ min_height- 1 ) ,$(times[i]) )" )
183182 end
184183 println (" \n\n " )
184+ flush (stdout )
185185end
186186
187187# Latex
0 commit comments