#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 /*<<< orphan*/ ioctl(int, int);
int main(int argc, const char *argv[]) {
  ioctl(-1, 0x12345670 + 0x0);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0x0);
  ioctl(-1, 0x12345670 + 0x2);
  ioctl(-1, 0x12345670 + 0x3);
  ioctl(-1, 0x12345670 + 0x4);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0x5);
  ioctl(-1, 0x12345670 + 0x5);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0x6);
  ioctl(-1, 0x12345670 + 0x7);
  ioctl(-1, 0x12345670 + 0x8);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0x9);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0x0);
  ioctl(-1, 0x12345670 + 0xa);
  ioctl(-1, 0x12345670 + 0xb);
  ioctl(-1, 0x12345670 + 0xc);
  ioctl(-1, 0x12345670 + 0xd);
  ioctl(-1, 0x12345670 + 0x1);
  ioctl(-1, 0x12345670 + 0xe);
  ioctl(-1, 0x12345670 + 0x0);
  ioctl(-1, 0x12345670 + 0xf);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345672,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345673,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345674,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345675,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345675,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345676,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345677,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345678,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345679,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567a,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567b,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567c,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567d,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567e,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567f,%esi
call   1030 <ioctl@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345672,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345673,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345674,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345675,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345675,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345676,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345677,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345678,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345679,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567a,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567b,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567c,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567d,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345671,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567e,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x12345670,%esi
call   1030 <ioctl@plt>
mov    $0xffffffff,%edi
mov    $0x1234567f,%esi
call   1030 <ioctl@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @ioctl(i32 -1, i32 305419888)
%7 = call i32 @ioctl(i32 -1, i32 305419889)
%8 = call i32 @ioctl(i32 -1, i32 305419888)
%9 = call i32 @ioctl(i32 -1, i32 305419890)
%10 = call i32 @ioctl(i32 -1, i32 305419891)
%11 = call i32 @ioctl(i32 -1, i32 305419892)
%12 = call i32 @ioctl(i32 -1, i32 305419889)
%13 = call i32 @ioctl(i32 -1, i32 305419893)
%14 = call i32 @ioctl(i32 -1, i32 305419893)
%15 = call i32 @ioctl(i32 -1, i32 305419889)
%16 = call i32 @ioctl(i32 -1, i32 305419894)
%17 = call i32 @ioctl(i32 -1, i32 305419895)
%18 = call i32 @ioctl(i32 -1, i32 305419896)
%19 = call i32 @ioctl(i32 -1, i32 305419889)
%20 = call i32 @ioctl(i32 -1, i32 305419897)
%21 = call i32 @ioctl(i32 -1, i32 305419889)
%22 = call i32 @ioctl(i32 -1, i32 305419888)
%23 = call i32 @ioctl(i32 -1, i32 305419898)
%24 = call i32 @ioctl(i32 -1, i32 305419899)
%25 = call i32 @ioctl(i32 -1, i32 305419900)
%26 = call i32 @ioctl(i32 -1, i32 305419901)
%27 = call i32 @ioctl(i32 -1, i32 305419889)
%28 = call i32 @ioctl(i32 -1, i32 305419902)
%29 = call i32 @ioctl(i32 -1, i32 305419888)
%30 = call i32 @ioctl(i32 -1, i32 305419903)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @ioctl(i32 -1, i32 305419888)
%4 = tail call i32 @ioctl(i32 -1, i32 305419889)
%5 = tail call i32 @ioctl(i32 -1, i32 305419888)
%6 = tail call i32 @ioctl(i32 -1, i32 305419890)
%7 = tail call i32 @ioctl(i32 -1, i32 305419891)
%8 = tail call i32 @ioctl(i32 -1, i32 305419892)
%9 = tail call i32 @ioctl(i32 -1, i32 305419889)
%10 = tail call i32 @ioctl(i32 -1, i32 305419893)
%11 = tail call i32 @ioctl(i32 -1, i32 305419893)
%12 = tail call i32 @ioctl(i32 -1, i32 305419889)
%13 = tail call i32 @ioctl(i32 -1, i32 305419894)
%14 = tail call i32 @ioctl(i32 -1, i32 305419895)
%15 = tail call i32 @ioctl(i32 -1, i32 305419896)
%16 = tail call i32 @ioctl(i32 -1, i32 305419889)
%17 = tail call i32 @ioctl(i32 -1, i32 305419897)
%18 = tail call i32 @ioctl(i32 -1, i32 305419889)
%19 = tail call i32 @ioctl(i32 -1, i32 305419888)
%20 = tail call i32 @ioctl(i32 -1, i32 305419898)
%21 = tail call i32 @ioctl(i32 -1, i32 305419899)
%22 = tail call i32 @ioctl(i32 -1, i32 305419900)
%23 = tail call i32 @ioctl(i32 -1, i32 305419901)
%24 = tail call i32 @ioctl(i32 -1, i32 305419889)
%25 = tail call i32 @ioctl(i32 -1, i32 305419902)
%26 = tail call i32 @ioctl(i32 -1, i32 305419888)
%27 = tail call i32 @ioctl(i32 -1, i32 305419903)
ret i32 0
}