#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int EACCES;
int EAGAIN;
int EBUSY;
int ECHILD;
int EDOM;
int EEXIST;
int EFAULT;
int EFBIG;
int EINVAL;
int EISDIR;
int EMFILE;
int EMLINK;
int ENFILE;
int ENODEV;
int ENOMEM;
int ENOSPC;
int ENOTBLK;
int ENOTDIR;
int ENOTTY;
int EPIPE;
int ERANGE;
int EROFS;
int ESPIPE;
int ETXTBSY;
int EXDEV;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("with Ada.Unchecked_Conversion;\npackage Syserrors is\n");
  printf("type Errno is "
         "(ECHILD,EAGAIN,ENOMEM,EACCES,EFAULT,ENOTBLK,EBUSY,EEXIST,EXDEV,"
         "ENODEV,ENOTDIR,EISDIR,EINVAL,ENFILE,EMFILE,ENOTTY,ETXTBSY,EFBIG,"
         "ENOSPC,ESPIPE,EROFS,EMLINK,EPIPE,EDOM,ERANGE);\n");
  printf("for Errno use (ECHILD =>  %d, EAGAIN =>  %d, ENOMEM =>  %d, EACCES "
         "=>  %d, EFAULT =>  %d, ENOTBLK =>  %d, EBUSY =>  %d, EEXIST =>  %d, "
         "EXDEV =>  %d, ENODEV =>  %d, ENOTDIR =>  %d, EISDIR =>  %d, EINVAL "
         "=>  %d, ENFILE =>  %d, EMFILE =>  %d, ENOTTY =>  %d, ETXTBSY =>  %d, "
         "EFBIG =>  %d, ENOSPC =>  %d, ESPIPE =>  %d, EROFS =>  %d, EMLINK =>  "
         "%d, EPIPE =>  %d, EDOM =>  %d, ERANGE =>  %d ); \n",
         ECHILD, EAGAIN, ENOMEM, EACCES, EFAULT, ENOTBLK, EBUSY, EEXIST, EXDEV,
         ENODEV, ENOTDIR, EISDIR, EINVAL, ENFILE, EMFILE, ENOTTY, ETXTBSY,
         EFBIG, ENOSPC, ESPIPE, EROFS, EMLINK, EPIPE, EDOM, ERANGE);
  printf("   function Value is new Ada.Unchecked_Conversion(Errno, "
         "Integer);\nend Syserrors;\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%esi
mov    0x2dc8(%rip),%rax
mov    (%rax),%edx
mov    0x2e1f(%rip),%rax
mov    (%rax),%ecx
mov    0x2e36(%rip),%rax
mov    (%rax),%r8d
mov    0x2e84(%rip),%rax
mov    (%rax),%r9d
mov    0x2dea(%rip),%rax
mov    (%rax),%eax
mov    0x2dc1(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x58(%rbp)
mov    0x2dfd(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x54(%rbp)
mov    0x2de9(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x50(%rbp)
mov    0x2d95(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x4c(%rbp)
mov    0x2e49(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x48(%rbp)
mov    0x2e05(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x44(%rbp)
mov    0x2d91(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x40(%rbp)
mov    0x2d5d(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x3c(%rbp)
mov    0x2d41(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x38(%rbp)
mov    0x2ddd(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x34(%rbp)
mov    0x2d71(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x30(%rbp)
mov    0x2dad(%rip),%rdi
mov    (%rdi),%r13d
mov    0x2d43(%rip),%rdi
mov    (%rdi),%r12d
mov    0x2d89(%rip),%rdi
mov    (%rdi),%r15d
mov    0x2daf(%rip),%rdi
mov    (%rdi),%r14d
mov    0x2db5(%rip),%rdi
mov    (%rdi),%ebx
mov    0x2d3c(%rip),%rdi
mov    (%rdi),%r11d
mov    0x2d7a(%rip),%rdi
mov    (%rdi),%r10d
mov    0x2d60(%rip),%rdi
mov    (%rdi),%edi
mov    %edi,-0x2c(%rbp)
lea    0xe9e(%rip),%rdi
mov    %eax,(%rsp)
mov    -0x58(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x54(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x50(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0x4c(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0x48(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0x44(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0x40(%rbp),%eax
mov    %eax,0x38(%rsp)
mov    -0x3c(%rbp),%eax
mov    %eax,0x40(%rsp)
mov    -0x38(%rbp),%eax
mov    %eax,0x48(%rsp)
mov    -0x34(%rbp),%eax
mov    %eax,0x50(%rsp)
mov    -0x30(%rbp),%eax
mov    %eax,0x58(%rsp)
mov    -0x2c(%rbp),%eax
mov    %r13d,0x60(%rsp)
mov    %r12d,0x68(%rsp)
mov    %r15d,0x70(%rsp)
mov    %r14d,0x78(%rsp)
mov    %ebx,0x80(%rsp)
mov    %r11d,0x88(%rsp)
mov    %r10d,0x90(%rsp)
mov    %eax,0x98(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x1079(%rip),%rdi
call   1030 <puts@plt>
mov    0x2dfb(%rip),%rax
mov    (%rax),%esi
mov    0x2dc2(%rip),%rax
mov    (%rax),%edx
mov    0x2e19(%rip),%rax
mov    (%rax),%ecx
mov    0x2e30(%rip),%rax
mov    (%rax),%r8d
mov    0x2e7e(%rip),%rax
mov    (%rax),%r9d
mov    0x2de4(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x60(%rsp)
mov    0x2db6(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x58(%rsp)
mov    0x2df0(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x50(%rsp)
mov    0x2dda(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x48(%rsp)
mov    0x2d84(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x40(%rsp)
mov    0x2e36(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x38(%rsp)
mov    0x2df0(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x30(%rsp)
mov    0x2d7a(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x28(%rsp)
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x20(%rsp)
mov    0x2d26(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x18(%rsp)
mov    0x2dc0(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x10(%rsp)
mov    0x2d52(%rip),%rax
mov    (%rax),%eax
mov    %rax,0x8(%rsp)
mov    0x2d8c(%rip),%rax
mov    (%rax),%r12d
mov    0x2d22(%rip),%rax
mov    (%rax),%r13d
mov    0x2d68(%rip),%rax
mov    (%rax),%r15d
mov    0x2d8e(%rip),%rax
mov    (%rax),%ebp
mov    0x2d95(%rip),%rax
mov    (%rax),%r14d
mov    0x2d1b(%rip),%rax
mov    (%rax),%ebx
mov    0x2d5a(%rip),%rax
mov    (%rax),%r11d
mov    0x2d40(%rip),%rax
mov    (%rax),%r10d
lea    0xd8e(%rip),%rdi
xor    %eax,%eax
push   %r10
push   %r11
push   %rbx
push   %r14
push   %rbp
push   %r15
push   %r13
push   %r12
push   0x48(%rsp)
push   0x58(%rsp)
push   0x68(%rsp)
push   0x78(%rsp)
push   0x88(%rsp)
push   0x98(%rsp)
push   0xa8(%rsp)
push   0xb8(%rsp)
push   0xc8(%rsp)
push   0xd8(%rsp)
push   0xe8(%rsp)
push   0xf8(%rsp)
call   1040 <printf@plt>
add    $0xa0,%rsp
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [53 x i8] c"with Ada.Unchecked_Conversion;\0Apackage Syserrors is\0A\00"
@.str.1 = [189 x i8] c"type Errno is (ECHILD,EAGAIN,ENOMEM,EACCES,EFAULT,ENOTBLK,EBUSY,EEXIST,EXDEV,ENODEV,ENOTDIR,EISDIR,EINVAL,ENFILE,EMFILE,ENOTTY,ETXTBSY,EFBIG,ENOSPC,ESPIPE,EROFS,EMLINK,EPIPE,EDOM,ERANGE);\0A\00"
@.str.2 = [390 x i8] c"for Errno use (ECHILD => %d, EAGAIN => %d, ENOMEM => %d, EACCES => %d, EFAULT => %d, ENOTBLK => %d, EBUSY => %d, EEXIST => %d, EXDEV => %d, ENODEV => %d, ENOTDIR => %d, EISDIR => %d, EINVAL => %d, ENFILE => %d, EMFILE => %d, ENOTTY => %d, ETXTBSY => %d, EFBIG => %d, ENOSPC => %d, ESPIPE => %d, EROFS => %d, EMLINK => %d, EPIPE => %d, EDOM => %d, ERANGE => %d ); \0A\00"
@ECHILD = global i32 0
@EAGAIN = global i32 0
@ENOMEM = global i32 0
@EACCES = global i32 0
@EFAULT = global i32 0
@ENOTBLK = global i32 0
@EBUSY = global i32 0
@EEXIST = global i32 0
@EXDEV = global i32 0
@ENODEV = global i32 0
@ENOTDIR = global i32 0
@EISDIR = global i32 0
@EINVAL = global i32 0
@ENFILE = global i32 0
@EMFILE = global i32 0
@ENOTTY = global i32 0
@ETXTBSY = global i32 0
@EFBIG = global i32 0
@ENOSPC = global i32 0
@ESPIPE = global i32 0
@EROFS = global i32 0
@EMLINK = global i32 0
@EPIPE = global i32 0
@EDOM = global i32 0
@ERANGE = global i32 0
@.str.3 = [83 x i8] c" function Value is new Ada.Unchecked_Conversion(Errno, Integer);\0Aend Syserrors;\0A\00"
define i32 @main() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @ECHILD
%4 = load i32, i32* @EAGAIN
%5 = load i32, i32* @ENOMEM
%6 = load i32, i32* @EACCES
%7 = load i32, i32* @EFAULT
%8 = load i32, i32* @ENOTBLK
%9 = load i32, i32* @EBUSY
%10 = load i32, i32* @EEXIST
%11 = load i32, i32* @EXDEV
%12 = load i32, i32* @ENODEV
%13 = load i32, i32* @ENOTDIR
%14 = load i32, i32* @EISDIR
%15 = load i32, i32* @EINVAL
%16 = load i32, i32* @ENFILE
%17 = load i32, i32* @EMFILE
%18 = load i32, i32* @ENOTTY
%19 = load i32, i32* @ETXTBSY
%20 = load i32, i32* @EFBIG
%21 = load i32, i32* @ENOSPC
%22 = load i32, i32* @ESPIPE
%23 = load i32, i32* @EROFS
%24 = load i32, i32* @EMLINK
%25 = load i32, i32* @EPIPE
%26 = load i32, i32* @EDOM
%27 = load i32, i32* @ERANGE
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([390 x i8], [390 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16, i32 %17, i32 %18, i32 %19, i32 %20, i32 %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [390 x i8] c"for Errno use (ECHILD => %d, EAGAIN => %d, ENOMEM => %d, EACCES => %d, EFAULT => %d, ENOTBLK => %d, EBUSY => %d, EEXIST => %d, EXDEV => %d, ENODEV => %d, ENOTDIR => %d, EISDIR => %d, EINVAL => %d, ENFILE => %d, EMFILE => %d, ENOTTY => %d, ETXTBSY => %d, EFBIG => %d, ENOSPC => %d, ESPIPE => %d, EROFS => %d, EMLINK => %d, EPIPE => %d, EDOM => %d, ERANGE => %d ); \0A\00"
@ECHILD = global i32 0
@EAGAIN = global i32 0
@ENOMEM = global i32 0
@EACCES = global i32 0
@EFAULT = global i32 0
@ENOTBLK = global i32 0
@EBUSY = global i32 0
@EEXIST = global i32 0
@EXDEV = global i32 0
@ENODEV = global i32 0
@ENOTDIR = global i32 0
@EISDIR = global i32 0
@EINVAL = global i32 0
@ENFILE = global i32 0
@EMFILE = global i32 0
@ENOTTY = global i32 0
@ETXTBSY = global i32 0
@EFBIG = global i32 0
@ENOSPC = global i32 0
@ESPIPE = global i32 0
@EROFS = global i32 0
@EMLINK = global i32 0
@EPIPE = global i32 0
@EDOM = global i32 0
@ERANGE = global i32 0
@str = [52 x i8] c"with Ada.Unchecked_Conversion;\0Apackage Syserrors is\00"
@str.4 = [188 x i8] c"type Errno is (ECHILD,EAGAIN,ENOMEM,EACCES,EFAULT,ENOTBLK,EBUSY,EEXIST,EXDEV,ENODEV,ENOTDIR,EISDIR,EINVAL,ENFILE,EMFILE,ENOTTY,ETXTBSY,EFBIG,ENOSPC,ESPIPE,EROFS,EMLINK,EPIPE,EDOM,ERANGE);\00"
@str.5 = [82 x i8] c" function Value is new Ada.Unchecked_Conversion(Errno, Integer);\0Aend Syserrors;\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([188 x i8], [188 x i8]* @str.4, i64 0, i64 0))
%3 = load i32, i32* @ECHILD
%4 = load i32, i32* @EAGAIN
%5 = load i32, i32* @ENOMEM
%6 = load i32, i32* @EACCES
%7 = load i32, i32* @EFAULT
%8 = load i32, i32* @ENOTBLK
%9 = load i32, i32* @EBUSY
%10 = load i32, i32* @EEXIST
%11 = load i32, i32* @EXDEV
%12 = load i32, i32* @ENODEV
%13 = load i32, i32* @ENOTDIR
%14 = load i32, i32* @EISDIR
%15 = load i32, i32* @EINVAL
%16 = load i32, i32* @ENFILE
%17 = load i32, i32* @EMFILE
%18 = load i32, i32* @ENOTTY
%19 = load i32, i32* @ETXTBSY
%20 = load i32, i32* @EFBIG
%21 = load i32, i32* @ENOSPC
%22 = load i32, i32* @ESPIPE
%23 = load i32, i32* @EROFS
%24 = load i32, i32* @EMLINK
%25 = load i32, i32* @EPIPE
%26 = load i32, i32* @EDOM
%27 = load i32, i32* @ERANGE
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([390 x i8], [390 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16, i32 %17, i32 %18, i32 %19, i32 %20, i32 %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}