Skip to content

Commit acc42c5

Browse files
author
Daniel Kroening
authored
Merge pull request #977 from peterschrammel/bugfix/mm-io-instruction-function
Assign function in instructions introduced by MM I/O instrumentation
2 parents 3433dc6 + 2f29c99 commit acc42c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/goto-programs/mm_io.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void mm_io(
5353
{
5454
const dereference_exprt &d=*deref_expr_r.begin();
5555
source_locationt source_location=it->source_location;
56+
irep_idt function=it->function;
5657
code_function_callt fc;
5758
const code_typet &ct=to_code_type(mm_io_r.type());
5859

@@ -72,6 +73,7 @@ void mm_io(
7273
goto_function.body.insert_before_swap(it);
7374
it->make_function_call(fc);
7475
it->source_location=source_location;
76+
it->function=function;
7577
it++;
7678
}
7779
}
@@ -82,6 +84,7 @@ void mm_io(
8284
{
8385
const dereference_exprt &d=to_dereference_expr(a.lhs());
8486
source_locationt source_location=it->source_location;
87+
irep_idt function=it->function;
8588
code_function_callt fc;
8689
const code_typet &ct=to_code_type(mm_io_w.type());
8790
const typet &pt=ct.parameters()[0].type();
@@ -96,6 +99,7 @@ void mm_io(
9699
goto_function.body.insert_before_swap(it);
97100
it->make_function_call(fc);
98101
it->source_location=source_location;
102+
it->function=function;
99103
it++;
100104
}
101105
}

0 commit comments

Comments
 (0)