File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed
regression/goto-instrument/inline_15 Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ int x ;
3
+
4
+ void h ()
5
+ {
6
+ x = 1 ;
7
+ }
8
+
9
+ void g ()
10
+ {
11
+ h ();
12
+ }
13
+
14
+ void f ()
15
+ {
16
+ g ();
17
+ }
18
+
19
+ int main ()
20
+ {
21
+ f ();
22
+ }
23
+
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --function-inline main --log - --no-caching --verbosity 9
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION SUCCESSFUL$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change @@ -683,8 +683,16 @@ void goto_inlinet::expand_function_call(
683
683
arguments,
684
684
constrain);
685
685
686
+ progress () << " Inserting " << identifier << " into caller" << eom;
687
+ progress () << " Number of instructions: "
688
+ << cached.body .instructions .size () << eom;
689
+
686
690
if (!caching)
687
691
{
692
+ progress () << " Removing " << identifier << " from cache" << eom;
693
+ progress () << " Number of instructions: "
694
+ << cached.body .instructions .size () << eom;
695
+
688
696
inline_log.cleanup (cached.body );
689
697
cache.erase (identifier);
690
698
}
@@ -950,6 +958,11 @@ const goto_inlinet::goto_functiont &goto_inlinet::goto_inline_transitive(
950
958
951
959
goto_functiont &cached=cache[identifier];
952
960
assert (cached.body .empty ());
961
+
962
+ progress () << " Creating copy of " << identifier << eom;
963
+ progress () << " Number of instructions: "
964
+ << goto_function.body .instructions .size () << eom;
965
+
953
966
cached.copy_from (goto_function); // location numbers not changed
954
967
inline_log.copy_from (goto_function.body , cached.body );
955
968
You can’t perform that action at this time.
0 commit comments