#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 IFF_RUNNING;
int IFF_TAP;
int IFF_TUN;
int IFF_UP;
int IFNAMSIZ;
int SIOCGIFFLAGS;
int SIOCGIFINDEX;
int SIOCSIFADDR;
int SIOCSIFFLAGS;
int TUNSETIFF;
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("pub const "
         "TUNSETIFF"
         ": "
         "c_int"
         " = "
         "%lu"
         ";\n",
         TUNSETIFF);
  printf("pub const "
         "SIOCSIFADDR"
         ": "
         "c_int"
         " = "
         "%d"
         ";\n",
         SIOCSIFADDR);
  printf("pub const "
         "SIOCGIFINDEX"
         ": "
         "c_int"
         " = "
         "%d"
         ";\n",
         SIOCGIFINDEX);
  printf("pub const "
         "SIOCGIFFLAGS"
         ": "
         "c_int"
         " = "
         "%d"
         ";\n",
         SIOCGIFFLAGS);
  printf("pub const "
         "SIOCSIFFLAGS"
         ": "
         "c_int"
         " = "
         "%d"
         ";\n",
         SIOCSIFFLAGS);
  printf("pub const "
         "IFF_TUN"
         ": "
         "c_short"
         " = "
         "%d"
         ";\n",
         IFF_TUN);
  printf("pub const "
         "IFF_TAP"
         ": "
         "c_short"
         " = "
         "%d"
         ";\n",
         IFF_TAP);
  printf("pub const "
         "IFF_UP"
         ": "
         "c_short"
         " = "
         "%d"
         ";\n",
         IFF_UP);
  printf("pub const "
         "IFF_RUNNING"
         ": "
         "c_short"
         " = "
         "%d"
         ";\n",
         IFF_RUNNING);
  printf("pub const "
         "IFNAMSIZ"
         ": "
         "usize"
         " = "
         "%d"
         ";\n",
         IFNAMSIZ);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5d(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%esi
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0xf2b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%esi
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%esi
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%esi
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e98(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e4e(%rip),%rax
mov    (%rax),%esi
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%esi
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%esi
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%esi
lea    0xf2c(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%esi
lea    0xf46(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"pub const TUNSETIFF: c_int = %lu;\0A\00"
@TUNSETIFF = global i32 0
@.str.1 = [36 x i8] c"pub const SIOCSIFADDR: c_int = %d;\0A\00"
@SIOCSIFADDR = global i32 0
@.str.2 = [37 x i8] c"pub const SIOCGIFINDEX: c_int = %d;\0A\00"
@SIOCGIFINDEX = global i32 0
@.str.3 = [37 x i8] c"pub const SIOCGIFFLAGS: c_int = %d;\0A\00"
@SIOCGIFFLAGS = global i32 0
@.str.4 = [37 x i8] c"pub const SIOCSIFFLAGS: c_int = %d;\0A\00"
@SIOCSIFFLAGS = global i32 0
@.str.5 = [34 x i8] c"pub const IFF_TUN: c_short = %d;\0A\00"
@IFF_TUN = global i32 0
@.str.6 = [34 x i8] c"pub const IFF_TAP: c_short = %d;\0A\00"
@IFF_TAP = global i32 0
@.str.7 = [33 x i8] c"pub const IFF_UP: c_short = %d;\0A\00"
@IFF_UP = global i32 0
@.str.8 = [38 x i8] c"pub const IFF_RUNNING: c_short = %d;\0A\00"
@IFF_RUNNING = global i32 0
@.str.9 = [33 x i8] c"pub const IFNAMSIZ: usize = %d;\0A\00"
@IFNAMSIZ = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @TUNSETIFF
%3 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @SIOCSIFADDR
%5 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @SIOCGIFINDEX
%7 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @SIOCGIFFLAGS
%9 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @SIOCSIFFLAGS
%11 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @IFF_TUN
%13 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @IFF_TAP
%15 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @IFF_UP
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @IFF_RUNNING
%19 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @IFNAMSIZ
%21 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"pub const TUNSETIFF: c_int = %lu;\0A\00"
@TUNSETIFF = global i32 0
@.str.1 = [36 x i8] c"pub const SIOCSIFADDR: c_int = %d;\0A\00"
@SIOCSIFADDR = global i32 0
@.str.2 = [37 x i8] c"pub const SIOCGIFINDEX: c_int = %d;\0A\00"
@SIOCGIFINDEX = global i32 0
@.str.3 = [37 x i8] c"pub const SIOCGIFFLAGS: c_int = %d;\0A\00"
@SIOCGIFFLAGS = global i32 0
@.str.4 = [37 x i8] c"pub const SIOCSIFFLAGS: c_int = %d;\0A\00"
@SIOCSIFFLAGS = global i32 0
@.str.5 = [34 x i8] c"pub const IFF_TUN: c_short = %d;\0A\00"
@IFF_TUN = global i32 0
@.str.6 = [34 x i8] c"pub const IFF_TAP: c_short = %d;\0A\00"
@IFF_TAP = global i32 0
@.str.7 = [33 x i8] c"pub const IFF_UP: c_short = %d;\0A\00"
@IFF_UP = global i32 0
@.str.8 = [38 x i8] c"pub const IFF_RUNNING: c_short = %d;\0A\00"
@IFF_RUNNING = global i32 0
@.str.9 = [33 x i8] c"pub const IFNAMSIZ: usize = %d;\0A\00"
@IFNAMSIZ = global i32 0
define i32 @main() {
%1 = load i32, i32* @TUNSETIFF
%2 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @SIOCSIFADDR
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @SIOCGIFINDEX
%6 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SIOCGIFFLAGS
%8 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SIOCSIFFLAGS
%10 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @IFF_TUN
%12 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @IFF_TAP
%14 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @IFF_UP
%16 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @IFF_RUNNING
%18 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @IFNAMSIZ
%20 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %19)
ret i32 0
}