@@ -1267,6 +1267,7 @@ class BoosterServerArgs(KoreServerArgs, total=False):
12671267 llvm_kompiled_dir : Required [str | Path ]
12681268 fallback_on : Iterable [str | FallbackReason ] | None
12691269 interim_simplification : int | None
1270+ simplify_each : int | None
12701271 no_post_exec_simplify : bool | None
12711272 log_context : Iterable [str ] | None
12721273 not_log_context : Iterable [str ] | None
@@ -1280,6 +1281,7 @@ class BoosterServer(KoreServer):
12801281
12811282 _fallback_on : list [FallbackReason ] | None
12821283 _interim_simplification : int | None
1284+ _simplify_each : int | None
12831285 _no_post_exec_simplify : bool
12841286 _log_context : list [str ]
12851287 _not_log_context : list [str ]
@@ -1306,6 +1308,7 @@ def __init__(self, args: BoosterServerArgs):
13061308 self ._fallback_on = None
13071309
13081310 self ._interim_simplification = args .get ('interim_simplification' )
1311+ self ._simplify_each = args .get ('simplify_each' )
13091312 self ._no_post_exec_simplify = bool (args .get ('no_post_exec_simplify' ))
13101313 self ._log_context = list (args .get ('log_context' ) or [])
13111314 self ._not_log_context = list (args .get ('not_log_context' ) or [])
@@ -1326,6 +1329,10 @@ def _validate(self) -> None:
13261329
13271330 if self ._interim_simplification and self ._interim_simplification < 0 :
13281331 raise ValueError (f"'interim_simplification' must not be negative, got: { self ._interim_simplification } " )
1332+
1333+ if self ._simplify_each and self ._simplify_each < 0 :
1334+ raise ValueError (f"'simplify_each' must not be negative, got: { self ._simplify_each } " )
1335+
13291336 super ()._validate ()
13301337
13311338 def _extra_args (self ) -> list [str ]:
@@ -1335,6 +1342,8 @@ def _extra_args(self) -> list[str]:
13351342 res += ['--fallback-on' , ',' .join (reason .value for reason in self ._fallback_on )]
13361343 if self ._interim_simplification is not None :
13371344 res += ['--interim-simplification' , str (self ._interim_simplification )]
1345+ if self ._simplify_each is not None :
1346+ res += ['--simplify-each' , str (self ._simplify_each )]
13381347 if self ._no_post_exec_simplify :
13391348 res += ['--no-post-exec-simplify' ]
13401349 res += [arg for glob in self ._log_context for arg in ['--log-context' , glob ]]
@@ -1365,6 +1374,7 @@ def kore_server(
13651374 llvm_definition_dir : Path | None = None ,
13661375 fallback_on : Iterable [str | FallbackReason ] | None = None ,
13671376 interim_simplification : int | None = None ,
1377+ simplify_each : int | None = None ,
13681378 no_post_exec_simplify : bool | None = None ,
13691379 # ---
13701380 bug_report : BugReport | None = None ,
@@ -1388,6 +1398,7 @@ def kore_server(
13881398 'llvm_kompiled_dir' : llvm_definition_dir ,
13891399 'fallback_on' : fallback_on ,
13901400 'interim_simplification' : interim_simplification ,
1401+ 'simplify_each' : simplify_each ,
13911402 'no_post_exec_simplify' : no_post_exec_simplify ,
13921403 ** kore_args ,
13931404 }
0 commit comments