File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626 (fprintf port "#<option ~a> " (option-split-indices opt)))])
2727
2828(define (pareto-regimes sorted ctx)
29+ (timeline-event! 'regimes )
2930 (define err-lsts (batch-errors (map alt-expr sorted) (*pcontext*) ctx))
3031 (define branches
3132 (if (null? sorted)
5152;; can insert a timeline break between them.
5253
5354(define (infer-splitpoints branch-exprs alts err-lsts* #:errs [cerrs (hash)] ctx)
54- (timeline-event! 'regimes )
5555 (timeline-push! 'inputs (map (compose ~a alt-expr) alts))
5656 (define sorted-bexprs
5757 (sort branch-exprs (lambda (x y) (< (hash-ref cerrs x -1 ) (hash-ref cerrs y -1 )))))
Original file line number Diff line number Diff line change 442442 `(tr (td ,(~a key) (td ,(~a val)))))))))
443443
444444(define (render-phase-counts alts)
445- (match-define (list (list inputs outputs)) alts)
446- `((dt "Counts " ) (dd ,(~r inputs #:group-sep " " ) " → " ,(~r outputs #:group-sep " " ))))
445+ `((dt "Counts " ) ,@(for/list ([rec (in-list alts)])
446+ (match-define (list inputs outputs) rec)
447+ `(dd ,(~r inputs #:group-sep " " ) " → " ,(~r outputs #:group-sep " " )))))
447448
448449(define (render-phase-alts alts)
449450 `((dt "Alt Table " )
You can’t perform that action at this time.
0 commit comments