File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -342,13 +342,35 @@ StepResult ComponentStep::take(bool prevFailed) {
342
342
343
343
// / Try to figure out what this step is going to be,
344
344
// / after the scope has been established.
345
+ auto bestBindings = CS.determineBestBindings ();
345
346
auto *disjunction = CS.selectDisjunction ();
346
- const bool isSolverStep = !IsSingle;
347
- auto bestBindings = CS.determineBestBindings (isSolverStep);
348
- if (isSolverStep) {
349
- auto &log = getDebugLogger ();
350
- log << " )" << ' \n ' ;
351
- log.indent (0 );
347
+ auto *conjunction = CS.selectConjunction ();
348
+
349
+ if (CS.isDebugMode ()) {
350
+ if (!IsSingle) {
351
+ PrintOptions PO;
352
+ PO.PrintTypesForDebugging = true ;
353
+ if (disjunction) {
354
+ auto &log = getDebugLogger ();
355
+ log.indent (CS.solverState ->depth );
356
+ log << " (disjunction = [" ;
357
+ auto constraints = disjunction->getNestedConstraints ();
358
+ log << constraints[0 ]->getFirstType ()->getString (PO);
359
+ log << " ])\n " ;
360
+ }
361
+ if (conjunction) {
362
+ auto &log = getDebugLogger ();
363
+ log.indent (CS.solverState ->depth );
364
+ log << " (conjunction = [" ;
365
+ auto constraints = conjunction->getNestedConstraints ();
366
+ log << constraints[0 ]->getFirstType ()->getString (PO);
367
+ log << " ])\n " ;
368
+ }
369
+ auto &log = getDebugLogger ();
370
+ log.indent (2 );
371
+ log << " )" << ' \n ' ;
372
+ log.indent (0 );
373
+ }
352
374
}
353
375
354
376
if (CS.shouldAttemptFixes ()) {
You can’t perform that action at this time.
0 commit comments