From 504292f6f1a283af39de305879b50f16d6180caa Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 3 Nov 2017 18:01:59 -0700 Subject: 4106 --- 054static_dispatch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '054static_dispatch.cc') diff --git a/054static_dispatch.cc b/054static_dispatch.cc index 69dc30bd..8a026d90 100644 --- a/054static_dispatch.cc +++ b/054static_dispatch.cc @@ -342,10 +342,10 @@ const recipe& best_variant(const instruction& inst, vector& cand int min_index = 0; for (int i = 0; i < SIZE(candidates); ++i) { const recipe& candidate = get(Recipe, candidates.at(i)); - // prefer functions without extra or missing ingredients or products + // prefer variants without extra or missing ingredients or products int score = abs(SIZE(candidate.products)-SIZE(inst.products)) + abs(SIZE(candidate.ingredients)-SIZE(inst.ingredients)); - // prefer functions with non-address ingredients or products + // prefer variants with non-address ingredients or products for (int j = 0; j < SIZE(candidate.ingredients); ++j) { if (is_mu_address(candidate.ingredients.at(j))) ++score; -- cgit 1.4.1-2-gfad0