Skip to content

Commit 9509685

Browse files
authored
Merge pull request #6250 from diffblue/goto_program_return_output
rename RETURN -> SET_RETURN_VALUE
2 parents 026738b + 55ab09b commit 9509685

37 files changed

+132
-130
lines changed

jbmc/src/java_bytecode/replace_java_nondet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static bool is_return_with_variable(
160160
const goto_programt::instructiont &instr,
161161
const irep_idt &identifier)
162162
{
163-
if(!instr.is_return())
163+
if(!instr.is_set_return_value())
164164
{
165165
return false;
166166
}
@@ -271,7 +271,7 @@ static goto_programt::targett check_and_replace_target(
271271
instr.turn_into_skip();
272272
});
273273

274-
if(target_instruction->is_return())
274+
if(target_instruction->is_set_return_value())
275275
{
276276
const auto &nondet_var = target_instruction->return_value();
277277

jbmc/unit/java_bytecode/java_replace_nondet/replace_nondet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void validate_nondet_method_removed(
4545
}
4646
}
4747

48-
if(inst.is_return())
48+
if(inst.is_set_return_value())
4949
{
5050
const auto &return_value = inst.return_value();
5151
if(return_value.id() == ID_side_effect)
@@ -94,7 +94,7 @@ void validate_nondets_converted(
9494
exprt target_expression =
9595
(inst.is_assign()
9696
? inst.get_assign().rhs()
97-
: inst.is_return() ? inst.return_value() : inst.get_code());
97+
: inst.is_set_return_value() ? inst.return_value() : inst.get_code());
9898

9999
if(
100100
const auto side_effect =

src/analyses/custom_bitvector_analysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ void custom_bitvector_domaint::transform(
540540
case THROW:
541541
DATA_INVARIANT(false, "Exceptions must be removed before analysis");
542542
break;
543-
case RETURN:
544-
DATA_INVARIANT(false, "Returns must be removed before analysis");
543+
case SET_RETURN_VALUE:
544+
DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
545545
break;
546546
case ATOMIC_BEGIN: // Ignoring is a valid over-approximation
547547
case ATOMIC_END: // Ignoring is a valid over-approximation

src/analyses/escape_analysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ void escape_domaint::transform(
255255
case THROW:
256256
DATA_INVARIANT(false, "Exceptions must be removed before analysis");
257257
break;
258-
case RETURN:
259-
DATA_INVARIANT(false, "Returns must be removed before analysis");
258+
case SET_RETURN_VALUE:
259+
DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
260260
break;
261261
case ATOMIC_BEGIN: // Ignoring is a valid over-approximation
262262
case ATOMIC_END: // Ignoring is a valid over-approximation

src/analyses/global_may_alias.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ void global_may_alias_domaint::transform(
134134
case THROW:
135135
DATA_INVARIANT(false, "Exceptions must be removed before analysis");
136136
break;
137-
case RETURN:
138-
DATA_INVARIANT(false, "Returns must be removed before analysis");
137+
case SET_RETURN_VALUE:
138+
DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
139139
break;
140140
case ATOMIC_BEGIN: // Ignoring is a valid over-approximation
141141
case ATOMIC_END: // Ignoring is a valid over-approximation

src/analyses/goto_check.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ void goto_checkt::goto_check(
20322032
// the call might invalidate any assertion
20332033
assertions.clear();
20342034
}
2035-
else if(i.is_return())
2035+
else if(i.is_set_return_value())
20362036
{
20372037
check(i.return_value());
20382038
// the return value invalidate any assertion

src/analyses/goto_rw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ void goto_rw(
771771
target->get_condition());
772772
break;
773773

774-
case RETURN:
774+
case SET_RETURN_VALUE:
775775
rw_set.get_objects_rec(
776776
function, target, rw_range_sett::get_modet::READ, target->return_value());
777777
break;

src/analyses/interval_domain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ void interval_domaint::transform(
115115
case THROW:
116116
DATA_INVARIANT(false, "Exceptions must be removed before analysis");
117117
break;
118-
case RETURN:
119-
DATA_INVARIANT(false, "Returns must be removed before analysis");
118+
case SET_RETURN_VALUE:
119+
DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
120120
break;
121121
case ATOMIC_BEGIN: // Ignoring is a valid over-approximation
122122
case ATOMIC_END: // Ignoring is a valid over-approximation

src/analyses/invariant_set_domain.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ void invariant_set_domaint::transform(
5050
}
5151
break;
5252

53-
case RETURN:
54-
// ignore
55-
break;
53+
case SET_RETURN_VALUE:
54+
// ignore
55+
break;
5656

57-
case ASSIGN:
57+
case ASSIGN:
5858
{
5959
const code_assignt &assignment = from_l->get_assign();
6060
invariant_set.assignment(assignment.lhs(), assignment.rhs());

src/analyses/local_bitvector_analysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ void local_bitvector_analysist::build()
307307
DATA_INVARIANT(false, "Exceptions must be removed before analysis");
308308
break;
309309
#endif
310-
case RETURN:
310+
case SET_RETURN_VALUE:
311311
#if 0
312-
DATA_INVARIANT(false, "Returns must be removed before analysis");
312+
DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
313313
break;
314314
#endif
315315
case ATOMIC_BEGIN: // Ignoring is a valid over-approximation

0 commit comments

Comments
 (0)