File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ def create_kcfg_explore() -> KCFGExplore:
365
365
max_frontier_parallel = options .max_frontier_parallel ,
366
366
force_sequential = options .force_sequential ,
367
367
assume_defined = options .assume_defined ,
368
+ optimize_kcfg = options .optimize_kcfg ,
368
369
)
369
370
end_time = time .time ()
370
371
_LOGGER .info (f'Proof timing { proof_problem .id } : { end_time - start_time } s' )
Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ class KProveOptions(Options):
381
381
direct_subproof_rules : bool
382
382
maintenance_rate : int
383
383
assume_defined : bool
384
+ optimize_kcfg : bool
384
385
385
386
@staticmethod
386
387
def default () -> dict [str , Any ]:
@@ -390,6 +391,7 @@ def default() -> dict[str, Any]:
390
391
'direct_subproof_rules' : False ,
391
392
'maintenance_rate' : 1 ,
392
393
'assume_defined' : False ,
394
+ 'optimize_kcfg' : False ,
393
395
}
394
396
395
397
@@ -850,6 +852,13 @@ def kprove_args(self) -> ArgumentParser:
850
852
action = 'store_true' ,
851
853
help = 'Use the implication check of the Booster (experimental).' ,
852
854
)
855
+ args .add_argument (
856
+ '--optimize-kcfg' ,
857
+ dest = 'optimize_kcfg' ,
858
+ default = None ,
859
+ action = 'store_true' ,
860
+ help = 'Optimize the constructed KCFG on-the-fly.' ,
861
+ )
853
862
return args
854
863
855
864
@cached_property
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def run_prover(
115
115
maintenance_rate : int = 1 ,
116
116
assume_defined : bool = False ,
117
117
extra_module : KFlatModule | None = None ,
118
+ optimize_kcfg : bool = False ,
118
119
) -> bool :
119
120
prover : APRProver | ImpliesProver
120
121
try :
@@ -131,6 +132,7 @@ def create_prover() -> APRProver:
131
132
direct_subproof_rules = direct_subproof_rules ,
132
133
assume_defined = assume_defined ,
133
134
extra_module = extra_module ,
135
+ optimize_kcfg = optimize_kcfg ,
134
136
)
135
137
136
138
def update_status_bar (_proof : Proof ) -> None :
You can’t perform that action at this time.
0 commit comments