xunge/DecIR huggingface dataset:
void RasterEndOfFrameIntDisable(unsigned int baseAddr) {
  (*((volatile unsigned int *)(baseAddr + (0x40)))) &= ~(0x00000004);
}


x86 assembly (clang, -O0):
<RasterEndOfFrameIntDisable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%eax
mov    %eax,%eax
mov    (%rax),%ecx
and    $0xfffffffb,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RasterEndOfFrameIntDisable>:
add    $0x40,%edi
andl   $0xfffffffb,(%rdi)
ret

LLVM IR (-O0):
define void @RasterEndOfFrameIntDisable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add i32 %3, 64
%5 = zext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = and i32 %7, -5
store volatile i32 %8, i32* %6
ret void
}

LLVM IR (-O2):
define void @RasterEndOfFrameIntDisable(i32 %0) {
%2 = add i32 %0, 64
%3 = zext i32 %2 to i64
%4 = inttoptr i64 %3 to i32*
%5 = load volatile i32, i32* %4
%6 = and i32 %5, -5
store volatile i32 %6, i32* %4
ret void
}
/* Variables and functions */
double uniform(int /*<<< orphan*/, int);
double uniform01() { return uniform(0, 1); }


x86 assembly (clang, -O0):
<uniform01>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <uniform@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<uniform01>:
xor    %edi,%edi
mov    $0x1,%esi
jmp    1030 <uniform@plt>

LLVM IR (-O0):
define double @uniform01() {
%1 = call double @uniform(i32 0, i32 1)
ret double %1
}

LLVM IR (-O2):
define double @uniform01() {
%1 = tail call double @uniform(i32 0, i32 1)
ret double %1
}
/* Type definitions */
typedef scalar_t__ uint16_t;

/* Variables and functions */
void register_farg(void *farg, int s, uint16_t _exp,
                   unsigned long long int mant) {
  unsigned long long int tmp;
  tmp = ((unsigned long long int)s << 63) |
        ((unsigned long long int)_exp << 52) | mant;
  *(unsigned long long int *)farg = tmp;
  do {
  } while (0);
}


x86 assembly (clang, -O0):
<register_farg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3f,%rax
mov    -0x18(%rbp),%rcx
shl    $0x34,%rcx
or     %rcx,%rax
or     -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    113e <register_farg+0x3e>
pop    %rbp
ret

x86 assembly (clang, -O2):
<register_farg>:
shl    $0x3f,%rsi
shl    $0x34,%rdx
or     %rsi,%rdx
or     %rcx,%rdx
mov    %rdx,(%rdi)
ret

LLVM IR (-O0):
define void @register_farg(i8* %0, i32 %1, i64 %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i8* %0, i8** %5
store i32 %1, i32* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%10 = load i32, i32* %6
%11 = sext i32 %10 to i64
%12 = shl i64 %11, 63
%13 = load i64, i64* %7
%14 = shl i64 %13, 52
%15 = or i64 %12, %14
%16 = load i64, i64* %8
%17 = or i64 %15, %16
store i64 %17, i64* %9
%18 = load i64, i64* %9
%19 = load i8*, i8** %5
%20 = bitcast i8* %19 to i64*
store i64 %18, i64* %20
br label %21
21: ; preds = %4
br label %22
22: ; preds = %21
ret void
}

LLVM IR (-O2):
define void @register_farg(i8* nocapture writeonly %0, i32 %1, i64 %2, i64 %3) {
%5 = zext i32 %1 to i64
%6 = shl i64 %5, 63
%7 = shl i64 %2, 52
%8 = or i64 %6, %7
%9 = or i64 %8, %3
%10 = bitcast i8* %0 to i64*
store i64 %9, i64* %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ op_write1(int);
void op_enc_daa(void) { op_write1(0x27); }


x86 assembly (clang, -O0):
<op_enc_daa>:
push   %rbp
mov    %rsp,%rbp
mov    $0x27,%edi
call   1030 <op_write1@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_enc_daa>:
mov    $0x27,%edi
jmp    1030 <op_write1@plt>

LLVM IR (-O0):
define void @op_enc_daa() {
%1 = call i32 @op_write1(i32 39)
ret void
}

LLVM IR (-O2):
define void @op_enc_daa() {
%1 = tail call i32 @op_write1(i32 39)
ret void
}
unsigned xrop3_210_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = ~S;
  stk2 = D & stk3;
  stk1 = T ^ stk2;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_210_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_210_0_0>:
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
not    %dil
movzbl %dil,%eax
xor    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_210_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %6
%24 = xor i32 %23, -1
store i32 %24, i32* %10
%25 = load i32, i32* %5
%26 = load i32, i32* %10
%27 = and i32 %25, %26
store i32 %27, i32* %9
%28 = load i32, i32* %7
%29 = load i32, i32* %9
%30 = xor i32 %28, %29
store i32 %30, i32* %8
%31 = load i32, i32* %8
ret i32 %31
}

LLVM IR (-O2):
define i32 @xrop3_210_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %1 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = xor i8 %0, -1
%6 = zext i8 %5 to i32
%7 = xor i32 %4, %6
ret i32 %7
}
const char *getBuildDate(void) { return "Mar 17 2022"; }


x86 assembly (clang, -O0):
<getBuildDate>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getBuildDate>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Mar 17 2022\00"
define i8* @getBuildDate() {
ret i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [12 x i8] c"Mar 17 2022\00"
define i8* @getBuildDate() {
ret i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void usage(void) {
  write(2, "hard-reboot: Aborted.\n", strlen("hard-reboot: Aborted.\n"));
  write(2,
        "Say \"hard-reboot (RESTART|HALT|POWER_OFF)\" if you really mean it.\n",
        strlen("Say \"hard-reboot (RESTART|HALT|POWER_OFF)\" if you really "
               "mean it.\n"));
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xeb2(%rip),%rsi
call   1030 <write@plt>
lea    0xebd(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xeaa(%rip),%rsi
call   1030 <write@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xec1(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"hard-reboot: Aborted.\0A\00"
@.str.1 = [67 x i8] c"Say \22hard-reboot (RESTART|HALT|POWER_OFF)\22 if you really mean it.\0A\00"
define void @usage() {
%1 = call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @write(i32 2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @strlen(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @write(i32 2, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [23 x i8] c"hard-reboot: Aborted.\0A\00"
@.str.1 = [67 x i8] c"Say \22hard-reboot (RESTART|HALT|POWER_OFF)\22 if you really mean it.\0A\00"
define void @usage() {
%1 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @strlen(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @exit(i32 1)
unreachable
}
int ah_pos(char *ah) {
  if ((ah[0] < 'a') || (ah[0] > 'h') || (ah[1] < '0') || (ah[1] > '9')) {
    return 0;
  }
  return (int)(ah[0] - 'a') + 8 * (int)(ah[1] - '1');
}


x86 assembly (clang, -O0):
<ah_pos>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jl     114a <ah_pos+0x4a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x68,%eax
jg     114a <ah_pos+0x4a>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x30,%eax
jl     114a <ah_pos+0x4a>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x39,%eax
jle    1156 <ah_pos+0x56>
movl   $0x0,-0x4(%rbp)
jmp    1173 <ah_pos+0x73>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x61,%eax
mov    -0x10(%rbp),%rcx
movsbl 0x1(%rcx),%ecx
sub    $0x31,%ecx
shl    $0x3,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ah_pos>:
movsbl (%rdi),%ecx
lea    -0x69(%rcx),%edx
xor    %eax,%eax
cmp    $0xf8,%dl
jb     1122 <ah_pos+0x22>
movzbl 0x1(%rdi),%edx
lea    -0x3a(%rdx),%esi
cmp    $0xf6,%sil
jb     1122 <ah_pos+0x22>
lea    (%rcx,%rdx,8),%eax
add    $0xfffffe17,%eax
ret

LLVM IR (-O0):
define i32 @ah_pos(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp slt i32 %7, 97
br i1 %8, label %27, label %9
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp sgt i32 %13, 104
br i1 %14, label %27, label %15
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp slt i32 %19, 48
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 1
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp sgt i32 %25, 57
br i1 %26, label %27, label %28
27: ; preds = %21, %15, %9, %1
store i32 0, i32* %2
br label %41
28: ; preds = %21
%29 = load i8*, i8** %3
%30 = getelementptr inbounds i8, i8* %29, i64 0
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = sub nsw i32 %32, 97
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 1
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = sub nsw i32 %37, 49
%39 = mul nsw i32 8, %38
%40 = add nsw i32 %33, %39
store i32 %40, i32* %2
br label %41
41: ; preds = %28, %27
%42 = load i32, i32* %2
ret i32 %42
}

LLVM IR (-O2):
define i32 @ah_pos(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = add i8 %2, -105
%5 = icmp ult i8 %4, -8
br i1 %5, label %16, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, i8* %0, i64 1
%8 = load i8, i8* %7
%9 = add i8 %8, -58
%10 = icmp ult i8 %9, -10
br i1 %10, label %16, label %11
11: ; preds = %6
%12 = zext i8 %8 to i32
%13 = shl nuw nsw i32 %12, 3
%14 = add nsw i32 %3, -489
%15 = add nsw i32 %14, %13
br label %16
16: ; preds = %1, %6, %11
%17 = phi i32 [ %15, %11 ], [ 0, %6 ], [ 0, %1 ]
ret i32 %17
}
int map(double val, double range1, double range2) {
  double answer;
  answer = val / range1 * range2;
  return (int)answer;
}


x86 assembly (clang, -O0):
<map>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
cvttsd2si -0x20(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<map>:
divsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm0
cvttsd2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @map(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %4
%9 = load double, double* %5
%10 = fdiv double %8, %9
%11 = load double, double* %6
%12 = fmul double %10, %11
store double %12, double* %7
%13 = load double, double* %7
%14 = fptosi double %13 to i32
ret i32 %14
}

LLVM IR (-O2):
define i32 @map(double %0, double %1, double %2) {
%4 = fdiv double %0, %1
%5 = fmul double %4, %2
%6 = fptosi double %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ __NR_gettid;
int /*<<< orphan*/ syscall(int /*<<< orphan*/);
pid_t rseq_gettid(void) { return syscall(__NR_gettid); }


x86 assembly (clang, -O0):
<rseq_gettid>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rseq_gettid>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_gettid = global i32 0
define i32 @rseq_gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = call i32 @syscall(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@__NR_gettid = global i32 0
define i32 @rseq_gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = tail call i32 @syscall(i32 %1)
ret i32 %2
}
int PDC_get_scrn_mode() {}


x86 assembly (clang, -O0):
<PDC_get_scrn_mode>:
push   %rbp
mov    %rsp,%rbp
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<PDC_get_scrn_mode>:
ret

LLVM IR (-O0):
define i32 @PDC_get_scrn_mode() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @PDC_get_scrn_mode() {
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ value;

/* Variables and functions */
int gui_window_get_width();
int /*<<< orphan*/ snprintf(char *, int, char *, int);
const char *plugin_api_info_term_width_cb(const void *pointer, void *data,
                                          const char *info_name,
                                          const char *arguments) {
  static char value[32];
  (void)pointer;
  (void)data;
  (void)info_name;
  (void)arguments;
  snprintf(value, sizeof(value), "%d", gui_window_get_width());
  return value;
}


x86 assembly (clang, -O0):
<plugin_api_info_term_width_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    $0x0,%al
call   1040 <gui_window_get_width@plt>
mov    %eax,%ecx
lea    0x2ef8(%rip),%rdi
mov    $0x20,%esi
lea    0xeac(%rip),%rdx
call   1030 <snprintf@plt>
lea    0x2ee0(%rip),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plugin_api_info_term_width_cb>:
push   %rbx
xor    %eax,%eax
call   1040 <gui_window_get_width@plt>
lea    0x2f11(%rip),%rbx
lea    0xeca(%rip),%rdx
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%ecx
call   1030 <snprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@plugin_api_info_term_width_cb.value = internal global [32 x i8] zeroinitializer
@.str = [3 x i8] c"%d\00"
define i8* @plugin_api_info_term_width_cb(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = call i32 (...) @gui_window_get_width()
%14 = call i32 @snprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @plugin_api_info_term_width_cb.value, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %13)
ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @plugin_api_info_term_width_cb.value, i64 0, i64 0)
}

LLVM IR (-O2):
@plugin_api_info_term_width_cb.value = internal global [32 x i8] zeroinitializer
@.str = [3 x i8] c"%d\00"
define i8* @plugin_api_info_term_width_cb(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
%5 = tail call i32 (...) @gui_window_get_width()
%6 = tail call i32 @snprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @plugin_api_info_term_width_cb.value, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @plugin_api_info_term_width_cb.value, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char const);
void ft_putendl(char const *str) {
  int i;
  i = 0;
  while (str[i] != '\0') {
    ft_putchar(str[i]);
    i++;
  }
  ft_putchar('\n');
}


x86 assembly (clang, -O0):
<ft_putendl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1157 <ft_putendl+0x47>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <ft_putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <ft_putendl+0x13>
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putendl>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <ft_putendl+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <ft_putendl+0x10>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @ft_putendl(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i8*, i8** %2
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load i8*, i8** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
%18 = call i32 @ft_putchar(i8 signext %17)
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %4
21: ; preds = %4
%22 = call i32 @ft_putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
define void @ft_putendl(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8 [ %10, %4 ], [ %2, %1 ]
%7 = tail call i32 @ft_putchar(i8 signext %6)
%8 = add nuw i64 %5, 1
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
%13 = tail call i32 @ft_putchar(i8 signext 10)
ret void
}
void foo389(int p) {}


x86 assembly (clang, -O0):
<foo389>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo389>:
ret

LLVM IR (-O0):
define void @foo389(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @foo389(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dedelta(char *, char *, char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc >= 4) {
    dedelta(argv[1], argv[2], argv[3]);
    return 0;
  }
  printf("Usage: dedelta source delta output\n");
  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)
cmpl   $0x4,-0x8(%rbp)
jl     1169 <main+0x49>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
call   1040 <dedelta@plt>
movl   $0x0,-0x4(%rbp)
jmp    117c <main+0x5c>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x4,%edi
jl     113c <main+0x1c>
mov    0x8(%rsi),%rdi
mov    0x10(%rsi),%rax
mov    0x18(%rsi),%rdx
mov    %rax,%rsi
call   1040 <dedelta@plt>
jmp    1148 <main+0x28>
lea    0xebd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Usage: dedelta source delta output\0A\00"
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 = load i32, i32* %4
%7 = icmp sge i32 %6, 4
br i1 %7, label %8, label %19
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 2
%14 = load i8*, i8** %13
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 3
%17 = load i8*, i8** %16
%18 = call i32 @dedelta(i8* %11, i8* %14, i8* %17)
store i32 0, i32* %3
br label %21
19: ; preds = %2
%20 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %21
21: ; preds = %19, %8
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
@str = [35 x i8] c"Usage: dedelta source delta output\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 3
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8*, i8** %1, i64 3
%10 = load i8*, i8** %9
%11 = tail call i32 @dedelta(i8* %6, i8* %8, i8* %10)
br label %14
12: ; preds = %2
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
br label %14
14: ; preds = %12, %4
ret i32 0
}
unsigned char APPL_StopInputHandler(void) { return 0; }


x86 assembly (clang, -O0):
<APPL_StopInputHandler>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<APPL_StopInputHandler>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define zeroext i8 @APPL_StopInputHandler() {
ret i8 0
}

LLVM IR (-O2):
define zeroext i8 @APPL_StopInputHandler() {
ret i8 0
}
void iwl_leds_init(struct iwl_priv *priv) {}


x86 assembly (clang, -O0):
<iwl_leds_init>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<iwl_leds_init>:
ret

LLVM IR (-O0):
%struct.iwl_priv = type opaque
define void @iwl_leds_init(%struct.iwl_priv* %0) {
%2 = alloca %struct.iwl_priv*
store %struct.iwl_priv* %0, %struct.iwl_priv** %2
ret void
}

LLVM IR (-O2):
%struct.iwl_priv = type opaque
define void @iwl_leds_init(%struct.iwl_priv* nocapture %0) {
ret void
}
void verbose(const char *format, ...) {}


x86 assembly (clang, -O0):
<verbose>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<verbose>:
ret

LLVM IR (-O0):
define void @verbose(i8* %0, ...) {
%2 = alloca i8*
store i8* %0, i8** %2
ret void
}

LLVM IR (-O2):
define void @verbose(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void cleanup(int signal) {
  printf("Cleaning up...\n");
  _exit(0);
}


x86 assembly (clang, -O0):
<cleanup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<cleanup>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Cleaning up...\0A\00"
define void @cleanup(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @_exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [15 x i8] c"Cleaning up...\00"
define void @cleanup(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @_exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void cu_builtin_exit(int x) { exit(x); }


x86 assembly (clang, -O0):
<cu_builtin_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<cu_builtin_exit>:
push   %rax
call   1030 <exit@plt>

LLVM IR (-O0):
define void @cu_builtin_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
define void @cu_builtin_exit(i32 %0) {
%2 = tail call i32 @exit(i32 %0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ mm_update_max_long_term_frame_idx(int /*<<< orphan*/);
void mm_unmark_all_long_term_for_reference(void) {
  mm_update_max_long_term_frame_idx(0);
}


x86 assembly (clang, -O0):
<mm_unmark_all_long_term_for_reference>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <mm_update_max_long_term_frame_idx@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mm_unmark_all_long_term_for_reference>:
xor    %edi,%edi
jmp    1030 <mm_update_max_long_term_frame_idx@plt>

LLVM IR (-O0):
define void @mm_unmark_all_long_term_for_reference() {
%1 = call i32 @mm_update_max_long_term_frame_idx(i32 0)
ret void
}

LLVM IR (-O2):
define void @mm_unmark_all_long_term_for_reference() {
%1 = tail call i32 @mm_update_max_long_term_frame_idx(i32 0)
ret void
}
float h(float x) { return x / 2 - x / 3; }


x86 assembly (clang, -O0):
<h>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeee(%rip),%xmm1
divss  %xmm1,%xmm0
movss  -0x4(%rbp),%xmm1
movss  0xed9(%rip),%xmm2
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<h>:
movss  0xef8(%rip),%xmm1
mulss  %xmm0,%xmm1
divss  0xef0(%rip),%xmm0
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @h(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fdiv float %3, 2.000000e+00
%5 = load float, float* %2
%6 = fdiv float %5, 3.000000e+00
%7 = fsub float %4, %6
ret float %7
}

LLVM IR (-O2):
define float @h(float %0) {
%2 = fmul float %0, 5.000000e-01
%3 = fdiv float %0, 3.000000e+00
%4 = fsub float %2, %3
ret float %4
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_mutex_t;

/* Variables and functions */
int pthread_mutex_destroy(pthread_mutex_t *mutex) {
  ;
  return 0;
}


x86 assembly (clang, -O0):
<pthread_mutex_destroy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pthread_mutex_destroy>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @pthread_mutex_destroy(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
ret i32 0
}

LLVM IR (-O2):
define i32 @pthread_mutex_destroy(i32* nocapture readnone %0) {
ret i32 0
}
int timezone_del(const char *ifname, int ifindex, const char *timezone) {
  return 0;
}


x86 assembly (clang, -O0):
<timezone_del>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<timezone_del>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @timezone_del(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
ret i32 0
}

LLVM IR (-O2):
define i32 @timezone_del(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2) {
ret i32 0
}
int main(void) {
  return (!((((((((((((0))) > ((((1) + 1)))) ? (((0))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((0))) > ((((1) + 1)))) ? (((0))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((1))) > ((((1) + 1)))) ? (((1))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((1))) > ((((1) + 1)))) ? (((1))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((2))) > ((((1) + 1)))) ? (((2))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((2))) > ((((1) + 1)))) ? (((2))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((3))) > ((((1) + 1)))) ? (((3))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((3))) > ((((1) + 1)))) ? (((3))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((4))) > ((((1) + 1)))) ? (((4))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((4))) > ((((1) + 1)))) ? (((4))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((5))) > ((((1) + 1)))) ? (((5))) : ((((1) + 1))))) <
                 ((((3) - 1))))
                    ? ((((((5))) > ((((1) + 1)))) ? (((5))) : ((((1) + 1)))))
                    : ((((3) - 1)))))) == 2) &&
            (((((((((((0))) > ((((1) + 1)))) ? (((0))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((0))) > ((((1) + 1)))) ? (((0))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 2) &&
            (((((((((((1))) > ((((1) + 1)))) ? (((1))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((1))) > ((((1) + 1)))) ? (((1))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 2) &&
            (((((((((((2))) > ((((1) + 1)))) ? (((2))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((2))) > ((((1) + 1)))) ? (((2))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 2) &&
            (((((((((((3))) > ((((1) + 1)))) ? (((3))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((3))) > ((((1) + 1)))) ? (((3))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 3) &&
            (((((((((((4))) > ((((1) + 1)))) ? (((4))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((4))) > ((((1) + 1)))) ? (((4))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 3) &&
            (((((((((((5))) > ((((1) + 1)))) ? (((5))) : ((((1) + 1))))) <
                 ((((4) - 1))))
                    ? ((((((5))) > ((((1) + 1)))) ? (((5))) : ((((1) + 1)))))
                    : ((((4) - 1)))))) == 3)));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void Warn(char *Message) { fprintf(stderr, "WARNING: %s\n", Message); }


x86 assembly (clang, -O0):
<Warn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Warn>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"WARNING: %s\0A\00"
define void @Warn(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"WARNING: %s\0A\00"
define void @Warn(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ palAmpqk(double, double, double *, double *, double *);
int /*<<< orphan*/ palMappa(double, double, double *);
void palAmp(double ra, double da, double date, double eq, double *rm,
            double *dm) {
  double amprms[21];
  palMappa(eq, date, amprms);
  palAmpqk(ra, da, amprms, rm, dm);
}


x86 assembly (clang, -O0):
<palAmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    -0xe0(%rbp),%rdi
call   1040 <palMappa@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    -0xe0(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <palAmpqk@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palAmp>:
push   %r15
push   %r14
push   %rbx
sub    $0xc0,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
lea    0x10(%rsp),%r15
movaps %xmm3,%xmm0
movaps %xmm2,%xmm1
mov    %r15,%rdi
call   1040 <palMappa@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <palAmpqk@plt>
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @palAmp(double %0, double %1, double %2, double %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double*
%12 = alloca double*
%13 = alloca [21 x double]
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double* %4, double** %11
store double* %5, double** %12
%14 = load double, double* %10
%15 = load double, double* %9
%16 = getelementptr inbounds [21 x double], [21 x double]* %13, i64 0, i64 0
%17 = call i32 @palMappa(double %14, double %15, double* %16)
%18 = load double, double* %7
%19 = load double, double* %8
%20 = getelementptr inbounds [21 x double], [21 x double]* %13, i64 0, i64 0
%21 = load double*, double** %11
%22 = load double*, double** %12
%23 = call i32 @palAmpqk(double %18, double %19, double* %20, double* %21, double* %22)
ret void
}

LLVM IR (-O2):
define void @palAmp(double %0, double %1, double %2, double %3, double* %4, double* %5) {
%7 = alloca [21 x double]
%8 = bitcast [21 x double]* %7 to i8*
%9 = getelementptr inbounds [21 x double], [21 x double]* %7, i64 0, i64 0
%10 = call i32 @palMappa(double %3, double %2, double* %9)
%11 = call i32 @palAmpqk(double %0, double %1, double* %9, double* %4, double* %5)
ret void
}
int mpk_upgrade(const char *fpath, const char *prefix) {}


x86 assembly (clang, -O0):
<mpk_upgrade>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpk_upgrade>:
ret

LLVM IR (-O0):
define i32 @mpk_upgrade(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @mpk_upgrade(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printString(int, int, char *);
void show_welcome_screen() {
  printString(25, 12, "Welcome to Pong!");
  printString(25, 12 + 1, "Player 0 press E and D to move.");
  printString(25, 12 + 2, "Player 1 press I and K to move.");
  printString(25, 12 + 3, "Press space to start playing!");
}


x86 assembly (clang, -O0):
<show_welcome_screen>:
push   %rbp
mov    %rsp,%rbp
mov    $0x19,%edi
mov    $0xc,%esi
lea    0xedb(%rip),%rdx
call   1030 <printString@plt>
mov    $0x19,%edi
mov    $0xd,%esi
lea    0xed6(%rip),%rdx
call   1030 <printString@plt>
mov    $0x19,%edi
mov    $0xe,%esi
lea    0xee0(%rip),%rdx
call   1030 <printString@plt>
mov    $0x19,%edi
mov    $0xf,%esi
lea    0xeea(%rip),%rdx
call   1030 <printString@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_welcome_screen>:
push   %rax
lea    0xee8(%rip),%rdx
mov    $0x19,%edi
mov    $0xc,%esi
call   1030 <printString@plt>
lea    0xee3(%rip),%rdx
mov    $0x19,%edi
mov    $0xd,%esi
call   1030 <printString@plt>
lea    0xeed(%rip),%rdx
mov    $0x19,%edi
mov    $0xe,%esi
call   1030 <printString@plt>
lea    0xef7(%rip),%rdx
mov    $0x19,%edi
mov    $0xf,%esi
pop    %rax
jmp    1030 <printString@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Welcome to Pong!\00"
@.str.1 = [32 x i8] c"Player 0 press E and D to move.\00"
@.str.2 = [32 x i8] c"Player 1 press I and K to move.\00"
@.str.3 = [30 x i8] c"Press space to start playing!\00"
define void @show_welcome_screen() {
%1 = call i32 @printString(i32 25, i32 12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printString(i32 25, i32 13, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printString(i32 25, i32 14, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printString(i32 25, i32 15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"Welcome to Pong!\00"
@.str.1 = [32 x i8] c"Player 0 press E and D to move.\00"
@.str.2 = [32 x i8] c"Player 1 press I and K to move.\00"
@.str.3 = [30 x i8] c"Press space to start playing!\00"
define void @show_welcome_screen() {
%1 = tail call i32 @printString(i32 25, i32 12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printString(i32 25, i32 13, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printString(i32 25, i32 14, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printString(i32 25, i32 15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
ret void
}
int sdio_start_ot_transfer(void) { return 0; }


x86 assembly (clang, -O0):
<sdio_start_ot_transfer>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sdio_start_ot_transfer>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @sdio_start_ot_transfer() {
ret i32 0
}

LLVM IR (-O2):
define i32 @sdio_start_ot_transfer() {
ret i32 0
}
/* Type definitions */
struct symbol {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fwrite(char const *, int /*<<< orphan*/, int, void *);
int /*<<< orphan*/ strlen(char const *);
void expr_print_file_helper(void *data, struct symbol *sym, const char *str) {
  fwrite(str, strlen(str), 1, data);
}


x86 assembly (clang, -O0):
<expr_print_file_helper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%esi
mov    -0x8(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fwrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expr_print_file_helper>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rdi,%r14
mov    %rdx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    %r14,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
%struct.symbol = type { i32 }
define void @expr_print_file_helper(i8* %0, %struct.symbol* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca %struct.symbol*
%6 = alloca i8*
store i8* %0, i8** %4
store %struct.symbol* %1, %struct.symbol** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = load i8*, i8** %6
%9 = call i32 @strlen(i8* %8)
%10 = load i8*, i8** %4
%11 = call i32 @fwrite(i8* %7, i32 %9, i32 1, i8* %10)
ret void
}

LLVM IR (-O2):
%struct.symbol = type { i32 }
define void @expr_print_file_helper(i8* nocapture %0, %struct.symbol* nocapture readnone %1, i8* %2) {
%4 = tail call i32 @strlen(i8* %2)
%5 = tail call i32 @fwrite(i8* %2, i32 %4, i32 1, i8* %0)
ret void
}
/* Type definitions */
struct winsize {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ TIOCGWINSZ;
int /*<<< orphan*/ TIOCSWINSZ;
scalar_t__ ioctl(int, int /*<<< orphan*/, struct winsize *);
void resize_pty(int pty) {
  struct winsize sz;
  if (ioctl(0, TIOCGWINSZ, &sz) < 0)
    return;
  ioctl(pty, TIOCSWINSZ, &sz);
}


x86 assembly (clang, -O0):
<resize_pty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%esi
xor    %edi,%edi
lea    -0x8(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
jge    113e <resize_pty+0x2e>
jmp    1153 <resize_pty+0x43>
mov    -0x4(%rbp),%edi
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
lea    -0x8(%rbp),%rdx
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<resize_pty>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    0x2eb2(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rdx
xor    %edi,%edi
call   1030 <ioctl@plt>
test   %rax,%rax
js     1146 <resize_pty+0x36>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rdx
mov    %ebx,%edi
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.winsize = type { i32 }
@TIOCGWINSZ = global i32 0
@TIOCSWINSZ = global i32 0
define void @resize_pty(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.winsize
store i32 %0, i32* %2
%4 = load i32, i32* @TIOCGWINSZ
%5 = call i64 @ioctl(i32 0, i32 %4, %struct.winsize* %3)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %12
8: ; preds = %1
%9 = load i32, i32* %2
%10 = load i32, i32* @TIOCSWINSZ
%11 = call i64 @ioctl(i32 %9, i32 %10, %struct.winsize* %3)
br label %12
12: ; preds = %8, %7
ret void
}

LLVM IR (-O2):
%struct.winsize = type { i32 }
@TIOCGWINSZ = global i32 0
@TIOCSWINSZ = global i32 0
define void @resize_pty(i32 %0) {
%2 = alloca %struct.winsize
%3 = bitcast %struct.winsize* %2 to i8*
%4 = load i32, i32* @TIOCGWINSZ
%5 = call i64 @ioctl(i32 0, i32 %4, %struct.winsize* %2)
%6 = icmp slt i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, i32* @TIOCSWINSZ
%9 = call i64 @ioctl(i32 %0, i32 %8, %struct.winsize* %2)
br label %10
10: ; preds = %1, %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void linux_ia64_usage(void) {
  printf("      --command-line=<string> Set the command line to <string>\n"
         "      --append=<string>       Set the command line to <string>\n"
         "      --initrd=<filename>     Set the initrd to <filename>\n"
         "      --ramdisk=<filename>    Set the initrd to <filename>\n");
  return;
}


x86 assembly (clang, -O0):
<linux_ia64_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<linux_ia64_usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [245 x i8] c" --command-line=<string> Set the command line to <string>\0A --append=<string> Set the command line to <string>\0A --initrd=<filename> Set the initrd to <filename>\0A --ramdisk=<filename> Set the initrd to <filename>\0A\00"
define void @linux_ia64_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([245 x i8], [245 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [244 x i8] c" --command-line=<string> Set the command line to <string>\0A --append=<string> Set the command line to <string>\0A --initrd=<filename> Set the initrd to <filename>\0A --ramdisk=<filename> Set the initrd to <filename>\00"
define void @linux_ia64_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([244 x i8], [244 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
size_t str_len(const char *s) {
  size_t result;
  result = 0;
  while (*s++)
    ++result;
  return result;
}


x86 assembly (clang, -O0):
<str_len>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
cmpb   $0x0,(%rax)
je     1139 <str_len+0x39>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <str_len+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_len>:
cmpb   $0x0,(%rdi)
je     111f <str_len+0x1f>
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
lea    0x1(%rcx),%rax
cmpb   $0x0,0x1(%rdi,%rcx,1)
mov    %rax,%rcx
jne    1110 <str_len+0x10>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @str_len(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
store i64 0, i64* %3
br label %4
4: ; preds = %9, %1
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i32 1
store i8* %6, i8** %2
%7 = load i8, i8* %5
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i64, i64* %3
%11 = add i64 %10, 1
store i64 %11, i64* %3
br label %4
12: ; preds = %4
%13 = load i64, i64* %3
ret i64 %13
}

LLVM IR (-O2):
define i64 @str_len(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add i64 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i64 [ 0, %1 ], [ %8, %4 ]
ret i64 %12
}
/* Variables and functions */
int /*<<< orphan*/ test_reductions();
int /*<<< orphan*/ test_reductions_bool();
int /*<<< orphan*/ test_reductions_minmax();
int main(void) {
  test_reductions();
  test_reductions_bool();
  test_reductions_minmax();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <test_reductions@plt>
mov    $0x0,%al
call   1050 <test_reductions_bool@plt>
mov    $0x0,%al
call   1040 <test_reductions_minmax@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <test_reductions@plt>
xor    %eax,%eax
call   1050 <test_reductions_bool@plt>
xor    %eax,%eax
call   1040 <test_reductions_minmax@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_reductions()
%3 = call i32 (...) @test_reductions_bool()
%4 = call i32 (...) @test_reductions_minmax()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_reductions()
%2 = tail call i32 (...) @test_reductions_bool()
%3 = tail call i32 (...) @test_reductions_minmax()
ret i32 0
}