Remove variable name 'res' from test suite

This commit is contained in:
Marijn Haverbeke 2011-06-25 17:45:49 +02:00
parent c772269f08
commit 781a265b88
19 changed files with 153 additions and 153 deletions

View file

@ -171,8 +171,8 @@ fn find_pre_post_state_call(&fn_ctxt fcx, &prestate pres, &@expr a,
fn find_pre_post_state_exprs(&fn_ctxt fcx, &prestate pres, ast::node_id id,
&vec[@expr] es, controlflow cf) -> bool {
auto res = seq_states(fcx, pres, es);
auto changed = res._0;
auto rs = seq_states(fcx, pres, es);
auto changed = rs._0;
changed = set_prestate_ann(fcx.ccx, id, pres) || changed;
/* if this is a failing call, it sets everything as initialized */
alt (cf) {
@ -183,7 +183,7 @@ fn find_pre_post_state_exprs(&fn_ctxt fcx, &prestate pres, ast::node_id id,
changed;
}
case (_) {
changed = set_poststate_ann(fcx.ccx, id, res._1) || changed;
changed = set_poststate_ann(fcx.ccx, id, rs._1) || changed;
}
}
ret changed;

View file

@ -241,15 +241,15 @@ fn to_vec(&t v) -> vec[uint] {
fn to_str(&t v) -> str {
let uint i = 0u;
let str res = "";
let str rs = "";
while (i < v.nbits) {
res += alt (tritv_get(v, i)) {
rs += alt (tritv_get(v, i)) {
case (dont_care) { "?" }
case (ttrue) { "1" }
case (tfalse) { "0" } };
i += 1u;
}
ret res;
ret rs;
}
//