Test the callgraph directly for the missing edge.
[oota-llvm.git] / test / Transforms / PruneEH / 2008-09-05-CGUpdate.ll
1 ; RUN: llvm-as < %s | opt -prune-eh -inline -callgraph -disable-output |& \
2 ; RUN:   grep {Calls.*ce3806g__fxio__put__put_int64__4.1339} | count 2
3         %struct.FRAME.ce3806g = type { %struct.string___XUB, %struct.string___XUB, %struct.string___XUB, %struct.string___XUB }
4         %struct.FRAME.ce3806g__fxio__put__4 = type { i32, i32, i32, %struct.system__file_control_block__pstring*, i32, i32, i8 }
5         %struct.RETURN = type { i8, i32 }
6         %struct.ada__streams__root_stream_type = type { %struct.ada__tags__dispatch_table* }
7         %struct.ada__tags__dispatch_table = type { [1 x i32] }
8         %struct.ada__tags__select_specific_data = type { i32, %struct.ada__tags__select_specific_data_element }
9         %struct.ada__tags__select_specific_data_element = type { i32, i8 }
10         %struct.ada__tags__type_specific_data = type { i32, i32, [2147483647 x i8]*, [2147483647 x i8]*, %struct.ada__tags__dispatch_table*, i8, i32, i32, i32, i32, [2 x %struct.ada__tags__dispatch_table*] }
11         %struct.ada__text_io__text_afcb = type { %struct.system__file_control_block__afcb, i32, i32, i32, i32, i32, %struct.ada__text_io__text_afcb*, i8, i8 }
12         %struct.exception = type { i8, i8, i32, i8*, i8*, i32, i8* }
13         %struct.long_long_float___PAD = type { x86_fp80, [1 x i32] }
14         %struct.string___XUB = type { i32, i32 }
15         %struct.system__file_control_block__afcb = type { %struct.ada__streams__root_stream_type, i32, %struct.system__file_control_block__pstring, %struct.system__file_control_block__pstring, i8, i8, i8, i8, i8, i8, i8, %struct.system__file_control_block__afcb*, %struct.system__file_control_block__afcb* }
16         %struct.system__file_control_block__pstring = type { i8*, %struct.string___XUB* }
17         %struct.system__finalization_implementation__limited_record_controller = type { %struct.system__finalization_root__root_controlled, %struct.system__finalization_root__root_controlled* }
18         %struct.system__finalization_implementation__record_controller = type { %struct.system__finalization_implementation__limited_record_controller, i32 }
19         %struct.system__finalization_root__empty_root_controlled = type { %struct.ada__tags__dispatch_table* }
20         %struct.system__finalization_root__root_controlled = type { %struct.ada__streams__root_stream_type, %struct.system__finalization_root__root_controlled*, %struct.system__finalization_root__root_controlled* }
21         %struct.system__secondary_stack__mark_id = type { i32, i32 }
22         %struct.system__standard_library__exception_data = type { i8, i8, i32, i32, %struct.system__standard_library__exception_data*, i32, void ()* }
23 @.str = internal constant [12 x i8] c"system.ads\00\00"         ; <[12 x i8]*> [#uses=1]
24 @.str1 = internal constant [14 x i8] c"a-tifiio.adb\00\00"              ; <[14 x i8]*> [#uses=1]
25 @system__soft_links__abort_undefer = external global void ()*           ; <void ()**> [#uses=6]
26 @.str2 = internal constant [47 x i8] c"a-tifiio.adb:327 instantiated at ce3806g.adb:52"         ; <[47 x i8]*> [#uses=1]
27 @C.354.2200 = internal constant %struct.string___XUB { i32 1, i32 47 }          ; <%struct.string___XUB*> [#uses=1]
28 @ada__io_exceptions__data_error = external global %struct.exception             ; <%struct.exception*> [#uses=1]
29 @constraint_error = external global %struct.exception           ; <%struct.exception*> [#uses=2]
30 @__gnat_all_others_value = external constant i32                ; <i32*> [#uses=21]
31 @.str3 = internal constant [10 x i8] c"0123456789"              ; <[10 x i8]*> [#uses=2]
32 @ada__text_io__current_out = external global %struct.ada__text_io__text_afcb*           ; <%struct.ada__text_io__text_afcb**> [#uses=1]
33 @.str4 = internal constant [126 x i8] c"CHECK THAT FIXED_IO PUT OPERATES ON FILES OF MODE OUT_FILE AND IF NO FILE IS SPECIFIED THE CURRENT DEFAULT OUTPUT FILE IS USED"         ; <[126 x i8]*> [#uses=1]
34 @C.131.1559 = internal constant %struct.string___XUB { i32 1, i32 126 }         ; <%struct.string___XUB*> [#uses=1]
35 @.str5 = internal constant [7 x i8] c"CE3806G"          ; <[7 x i8]*> [#uses=1]
36 @C.132.1562 = internal constant %struct.string___XUB { i32 1, i32 7 }           ; <%struct.string___XUB*> [#uses=1]
37 @incompleteF.1176.b = internal global i1 false          ; <i1*> [#uses=2]
38 @incomplete.1177 = internal global %struct.exception { i8 0, i8 65, i32 23, i8* getelementptr ([23 x i8]* @incompleteE.1174, i32 0, i32 0), i8* null, i32 0, i8* null }         ; <%struct.exception*> [#uses=15]
39 @incompleteE.1174 = internal global [23 x i8] c"CE3806G.B_1.INCOMPLETE\00"              ; <[23 x i8]*> [#uses=1]
40 @.str6 = internal constant [0 x i8] zeroinitializer             ; <[0 x i8]*> [#uses=1]
41 @C.136.1568 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
42 @C.137.1571 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
43 @.str7 = internal constant [50 x i8] c"USE_ERROR RAISED ON TEXT CREATE WITH OUT_FILE MODE"              ; <[50 x i8]*> [#uses=1]
44 @C.139.1577 = internal constant %struct.string___XUB { i32 1, i32 50 }          ; <%struct.string___XUB*> [#uses=1]
45 @.str8 = internal constant [14 x i8] c"ce3806g.adb:65"          ; <[14 x i8]*> [#uses=1]
46 @C.140.1580 = internal constant %struct.string___XUB { i32 1, i32 14 }          ; <%struct.string___XUB*> [#uses=1]
47 @.str9 = internal constant [51 x i8] c"NAME_ERROR RAISED ON TEXT CREATE WITH OUT_FILE MODE"             ; <[51 x i8]*> [#uses=1]
48 @C.143.1585 = internal constant %struct.string___XUB { i32 1, i32 51 }          ; <%struct.string___XUB*> [#uses=1]
49 @.str10 = internal constant [14 x i8] c"ce3806g.adb:69"         ; <[14 x i8]*> [#uses=1]
50 @C.144.1588 = internal constant %struct.string___XUB { i32 1, i32 14 }          ; <%struct.string___XUB*> [#uses=1]
51 @C.146.1592 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
52 @C.147.1595 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
53 @C.153.1609 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
54 @C.154.1612 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
55 @.str12 = internal constant [47 x i8] c"USE_ERROR RAISED ON TEXT OPEN WITH IN_FILE MODE"                ; <[47 x i8]*> [#uses=1]
56 @C.156.1618 = internal constant %struct.string___XUB { i32 1, i32 47 }          ; <%struct.string___XUB*> [#uses=1]
57 @.str13 = internal constant [14 x i8] c"ce3806g.adb:88"         ; <[14 x i8]*> [#uses=1]
58 @C.157.1621 = internal constant %struct.string___XUB { i32 1, i32 14 }          ; <%struct.string___XUB*> [#uses=1]
59 @C.159.1627 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
60 @C.160.1630 = internal constant %struct.string___XUB { i32 1, i32 0 }           ; <%struct.string___XUB*> [#uses=1]
61 @.str14 = internal constant [33 x i8] c"VALUE INCORRECT - FIXED FROM FILE"              ; <[33 x i8]*> [#uses=1]
62 @C.162.1637 = internal constant %struct.string___XUB { i32 1, i32 33 }          ; <%struct.string___XUB*> [#uses=1]
63 @.str15 = internal constant [36 x i8] c"VALUE INCORRECT - FIXED FROM DEFAULT"           ; <[36 x i8]*> [#uses=1]
64 @C.164.1642 = internal constant %struct.string___XUB { i32 1, i32 36 }          ; <%struct.string___XUB*> [#uses=1]
65 @ada__io_exceptions__use_error = external global %struct.exception              ; <%struct.exception*> [#uses=4]
66 @ada__io_exceptions__name_error = external global %struct.exception             ; <%struct.exception*> [#uses=2]
67
68 define void @_ada_ce3806g() {
69 entry:
70         %0 = alloca %struct.system__file_control_block__pstring, align 8                ; <%struct.system__file_control_block__pstring*> [#uses=3]
71         %1 = alloca %struct.system__file_control_block__pstring, align 8                ; <%struct.system__file_control_block__pstring*> [#uses=3]
72         %2 = alloca %struct.system__file_control_block__pstring, align 8                ; <%struct.system__file_control_block__pstring*> [#uses=3]
73         %3 = alloca %struct.system__file_control_block__pstring, align 8                ; <%struct.system__file_control_block__pstring*> [#uses=3]
74         %FRAME.356 = alloca %struct.FRAME.ce3806g               ; <%struct.FRAME.ce3806g*> [#uses=20]
75         call void @report__test( i8* getelementptr ([7 x i8]* @.str5, i32 0, i32 0), %struct.string___XUB* @C.132.1562, i8* getelementptr ([126 x i8]* @.str4, i32 0, i32 0), %struct.string___XUB* @C.131.1559 )
76         %4 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 3              ; <%struct.string___XUB*> [#uses=1]
77         call void @system__secondary_stack__ss_mark( %struct.string___XUB* noalias sret %4 )
78         %.b = load i1* @incompleteF.1176.b              ; <i1> [#uses=1]
79         br i1 %.b, label %bb11, label %bb
80
81 bb:             ; preds = %entry
82         invoke void @system__exception_table__register_exception( %struct.system__standard_library__exception_data* bitcast (%struct.exception* @incomplete.1177 to %struct.system__standard_library__exception_data*) )
83                         to label %invcont unwind label %lpad
84
85 invcont:                ; preds = %bb
86         store i1 true, i1* @incompleteF.1176.b
87         br label %bb11
88
89 bb11:           ; preds = %entry, %invcont
90         %5 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 2              ; <%struct.string___XUB*> [#uses=1]
91         invoke void @system__secondary_stack__ss_mark( %struct.string___XUB* noalias sret %5 )
92                         to label %invcont12 unwind label %lpad228
93
94 invcont12:              ; preds = %bb11
95         invoke void @report__legal_file_name( %struct.system__file_control_block__pstring* noalias sret %3, i32 1, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.137.1571 )
96                         to label %invcont17 unwind label %lpad232
97
98 invcont17:              ; preds = %invcont12
99         %elt18 = getelementptr %struct.system__file_control_block__pstring* %3, i32 0, i32 0            ; <i8**> [#uses=1]
100         %val19 = load i8** %elt18, align 8              ; <i8*> [#uses=1]
101         %elt20 = getelementptr %struct.system__file_control_block__pstring* %3, i32 0, i32 1            ; <%struct.string___XUB**> [#uses=1]
102         %val21 = load %struct.string___XUB** %elt20             ; <%struct.string___XUB*> [#uses=1]
103         %6 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__create( %struct.ada__text_io__text_afcb* null, i8 2, i8* %val19, %struct.string___XUB* %val21, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.136.1568 )
104                         to label %invcont26 unwind label %lpad232               ; <%struct.ada__text_io__text_afcb*> [#uses=2]
105
106 invcont26:              ; preds = %invcont17
107         %7 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 2, i32 0               ; <i32*> [#uses=1]
108         %8 = load i32* %7, align 8              ; <i32> [#uses=1]
109         %9 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 2, i32 1               ; <i32*> [#uses=1]
110         %10 = load i32* %9, align 4             ; <i32> [#uses=1]
111         invoke void @system__secondary_stack__ss_release( i32 %8, i32 %10 )
112                         to label %bb73 unwind label %lpad228
113
114 bb32:           ; preds = %lpad232
115         call void @__gnat_begin_handler( i8* %eh_ptr233 ) nounwind
116         %11 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
117         invoke void %11( )
118                         to label %invcont33 unwind label %lpad240
119
120 invcont33:              ; preds = %bb32
121         invoke void @report__not_applicable( i8* getelementptr ([50 x i8]* @.str7, i32 0, i32 0), %struct.string___XUB* @C.139.1577 )
122                         to label %invcont38 unwind label %lpad240
123
124 invcont38:              ; preds = %invcont33
125         invoke void @__gnat_raise_exception( %struct.system__standard_library__exception_data* bitcast (%struct.exception* @incomplete.1177 to %struct.system__standard_library__exception_data*), i8* getelementptr ([14 x i8]* @.str8, i32 0, i32 0), %struct.string___XUB* @C.140.1580 ) noreturn
126                         to label %invcont43 unwind label %lpad240
127
128 invcont43:              ; preds = %invcont38
129         unreachable
130
131 bb47:           ; preds = %ppad291
132         call void @__gnat_begin_handler( i8* %eh_ptr233 ) nounwind
133         %12 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
134         invoke void %12( )
135                         to label %invcont49 unwind label %lpad248
136
137 invcont49:              ; preds = %bb47
138         invoke void @report__not_applicable( i8* getelementptr ([51 x i8]* @.str9, i32 0, i32 0), %struct.string___XUB* @C.143.1585 )
139                         to label %invcont54 unwind label %lpad248
140
141 invcont54:              ; preds = %invcont49
142         invoke void @__gnat_raise_exception( %struct.system__standard_library__exception_data* bitcast (%struct.exception* @incomplete.1177 to %struct.system__standard_library__exception_data*), i8* getelementptr ([14 x i8]* @.str10, i32 0, i32 0), %struct.string___XUB* @C.144.1588 ) noreturn
143                         to label %invcont59 unwind label %lpad248
144
145 invcont59:              ; preds = %invcont54
146         unreachable
147
148 bb73:           ; preds = %invcont26
149         invoke void @report__legal_file_name( %struct.system__file_control_block__pstring* noalias sret %2, i32 2, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.147.1595 )
150                         to label %invcont78 unwind label %lpad228
151
152 invcont78:              ; preds = %bb73
153         %elt79 = getelementptr %struct.system__file_control_block__pstring* %2, i32 0, i32 0            ; <i8**> [#uses=1]
154         %val80 = load i8** %elt79, align 8              ; <i8*> [#uses=1]
155         %elt81 = getelementptr %struct.system__file_control_block__pstring* %2, i32 0, i32 1            ; <%struct.string___XUB**> [#uses=1]
156         %val82 = load %struct.string___XUB** %elt81             ; <%struct.string___XUB*> [#uses=1]
157         %13 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__create( %struct.ada__text_io__text_afcb* null, i8 2, i8* %val80, %struct.string___XUB* %val82, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.146.1592 )
158                         to label %invcont87 unwind label %lpad228               ; <%struct.ada__text_io__text_afcb*> [#uses=2]
159
160 invcont87:              ; preds = %invcont78
161         invoke void @ada__text_io__set_output( %struct.ada__text_io__text_afcb* %13 )
162                         to label %invcont88 unwind label %lpad228
163
164 invcont88:              ; preds = %invcont87
165         %14 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 1             ; <%struct.string___XUB*> [#uses=1]
166         invoke void @system__secondary_stack__ss_mark( %struct.string___XUB* noalias sret %14 )
167                         to label %invcont89 unwind label %lpad228
168
169 invcont89:              ; preds = %invcont88
170         invoke fastcc void @ce3806g__fxio__put.1149( %struct.ada__text_io__text_afcb* %6 )
171                         to label %bb94 unwind label %lpad252
172
173 bb94:           ; preds = %invcont89
174         invoke fastcc void @ce3806g__fxio__put__2.1155( )
175                         to label %invcont95 unwind label %lpad252
176
177 invcont95:              ; preds = %bb94
178         %15 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__close( %struct.ada__text_io__text_afcb* %6 )
179                         to label %invcont96 unwind label %lpad252               ; <%struct.ada__text_io__text_afcb*> [#uses=1]
180
181 invcont96:              ; preds = %invcont95
182         %16 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 0             ; <%struct.string___XUB*> [#uses=1]
183         invoke void @system__secondary_stack__ss_mark( %struct.string___XUB* noalias sret %16 )
184                         to label %invcont97 unwind label %lpad252
185
186 invcont97:              ; preds = %invcont96
187         invoke void @report__legal_file_name( %struct.system__file_control_block__pstring* noalias sret %1, i32 1, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.154.1612 )
188                         to label %invcont102 unwind label %lpad256
189
190 invcont102:             ; preds = %invcont97
191         %elt103 = getelementptr %struct.system__file_control_block__pstring* %1, i32 0, i32 0           ; <i8**> [#uses=1]
192         %val104 = load i8** %elt103, align 8            ; <i8*> [#uses=1]
193         %elt105 = getelementptr %struct.system__file_control_block__pstring* %1, i32 0, i32 1           ; <%struct.string___XUB**> [#uses=1]
194         %val106 = load %struct.string___XUB** %elt105           ; <%struct.string___XUB*> [#uses=1]
195         %17 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__open( %struct.ada__text_io__text_afcb* %15, i8 0, i8* %val104, %struct.string___XUB* %val106, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.153.1609 )
196                         to label %invcont111 unwind label %lpad256              ; <%struct.ada__text_io__text_afcb*> [#uses=2]
197
198 invcont111:             ; preds = %invcont102
199         %18 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 0, i32 0              ; <i32*> [#uses=1]
200         %19 = load i32* %18, align 8            ; <i32> [#uses=1]
201         %20 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 0, i32 1              ; <i32*> [#uses=1]
202         %21 = load i32* %20, align 4            ; <i32> [#uses=1]
203         invoke void @system__secondary_stack__ss_release( i32 %19, i32 %21 )
204                         to label %bb143 unwind label %lpad252
205
206 bb117:          ; preds = %lpad256
207         call void @__gnat_begin_handler( i8* %eh_ptr257 ) nounwind
208         %22 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
209         invoke void %22( )
210                         to label %invcont119 unwind label %lpad264
211
212 invcont119:             ; preds = %bb117
213         invoke void @report__not_applicable( i8* getelementptr ([47 x i8]* @.str12, i32 0, i32 0), %struct.string___XUB* @C.156.1618 )
214                         to label %invcont124 unwind label %lpad264
215
216 invcont124:             ; preds = %invcont119
217         invoke void @__gnat_raise_exception( %struct.system__standard_library__exception_data* bitcast (%struct.exception* @incomplete.1177 to %struct.system__standard_library__exception_data*), i8* getelementptr ([14 x i8]* @.str13, i32 0, i32 0), %struct.string___XUB* @C.157.1621 ) noreturn
218                         to label %invcont129 unwind label %lpad264
219
220 invcont129:             ; preds = %invcont124
221         unreachable
222
223 bb143:          ; preds = %invcont111
224         %23 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__standard_output( )
225                         to label %invcont144 unwind label %lpad252              ; <%struct.ada__text_io__text_afcb*> [#uses=1]
226
227 invcont144:             ; preds = %bb143
228         invoke void @ada__text_io__set_output( %struct.ada__text_io__text_afcb* %23 )
229                         to label %invcont145 unwind label %lpad252
230
231 invcont145:             ; preds = %invcont144
232         %24 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__close( %struct.ada__text_io__text_afcb* %13 )
233                         to label %invcont146 unwind label %lpad252              ; <%struct.ada__text_io__text_afcb*> [#uses=1]
234
235 invcont146:             ; preds = %invcont145
236         invoke void @report__legal_file_name( %struct.system__file_control_block__pstring* noalias sret %0, i32 2, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.160.1630 )
237                         to label %invcont151 unwind label %lpad252
238
239 invcont151:             ; preds = %invcont146
240         %elt152 = getelementptr %struct.system__file_control_block__pstring* %0, i32 0, i32 0           ; <i8**> [#uses=1]
241         %val153 = load i8** %elt152, align 8            ; <i8*> [#uses=1]
242         %elt154 = getelementptr %struct.system__file_control_block__pstring* %0, i32 0, i32 1           ; <%struct.string___XUB**> [#uses=1]
243         %val155 = load %struct.string___XUB** %elt154           ; <%struct.string___XUB*> [#uses=1]
244         %25 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__open( %struct.ada__text_io__text_afcb* %24, i8 0, i8* %val153, %struct.string___XUB* %val155, i8* getelementptr ([0 x i8]* @.str6, i32 0, i32 0), %struct.string___XUB* @C.159.1627 )
245                         to label %invcont160 unwind label %lpad252              ; <%struct.ada__text_io__text_afcb*> [#uses=2]
246
247 invcont160:             ; preds = %invcont151
248         %26 = invoke fastcc i8 @ce3806g__fxio__get.1137( %struct.ada__text_io__text_afcb* %17 ) signext
249                         to label %invcont161 unwind label %lpad252              ; <i8> [#uses=1]
250
251 invcont161:             ; preds = %invcont160
252         %27 = icmp eq i8 %26, -3                ; <i1> [#uses=1]
253         br i1 %27, label %bb169, label %bb163
254
255 bb163:          ; preds = %invcont161
256         invoke void @report__failed( i8* getelementptr ([33 x i8]* @.str14, i32 0, i32 0), %struct.string___XUB* @C.162.1637 )
257                         to label %bb169 unwind label %lpad252
258
259 bb169:          ; preds = %invcont161, %bb163
260         %28 = invoke fastcc i8 @ce3806g__fxio__get.1137( %struct.ada__text_io__text_afcb* %25 ) signext
261                         to label %invcont170 unwind label %lpad252              ; <i8> [#uses=1]
262
263 invcont170:             ; preds = %bb169
264         %29 = icmp eq i8 %28, -1                ; <i1> [#uses=1]
265         br i1 %29, label %bb187, label %bb172
266
267 bb172:          ; preds = %invcont170
268         invoke void @report__failed( i8* getelementptr ([36 x i8]* @.str15, i32 0, i32 0), %struct.string___XUB* @C.164.1642 )
269                         to label %bb187 unwind label %lpad252
270
271 bb187:          ; preds = %invcont170, %bb172
272         %30 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 1, i32 0              ; <i32*> [#uses=1]
273         %31 = load i32* %30, align 8            ; <i32> [#uses=1]
274         %32 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 1, i32 1              ; <i32*> [#uses=1]
275         %33 = load i32* %32, align 4            ; <i32> [#uses=1]
276         invoke void @system__secondary_stack__ss_release( i32 %31, i32 %33 )
277                         to label %bb193 unwind label %lpad228
278
279 bb193:          ; preds = %bb187
280         %34 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__delete( %struct.ada__text_io__text_afcb* %17 )
281                         to label %invcont194 unwind label %lpad268              ; <%struct.ada__text_io__text_afcb*> [#uses=0]
282
283 invcont194:             ; preds = %bb193
284         %35 = invoke %struct.ada__text_io__text_afcb* @ada__text_io__delete( %struct.ada__text_io__text_afcb* %25 )
285                         to label %bb221 unwind label %lpad268           ; <%struct.ada__text_io__text_afcb*> [#uses=0]
286
287 bb196:          ; preds = %lpad268
288         call void @__gnat_begin_handler( i8* %eh_ptr269 ) nounwind
289         %36 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
290         invoke void %36( )
291                         to label %bb203 unwind label %lpad276
292
293 bb203:          ; preds = %bb196
294         invoke void @__gnat_end_handler( i8* %eh_ptr269 )
295                         to label %bb221 unwind label %lpad272
296
297 bb205:          ; preds = %ppad304
298         call void @__gnat_begin_handler( i8* %eh_exception.1 ) nounwind
299         %37 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
300         invoke void %37( )
301                         to label %bb212 unwind label %lpad284
302
303 bb212:          ; preds = %bb205
304         invoke void @__gnat_end_handler( i8* %eh_exception.1 )
305                         to label %bb221 unwind label %lpad280
306
307 bb221:          ; preds = %invcont194, %bb212, %bb203
308         %38 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 3, i32 0              ; <i32*> [#uses=1]
309         %39 = load i32* %38, align 8            ; <i32> [#uses=1]
310         %40 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 3, i32 1              ; <i32*> [#uses=1]
311         %41 = load i32* %40, align 4            ; <i32> [#uses=1]
312         call void @system__secondary_stack__ss_release( i32 %39, i32 %41 )
313         call void @report__result( )
314         ret void
315
316 lpad:           ; preds = %bb
317         %eh_ptr = call i8* @llvm.eh.exception( )                ; <i8*> [#uses=2]
318         %eh_select227 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )           ; <i32> [#uses=0]
319         br label %ppad
320
321 lpad228:                ; preds = %bb187, %ppad294, %invcont88, %invcont87, %invcont78, %bb73, %ppad288, %invcont26, %bb11
322         %eh_ptr229 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
323         %eh_select231 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr229, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
324         br label %ppad304
325
326 lpad232:                ; preds = %invcont17, %invcont12
327         %eh_ptr233 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=6]
328         %eh_select235 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr233, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @ada__io_exceptions__use_error, %struct.exception* @ada__io_exceptions__name_error, %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )            ; <i32> [#uses=3]
329         %eh_typeid = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @ada__io_exceptions__use_error, i32 0, i32 0) )            ; <i32> [#uses=1]
330         %42 = icmp eq i32 %eh_select235, %eh_typeid             ; <i1> [#uses=1]
331         br i1 %42, label %bb32, label %ppad291
332
333 lpad236:                ; preds = %lpad240
334         %eh_ptr237 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
335         %eh_select239 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr237, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
336         br label %ppad288
337
338 lpad240:                ; preds = %invcont38, %invcont33, %bb32
339         %eh_ptr241 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
340         %eh_select243 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr241, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
341         invoke void @__gnat_end_handler( i8* %eh_ptr233 )
342                         to label %ppad288 unwind label %lpad236
343
344 lpad244:                ; preds = %lpad248
345         %eh_ptr245 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
346         %eh_select247 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr245, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
347         br label %ppad288
348
349 lpad248:                ; preds = %invcont54, %invcont49, %bb47
350         %eh_ptr249 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
351         %eh_select251 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr249, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
352         invoke void @__gnat_end_handler( i8* %eh_ptr233 )
353                         to label %ppad288 unwind label %lpad244
354
355 lpad252:                ; preds = %bb94, %invcont89, %invcont160, %bb169, %bb172, %bb163, %invcont151, %invcont146, %invcont145, %invcont144, %bb143, %ppad295, %invcont111, %invcont96, %invcont95
356         %eh_ptr253 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
357         %eh_select255 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr253, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
358         br label %ppad294
359
360 lpad256:                ; preds = %invcont102, %invcont97
361         %eh_ptr257 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=4]
362         %eh_select259 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr257, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @ada__io_exceptions__use_error, %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )                ; <i32> [#uses=2]
363         %eh_typeid297 = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @ada__io_exceptions__use_error, i32 0, i32 0) )         ; <i32> [#uses=1]
364         %43 = icmp eq i32 %eh_select259, %eh_typeid297          ; <i1> [#uses=1]
365         br i1 %43, label %bb117, label %ppad295
366
367 lpad260:                ; preds = %lpad264
368         %eh_ptr261 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
369         %eh_select263 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr261, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
370         br label %ppad295
371
372 lpad264:                ; preds = %invcont124, %invcont119, %bb117
373         %eh_ptr265 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
374         %eh_select267 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr265, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
375         invoke void @__gnat_end_handler( i8* %eh_ptr257 )
376                         to label %ppad295 unwind label %lpad260
377
378 lpad268:                ; preds = %invcont194, %bb193
379         %eh_ptr269 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=5]
380         %eh_select271 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr269, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @ada__io_exceptions__use_error, %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )                ; <i32> [#uses=2]
381         %eh_typeid301 = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @ada__io_exceptions__use_error, i32 0, i32 0) )         ; <i32> [#uses=1]
382         %44 = icmp eq i32 %eh_select271, %eh_typeid301          ; <i1> [#uses=1]
383         br i1 %44, label %bb196, label %ppad304
384
385 lpad272:                ; preds = %bb203, %lpad276
386         %eh_ptr273 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
387         %eh_select275 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr273, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
388         br label %ppad304
389
390 lpad276:                ; preds = %bb196
391         %eh_ptr277 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
392         %eh_select279 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr277, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @incomplete.1177, i32* @__gnat_all_others_value )           ; <i32> [#uses=1]
393         invoke void @__gnat_end_handler( i8* %eh_ptr269 )
394                         to label %ppad304 unwind label %lpad272
395
396 lpad280:                ; preds = %bb212, %lpad284
397         %eh_ptr281 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
398         %eh_select283 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr281, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )                ; <i32> [#uses=0]
399         br label %ppad
400
401 lpad284:                ; preds = %bb205
402         %eh_ptr285 = call i8* @llvm.eh.exception( )             ; <i8*> [#uses=2]
403         %eh_select287 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr285, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )                ; <i32> [#uses=0]
404         invoke void @__gnat_end_handler( i8* %eh_exception.1 )
405                         to label %ppad unwind label %lpad280
406
407 ppad:           ; preds = %lpad284, %ppad304, %lpad280, %lpad
408         %eh_exception.2 = phi i8* [ %eh_exception.1, %ppad304 ], [ %eh_ptr281, %lpad280 ], [ %eh_ptr, %lpad ], [ %eh_ptr285, %lpad284 ]         ; <i8*> [#uses=1]
409         %45 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 3, i32 0              ; <i32*> [#uses=1]
410         %46 = load i32* %45, align 8            ; <i32> [#uses=1]
411         %47 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 3, i32 1              ; <i32*> [#uses=1]
412         %48 = load i32* %47, align 4            ; <i32> [#uses=1]
413         call void @system__secondary_stack__ss_release( i32 %46, i32 %48 )
414         %49 = call i32 (...)* @_Unwind_Resume( i8* %eh_exception.2 )            ; <i32> [#uses=0]
415         unreachable
416
417 ppad288:                ; preds = %lpad248, %lpad240, %ppad291, %lpad244, %lpad236
418         %eh_exception.0 = phi i8* [ %eh_ptr233, %ppad291 ], [ %eh_ptr245, %lpad244 ], [ %eh_ptr237, %lpad236 ], [ %eh_ptr241, %lpad240 ], [ %eh_ptr249, %lpad248 ]              ; <i8*> [#uses=1]
419         %eh_selector.0 = phi i32 [ %eh_select235, %ppad291 ], [ %eh_select247, %lpad244 ], [ %eh_select239, %lpad236 ], [ %eh_select243, %lpad240 ], [ %eh_select251, %lpad248 ]                ; <i32> [#uses=1]
420         %50 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 2, i32 0              ; <i32*> [#uses=1]
421         %51 = load i32* %50, align 8            ; <i32> [#uses=1]
422         %52 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 2, i32 1              ; <i32*> [#uses=1]
423         %53 = load i32* %52, align 4            ; <i32> [#uses=1]
424         invoke void @system__secondary_stack__ss_release( i32 %51, i32 %53 )
425                         to label %ppad304 unwind label %lpad228
426
427 ppad291:                ; preds = %lpad232
428         %eh_typeid292 = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @ada__io_exceptions__name_error, i32 0, i32 0) )                ; <i32> [#uses=1]
429         %54 = icmp eq i32 %eh_select235, %eh_typeid292          ; <i1> [#uses=1]
430         br i1 %54, label %bb47, label %ppad288
431
432 ppad294:                ; preds = %ppad295, %lpad252
433         %eh_exception.4 = phi i8* [ %eh_ptr253, %lpad252 ], [ %eh_exception.3, %ppad295 ]               ; <i8*> [#uses=1]
434         %eh_selector.4 = phi i32 [ %eh_select255, %lpad252 ], [ %eh_selector.3, %ppad295 ]              ; <i32> [#uses=1]
435         %55 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 1, i32 0              ; <i32*> [#uses=1]
436         %56 = load i32* %55, align 8            ; <i32> [#uses=1]
437         %57 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 1, i32 1              ; <i32*> [#uses=1]
438         %58 = load i32* %57, align 4            ; <i32> [#uses=1]
439         invoke void @system__secondary_stack__ss_release( i32 %56, i32 %58 )
440                         to label %ppad304 unwind label %lpad228
441
442 ppad295:                ; preds = %lpad264, %lpad256, %lpad260
443         %eh_exception.3 = phi i8* [ %eh_ptr257, %lpad256 ], [ %eh_ptr261, %lpad260 ], [ %eh_ptr265, %lpad264 ]          ; <i8*> [#uses=1]
444         %eh_selector.3 = phi i32 [ %eh_select259, %lpad256 ], [ %eh_select263, %lpad260 ], [ %eh_select267, %lpad264 ]          ; <i32> [#uses=1]
445         %59 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 0, i32 0              ; <i32*> [#uses=1]
446         %60 = load i32* %59, align 8            ; <i32> [#uses=1]
447         %61 = getelementptr %struct.FRAME.ce3806g* %FRAME.356, i32 0, i32 0, i32 1              ; <i32*> [#uses=1]
448         %62 = load i32* %61, align 4            ; <i32> [#uses=1]
449         invoke void @system__secondary_stack__ss_release( i32 %60, i32 %62 )
450                         to label %ppad294 unwind label %lpad252
451
452 ppad304:                ; preds = %lpad276, %ppad294, %ppad288, %lpad268, %lpad272, %lpad228
453         %eh_exception.1 = phi i8* [ %eh_ptr229, %lpad228 ], [ %eh_ptr269, %lpad268 ], [ %eh_ptr273, %lpad272 ], [ %eh_exception.0, %ppad288 ], [ %eh_exception.4, %ppad294 ], [ %eh_ptr277, %lpad276 ]          ; <i8*> [#uses=4]
454         %eh_selector.1 = phi i32 [ %eh_select231, %lpad228 ], [ %eh_select271, %lpad268 ], [ %eh_select275, %lpad272 ], [ %eh_selector.0, %ppad288 ], [ %eh_selector.4, %ppad294 ], [ %eh_select279, %lpad276 ]         ; <i32> [#uses=1]
455         %eh_typeid305 = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @incomplete.1177, i32 0, i32 0) )               ; <i32> [#uses=1]
456         %63 = icmp eq i32 %eh_selector.1, %eh_typeid305         ; <i1> [#uses=1]
457         br i1 %63, label %bb205, label %ppad
458 }
459
460 define internal fastcc i8 @ce3806g__fxio__get.1137(%struct.ada__text_io__text_afcb* %file) signext {
461 entry:
462         %0 = invoke x86_fp80 @ada__text_io__float_aux__get( %struct.ada__text_io__text_afcb* %file, i32 0 )
463                         to label %invcont unwind label %lpad            ; <x86_fp80> [#uses=5]
464
465 invcont:                ; preds = %entry
466         %1 = fcmp ult x86_fp80 %0, 0xKFFFEFFFFFFFFFFFFFFFF              ; <i1> [#uses=1]
467         %2 = fcmp ugt x86_fp80 %0, 0xK7FFEFFFFFFFFFFFFFFFF              ; <i1> [#uses=1]
468         %or.cond = or i1 %1, %2         ; <i1> [#uses=1]
469         br i1 %or.cond, label %bb2, label %bb4
470
471 bb2:            ; preds = %invcont
472         invoke void @__gnat_rcheck_12( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 1 ) noreturn
473                         to label %invcont3 unwind label %lpad
474
475 invcont3:               ; preds = %bb2
476         unreachable
477
478 bb4:            ; preds = %invcont
479         %3 = mul x86_fp80 %0, 0xK40008000000000000000           ; <x86_fp80> [#uses=1]
480         %4 = fcmp ult x86_fp80 %3, 0xKC0068000000000000000              ; <i1> [#uses=1]
481         br i1 %4, label %bb8, label %bb6
482
483 bb6:            ; preds = %bb4
484         %5 = mul x86_fp80 %0, 0xK40008000000000000000           ; <x86_fp80> [#uses=1]
485         %6 = fcmp ugt x86_fp80 %5, 0xK4005FE00000000000000              ; <i1> [#uses=1]
486         br i1 %6, label %bb8, label %bb10
487
488 bb8:            ; preds = %bb4, %bb6
489         invoke void @__gnat_rcheck_10( i8* getelementptr ([14 x i8]* @.str1, i32 0, i32 0), i32 324 ) noreturn
490                         to label %invcont9 unwind label %lpad
491
492 invcont9:               ; preds = %bb8
493         unreachable
494
495 bb10:           ; preds = %bb6
496         %7 = mul x86_fp80 %0, 0xK40008000000000000000           ; <x86_fp80> [#uses=3]
497         %8 = fcmp ult x86_fp80 %7, 0xK00000000000000000000              ; <i1> [#uses=1]
498         br i1 %8, label %bb13, label %bb12
499
500 bb12:           ; preds = %bb10
501         %9 = add x86_fp80 %7, 0xK3FFDFFFFFFFFFFFFFFFF           ; <x86_fp80> [#uses=1]
502         br label %bb14
503
504 bb13:           ; preds = %bb10
505         %10 = sub x86_fp80 %7, 0xK3FFDFFFFFFFFFFFFFFFF          ; <x86_fp80> [#uses=1]
506         br label %bb14
507
508 bb14:           ; preds = %bb13, %bb12
509         %iftmp.339.0.in = phi x86_fp80 [ %10, %bb13 ], [ %9, %bb12 ]            ; <x86_fp80> [#uses=1]
510         %iftmp.339.0 = fptosi x86_fp80 %iftmp.339.0.in to i8            ; <i8> [#uses=3]
511         %11 = add i8 %iftmp.339.0, 20           ; <i8> [#uses=1]
512         %12 = icmp ugt i8 %11, 40               ; <i1> [#uses=1]
513         br i1 %12, label %bb16, label %bb18
514
515 bb16:           ; preds = %bb14
516         invoke void @__gnat_rcheck_12( i8* getelementptr ([14 x i8]* @.str1, i32 0, i32 0), i32 324 ) noreturn
517                         to label %invcont17 unwind label %lpad
518
519 invcont17:              ; preds = %bb16
520         unreachable
521
522 bb18:           ; preds = %bb14
523         %13 = add i8 %iftmp.339.0, 20           ; <i8> [#uses=1]
524         %14 = icmp ugt i8 %13, 40               ; <i1> [#uses=1]
525         br i1 %14, label %bb20, label %bb22
526
527 bb20:           ; preds = %bb18
528         invoke void @__gnat_rcheck_12( i8* getelementptr ([14 x i8]* @.str1, i32 0, i32 0), i32 324 ) noreturn
529                         to label %invcont21 unwind label %lpad
530
531 invcont21:              ; preds = %bb20
532         unreachable
533
534 bb22:           ; preds = %bb18
535         ret i8 %iftmp.339.0
536
537 bb23:           ; preds = %lpad
538         call void @__gnat_begin_handler( i8* %eh_ptr ) nounwind
539         %15 = load void ()** @system__soft_links__abort_undefer, align 4                ; <void ()*> [#uses=1]
540         invoke void %15( )
541                         to label %invcont24 unwind label %lpad33
542
543 invcont24:              ; preds = %bb23
544         invoke void @__gnat_raise_exception( %struct.system__standard_library__exception_data* bitcast (%struct.exception* @ada__io_exceptions__data_error to %struct.system__standard_library__exception_data*), i8* getelementptr ([47 x i8]* @.str2, i32 0, i32 0), %struct.string___XUB* @C.354.2200 ) noreturn
545                         to label %invcont27 unwind label %lpad33
546
547 invcont27:              ; preds = %invcont24
548         unreachable
549
550 lpad:           ; preds = %bb20, %bb16, %bb8, %bb2, %entry
551         %eh_ptr = call i8* @llvm.eh.exception( )                ; <i8*> [#uses=4]
552         %eh_select32 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), %struct.exception* @constraint_error, i32* @__gnat_all_others_value )              ; <i32> [#uses=1]
553         %eh_typeid = call i32 @llvm.eh.typeid.for.i32( i8* getelementptr (%struct.exception* @constraint_error, i32 0, i32 0) )         ; <i32> [#uses=1]
554         %16 = icmp eq i32 %eh_select32, %eh_typeid              ; <i1> [#uses=1]
555         br i1 %16, label %bb23, label %Unwind
556
557 lpad33:         ; preds = %invcont24, %bb23
558         %eh_ptr34 = call i8* @llvm.eh.exception( )              ; <i8*> [#uses=2]
559         %eh_select36 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr34, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )          ; <i32> [#uses=0]
560         call void @__gnat_end_handler( i8* %eh_ptr )
561         br label %Unwind
562
563 Unwind:         ; preds = %lpad, %lpad33
564         %eh_exception.0 = phi i8* [ %eh_ptr, %lpad ], [ %eh_ptr34, %lpad33 ]            ; <i8*> [#uses=1]
565         %17 = call i32 (...)* @_Unwind_Resume( i8* %eh_exception.0 )            ; <i32> [#uses=0]
566         unreachable
567 }
568
569 define internal fastcc void @ce3806g__fxio__put.1149(%struct.ada__text_io__text_afcb* %file) {
570 entry:
571         %A.301 = alloca %struct.string___XUB            ; <%struct.string___XUB*> [#uses=3]
572         %A.292 = alloca %struct.string___XUB            ; <%struct.string___XUB*> [#uses=3]
573         %0 = call i8* @llvm.stacksave( )                ; <i8*> [#uses=1]
574         %1 = alloca [12 x i8]           ; <[12 x i8]*> [#uses=1]
575         %.sub = getelementptr [12 x i8]* %1, i32 0, i32 0               ; <i8*> [#uses=2]
576         %2 = getelementptr %struct.string___XUB* %A.292, i32 0, i32 0           ; <i32*> [#uses=1]
577         store i32 1, i32* %2, align 8
578         %3 = getelementptr %struct.string___XUB* %A.292, i32 0, i32 1           ; <i32*> [#uses=1]
579         store i32 12, i32* %3, align 4
580         %4 = invoke fastcc i32 @ce3806g__fxio__put__4.1215( i8* %.sub, %struct.string___XUB* %A.292, i8 signext -3 )
581                         to label %invcont unwind label %lpad            ; <i32> [#uses=1]
582
583 invcont:                ; preds = %entry
584         %5 = getelementptr %struct.string___XUB* %A.301, i32 0, i32 0           ; <i32*> [#uses=1]
585         store i32 1, i32* %5, align 8
586         %6 = getelementptr %struct.string___XUB* %A.301, i32 0, i32 1           ; <i32*> [#uses=1]
587         store i32 %4, i32* %6, align 4
588         invoke void @ada__text_io__generic_aux__put_item( %struct.ada__text_io__text_afcb* %file, i8* %.sub, %struct.string___XUB* %A.301 )
589                         to label %bb60 unwind label %lpad
590
591 bb60:           ; preds = %invcont
592         ret void
593
594 lpad:           ; preds = %entry, %invcont
595         %eh_ptr = call i8* @llvm.eh.exception( )                ; <i8*> [#uses=2]
596         %eh_select62 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )            ; <i32> [#uses=0]
597         call void @llvm.stackrestore( i8* %0 )
598         %7 = call i32 (...)* @_Unwind_Resume( i8* %eh_ptr )             ; <i32> [#uses=0]
599         unreachable
600 }
601
602 define internal fastcc void @ce3806g__fxio__put__2.1155() {
603 entry:
604         %A.266 = alloca %struct.string___XUB            ; <%struct.string___XUB*> [#uses=3]
605         %A.257 = alloca %struct.string___XUB            ; <%struct.string___XUB*> [#uses=3]
606         %0 = call i8* @llvm.stacksave( )                ; <i8*> [#uses=1]
607         %1 = alloca [12 x i8]           ; <[12 x i8]*> [#uses=1]
608         %.sub = getelementptr [12 x i8]* %1, i32 0, i32 0               ; <i8*> [#uses=2]
609         %2 = getelementptr %struct.string___XUB* %A.257, i32 0, i32 0           ; <i32*> [#uses=1]
610         store i32 1, i32* %2, align 8
611         %3 = getelementptr %struct.string___XUB* %A.257, i32 0, i32 1           ; <i32*> [#uses=1]
612         store i32 12, i32* %3, align 4
613         %4 = invoke fastcc i32 @ce3806g__fxio__put__4.1215( i8* %.sub, %struct.string___XUB* %A.257, i8 signext -1 )
614                         to label %invcont unwind label %lpad            ; <i32> [#uses=1]
615
616 invcont:                ; preds = %entry
617         %5 = getelementptr %struct.string___XUB* %A.266, i32 0, i32 0           ; <i32*> [#uses=1]
618         store i32 1, i32* %5, align 8
619         %6 = getelementptr %struct.string___XUB* %A.266, i32 0, i32 1           ; <i32*> [#uses=1]
620         store i32 %4, i32* %6, align 4
621         %7 = load %struct.ada__text_io__text_afcb** @ada__text_io__current_out, align 4         ; <%struct.ada__text_io__text_afcb*> [#uses=1]
622         invoke void @ada__text_io__generic_aux__put_item( %struct.ada__text_io__text_afcb* %7, i8* %.sub, %struct.string___XUB* %A.266 )
623                         to label %bb60 unwind label %lpad
624
625 bb60:           ; preds = %invcont
626         ret void
627
628 lpad:           ; preds = %entry, %invcont
629         %eh_ptr = call i8* @llvm.eh.exception( )                ; <i8*> [#uses=2]
630         %eh_select62 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )            ; <i32> [#uses=0]
631         call void @llvm.stackrestore( i8* %0 )
632         %8 = call i32 (...)* @_Unwind_Resume( i8* %eh_ptr )             ; <i32> [#uses=0]
633         unreachable
634 }
635
636 define internal fastcc i32 @ce3806g__fxio__put__4.1215(i8* %to.0, %struct.string___XUB* %to.1, i8 signext %item) {
637 entry:
638         %to_addr = alloca %struct.system__file_control_block__pstring           ; <%struct.system__file_control_block__pstring*> [#uses=4]
639         %FRAME.358 = alloca %struct.FRAME.ce3806g__fxio__put__4         ; <%struct.FRAME.ce3806g__fxio__put__4*> [#uses=65]
640         %0 = getelementptr %struct.system__file_control_block__pstring* %to_addr, i32 0, i32 0          ; <i8**> [#uses=1]
641         store i8* %to.0, i8** %0, align 8
642         %1 = getelementptr %struct.system__file_control_block__pstring* %to_addr, i32 0, i32 1          ; <%struct.string___XUB**> [#uses=1]
643         store %struct.string___XUB* %to.1, %struct.string___XUB** %1
644         %2 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3                ; <%struct.system__file_control_block__pstring**> [#uses=1]
645         store %struct.system__file_control_block__pstring* %to_addr, %struct.system__file_control_block__pstring** %2, align 4
646         %3 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 0                ; <i32*> [#uses=1]
647         store i32 3, i32* %3, align 8
648         %4 = getelementptr %struct.system__file_control_block__pstring* %to_addr, i32 0, i32 1          ; <%struct.string___XUB**> [#uses=1]
649         %5 = load %struct.string___XUB** %4, align 4            ; <%struct.string___XUB*> [#uses=1]
650         %6 = getelementptr %struct.string___XUB* %5, i32 0, i32 0               ; <i32*> [#uses=1]
651         %7 = load i32* %6, align 4              ; <i32> [#uses=1]
652         %8 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 2                ; <i32*> [#uses=1]
653         store i32 %7, i32* %8, align 8
654         %9 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 2                ; <i32*> [#uses=1]
655         %10 = load i32* %9, align 8             ; <i32> [#uses=1]
656         %11 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4               ; <i32*> [#uses=1]
657         store i32 %10, i32* %11, align 8
658         %item.lobit = lshr i8 %item, 7          ; <i8> [#uses=1]
659         %12 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 6               ; <i8*> [#uses=1]
660         store i8 %item.lobit, i8* %12, align 8
661         %13 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 2               ; <i32*> [#uses=1]
662         %14 = load i32* %13, align 8            ; <i32> [#uses=1]
663         %15 = add i32 %14, -1           ; <i32> [#uses=1]
664         %16 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
665         store i32 %15, i32* %16, align 4
666         %17 = sext i8 %item to i64              ; <i64> [#uses=1]
667         %18 = call i64 @system__exn_lli__exn_long_long_integer( i64 10, i32 1 ) readnone                ; <i64> [#uses=1]
668         %19 = sub i64 0, %18            ; <i64> [#uses=1]
669         %20 = call i64 @system__exn_lli__exn_long_long_integer( i64 10, i32 0 ) readnone                ; <i64> [#uses=1]
670         %21 = mul i64 %20, -2           ; <i64> [#uses=1]
671         call fastcc void @ce3806g__fxio__put__put_scaled__4.1346( %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i64 %17, i64 %19, i64 %21, i32 0, i32 -1 )
672         %22 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
673         %23 = load i32* %22, align 4            ; <i32> [#uses=1]
674         %24 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 2               ; <i32*> [#uses=1]
675         %25 = load i32* %24, align 8            ; <i32> [#uses=1]
676         %26 = icmp slt i32 %23, %25             ; <i1> [#uses=1]
677         br i1 %26, label %bb71, label %bb72
678
679 bb71:           ; preds = %entry
680         %27 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1               ; <i32*> [#uses=1]
681         store i32 0, i32* %27, align 4
682         br label %bb72
683
684 bb72:           ; preds = %entry, %bb102, %bb71
685         %28 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1               ; <i32*> [#uses=1]
686         %29 = load i32* %28, align 4            ; <i32> [#uses=1]
687         %30 = icmp slt i32 %29, -1              ; <i1> [#uses=1]
688         %31 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
689         %32 = load i32* %31, align 4            ; <i32> [#uses=2]
690         br i1 %30, label %bb103, label %bb74
691
692 bb74:           ; preds = %bb72
693         %33 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 2               ; <i32*> [#uses=1]
694         %34 = load i32* %33, align 8            ; <i32> [#uses=1]
695         %35 = add i32 %34, -1           ; <i32> [#uses=1]
696         %36 = icmp eq i32 %32, %35              ; <i1> [#uses=1]
697         %37 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1               ; <i32*> [#uses=1]
698         %38 = load i32* %37, align 4            ; <i32> [#uses=2]
699         br i1 %36, label %bb76, label %bb98
700
701 bb76:           ; preds = %bb74
702         %39 = icmp slt i32 %38, 1               ; <i1> [#uses=1]
703         br i1 %39, label %bb80, label %bb102
704
705 bb80:           ; preds = %bb76
706         %40 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1               ; <i32*> [#uses=1]
707         %41 = load i32* %40, align 4            ; <i32> [#uses=2]
708         %42 = icmp sgt i32 %41, -1              ; <i1> [#uses=1]
709         %.op = add i32 %41, 2           ; <i32> [#uses=1]
710         %43 = select i1 %42, i32 %.op, i32 2            ; <i32> [#uses=1]
711         %44 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 6               ; <i8*> [#uses=1]
712         %45 = load i8* %44, align 8             ; <i8> [#uses=1]
713         %46 = zext i8 %45 to i32                ; <i32> [#uses=1]
714         %47 = add i32 %43, %46          ; <i32> [#uses=2]
715         %48 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 0               ; <i32*> [#uses=1]
716         %49 = load i32* %48, align 8            ; <i32> [#uses=1]
717         %50 = icmp sgt i32 %47, %49             ; <i1> [#uses=1]
718         br i1 %50, label %bb88, label %bb85
719
720 bb85:           ; preds = %bb80, %bb87
721         %j.0 = phi i32 [ %68, %bb87 ], [ %47, %bb80 ]           ; <i32> [#uses=2]
722         %51 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
723         %52 = load i32* %51, align 4            ; <i32> [#uses=1]
724         %53 = add i32 %52, 1            ; <i32> [#uses=1]
725         %54 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
726         store i32 %53, i32* %54, align 4
727         %55 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4               ; <i32*> [#uses=1]
728         %56 = load i32* %55, align 8            ; <i32> [#uses=1]
729         %57 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
730         %58 = load %struct.system__file_control_block__pstring** %57, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
731         %59 = getelementptr %struct.system__file_control_block__pstring* %58, i32 0, i32 0              ; <i8**> [#uses=1]
732         %60 = load i8** %59, align 4            ; <i8*> [#uses=1]
733         %61 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
734         %62 = load i32* %61, align 4            ; <i32> [#uses=1]
735         %63 = sub i32 %62, %56          ; <i32> [#uses=1]
736         %64 = getelementptr i8* %60, i32 %63            ; <i8*> [#uses=1]
737         store i8 32, i8* %64, align 1
738         %65 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 0               ; <i32*> [#uses=1]
739         %66 = load i32* %65, align 8            ; <i32> [#uses=1]
740         %67 = icmp eq i32 %66, %j.0             ; <i1> [#uses=1]
741         br i1 %67, label %bb88, label %bb87
742
743 bb87:           ; preds = %bb85
744         %68 = add i32 %j.0, 1           ; <i32> [#uses=1]
745         br label %bb85
746
747 bb88:           ; preds = %bb80, %bb85
748         %69 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 6               ; <i8*> [#uses=1]
749         %70 = load i8* %69, align 8             ; <i8> [#uses=1]
750         %toBool89 = icmp eq i8 %70, 0           ; <i1> [#uses=1]
751         br i1 %toBool89, label %bb91, label %bb90
752
753 bb90:           ; preds = %bb88
754         %71 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
755         %72 = load i32* %71, align 4            ; <i32> [#uses=1]
756         %73 = add i32 %72, 1            ; <i32> [#uses=1]
757         %74 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
758         store i32 %73, i32* %74, align 4
759         %75 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4               ; <i32*> [#uses=1]
760         %76 = load i32* %75, align 8            ; <i32> [#uses=1]
761         %77 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
762         %78 = load %struct.system__file_control_block__pstring** %77, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
763         %79 = getelementptr %struct.system__file_control_block__pstring* %78, i32 0, i32 0              ; <i8**> [#uses=1]
764         %80 = load i8** %79, align 4            ; <i8*> [#uses=1]
765         %81 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
766         %82 = load i32* %81, align 4            ; <i32> [#uses=1]
767         %83 = sub i32 %82, %76          ; <i32> [#uses=1]
768         %84 = getelementptr i8* %80, i32 %83            ; <i8*> [#uses=1]
769         store i8 45, i8* %84, align 1
770         br label %bb91
771
772 bb91:           ; preds = %bb88, %bb90
773         %85 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1               ; <i32*> [#uses=1]
774         %86 = load i32* %85, align 4            ; <i32> [#uses=1]
775         %87 = icmp slt i32 %86, 0               ; <i1> [#uses=1]
776         br i1 %87, label %bb93, label %bb97
777
778 bb93:           ; preds = %bb91
779         %88 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
780         %89 = load i32* %88, align 4            ; <i32> [#uses=1]
781         %90 = add i32 %89, 1            ; <i32> [#uses=1]
782         %91 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
783         store i32 %90, i32* %91, align 4
784         %92 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4               ; <i32*> [#uses=1]
785         %93 = load i32* %92, align 8            ; <i32> [#uses=1]
786         %94 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
787         %95 = load %struct.system__file_control_block__pstring** %94, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
788         %96 = getelementptr %struct.system__file_control_block__pstring* %95, i32 0, i32 0              ; <i8**> [#uses=1]
789         %97 = load i8** %96, align 4            ; <i8*> [#uses=1]
790         %98 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5               ; <i32*> [#uses=1]
791         %99 = load i32* %98, align 4            ; <i32> [#uses=1]
792         %100 = sub i32 %99, %93         ; <i32> [#uses=1]
793         %101 = getelementptr i8* %97, i32 %100          ; <i8*> [#uses=1]
794         store i8 48, i8* %101, align 1
795         %102 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
796         %103 = load i32* %102, align 4          ; <i32> [#uses=1]
797         %104 = add i32 %103, 1          ; <i32> [#uses=1]
798         %105 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
799         store i32 %104, i32* %105, align 4
800         %106 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4              ; <i32*> [#uses=1]
801         %107 = load i32* %106, align 8          ; <i32> [#uses=1]
802         %108 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
803         %109 = load %struct.system__file_control_block__pstring** %108, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
804         %110 = getelementptr %struct.system__file_control_block__pstring* %109, i32 0, i32 0            ; <i8**> [#uses=1]
805         %111 = load i8** %110, align 4          ; <i8*> [#uses=1]
806         %112 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
807         %113 = load i32* %112, align 4          ; <i32> [#uses=1]
808         %114 = sub i32 %113, %107               ; <i32> [#uses=1]
809         %115 = getelementptr i8* %111, i32 %114         ; <i8*> [#uses=1]
810         store i8 46, i8* %115, align 1
811         %116 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1              ; <i32*> [#uses=1]
812         %117 = load i32* %116, align 4          ; <i32> [#uses=1]
813         br label %bb94
814
815 bb94:           ; preds = %bb96, %bb93
816         %j8.0 = phi i32 [ %117, %bb93 ], [ %133, %bb96 ]                ; <i32> [#uses=2]
817         %118 = icmp sgt i32 %j8.0, -2           ; <i1> [#uses=1]
818         br i1 %118, label %bb97, label %bb96
819
820 bb96:           ; preds = %bb94
821         %119 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
822         %120 = load i32* %119, align 4          ; <i32> [#uses=1]
823         %121 = add i32 %120, 1          ; <i32> [#uses=1]
824         %122 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
825         store i32 %121, i32* %122, align 4
826         %123 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4              ; <i32*> [#uses=1]
827         %124 = load i32* %123, align 8          ; <i32> [#uses=1]
828         %125 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
829         %126 = load %struct.system__file_control_block__pstring** %125, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
830         %127 = getelementptr %struct.system__file_control_block__pstring* %126, i32 0, i32 0            ; <i8**> [#uses=1]
831         %128 = load i8** %127, align 4          ; <i8*> [#uses=1]
832         %129 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
833         %130 = load i32* %129, align 4          ; <i32> [#uses=1]
834         %131 = sub i32 %130, %124               ; <i32> [#uses=1]
835         %132 = getelementptr i8* %128, i32 %131         ; <i8*> [#uses=1]
836         store i8 48, i8* %132, align 1
837         %133 = add i32 %j8.0, 1         ; <i32> [#uses=1]
838         br label %bb94
839
840 bb97:           ; preds = %bb91, %bb94
841         %134 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
842         %135 = load i32* %134, align 4          ; <i32> [#uses=1]
843         %136 = add i32 %135, 1          ; <i32> [#uses=1]
844         %137 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
845         store i32 %136, i32* %137, align 4
846         %138 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4              ; <i32*> [#uses=1]
847         %139 = load i32* %138, align 8          ; <i32> [#uses=1]
848         %140 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
849         %141 = load %struct.system__file_control_block__pstring** %140, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
850         %142 = getelementptr %struct.system__file_control_block__pstring* %141, i32 0, i32 0            ; <i8**> [#uses=1]
851         %143 = load i8** %142, align 4          ; <i8*> [#uses=1]
852         %144 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
853         %145 = load i32* %144, align 4          ; <i32> [#uses=1]
854         %146 = sub i32 %145, %139               ; <i32> [#uses=1]
855         %147 = getelementptr i8* %143, i32 %146         ; <i8*> [#uses=1]
856         store i8 48, i8* %147, align 1
857         br label %bb102
858
859 bb98:           ; preds = %bb74
860         %148 = icmp eq i32 %38, -1              ; <i1> [#uses=1]
861         br i1 %148, label %bb100, label %bb101
862
863 bb100:          ; preds = %bb98
864         %149 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
865         %150 = load i32* %149, align 4          ; <i32> [#uses=1]
866         %151 = add i32 %150, 1          ; <i32> [#uses=1]
867         %152 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
868         store i32 %151, i32* %152, align 4
869         %153 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4              ; <i32*> [#uses=1]
870         %154 = load i32* %153, align 8          ; <i32> [#uses=1]
871         %155 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
872         %156 = load %struct.system__file_control_block__pstring** %155, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
873         %157 = getelementptr %struct.system__file_control_block__pstring* %156, i32 0, i32 0            ; <i8**> [#uses=1]
874         %158 = load i8** %157, align 4          ; <i8*> [#uses=1]
875         %159 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
876         %160 = load i32* %159, align 4          ; <i32> [#uses=1]
877         %161 = sub i32 %160, %154               ; <i32> [#uses=1]
878         %162 = getelementptr i8* %158, i32 %161         ; <i8*> [#uses=1]
879         store i8 46, i8* %162, align 1
880         br label %bb101
881
882 bb101:          ; preds = %bb98, %bb100
883         %163 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
884         %164 = load i32* %163, align 4          ; <i32> [#uses=1]
885         %165 = add i32 %164, 1          ; <i32> [#uses=1]
886         %166 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
887         store i32 %165, i32* %166, align 4
888         %167 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 4              ; <i32*> [#uses=1]
889         %168 = load i32* %167, align 8          ; <i32> [#uses=1]
890         %169 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
891         %170 = load %struct.system__file_control_block__pstring** %169, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
892         %171 = getelementptr %struct.system__file_control_block__pstring* %170, i32 0, i32 0            ; <i8**> [#uses=1]
893         %172 = load i8** %171, align 4          ; <i8*> [#uses=1]
894         %173 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 5              ; <i32*> [#uses=1]
895         %174 = load i32* %173, align 4          ; <i32> [#uses=1]
896         %175 = sub i32 %174, %168               ; <i32> [#uses=1]
897         %176 = getelementptr i8* %172, i32 %175         ; <i8*> [#uses=1]
898         store i8 48, i8* %176, align 1
899         br label %bb102
900
901 bb102:          ; preds = %bb76, %bb101, %bb97
902         %177 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1              ; <i32*> [#uses=1]
903         %178 = load i32* %177, align 4          ; <i32> [#uses=1]
904         %179 = add i32 %178, -1         ; <i32> [#uses=1]
905         %180 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %FRAME.358, i32 0, i32 1              ; <i32*> [#uses=1]
906         store i32 %179, i32* %180, align 4
907         br label %bb72
908
909 bb103:          ; preds = %bb72
910         ret i32 %32
911 }
912
913 declare x86_fp80 @ada__text_io__float_aux__get(%struct.ada__text_io__text_afcb*, i32)
914
915 declare void @__gnat_rcheck_12(i8*, i32) noreturn
916
917 declare void @__gnat_rcheck_10(i8*, i32) noreturn
918
919 declare i8* @llvm.eh.exception() nounwind
920
921 declare i32 @llvm.eh.selector.i32(i8*, i8*, ...) nounwind
922
923 declare i32 @llvm.eh.typeid.for.i32(i8*) nounwind
924
925 declare void @__gnat_begin_handler(i8*) nounwind
926
927 declare void @__gnat_raise_exception(%struct.system__standard_library__exception_data*, i8*, %struct.string___XUB*) noreturn
928
929 declare void @__gnat_end_handler(i8*)
930
931 declare i32 @__gnat_eh_personality(...)
932
933 declare i32 @_Unwind_Resume(...)
934
935 define internal fastcc void @ce3806g__fxio__put__put_int64__4.1339(%struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i64 %x, i32 %scale) {
936 entry:
937         %0 = icmp eq i64 %x, 0          ; <i1> [#uses=1]
938         br i1 %0, label %return, label %bb
939
940 bb:             ; preds = %entry
941         %1 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1                ; <i32*> [#uses=1]
942         store i32 %scale, i32* %1, align 4
943         %2 = add i64 %x, 9              ; <i64> [#uses=1]
944         %3 = icmp ugt i64 %2, 18                ; <i1> [#uses=1]
945         br i1 %3, label %bb18, label %bb19
946
947 bb18:           ; preds = %bb
948         %4 = add i32 %scale, 1          ; <i32> [#uses=1]
949         %5 = sdiv i64 %x, 10            ; <i64> [#uses=1]
950         call fastcc void @ce3806g__fxio__put__put_int64__4.1339( %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i64 %5, i32 %4 )
951         br label %bb19
952
953 bb19:           ; preds = %bb, %bb18
954         %6 = srem i64 %x, 10            ; <i64> [#uses=3]
955         %neg = sub i64 0, %6            ; <i64> [#uses=1]
956         %abscond = icmp sgt i64 %6, -1          ; <i1> [#uses=1]
957         %abs = select i1 %abscond, i64 %6, i64 %neg             ; <i64> [#uses=3]
958         %7 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5                ; <i32*> [#uses=1]
959         %8 = load i32* %7, align 4              ; <i32> [#uses=1]
960         %9 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 2                ; <i32*> [#uses=1]
961         %10 = load i32* %9, align 4             ; <i32> [#uses=1]
962         %11 = add i32 %10, -1           ; <i32> [#uses=1]
963         %12 = icmp eq i32 %8, %11               ; <i1> [#uses=1]
964         br i1 %12, label %bb23, label %bb44
965
966 bb23:           ; preds = %bb19
967         %13 = icmp ne i64 %abs, 0               ; <i1> [#uses=1]
968         %14 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1               ; <i32*> [#uses=1]
969         %15 = load i32* %14, align 4            ; <i32> [#uses=1]
970         %16 = icmp slt i32 %15, 1               ; <i1> [#uses=1]
971         %17 = or i1 %13, %16            ; <i1> [#uses=1]
972         br i1 %17, label %bb27, label %bb48
973
974 bb27:           ; preds = %bb23
975         %18 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1               ; <i32*> [#uses=1]
976         %19 = load i32* %18, align 4            ; <i32> [#uses=2]
977         %20 = icmp sgt i32 %19, -1              ; <i1> [#uses=1]
978         %.op = add i32 %19, 2           ; <i32> [#uses=1]
979         %21 = select i1 %20, i32 %.op, i32 2            ; <i32> [#uses=1]
980         %22 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 6               ; <i8*> [#uses=1]
981         %23 = load i8* %22, align 1             ; <i8> [#uses=1]
982         %24 = zext i8 %23 to i32                ; <i32> [#uses=1]
983         %25 = add i32 %21, %24          ; <i32> [#uses=2]
984         %26 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 0               ; <i32*> [#uses=1]
985         %27 = load i32* %26, align 4            ; <i32> [#uses=1]
986         %28 = icmp sgt i32 %25, %27             ; <i1> [#uses=1]
987         br i1 %28, label %bb34, label %bb31
988
989 bb31:           ; preds = %bb27, %bb33
990         %j.0 = phi i32 [ %46, %bb33 ], [ %25, %bb27 ]           ; <i32> [#uses=2]
991         %29 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
992         %30 = load i32* %29, align 4            ; <i32> [#uses=1]
993         %31 = add i32 %30, 1            ; <i32> [#uses=1]
994         %32 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
995         store i32 %31, i32* %32, align 4
996         %33 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4               ; <i32*> [#uses=1]
997         %34 = load i32* %33, align 4            ; <i32> [#uses=1]
998         %35 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
999         %36 = load %struct.system__file_control_block__pstring** %35, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
1000         %37 = getelementptr %struct.system__file_control_block__pstring* %36, i32 0, i32 0              ; <i8**> [#uses=1]
1001         %38 = load i8** %37, align 4            ; <i8*> [#uses=1]
1002         %39 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1003         %40 = load i32* %39, align 4            ; <i32> [#uses=1]
1004         %41 = sub i32 %40, %34          ; <i32> [#uses=1]
1005         %42 = getelementptr i8* %38, i32 %41            ; <i8*> [#uses=1]
1006         store i8 32, i8* %42, align 1
1007         %43 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 0               ; <i32*> [#uses=1]
1008         %44 = load i32* %43, align 4            ; <i32> [#uses=1]
1009         %45 = icmp eq i32 %44, %j.0             ; <i1> [#uses=1]
1010         br i1 %45, label %bb34, label %bb33
1011
1012 bb33:           ; preds = %bb31
1013         %46 = add i32 %j.0, 1           ; <i32> [#uses=1]
1014         br label %bb31
1015
1016 bb34:           ; preds = %bb27, %bb31
1017         %47 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 6               ; <i8*> [#uses=1]
1018         %48 = load i8* %47, align 1             ; <i8> [#uses=1]
1019         %toBool35 = icmp eq i8 %48, 0           ; <i1> [#uses=1]
1020         br i1 %toBool35, label %bb37, label %bb36
1021
1022 bb36:           ; preds = %bb34
1023         %49 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1024         %50 = load i32* %49, align 4            ; <i32> [#uses=1]
1025         %51 = add i32 %50, 1            ; <i32> [#uses=1]
1026         %52 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1027         store i32 %51, i32* %52, align 4
1028         %53 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4               ; <i32*> [#uses=1]
1029         %54 = load i32* %53, align 4            ; <i32> [#uses=1]
1030         %55 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
1031         %56 = load %struct.system__file_control_block__pstring** %55, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
1032         %57 = getelementptr %struct.system__file_control_block__pstring* %56, i32 0, i32 0              ; <i8**> [#uses=1]
1033         %58 = load i8** %57, align 4            ; <i8*> [#uses=1]
1034         %59 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1035         %60 = load i32* %59, align 4            ; <i32> [#uses=1]
1036         %61 = sub i32 %60, %54          ; <i32> [#uses=1]
1037         %62 = getelementptr i8* %58, i32 %61            ; <i8*> [#uses=1]
1038         store i8 45, i8* %62, align 1
1039         br label %bb37
1040
1041 bb37:           ; preds = %bb34, %bb36
1042         %63 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1               ; <i32*> [#uses=1]
1043         %64 = load i32* %63, align 4            ; <i32> [#uses=1]
1044         %65 = icmp slt i32 %64, 0               ; <i1> [#uses=1]
1045         br i1 %65, label %bb39, label %bb43
1046
1047 bb39:           ; preds = %bb37
1048         %66 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1049         %67 = load i32* %66, align 4            ; <i32> [#uses=1]
1050         %68 = add i32 %67, 1            ; <i32> [#uses=1]
1051         %69 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1052         store i32 %68, i32* %69, align 4
1053         %70 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4               ; <i32*> [#uses=1]
1054         %71 = load i32* %70, align 4            ; <i32> [#uses=1]
1055         %72 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
1056         %73 = load %struct.system__file_control_block__pstring** %72, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
1057         %74 = getelementptr %struct.system__file_control_block__pstring* %73, i32 0, i32 0              ; <i8**> [#uses=1]
1058         %75 = load i8** %74, align 4            ; <i8*> [#uses=1]
1059         %76 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1060         %77 = load i32* %76, align 4            ; <i32> [#uses=1]
1061         %78 = sub i32 %77, %71          ; <i32> [#uses=1]
1062         %79 = getelementptr i8* %75, i32 %78            ; <i8*> [#uses=1]
1063         store i8 48, i8* %79, align 1
1064         %80 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1065         %81 = load i32* %80, align 4            ; <i32> [#uses=1]
1066         %82 = add i32 %81, 1            ; <i32> [#uses=1]
1067         %83 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1068         store i32 %82, i32* %83, align 4
1069         %84 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4               ; <i32*> [#uses=1]
1070         %85 = load i32* %84, align 4            ; <i32> [#uses=1]
1071         %86 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3               ; <%struct.system__file_control_block__pstring**> [#uses=1]
1072         %87 = load %struct.system__file_control_block__pstring** %86, align 4           ; <%struct.system__file_control_block__pstring*> [#uses=1]
1073         %88 = getelementptr %struct.system__file_control_block__pstring* %87, i32 0, i32 0              ; <i8**> [#uses=1]
1074         %89 = load i8** %88, align 4            ; <i8*> [#uses=1]
1075         %90 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1076         %91 = load i32* %90, align 4            ; <i32> [#uses=1]
1077         %92 = sub i32 %91, %85          ; <i32> [#uses=1]
1078         %93 = getelementptr i8* %89, i32 %92            ; <i8*> [#uses=1]
1079         store i8 46, i8* %93, align 1
1080         %94 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1               ; <i32*> [#uses=1]
1081         %95 = load i32* %94, align 4            ; <i32> [#uses=1]
1082         br label %bb40
1083
1084 bb40:           ; preds = %bb42, %bb39
1085         %j15.0 = phi i32 [ %95, %bb39 ], [ %111, %bb42 ]                ; <i32> [#uses=2]
1086         %96 = icmp sgt i32 %j15.0, -2           ; <i1> [#uses=1]
1087         br i1 %96, label %bb43, label %bb42
1088
1089 bb42:           ; preds = %bb40
1090         %97 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5               ; <i32*> [#uses=1]
1091         %98 = load i32* %97, align 4            ; <i32> [#uses=1]
1092         %99 = add i32 %98, 1            ; <i32> [#uses=1]
1093         %100 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1094         store i32 %99, i32* %100, align 4
1095         %101 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4              ; <i32*> [#uses=1]
1096         %102 = load i32* %101, align 4          ; <i32> [#uses=1]
1097         %103 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
1098         %104 = load %struct.system__file_control_block__pstring** %103, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
1099         %105 = getelementptr %struct.system__file_control_block__pstring* %104, i32 0, i32 0            ; <i8**> [#uses=1]
1100         %106 = load i8** %105, align 4          ; <i8*> [#uses=1]
1101         %107 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1102         %108 = load i32* %107, align 4          ; <i32> [#uses=1]
1103         %109 = sub i32 %108, %102               ; <i32> [#uses=1]
1104         %110 = getelementptr i8* %106, i32 %109         ; <i8*> [#uses=1]
1105         store i8 48, i8* %110, align 1
1106         %111 = add i32 %j15.0, 1                ; <i32> [#uses=1]
1107         br label %bb40
1108
1109 bb43:           ; preds = %bb37, %bb40
1110         %112 = trunc i64 %abs to i32            ; <i32> [#uses=1]
1111         %113 = getelementptr [10 x i8]* @.str3, i32 0, i32 %112         ; <i8*> [#uses=1]
1112         %114 = load i8* %113, align 1           ; <i8> [#uses=1]
1113         %115 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1114         %116 = load i32* %115, align 4          ; <i32> [#uses=1]
1115         %117 = add i32 %116, 1          ; <i32> [#uses=1]
1116         %118 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1117         store i32 %117, i32* %118, align 4
1118         %119 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4              ; <i32*> [#uses=1]
1119         %120 = load i32* %119, align 4          ; <i32> [#uses=1]
1120         %121 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
1121         %122 = load %struct.system__file_control_block__pstring** %121, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
1122         %123 = getelementptr %struct.system__file_control_block__pstring* %122, i32 0, i32 0            ; <i8**> [#uses=1]
1123         %124 = load i8** %123, align 4          ; <i8*> [#uses=1]
1124         %125 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1125         %126 = load i32* %125, align 4          ; <i32> [#uses=1]
1126         %127 = sub i32 %126, %120               ; <i32> [#uses=1]
1127         %128 = getelementptr i8* %124, i32 %127         ; <i8*> [#uses=1]
1128         store i8 %114, i8* %128, align 1
1129         br label %bb48
1130
1131 bb44:           ; preds = %bb19
1132         %129 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1              ; <i32*> [#uses=1]
1133         %130 = load i32* %129, align 4          ; <i32> [#uses=1]
1134         %131 = icmp eq i32 %130, -1             ; <i1> [#uses=1]
1135         br i1 %131, label %bb46, label %bb47
1136
1137 bb46:           ; preds = %bb44
1138         %132 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1139         %133 = load i32* %132, align 4          ; <i32> [#uses=1]
1140         %134 = add i32 %133, 1          ; <i32> [#uses=1]
1141         %135 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1142         store i32 %134, i32* %135, align 4
1143         %136 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4              ; <i32*> [#uses=1]
1144         %137 = load i32* %136, align 4          ; <i32> [#uses=1]
1145         %138 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
1146         %139 = load %struct.system__file_control_block__pstring** %138, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
1147         %140 = getelementptr %struct.system__file_control_block__pstring* %139, i32 0, i32 0            ; <i8**> [#uses=1]
1148         %141 = load i8** %140, align 4          ; <i8*> [#uses=1]
1149         %142 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1150         %143 = load i32* %142, align 4          ; <i32> [#uses=1]
1151         %144 = sub i32 %143, %137               ; <i32> [#uses=1]
1152         %145 = getelementptr i8* %141, i32 %144         ; <i8*> [#uses=1]
1153         store i8 46, i8* %145, align 1
1154         br label %bb47
1155
1156 bb47:           ; preds = %bb44, %bb46
1157         %146 = trunc i64 %abs to i32            ; <i32> [#uses=1]
1158         %147 = getelementptr [10 x i8]* @.str3, i32 0, i32 %146         ; <i8*> [#uses=1]
1159         %148 = load i8* %147, align 1           ; <i8> [#uses=1]
1160         %149 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1161         %150 = load i32* %149, align 4          ; <i32> [#uses=1]
1162         %151 = add i32 %150, 1          ; <i32> [#uses=1]
1163         %152 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1164         store i32 %151, i32* %152, align 4
1165         %153 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 4              ; <i32*> [#uses=1]
1166         %154 = load i32* %153, align 4          ; <i32> [#uses=1]
1167         %155 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 3              ; <%struct.system__file_control_block__pstring**> [#uses=1]
1168         %156 = load %struct.system__file_control_block__pstring** %155, align 4         ; <%struct.system__file_control_block__pstring*> [#uses=1]
1169         %157 = getelementptr %struct.system__file_control_block__pstring* %156, i32 0, i32 0            ; <i8**> [#uses=1]
1170         %158 = load i8** %157, align 4          ; <i8*> [#uses=1]
1171         %159 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 5              ; <i32*> [#uses=1]
1172         %160 = load i32* %159, align 4          ; <i32> [#uses=1]
1173         %161 = sub i32 %160, %154               ; <i32> [#uses=1]
1174         %162 = getelementptr i8* %158, i32 %161         ; <i8*> [#uses=1]
1175         store i8 %148, i8* %162, align 1
1176         br label %bb48
1177
1178 bb48:           ; preds = %bb23, %bb47, %bb43
1179         %163 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1              ; <i32*> [#uses=1]
1180         %164 = load i32* %163, align 4          ; <i32> [#uses=1]
1181         %165 = add i32 %164, -1         ; <i32> [#uses=1]
1182         %166 = getelementptr %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.361, i32 0, i32 1              ; <i32*> [#uses=1]
1183         store i32 %165, i32* %166, align 4
1184         ret void
1185
1186 return:         ; preds = %entry
1187         ret void
1188 }
1189
1190 define internal fastcc void @ce3806g__fxio__put__put_scaled__4.1346(%struct.FRAME.ce3806g__fxio__put__4* %CHAIN.365, i64 %x, i64 %y, i64 %z, i32 %a, i32 %e) {
1191 entry:
1192         %0 = alloca { i64, i64 }                ; <{ i64, i64 }*> [#uses=3]
1193         %1 = call i8* @llvm.stacksave( )                ; <i8*> [#uses=1]
1194         %2 = add i32 %a, 17             ; <i32> [#uses=2]
1195         %3 = sdiv i32 %2, 18            ; <i32> [#uses=3]
1196         %4 = add i32 %3, 1              ; <i32> [#uses=7]
1197         %5 = icmp sgt i32 %4, -1                ; <i1> [#uses=1]
1198         %max53 = select i1 %5, i32 %4, i32 0            ; <i32> [#uses=1]
1199         %6 = alloca i64, i32 %max53             ; <i64*> [#uses=21]
1200         %7 = icmp sgt i32 %4, 0         ; <i1> [#uses=1]
1201         br i1 %7, label %bb55, label %bb58
1202
1203 bb55:           ; preds = %entry, %bb57
1204         %J60b.0 = phi i32 [ %11, %bb57 ], [ 1, %entry ]         ; <i32> [#uses=3]
1205         %8 = add i32 %J60b.0, -1                ; <i32> [#uses=1]
1206         %9 = getelementptr i64* %6, i32 %8              ; <i64*> [#uses=1]
1207         store i64 0, i64* %9, align 8
1208         %10 = icmp eq i32 %4, %J60b.0           ; <i1> [#uses=1]
1209         br i1 %10, label %bb58, label %bb57
1210
1211 bb57:           ; preds = %bb55
1212         %11 = add i32 %J60b.0, 1                ; <i32> [#uses=1]
1213         br label %bb55
1214
1215 bb58:           ; preds = %entry, %bb55
1216         %12 = icmp sgt i32 %4, 0                ; <i1> [#uses=1]
1217         br i1 %12, label %bb61, label %bb91
1218
1219 bb61:           ; preds = %bb58, %bb90
1220         %j2.0 = phi i32 [ %88, %bb90 ], [ 1, %bb58 ]            ; <i32> [#uses=11]
1221         %aa.0 = phi i32 [ %86, %bb90 ], [ %a, %bb58 ]           ; <i32> [#uses=6]
1222         %yy.0 = phi i64 [ %84, %bb90 ], [ %y, %bb58 ]           ; <i64> [#uses=3]
1223         %xx.0 = phi i64 [ %21, %bb90 ], [ %x, %bb58 ]           ; <i64> [#uses=2]
1224         %13 = icmp eq i64 %xx.0, 0              ; <i1> [#uses=1]
1225         br i1 %13, label %bb91, label %bb63
1226
1227 bb63:           ; preds = %bb61
1228         %14 = icmp eq i32 %aa.0, 0              ; <i1> [#uses=1]
1229         %15 = zext i1 %14 to i8         ; <i8> [#uses=1]
1230         invoke void @system__arith_64__scaled_divide( { i64, i64 }* noalias sret %0, i64 %xx.0, i64 %yy.0, i64 %z, i8 %15 )
1231                         to label %invcont unwind label %lpad
1232
1233 invcont:                ; preds = %bb63
1234         %16 = getelementptr { i64, i64 }* %0, i32 0, i32 0              ; <i64*> [#uses=1]
1235         %17 = load i64* %16, align 8            ; <i64> [#uses=1]
1236         %18 = add i32 %j2.0, -1         ; <i32> [#uses=1]
1237         %19 = getelementptr i64* %6, i32 %18            ; <i64*> [#uses=1]
1238         store i64 %17, i64* %19, align 8
1239         %20 = getelementptr { i64, i64 }* %0, i32 0, i32 1              ; <i64*> [#uses=1]
1240         %21 = load i64* %20, align 8            ; <i64> [#uses=1]
1241         %22 = add i32 %j2.0, -1         ; <i32> [#uses=1]
1242         %23 = getelementptr i64* %6, i32 %22            ; <i64*> [#uses=1]
1243         %24 = load i64* %23, align 8            ; <i64> [#uses=1]
1244         %25 = icmp eq i64 %24, %yy.0            ; <i1> [#uses=1]
1245         %26 = add i32 %j2.0, -1         ; <i32> [#uses=1]
1246         %27 = getelementptr i64* %6, i32 %26            ; <i64*> [#uses=1]
1247         %28 = load i64* %27, align 8            ; <i64> [#uses=1]
1248         %29 = sub i64 0, %28            ; <i64> [#uses=1]
1249         %30 = icmp eq i64 %yy.0, %29            ; <i1> [#uses=1]
1250         %31 = or i1 %25, %30            ; <i1> [#uses=1]
1251         %32 = icmp sgt i32 %j2.0, 1             ; <i1> [#uses=1]
1252         %or.cond = and i1 %31, %32              ; <i1> [#uses=1]
1253         br i1 %or.cond, label %bb69, label %bb83
1254
1255 bb69:           ; preds = %invcont
1256         %33 = add i32 %j2.0, -1         ; <i32> [#uses=1]
1257         %34 = getelementptr i64* %6, i32 %33            ; <i64*> [#uses=1]
1258         %35 = load i64* %34, align 8            ; <i64> [#uses=1]
1259         %36 = icmp slt i64 %35, 0               ; <i1> [#uses=1]
1260         %37 = add i32 %j2.0, -2         ; <i32> [#uses=1]
1261         %38 = getelementptr i64* %6, i32 %37            ; <i64*> [#uses=1]
1262         %39 = load i64* %38, align 8            ; <i64> [#uses=2]
1263         br i1 %36, label %bb71, label %bb72
1264
1265 bb71:           ; preds = %bb69
1266         %40 = add i64 %39, 1            ; <i64> [#uses=1]
1267         %41 = add i32 %j2.0, -2         ; <i32> [#uses=1]
1268         %42 = getelementptr i64* %6, i32 %41            ; <i64*> [#uses=1]
1269         store i64 %40, i64* %42, align 8
1270         br label %bb73
1271
1272 bb72:           ; preds = %bb69
1273         %43 = add i64 %39, -1           ; <i64> [#uses=1]
1274         %44 = add i32 %j2.0, -2         ; <i32> [#uses=1]
1275         %45 = getelementptr i64* %6, i32 %44            ; <i64*> [#uses=1]
1276         store i64 %43, i64* %45, align 8
1277         br label %bb73
1278
1279 bb73:           ; preds = %bb72, %bb71
1280         %46 = add i32 %j2.0, -1         ; <i32> [#uses=1]
1281         %47 = getelementptr i64* %6, i32 %46            ; <i64*> [#uses=1]
1282         store i64 0, i64* %47, align 8
1283         br label %bb74
1284
1285 bb74:           ; preds = %bb82, %bb73
1286         %j1.0 = phi i32 [ %4, %bb73 ], [ %81, %bb82 ]           ; <i32> [#uses=12]
1287         %48 = icmp slt i32 %j1.0, 2             ; <i1> [#uses=1]
1288         br i1 %48, label %bb83, label %bb76
1289
1290 bb76:           ; preds = %bb74
1291         %49 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1292         %50 = getelementptr i64* %6, i32 %49            ; <i64*> [#uses=1]
1293         %51 = load i64* %50, align 8            ; <i64> [#uses=1]
1294         %52 = icmp sgt i64 %51, 999999999999999999              ; <i1> [#uses=1]
1295         br i1 %52, label %bb78, label %bb79
1296
1297 bb78:           ; preds = %bb76
1298         %53 = add i32 %j1.0, -2         ; <i32> [#uses=1]
1299         %54 = getelementptr i64* %6, i32 %53            ; <i64*> [#uses=1]
1300         %55 = load i64* %54, align 8            ; <i64> [#uses=1]
1301         %56 = add i64 %55, 1            ; <i64> [#uses=1]
1302         %57 = add i32 %j1.0, -2         ; <i32> [#uses=1]
1303         %58 = getelementptr i64* %6, i32 %57            ; <i64*> [#uses=1]
1304         store i64 %56, i64* %58, align 8
1305         %59 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1306         %60 = getelementptr i64* %6, i32 %59            ; <i64*> [#uses=1]
1307         %61 = load i64* %60, align 8            ; <i64> [#uses=1]
1308         %62 = add i64 %61, -1000000000000000000         ; <i64> [#uses=1]
1309         %63 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1310         %64 = getelementptr i64* %6, i32 %63            ; <i64*> [#uses=1]
1311         store i64 %62, i64* %64, align 8
1312         br label %bb82
1313
1314 bb79:           ; preds = %bb76
1315         %65 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1316         %66 = getelementptr i64* %6, i32 %65            ; <i64*> [#uses=1]
1317         %67 = load i64* %66, align 8            ; <i64> [#uses=1]
1318         %68 = icmp slt i64 %67, -999999999999999999             ; <i1> [#uses=1]
1319         br i1 %68, label %bb81, label %bb82
1320
1321 bb81:           ; preds = %bb79
1322         %69 = add i32 %j1.0, -2         ; <i32> [#uses=1]
1323         %70 = getelementptr i64* %6, i32 %69            ; <i64*> [#uses=1]
1324         %71 = load i64* %70, align 8            ; <i64> [#uses=1]
1325         %72 = add i64 %71, -1           ; <i64> [#uses=1]
1326         %73 = add i32 %j1.0, -2         ; <i32> [#uses=1]
1327         %74 = getelementptr i64* %6, i32 %73            ; <i64*> [#uses=1]
1328         store i64 %72, i64* %74, align 8
1329         %75 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1330         %76 = getelementptr i64* %6, i32 %75            ; <i64*> [#uses=1]
1331         %77 = load i64* %76, align 8            ; <i64> [#uses=1]
1332         %78 = add i64 %77, 1000000000000000000          ; <i64> [#uses=1]
1333         %79 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1334         %80 = getelementptr i64* %6, i32 %79            ; <i64*> [#uses=1]
1335         store i64 %78, i64* %80, align 8
1336         br label %bb82
1337
1338 bb82:           ; preds = %bb79, %bb81, %bb78
1339         %81 = add i32 %j1.0, -1         ; <i32> [#uses=1]
1340         br label %bb74
1341
1342 bb83:           ; preds = %invcont, %bb74
1343         %82 = icmp slt i32 %aa.0, 19            ; <i1> [#uses=1]
1344         %min = select i1 %82, i32 %aa.0, i32 18         ; <i32> [#uses=1]
1345         %83 = invoke i64 @system__exn_lli__exn_long_long_integer( i64 10, i32 %min ) readnone
1346                         to label %invcont86 unwind label %lpad          ; <i64> [#uses=1]
1347
1348 invcont86:              ; preds = %bb83
1349         %84 = sub i64 0, %83            ; <i64> [#uses=1]
1350         %85 = icmp slt i32 %aa.0, 19            ; <i1> [#uses=1]
1351         %min87 = select i1 %85, i32 %aa.0, i32 18               ; <i32> [#uses=1]
1352         %86 = sub i32 %aa.0, %min87             ; <i32> [#uses=1]
1353         %87 = icmp eq i32 %4, %j2.0             ; <i1> [#uses=1]
1354         br i1 %87, label %bb91, label %bb90
1355
1356 bb90:           ; preds = %invcont86
1357         %88 = add i32 %j2.0, 1          ; <i32> [#uses=1]
1358         br label %bb61
1359
1360 bb91:           ; preds = %bb58, %bb61, %invcont86
1361         %89 = icmp slt i32 %2, 18               ; <i1> [#uses=1]
1362         br i1 %89, label %bb98, label %bb94
1363
1364 bb94:           ; preds = %bb91, %bb97
1365         %j.0 = phi i32 [ %97, %bb97 ], [ 1, %bb91 ]             ; <i32> [#uses=4]
1366         %90 = mul i32 %j.0, 18          ; <i32> [#uses=1]
1367         %91 = add i32 %90, -18          ; <i32> [#uses=1]
1368         %92 = sub i32 %e, %91           ; <i32> [#uses=1]
1369         %93 = add i32 %j.0, -1          ; <i32> [#uses=1]
1370         %94 = getelementptr i64* %6, i32 %93            ; <i64*> [#uses=1]
1371         %95 = load i64* %94, align 8            ; <i64> [#uses=1]
1372         invoke fastcc void @ce3806g__fxio__put__put_int64__4.1339( %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.365, i64 %95, i32 %92 )
1373                         to label %invcont95 unwind label %lpad
1374
1375 invcont95:              ; preds = %bb94
1376         %96 = icmp eq i32 %3, %j.0              ; <i1> [#uses=1]
1377         br i1 %96, label %bb98, label %bb97
1378
1379 bb97:           ; preds = %invcont95
1380         %97 = add i32 %j.0, 1           ; <i32> [#uses=1]
1381         br label %bb94
1382
1383 bb98:           ; preds = %bb91, %invcont95
1384         %98 = sub i32 %e, %a            ; <i32> [#uses=1]
1385         %99 = getelementptr i64* %6, i32 %3             ; <i64*> [#uses=1]
1386         %100 = load i64* %99, align 8           ; <i64> [#uses=1]
1387         invoke fastcc void @ce3806g__fxio__put__put_int64__4.1339( %struct.FRAME.ce3806g__fxio__put__4* %CHAIN.365, i64 %100, i32 %98 )
1388                         to label %bb101 unwind label %lpad
1389
1390 bb101:          ; preds = %bb98
1391         ret void
1392
1393 lpad:           ; preds = %bb98, %bb94, %bb83, %bb63
1394         %eh_ptr = call i8* @llvm.eh.exception( )                ; <i8*> [#uses=2]
1395         %eh_select103 = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_all_others_value )           ; <i32> [#uses=0]
1396         call void @llvm.stackrestore( i8* %1 )
1397         %101 = call i32 (...)* @_Unwind_Resume( i8* %eh_ptr )           ; <i32> [#uses=0]
1398         unreachable
1399 }
1400
1401 declare i8* @llvm.stacksave() nounwind
1402
1403 declare void @system__arith_64__scaled_divide({ i64, i64 }* noalias sret, i64, i64, i64, i8)
1404
1405 declare i64 @system__exn_lli__exn_long_long_integer(i64, i32) readnone
1406
1407 declare void @llvm.stackrestore(i8*) nounwind
1408
1409 declare i32 @system__img_real__set_image_real(x86_fp80, i8*, %struct.string___XUB*, i32, i32, i32, i32)
1410
1411 declare void @ada__text_io__generic_aux__put_item(%struct.ada__text_io__text_afcb*, i8*, %struct.string___XUB*)
1412
1413 declare void @report__test(i8*, %struct.string___XUB*, i8*, %struct.string___XUB*)
1414
1415 declare void @system__secondary_stack__ss_mark(%struct.string___XUB* noalias sret)
1416
1417 declare void @system__exception_table__register_exception(%struct.system__standard_library__exception_data*)
1418
1419 declare void @report__legal_file_name(%struct.system__file_control_block__pstring* noalias sret, i32, i8*, %struct.string___XUB*)
1420
1421 declare %struct.ada__text_io__text_afcb* @ada__text_io__create(%struct.ada__text_io__text_afcb*, i8, i8*, %struct.string___XUB*, i8*, %struct.string___XUB*)
1422
1423 declare void @system__secondary_stack__ss_release(i32, i32)
1424
1425 declare void @report__not_applicable(i8*, %struct.string___XUB*)
1426
1427 declare void @ada__text_io__set_output(%struct.ada__text_io__text_afcb*)
1428
1429 declare %struct.ada__text_io__text_afcb* @ada__text_io__close(%struct.ada__text_io__text_afcb*)
1430
1431 declare %struct.ada__text_io__text_afcb* @ada__text_io__open(%struct.ada__text_io__text_afcb*, i8, i8*, %struct.string___XUB*, i8*, %struct.string___XUB*)
1432
1433 declare %struct.ada__text_io__text_afcb* @ada__text_io__standard_output()
1434
1435 declare void @report__failed(i8*, %struct.string___XUB*)
1436
1437 declare %struct.ada__text_io__text_afcb* @ada__text_io__delete(%struct.ada__text_io__text_afcb*)
1438
1439 declare void @report__result()