Skip to content

Commit 5b58406

Browse files
committed
fx
1 parent 0430313 commit 5b58406

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

regression/cbmc/map-type/basic1.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ int main()
22
{
33
__CPROVER_map(int, int) my_map;
44

5-
my_map[1] = 10;
6-
my_map[2] = 20;
5+
my_map = __CPROVER_map_update(my_map, 1, 10);
6+
my_map = __CPROVER_map_update(my_map, 2, 20);
77

8-
__CPROVER_assert(my_map[1] == 10, "[1]");
9-
__CPROVER_assert(my_map[2] == 20, "[2]");
8+
__CPROVER_assert(my_map(1) == 10, "[1]");
9+
__CPROVER_assert(my_map(2) == 20, "[2]");
1010
}

src/ansi-c/c_typecheck_expr.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2534,6 +2534,7 @@ void c_typecheck_baset::typecheck_side_effect_function_call(
25342534
function_application_exprt function_application(f_op, expr.arguments());
25352535

25362536
function_application.add_source_location() = expr.source_location();
2537+
function_application.type() = mathematical_function_type.codomain();
25372538

25382539
expr.swap(function_application);
25392540
return;

0 commit comments

Comments
 (0)