@@ -351,6 +351,14 @@ bool ConstraintSystem::simplify() {
351
351
log << " (considering -> " ;
352
352
constraint->print (log , &getASTContext ().SourceMgr );
353
353
log << " \n " ;
354
+
355
+ // {Dis, Con}junction are returned unsolved in \c simplifyConstraint() and
356
+ // handled separately by solver steps.
357
+ if (constraint->getKind () != ConstraintKind::Disjunction &&
358
+ constraint->getKind () != ConstraintKind::Conjunction) {
359
+ log .indent (solverState->getCurrentIndent () + 2 )
360
+ << " (simplification result:\n " ;
361
+ }
354
362
}
355
363
356
364
// Simplify this constraint.
@@ -359,6 +367,7 @@ bool ConstraintSystem::simplify() {
359
367
retireFailedConstraint (constraint);
360
368
if (isDebugMode ()) {
361
369
auto &log = llvm::errs ();
370
+ log .indent (solverState->getCurrentIndent () + 2 ) << " )\n " ;
362
371
log .indent (solverState->getCurrentIndent () + 2 ) << " (outcome: error)\n " ;
363
372
}
364
373
break ;
@@ -369,6 +378,7 @@ bool ConstraintSystem::simplify() {
369
378
retireConstraint (constraint);
370
379
if (isDebugMode ()) {
371
380
auto &log = llvm::errs ();
381
+ log .indent (solverState->getCurrentIndent () + 2 ) << " )\n " ;
372
382
log .indent (solverState->getCurrentIndent () + 2 )
373
383
<< " (outcome: simplified)\n " ;
374
384
}
@@ -379,6 +389,7 @@ bool ConstraintSystem::simplify() {
379
389
++solverState->NumUnsimplifiedConstraints ;
380
390
if (isDebugMode ()) {
381
391
auto &log = llvm::errs ();
392
+ log .indent (solverState->getCurrentIndent () + 2 ) << " )\n " ;
382
393
log .indent (solverState->getCurrentIndent () + 2 )
383
394
<< " (outcome: unsolved)\n " ;
384
395
}
0 commit comments