@@ -57,6 +57,7 @@ import Grisette.Lib.Synth.Reasoning.Parallel.Scheduler.Config
57
57
logger ,
58
58
parallelism ,
59
59
pollIntervalSeconds ,
60
+ referenceNumInsts ,
60
61
restartRunningTimeThresholdSeconds ,
61
62
schedulerRandomSeed ,
62
63
schedulerTimeoutSeconds ,
@@ -387,7 +388,8 @@ printResults Scheduler {config = SchedulerConfig {..}, ..} result = do
387
388
" Num of root programs: " <> pformat numOfRootPrograms,
388
389
" Num of components: " <> pformat numOfComponents,
389
390
" Undetermined ratio: " <> pformat undeterminedRatio,
390
- " Avg component choices: " <> pformat avgCompChoices
391
+ " Avg component choices: " <> pformat avgCompChoices,
392
+ " Number of instructions in reference: " <> maybe " inf" pformat referenceNumInsts
391
393
]
392
394
SolutionFound ParallelSynthesisSolutionFoundResult {.. } -> do
393
395
let elapsedTime =
@@ -405,6 +407,7 @@ printResults Scheduler {config = SchedulerConfig {..}, ..} result = do
405
407
" Undetermined ratio: " <> pformat undeterminedRatio,
406
408
" Avg component choices: " <> pformat avgCompChoices,
407
409
" Min number of instructions: " <> pformat minNumInsts,
410
+ " Number of instructions in reference: " <> maybe " inf" pformat referenceNumInsts,
408
411
" Best solution found with cost "
409
412
<> pformat bestCost
410
413
<> " in "
@@ -463,6 +466,7 @@ writeResultsCSV path result scheduler = do
463
466
" time_to_best_since_scheduler_start" ,
464
467
" time_to_best" ,
465
468
" min_num_instructions" ,
469
+ " num_ref_instructions" ,
466
470
" initial_cost" ,
467
471
" cost" ,
468
472
" num_lattice_nodes" ,
@@ -514,6 +518,7 @@ writeResultsCSV path result scheduler = do
514
518
maybe " inf" show timeToBestSinceSchedulerStart,
515
519
maybe " inf" show timeToBest,
516
520
minNumInstructions,
521
+ maybe " inf" show (referenceNumInsts (config scheduler)),
517
522
show initialCost,
518
523
show cost,
519
524
show numOfNodesInLattice,
0 commit comments