#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ termios;
struct termios {
  int /*<<< orphan*/ c_cc;
  int /*<<< orphan*/ c_lflag;
  int /*<<< orphan*/ c_cflag;
  int /*<<< orphan*/ c_oflag;
  int /*<<< orphan*/ c_iflag;
};
struct stat {
  int dummy;
};
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
struct linger {
  int dummy;
};
typedef int /*<<< orphan*/ stat;
typedef int /*<<< orphan*/ sockaddr_in;
typedef int /*<<< orphan*/ sockaddr;
typedef int /*<<< orphan*/ linger;

/* Variables and functions */
int /*<<< orphan*/ gen_byteorder();
int /*<<< orphan*/ gen_field(char *, char *, char *, char *, int, int);
int /*<<< orphan*/ gen_struct(char *, char *, int);
int /*<<< orphan*/ printf(char *);
int main(void) {
  struct stat stat;
  struct sockaddr sockaddr;
  struct linger linger;
  struct sockaddr_in sockaddr_in;
  struct termios termios;
  printf(";; This file has been automatically generated\n");
  printf(";; by a program generated by interface-gen.pl\n\n");
  printf(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
         ";;;\n");
  printf(";; Section: Operating system services\n");
  printf(";;\n");
  printf(";; This section contains definitions automatically generated from "
         "the operating system's C include files.\n");
  printf("\n");
  printf(";; Flags defined in the C include files.  For any flag unix-X there "
         "is a #define unix-HAVE-X\n");
  printf("\n");
  gen_struct("unix-", "stat", sizeof(stat));
  gen_struct("unix-", "sockaddr", sizeof(sockaddr));
  gen_struct("unix-", "linger", sizeof(linger));
  gen_struct("unix-", "sockaddr_in", sizeof(sockaddr_in));
  gen_field("unix-", "sockaddr_in", "unsigned short ", "sin_family",
            (((char *)&(sockaddr_in.sin_family)) - ((char *)&(sockaddr_in))),
            sizeof(sockaddr_in.sin_family));
  gen_field("unix-", "sockaddr_in", "unsigned short ", "sin_port",
            (((char *)&(sockaddr_in.sin_port)) - ((char *)&(sockaddr_in))),
            sizeof(sockaddr_in.sin_port));
  gen_field(
      "unix-", "sockaddr_in", "unsigned int ", "sin_addr.s_addr",
      (((char *)&(sockaddr_in.sin_addr.s_addr)) - ((char *)&(sockaddr_in))),
      sizeof(sockaddr_in.sin_addr.s_addr));
  gen_struct("unix-", "termios", sizeof(termios));
  gen_field("unix-", "termios", "unsigned int ", "c_iflag",
            (((char *)&(termios.c_iflag)) - ((char *)&(termios))),
            sizeof(termios.c_iflag));
  gen_field("unix-", "termios", "unsigned int ", "c_oflag",
            (((char *)&(termios.c_oflag)) - ((char *)&(termios))),
            sizeof(termios.c_oflag));
  gen_field("unix-", "termios", "unsigned int ", "c_cflag",
            (((char *)&(termios.c_cflag)) - ((char *)&(termios))),
            sizeof(termios.c_cflag));
  gen_field("unix-", "termios", "unsigned int ", "c_lflag",
            (((char *)&(termios.c_lflag)) - ((char *)&(termios))),
            sizeof(termios.c_lflag));
  gen_field("unix-", "termios", "unsigned char *", "c_cc",
            (((char *)&(termios.c_cc)) - ((char *)&(termios))),
            sizeof(termios.c_cc));
  gen_byteorder();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
lea    0xfd6(%rip),%rsi
mov    $0x4,%edx
call   1040 <gen_struct@plt>
lea    0xfbf(%rip),%rdi
lea    0xfc3(%rip),%rsi
mov    $0x4,%edx
call   1040 <gen_struct@plt>
lea    0xfa7(%rip),%rdi
lea    0xfb4(%rip),%rsi
mov    $0x4,%edx
call   1040 <gen_struct@plt>
lea    0xf8f(%rip),%rdi
lea    0xfa3(%rip),%rsi
mov    $0xc,%edx
call   1040 <gen_struct@plt>
lea    -0x28(%rbp),%rax
add    $0x8,%rax
lea    -0x28(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xf65(%rip),%rdi
lea    0xf79(%rip),%rsi
lea    0xf7e(%rip),%rdx
lea    0xf87(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x28(%rbp),%rax
add    $0x4,%rax
lea    -0x28(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xf2c(%rip),%rdi
lea    0xf40(%rip),%rsi
lea    0xf45(%rip),%rdx
lea    0xf59(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x28(%rbp),%rax
lea    -0x28(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xef7(%rip),%rdi
lea    0xf0b(%rip),%rsi
lea    0xf34(%rip),%rdx
lea    0xf3b(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    0xed0(%rip),%rdi
lea    0xf32(%rip),%rsi
mov    $0x14,%edx
call   1040 <gen_struct@plt>
lea    -0x40(%rbp),%rax
add    $0x10,%rax
lea    -0x40(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xea6(%rip),%rdi
lea    0xf08(%rip),%rsi
lea    0xee3(%rip),%rdx
lea    0xf02(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x40(%rbp),%rax
add    $0xc,%rax
lea    -0x40(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xe6d(%rip),%rdi
lea    0xecf(%rip),%rsi
lea    0xeaa(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x40(%rbp),%rax
add    $0x8,%rax
lea    -0x40(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xe34(%rip),%rdi
lea    0xe96(%rip),%rsi
lea    0xe71(%rip),%rdx
lea    0xea0(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x40(%rbp),%rax
add    $0x4,%rax
lea    -0x40(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xdfb(%rip),%rdi
lea    0xe5d(%rip),%rsi
lea    0xe38(%rip),%rdx
lea    0xe6f(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
lea    -0x40(%rbp),%rax
lea    -0x40(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%r8d
lea    0xdc6(%rip),%rdi
lea    0xe28(%rip),%rsi
lea    0xe49(%rip),%rdx
lea    0xe52(%rip),%rcx
mov    $0x4,%r9d
call   1050 <gen_field@plt>
mov    $0x0,%al
call   1060 <gen_byteorder@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xf4a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcc(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1040 <puts@plt>
lea    0xfda(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x102e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe3c(%rip),%rbx
lea    0xe3b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1050 <gen_struct@plt>
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1050 <gen_struct@plt>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1050 <gen_struct@plt>
lea    0xe14(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xc,%edx
call   1050 <gen_struct@plt>
lea    0xe09(%rip),%r14
lea    0xe12(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0x8,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xdfc(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0x4,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xde4(%rip),%r14
lea    0xdeb(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %r8d,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xddd(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x14,%edx
call   1050 <gen_struct@plt>
lea    0xdce(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0x10,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xdb5(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0xc,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xd9c(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0x8,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xd83(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    $0x4,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
lea    0xd6a(%rip),%rdx
lea    0xd73(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %r8d,%r8d
mov    $0x4,%r9d
call   1060 <gen_field@plt>
xor    %eax,%eax
call   1070 <gen_byteorder@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
%struct.sockaddr = type { i32 }
%struct.linger = type { i32 }
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.termios = type { i32, i32, i32, i32, i32 }
@.str = [47 x i8] c";; This file has been automatically generated\0A\00"
@.str.1 = [48 x i8] c";; by a program generated by interface-gen.pl\0A\0A\00"
@.str.2 = [74 x i8] c";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\0A\00"
@.str.3 = [39 x i8] c";; Section: Operating system services\0A\00"
@.str.4 = [4 x i8] c";;\0A\00"
@.str.5 = [107 x i8] c";; This section contains definitions automatically generated from the operating system's C include files.\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [94 x i8] c";; Flags defined in the C include files. For any flag unix-X there is a #define unix-HAVE-X\0A\00"
@.str.8 = [6 x i8] c"unix-\00"
@.str.9 = [5 x i8] c"stat\00"
@.str.10 = [9 x i8] c"sockaddr\00"
@.str.11 = [7 x i8] c"linger\00"
@.str.12 = [12 x i8] c"sockaddr_in\00"
@.str.13 = [16 x i8] c"unsigned short \00"
@.str.14 = [11 x i8] c"sin_family\00"
@.str.15 = [9 x i8] c"sin_port\00"
@.str.16 = [14 x i8] c"unsigned int \00"
@.str.17 = [16 x i8] c"sin_addr.s_addr\00"
@.str.18 = [8 x i8] c"termios\00"
@.str.19 = [8 x i8] c"c_iflag\00"
@.str.20 = [8 x i8] c"c_oflag\00"
@.str.21 = [8 x i8] c"c_cflag\00"
@.str.22 = [8 x i8] c"c_lflag\00"
@.str.23 = [16 x i8] c"unsigned char *\00"
@.str.24 = [5 x i8] c"c_cc\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.stat
%3 = alloca %struct.sockaddr
%4 = alloca %struct.linger
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.termios
store i32 0, i32* %1
%7 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%17 = call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 4)
%18 = call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 4)
%19 = call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 12)
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 2
%21 = bitcast i32* %20 to i8*
%22 = bitcast %struct.sockaddr_in* %5 to i8*
%23 = ptrtoint i8* %21 to i64
%24 = ptrtoint i8* %22 to i64
%25 = sub i64 %23, %24
%26 = trunc i64 %25 to i32
%27 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %26, i32 4)
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 1
%29 = bitcast i32* %28 to i8*
%30 = bitcast %struct.sockaddr_in* %5 to i8*
%31 = ptrtoint i8* %29 to i64
%32 = ptrtoint i8* %30 to i64
%33 = sub i64 %31, %32
%34 = trunc i64 %33 to i32
%35 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %34, i32 4)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 0
%37 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %36, i32 0, i32 0
%38 = bitcast i32* %37 to i8*
%39 = bitcast %struct.sockaddr_in* %5 to i8*
%40 = ptrtoint i8* %38 to i64
%41 = ptrtoint i8* %39 to i64
%42 = sub i64 %40, %41
%43 = trunc i64 %42 to i32
%44 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i32 %43, i32 4)
%45 = call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i32 20)
%46 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 4
%47 = bitcast i32* %46 to i8*
%48 = bitcast %struct.termios* %6 to i8*
%49 = ptrtoint i8* %47 to i64
%50 = ptrtoint i8* %48 to i64
%51 = sub i64 %49, %50
%52 = trunc i64 %51 to i32
%53 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0), i32 %52, i32 4)
%54 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 3
%55 = bitcast i32* %54 to i8*
%56 = bitcast %struct.termios* %6 to i8*
%57 = ptrtoint i8* %55 to i64
%58 = ptrtoint i8* %56 to i64
%59 = sub i64 %57, %58
%60 = trunc i64 %59 to i32
%61 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i32 %60, i32 4)
%62 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 2
%63 = bitcast i32* %62 to i8*
%64 = bitcast %struct.termios* %6 to i8*
%65 = ptrtoint i8* %63 to i64
%66 = ptrtoint i8* %64 to i64
%67 = sub i64 %65, %66
%68 = trunc i64 %67 to i32
%69 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i32 %68, i32 4)
%70 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 1
%71 = bitcast i32* %70 to i8*
%72 = bitcast %struct.termios* %6 to i8*
%73 = ptrtoint i8* %71 to i64
%74 = ptrtoint i8* %72 to i64
%75 = sub i64 %73, %74
%76 = trunc i64 %75 to i32
%77 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i32 %76, i32 4)
%78 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%79 = bitcast i32* %78 to i8*
%80 = bitcast %struct.termios* %6 to i8*
%81 = ptrtoint i8* %79 to i64
%82 = ptrtoint i8* %80 to i64
%83 = sub i64 %81, %82
%84 = trunc i64 %83 to i32
%85 = call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 %84, i32 4)
%86 = call i32 (...) @gen_byteorder()
ret i32 0
}

LLVM IR (-O2):
@.str.8 = [6 x i8] c"unix-\00"
@.str.9 = [5 x i8] c"stat\00"
@.str.10 = [9 x i8] c"sockaddr\00"
@.str.11 = [7 x i8] c"linger\00"
@.str.12 = [12 x i8] c"sockaddr_in\00"
@.str.13 = [16 x i8] c"unsigned short \00"
@.str.14 = [11 x i8] c"sin_family\00"
@.str.15 = [9 x i8] c"sin_port\00"
@.str.16 = [14 x i8] c"unsigned int \00"
@.str.17 = [16 x i8] c"sin_addr.s_addr\00"
@.str.18 = [8 x i8] c"termios\00"
@.str.19 = [8 x i8] c"c_iflag\00"
@.str.20 = [8 x i8] c"c_oflag\00"
@.str.21 = [8 x i8] c"c_cflag\00"
@.str.22 = [8 x i8] c"c_lflag\00"
@.str.23 = [16 x i8] c"unsigned char *\00"
@.str.24 = [5 x i8] c"c_cc\00"
@str = [46 x i8] c";; This file has been automatically generated\00"
@str.25 = [47 x i8] c";; by a program generated by interface-gen.pl\0A\00"
@str.26 = [73 x i8] c";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\00"
@str.27 = [38 x i8] c";; Section: Operating system services\00"
@str.28 = [3 x i8] c";;\00"
@str.29 = [106 x i8] c";; This section contains definitions automatically generated from the operating system's C include files.\00"
@str.30 = [93 x i8] c";; Flags defined in the C include files. For any flag unix-X there is a #define unix-HAVE-X\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.25, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.26, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.27, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.28, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @str.29, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.30, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%11 = tail call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 4)
%12 = tail call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 4)
%13 = tail call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 12)
%14 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 8, i32 4)
%15 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 4, i32 4)
%16 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i32 0, i32 4)
%17 = tail call i32 @gen_struct(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i32 20)
%18 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0), i32 16, i32 4)
%19 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i32 12, i32 4)
%20 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i32 8, i32 4)
%21 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i32 4, i32 4)
%22 = tail call i32 @gen_field(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 0, i32 4)
%23 = tail call i32 (...) @gen_byteorder()
ret i32 0
}