chiark / gitweb /
improve a msg
[appendix-a6.git] / compute
diff --git a/compute b/compute
index 6400382c45a97e726dcb1cfa35cce2a7d74e6c2b..a58e2505cc5b7f3006732ede785763be54d6b5f9 100755 (executable)
--- a/compute
+++ b/compute
@@ -127,7 +127,7 @@ if ($defcho && $defcho->{Index} > -1) {
        last if $defcho;
     }
     if ($defcho) {
-       print "guessed default option was: $choices[$defcho->{Index}]\n";
+       print "guessed default option: $choices[$defcho->{Index}]\n";
     } else {
        print "could not guess default option, assuming there is none\n";
     }
@@ -280,6 +280,10 @@ for (;;) {
 
     my $tdefeats = $defeats->transitive_closure();
 
+    # this makes the debugging output prettier
+    foreach my $ch (@choices) {
+       $tdefeats->delete_edge($ch,$ch);
+    }
     print "closure graph: $tdefeats\n";
 
     print "\nSchwartz set A.6(6)\n";