From 48e40252b005e3c37e3e5c087daf4f14657295f6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 1 Aug 2015 22:16:09 -0700 Subject: 1913 - save expected response for each sandbox --- 081run_interactive.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '081run_interactive.cc') diff --git a/081run_interactive.cc b/081run_interactive.cc index 1f6c0407..3b0cf32e 100644 --- a/081run_interactive.cc +++ b/081run_interactive.cc @@ -149,7 +149,7 @@ void record_products(const instruction& instruction, const vector for (long long int i = 0; i < SIZE(products); ++i) { // string if (i < SIZE(instruction.products)) { - if (is_string(instruction.products.at(i))) { + if (is_mu_string(instruction.products.at(i))) { assert(scalar(products.at(i))); out << read_mu_string(products.at(i).at(0)) << '\n'; continue; @@ -241,7 +241,7 @@ long long int stringified_value_of_location(long long int address) { return new_mu_string(out.str()); } -bool is_string(const reagent& x) { +bool is_mu_string(const reagent& x) { return SIZE(x.types) == 3 && x.types.at(0) == Type_ordinal["address"] && x.types.at(1) == Type_ordinal["array"] -- cgit 1.4.1-2-gfad0