Spaces:
Runtime error
Runtime error
File size: 11,936 Bytes
aaffe1f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
pragma Ada_95;
pragma Source_File_Name (ada_main, Spec_File_Name => "b__sorter.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__sorter.adb");
with Ada.Exceptions;
package body ada_main is
pragma Warnings (Off);
E076 : Short_Integer; pragma Import (Ada, E076, "system__os_lib_E");
E011 : Short_Integer; pragma Import (Ada, E011, "system__soft_links_E");
E116 : Short_Integer; pragma Import (Ada, E116, "system__fat_flt_E");
E104 : Short_Integer; pragma Import (Ada, E104, "system__fat_llf_E");
E021 : Short_Integer; pragma Import (Ada, E021, "system__exception_table_E");
E052 : Short_Integer; pragma Import (Ada, E052, "ada__io_exceptions_E");
E143 : Short_Integer; pragma Import (Ada, E143, "ada__strings_E");
E145 : Short_Integer; pragma Import (Ada, E145, "ada__strings__maps_E");
E148 : Short_Integer; pragma Import (Ada, E148, "ada__strings__maps__constants_E");
E054 : Short_Integer; pragma Import (Ada, E054, "ada__tags_E");
E051 : Short_Integer; pragma Import (Ada, E051, "ada__streams_E");
E072 : Short_Integer; pragma Import (Ada, E072, "interfaces__c_E");
E191 : Short_Integer; pragma Import (Ada, E191, "interfaces__c__strings_E");
E027 : Short_Integer; pragma Import (Ada, E027, "system__exceptions_E");
E070 : Short_Integer; pragma Import (Ada, E070, "system__finalization_root_E");
E068 : Short_Integer; pragma Import (Ada, E068, "ada__finalization_E");
E089 : Short_Integer; pragma Import (Ada, E089, "system__storage_pools_E");
E081 : Short_Integer; pragma Import (Ada, E081, "system__finalization_masters_E");
E095 : Short_Integer; pragma Import (Ada, E095, "system__storage_pools__subpools_E");
E165 : Short_Integer; pragma Import (Ada, E165, "ada__calendar_E");
E171 : Short_Integer; pragma Import (Ada, E171, "ada__calendar__time_zones_E");
E091 : Short_Integer; pragma Import (Ada, E091, "system__pool_global_E");
E079 : Short_Integer; pragma Import (Ada, E079, "system__file_control_block_E");
E066 : Short_Integer; pragma Import (Ada, E066, "system__file_io_E");
E198 : Short_Integer; pragma Import (Ada, E198, "system__direct_io_E");
E015 : Short_Integer; pragma Import (Ada, E015, "system__secondary_stack_E");
E175 : Short_Integer; pragma Import (Ada, E175, "ada__strings__unbounded_E");
E163 : Short_Integer; pragma Import (Ada, E163, "ada__directories_E");
E187 : Short_Integer; pragma Import (Ada, E187, "system__regexp_E");
E049 : Short_Integer; pragma Import (Ada, E049, "ada__text_io_E");
E161 : Short_Integer; pragma Import (Ada, E161, "latin_utils__config_E");
E194 : Short_Integer; pragma Import (Ada, E194, "latin_utils__preface_E");
E159 : Short_Integer; pragma Import (Ada, E159, "latin_utils__inflections_package_E");
E153 : Short_Integer; pragma Import (Ada, E153, "latin_utils__strings_package_E");
E151 : Short_Integer; pragma Import (Ada, E151, "latin_utils__dictionary_package_E");
Local_Priority_Specific_Dispatching : constant String := "";
Local_Interrupt_States : constant String := "";
Is_Elaborated : Boolean := False;
procedure finalize_library is
begin
E049 := E049 - 1;
declare
procedure F1;
pragma Import (Ada, F1, "ada__text_io__finalize_spec");
begin
F1;
end;
E163 := E163 - 1;
E187 := E187 - 1;
declare
procedure F2;
pragma Import (Ada, F2, "system__regexp__finalize_spec");
begin
F2;
end;
declare
procedure F3;
pragma Import (Ada, F3, "ada__directories__finalize_spec");
begin
F3;
end;
E175 := E175 - 1;
declare
procedure F4;
pragma Import (Ada, F4, "ada__strings__unbounded__finalize_spec");
begin
F4;
end;
E081 := E081 - 1;
E095 := E095 - 1;
declare
procedure F5;
pragma Import (Ada, F5, "system__file_io__finalize_body");
begin
E066 := E066 - 1;
F5;
end;
E198 := E198 - 1;
declare
procedure F6;
pragma Import (Ada, F6, "system__direct_io__finalize_spec");
begin
F6;
end;
declare
procedure F7;
pragma Import (Ada, F7, "system__file_control_block__finalize_spec");
begin
E079 := E079 - 1;
F7;
end;
E091 := E091 - 1;
declare
procedure F8;
pragma Import (Ada, F8, "system__pool_global__finalize_spec");
begin
F8;
end;
declare
procedure F9;
pragma Import (Ada, F9, "system__storage_pools__subpools__finalize_spec");
begin
F9;
end;
declare
procedure F10;
pragma Import (Ada, F10, "system__finalization_masters__finalize_spec");
begin
F10;
end;
declare
procedure Reraise_Library_Exception_If_Any;
pragma Import (Ada, Reraise_Library_Exception_If_Any, "__gnat_reraise_library_exception_if_any");
begin
Reraise_Library_Exception_If_Any;
end;
end finalize_library;
procedure adafinal is
procedure s_stalib_adafinal;
pragma Import (C, s_stalib_adafinal, "system__standard_library__adafinal");
begin
if not Is_Elaborated then
return;
end if;
Is_Elaborated := False;
s_stalib_adafinal;
end adafinal;
type No_Param_Proc is access procedure;
procedure adainit is
Main_Priority : Integer;
pragma Import (C, Main_Priority, "__gl_main_priority");
Time_Slice_Value : Integer;
pragma Import (C, Time_Slice_Value, "__gl_time_slice_val");
WC_Encoding : Character;
pragma Import (C, WC_Encoding, "__gl_wc_encoding");
Locking_Policy : Character;
pragma Import (C, Locking_Policy, "__gl_locking_policy");
Queuing_Policy : Character;
pragma Import (C, Queuing_Policy, "__gl_queuing_policy");
Task_Dispatching_Policy : Character;
pragma Import (C, Task_Dispatching_Policy, "__gl_task_dispatching_policy");
Priority_Specific_Dispatching : System.Address;
pragma Import (C, Priority_Specific_Dispatching, "__gl_priority_specific_dispatching");
Num_Specific_Dispatching : Integer;
pragma Import (C, Num_Specific_Dispatching, "__gl_num_specific_dispatching");
Main_CPU : Integer;
pragma Import (C, Main_CPU, "__gl_main_cpu");
Interrupt_States : System.Address;
pragma Import (C, Interrupt_States, "__gl_interrupt_states");
Num_Interrupt_States : Integer;
pragma Import (C, Num_Interrupt_States, "__gl_num_interrupt_states");
Unreserve_All_Interrupts : Integer;
pragma Import (C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts");
Detect_Blocking : Integer;
pragma Import (C, Detect_Blocking, "__gl_detect_blocking");
Default_Stack_Size : Integer;
pragma Import (C, Default_Stack_Size, "__gl_default_stack_size");
Leap_Seconds_Support : Integer;
pragma Import (C, Leap_Seconds_Support, "__gl_leap_seconds_support");
procedure Install_Handler;
pragma Import (C, Install_Handler, "__gnat_install_handler");
Handler_Installed : Integer;
pragma Import (C, Handler_Installed, "__gnat_handler_installed");
Finalize_Library_Objects : No_Param_Proc;
pragma Import (C, Finalize_Library_Objects, "__gnat_finalize_library_objects");
begin
if Is_Elaborated then
return;
end if;
Is_Elaborated := True;
Main_Priority := -1;
Time_Slice_Value := -1;
WC_Encoding := 'b';
Locking_Policy := ' ';
Queuing_Policy := ' ';
Task_Dispatching_Policy := ' ';
Priority_Specific_Dispatching :=
Local_Priority_Specific_Dispatching'Address;
Num_Specific_Dispatching := 0;
Main_CPU := -1;
Interrupt_States := Local_Interrupt_States'Address;
Num_Interrupt_States := 0;
Unreserve_All_Interrupts := 0;
Detect_Blocking := 0;
Default_Stack_Size := -1;
Leap_Seconds_Support := 0;
if Handler_Installed = 0 then
Install_Handler;
end if;
Finalize_Library_Objects := finalize_library'access;
System.Soft_Links'Elab_Spec;
System.Fat_Flt'Elab_Spec;
E116 := E116 + 1;
System.Fat_Llf'Elab_Spec;
E104 := E104 + 1;
System.Exception_Table'Elab_Body;
E021 := E021 + 1;
Ada.Io_Exceptions'Elab_Spec;
E052 := E052 + 1;
Ada.Strings'Elab_Spec;
E143 := E143 + 1;
Ada.Strings.Maps'Elab_Spec;
Ada.Strings.Maps.Constants'Elab_Spec;
E148 := E148 + 1;
Ada.Tags'Elab_Spec;
Ada.Streams'Elab_Spec;
E051 := E051 + 1;
Interfaces.C'Elab_Spec;
Interfaces.C.Strings'Elab_Spec;
System.Exceptions'Elab_Spec;
E027 := E027 + 1;
System.Finalization_Root'Elab_Spec;
E070 := E070 + 1;
Ada.Finalization'Elab_Spec;
E068 := E068 + 1;
System.Storage_Pools'Elab_Spec;
E089 := E089 + 1;
System.Finalization_Masters'Elab_Spec;
System.Storage_Pools.Subpools'Elab_Spec;
Ada.Calendar'Elab_Spec;
Ada.Calendar'Elab_Body;
E165 := E165 + 1;
Ada.Calendar.Time_Zones'Elab_Spec;
E171 := E171 + 1;
System.Pool_Global'Elab_Spec;
E091 := E091 + 1;
System.File_Control_Block'Elab_Spec;
E079 := E079 + 1;
System.Direct_Io'Elab_Spec;
E198 := E198 + 1;
System.File_Io'Elab_Body;
E066 := E066 + 1;
E095 := E095 + 1;
System.Finalization_Masters'Elab_Body;
E081 := E081 + 1;
E191 := E191 + 1;
E072 := E072 + 1;
Ada.Tags'Elab_Body;
E054 := E054 + 1;
E145 := E145 + 1;
System.Soft_Links'Elab_Body;
E011 := E011 + 1;
System.Os_Lib'Elab_Body;
E076 := E076 + 1;
System.Secondary_Stack'Elab_Body;
E015 := E015 + 1;
Ada.Strings.Unbounded'Elab_Spec;
E175 := E175 + 1;
Ada.Directories'Elab_Spec;
System.Regexp'Elab_Spec;
E187 := E187 + 1;
Ada.Directories'Elab_Body;
E163 := E163 + 1;
Ada.Text_Io'Elab_Spec;
Ada.Text_Io'Elab_Body;
E049 := E049 + 1;
Latin_Utils.Config'Elab_Body;
E161 := E161 + 1;
E194 := E194 + 1;
Latin_Utils.Inflections_Package'Elab_Spec;
Latin_Utils.Inflections_Package'Elab_Body;
E159 := E159 + 1;
E153 := E153 + 1;
Latin_Utils.Dictionary_Package'Elab_Spec;
Latin_Utils.Dictionary_Package'Elab_Body;
E151 := E151 + 1;
end adainit;
procedure Ada_Main_Program;
pragma Import (Ada, Ada_Main_Program, "_ada_sorter");
function main
(argc : Integer;
argv : System.Address;
envp : System.Address)
return Integer
is
procedure Initialize (Addr : System.Address);
pragma Import (C, Initialize, "__gnat_initialize");
procedure Finalize;
pragma Import (C, Finalize, "__gnat_finalize");
SEH : aliased array (1 .. 2) of Integer;
Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address;
pragma Volatile (Ensure_Reference);
begin
gnat_argc := argc;
gnat_argv := argv;
gnat_envp := envp;
Initialize (SEH'Address);
adainit;
Ada_Main_Program;
adafinal;
Finalize;
return (gnat_exit_status);
end;
-- BEGIN Object file/option list
-- /home/ubuntu/whitakers-words/obj/sorter.o
-- -L/home/ubuntu/whitakers-words/obj/
-- -L/home/ubuntu/whitakers-words/obj/
-- -L/home/ubuntu/whitakers-words/
-- -L/home/ubuntu/whitakers-words/lib/words_engine-static/
-- -L/home/ubuntu/whitakers-words/lib/support_utils-static/
-- -L/home/ubuntu/whitakers-words/lib/latin_utils-static/
-- -L/usr/lib/gcc/x86_64-linux-gnu/4.9/adalib/
-- -shared
-- -lgnat-4.9
-- END Object file/option list
end ada_main;
|