about summary refs log tree commit diff stats
path: root/059shape_shifting_recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-09 20:11:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-09 20:11:02 -0800
commit27bf5c95a27a55a459363b8e09d64e1e773a233d (patch)
tree869af2e144f47d84f040280d6bc8221a530df860 /059shape_shifting_recipe.cc
parenta8c22e4a055f75aa7af9f91e849b6b59aed84d5c (diff)
downloadmu-27bf5c95a27a55a459363b8e09d64e1e773a233d.tar.gz
2642
Diffstat (limited to '059shape_shifting_recipe.cc')
-rw-r--r--059shape_shifting_recipe.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc
index dcd041ac..754d9e77 100644
--- a/059shape_shifting_recipe.cc
+++ b/059shape_shifting_recipe.cc
@@ -68,11 +68,9 @@ result.original_name = result.name;
 
 :(before "End Instruction Dispatch(inst, best_score)")
 if (best_score == -1) {
-  trace(9992, "transform") << "no variant found; searching for variant with suitable type ingredients" << end();
-//?   cerr << "no variant found for " << inst.name << "; searching for variant with suitable type ingredients" << '\n';
+  trace(9992, "transform") << "no variant found; checking for variant with suitable type ingredients" << end();
   recipe_ordinal exemplar = pick_matching_shape_shifting_variant(variants, inst, best_score);
   if (exemplar) {
-//?     cerr << "specializing " << inst.name << '\n';
     trace(9992, "transform") << "found variant to specialize: " << exemplar << ' ' << get(Recipe, exemplar).name << end();
     recipe_ordinal new_recipe_ordinal = new_variant(exemplar, inst, caller_recipe);
     if (new_recipe_ordinal == 0) goto done_constructing_variant;
@@ -128,7 +126,7 @@ recipe_ordinal pick_matching_shape_shifting_variant(vector<recipe_ordinal>& vari
   for (long long int i = 0; i < SIZE(variants); ++i) {
     if (variants.at(i) == -1) continue;  // ghost from a previous test
 //?     cerr << "-- variant " << i << "\n" << debug_string(get(Recipe, variants.at(i)));
-    trace(9992, "transform") << "checking shape-shifting variant " << i << end();
+    trace(9992, "transform") << "checking shape-shifting variant " << i << ": " << header_label(variants.at(i)) << end();
     long long int current_score = shape_shifting_variant_score(inst, variants.at(i));
     trace(9992, "transform") << "final score: " << current_score << end();
 //?     cerr << get(Recipe, variants.at(i)).name << ": " << current_score << '\n';