From a2a0e711aff7c442c95a695bc0b6ba543fff0cd2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 20 Aug 2015 15:41:18 -0700 Subject: 2043 Traces were changing based on whether I was loading a .mu file with 'main' or not. --- 010vm.cc | 1 + 040brace.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/010vm.cc b/010vm.cc index c9bfaa5d..92e7d14a 100644 --- a/010vm.cc +++ b/010vm.cc @@ -161,6 +161,7 @@ void setup_recipes() { setup_recipes(); assert(MAX_PRIMITIVE_RECIPES < 200); // level 0 is primitives; until 199 Next_recipe_ordinal = 200; +Recipe_ordinal["main"] = Next_recipe_ordinal++; // End Load Recipes :(before "End Test Run Initialization") assert(Next_recipe_ordinal < 1000); // recipes being tested didn't overflow into test space diff --git a/040brace.cc b/040brace.cc index 113a7517..7819cd58 100644 --- a/040brace.cc +++ b/040brace.cc @@ -45,7 +45,7 @@ void transform_braces(const recipe_ordinal r) { for (long long int index = 0; index < SIZE(Recipe[r].steps); ++index) { const instruction& inst = Recipe[r].steps.at(index); if (inst.label == "{") { - trace("brace") << r << ": push (open, " << index << ")" << end(); + trace("brace") << Recipe[r].name << ": push (open, " << index << ")" << end(); braces.push_back(pair(OPEN, index)); } if (inst.label == "}") { -- cgit 1.4.1-2-gfad0