From 526b56a65067b383187a2b9738703671f2570b82 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Wed, 27 May 2020 11:11:26 -0600 Subject: [PATCH] order generation of variable names in attributed goals after toplevel variables (#465) --- src/prolog/toplevel.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/prolog/toplevel.pl b/src/prolog/toplevel.pl index 17561ece..f3d6bc12 100644 --- a/src/prolog/toplevel.pl +++ b/src/prolog/toplevel.pl @@ -240,9 +240,7 @@ write_eqs_and_read_input(B, VarList) :- gather_query_vars(VarList, OrigVars), gather_equations(NewVarList, OrigVars, Equations), append(Equations, AttrGoals, Goals), - term_variables(Equations, EqVars0), - append([EqVars0, AttrVars, AttrGoalVars], Vars1), - charsio:extend_var_list(Vars1, VarList, NewVarList0, fabricated), + charsio:extend_var_list(AttrGoalVars, VarList, NewVarList0, fabricated), ( bb_get('$first_answer', true) -> write(' '), bb_put('$first_answer', false) -- 2.54.0