Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ exprt string_constraint_generatort::add_axioms_for_is_prefix(
const function_application_exprt::argumentst &args=f.arguments();
PRECONDITION(f.type()==bool_typet() || f.type().id()==ID_c_bool);
PRECONDITION(args.size() == 2 || args.size() == 3);
const array_string_exprt s0 = get_string_expr(args[swap_arguments ? 1 : 0]);
const array_string_exprt s1 = get_string_expr(args[swap_arguments ? 0 : 1]);
const array_string_exprt &s0 = get_string_expr(args[swap_arguments ? 1 : 0]);
const array_string_exprt &s1 = get_string_expr(args[swap_arguments ? 0 : 1]);
const exprt offset =
args.size() == 2 ? from_integer(0, s0.length().type()) : args[2];
return typecast_exprt(add_axioms_for_is_prefix(s0, s1, offset), f.type());
Expand Down