File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ int main()
2
2
{
3
3
__CPROVER_map (int , int ) my_map ;
4
4
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 ) ;
7
7
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]" );
10
10
}
Original file line number Diff line number Diff line change @@ -2534,6 +2534,7 @@ void c_typecheck_baset::typecheck_side_effect_function_call(
2534
2534
function_application_exprt function_application (f_op, expr.arguments ());
2535
2535
2536
2536
function_application.add_source_location () = expr.source_location ();
2537
+ function_application.type () = mathematical_function_type.codomain ();
2537
2538
2538
2539
expr.swap (function_application);
2539
2540
return ;
You can’t perform that action at this time.
0 commit comments