xunge/DecIR huggingface dataset:
void av_muxer_iterate() {}


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

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

LLVM IR (-O0):
define void @av_muxer_iterate() {
ret void
}

LLVM IR (-O2):
define void @av_muxer_iterate() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __aeabi_memset8_impl(void *, size_t, int /*<<< orphan*/);
void __attribute__((weak)) __aeabi_memclr8_impl2(void *dest, size_t n) {
  __aeabi_memset8_impl(dest, n, 0);
}


x86 assembly (clang, -O0):
<__aeabi_memclr8_impl2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   1030 <__aeabi_memset8_impl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__aeabi_memclr8_impl2>:
xor    %edx,%edx
jmp    1030 <__aeabi_memset8_impl@plt>

LLVM IR (-O0):
define weak void @__aeabi_memclr8_impl2(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = call i32 @__aeabi_memset8_impl(i8* %5, i64 %6, i32 0)
ret void
}

LLVM IR (-O2):
define weak void @__aeabi_memclr8_impl2(i8* %0, i64 %1) {
%3 = tail call i32 @__aeabi_memset8_impl(i8* %0, i64 %1, i32 0)
ret void
}
void gtk_item_select() {}


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

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

LLVM IR (-O0):
define void @gtk_item_select() {
ret void
}

LLVM IR (-O2):
define void @gtk_item_select() {
ret void
}
unsigned int iceil2(unsigned int x) {
  x = x - 1;
  x = x | (x >> 1);
  x = x | (x >> 2);
  x = x | (x >> 4);
  x = x | (x >> 8);
  x = x | (x >> 16);
  return x + 1;
}


x86 assembly (clang, -O0):
<iceil2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shr    $0x1,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shr    $0x2,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shr    $0x4,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shr    $0x8,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shr    $0x10,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iceil2>:
lea    -0x1(%rdi),%eax
mov    %eax,%ecx
shr    %ecx
or     %eax,%ecx
mov    %ecx,%eax
shr    $0x2,%eax
or     %ecx,%eax
mov    %eax,%ecx
shr    $0x4,%ecx
or     %eax,%ecx
mov    %ecx,%edx
shr    $0x8,%edx
or     %ecx,%edx
mov    %edx,%eax
shr    $0x10,%eax
or     %edx,%eax
add    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @iceil2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub i32 %3, 1
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = load i32, i32* %2
%7 = lshr i32 %6, 1
%8 = or i32 %5, %7
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = load i32, i32* %2
%11 = lshr i32 %10, 2
%12 = or i32 %9, %11
store i32 %12, i32* %2
%13 = load i32, i32* %2
%14 = load i32, i32* %2
%15 = lshr i32 %14, 4
%16 = or i32 %13, %15
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = load i32, i32* %2
%19 = lshr i32 %18, 8
%20 = or i32 %17, %19
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = load i32, i32* %2
%23 = lshr i32 %22, 16
%24 = or i32 %21, %23
store i32 %24, i32* %2
%25 = load i32, i32* %2
%26 = add i32 %25, 1
ret i32 %26
}

LLVM IR (-O2):
define i32 @iceil2(i32 %0) {
%2 = add i32 %0, -1
%3 = lshr i32 %2, 1
%4 = or i32 %3, %2
%5 = lshr i32 %4, 2
%6 = or i32 %5, %4
%7 = lshr i32 %6, 4
%8 = or i32 %7, %6
%9 = lshr i32 %8, 8
%10 = or i32 %9, %8
%11 = lshr i32 %10, 16
%12 = or i32 %11, %10
%13 = add i32 %12, 1
ret i32 %13
}
short int_shifts_are_arithmetic(void) {
  short test = -12;
  return (test >> 1) < 0;
}


x86 assembly (clang, -O0):
<int_shifts_are_arithmetic>:
push   %rbp
mov    %rsp,%rbp
movw   $0xfff4,-0x2(%rbp)
movswl -0x2(%rbp),%eax
sar    $0x1,%eax
cmp    $0x0,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cwtl
pop    %rbp
ret

x86 assembly (clang, -O2):
<int_shifts_are_arithmetic>:
mov    $0x1,%ax
ret

LLVM IR (-O0):
define signext i16 @int_shifts_are_arithmetic() {
%1 = alloca i16
store i16 -12, i16* %1
%2 = load i16, i16* %1
%3 = sext i16 %2 to i32
%4 = ashr i32 %3, 1
%5 = icmp slt i32 %4, 0
%6 = zext i1 %5 to i32
%7 = trunc i32 %6 to i16
ret i16 %7
}

LLVM IR (-O2):
define signext i16 @int_shifts_are_arithmetic() {
ret i16 1
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void usage(const char *bin_name, FILE *fstream) {
  fprintf(fstream, "usage: %s COMMAND\n", bin_name);
  fprintf(fstream, "  COMMANDS:\n"
                   "    --make-links\n"
                   "    --clean-links\n"
                   "    --list-cmds\n"
                   "    -v --version\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xed1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xed2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rdx
lea    0xed2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xed4(%rip),%rdi
mov    $0x50,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"usage: %s COMMAND\0A\00"
@.str.1 = [81 x i8] c" COMMANDS:\0A --make-links\0A --clean-links\0A --list-cmds\0A -v --version\0A\00"
define void @usage(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = load i8*, i8** %3
%7 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %4
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"usage: %s COMMAND\0A\00"
@.str.1 = [81 x i8] c" COMMANDS:\0A --make-links\0A --clean-links\0A --list-cmds\0A -v --version\0A\00"
define void @usage(i8* %0, i32* nocapture %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i64 80, i64 1, i32* %1)
ret void
}
/* Variables and functions */
int inreg(int, int);
int /*<<< orphan*/ outreg(int, int, int);
void serial_putc(int channel, int c) {
  while ((inreg(channel, 0x05) & 0x20) == 0)
    ;
  outreg(channel, 0x00, c);
}


x86 assembly (clang, -O0):
<serial_putc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x5,%esi
call   1040 <inreg@plt>
and    $0x20,%eax
cmp    $0x0,%eax
jne    114c <serial_putc+0x2c>
jmp    112e <serial_putc+0xe>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%edx
xor    %esi,%esi
call   1030 <outreg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_putc>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    $0x5,%esi
call   1040 <inreg@plt>
test   $0x20,%al
je     1130 <serial_putc+0x10>
mov    %ebp,%edi
xor    %esi,%esi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <outreg@plt>

LLVM IR (-O0):
define void @serial_putc(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
br label %5
5: ; preds = %10, %2
%6 = load i32, i32* %3
%7 = call i32 @inreg(i32 %6, i32 5)
%8 = and i32 %7, 32
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %5
br label %5
11: ; preds = %5
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = call i32 @outreg(i32 %12, i32 0, i32 %13)
ret void
}

LLVM IR (-O2):
define void @serial_putc(i32 %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 @inreg(i32 %0, i32 5)
%5 = and i32 %4, 32
%6 = icmp eq i32 %5, 0
br i1 %6, label %3, label %7
7: ; preds = %3
%8 = tail call i32 @outreg(i32 %0, i32 0, i32 %1)
ret void
}
double f2c(double d) { return (5 * (d - 32)) / 9; }


x86 assembly (clang, -O0):
<f2c>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xefa(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xee6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xed2(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2c>:
addsd  0xef8(%rip),%xmm0
mulsd  0xef8(%rip),%xmm0
divsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @f2c(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fsub double %3, 3.200000e+01
%5 = fmul double 5.000000e+00, %4
%6 = fdiv double %5, 9.000000e+00
ret double %6
}

LLVM IR (-O2):
define double @f2c(double %0) {
%2 = fadd double %0, -3.200000e+01
%3 = fmul double %2, 5.000000e+00
%4 = fdiv double %3, 9.000000e+00
ret double %4
}
/* Variables and functions */
int strlen(char *);
scalar_t__ toupper(int);
extern void str_upper(char *str) {
  for (int i = 0; i < strlen(str); i++) {
    str[i] = (char)toupper((int)str[i]);
  }
}


x86 assembly (clang, -O0):
<str_upper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jge    117b <str_upper+0x5b>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <toupper@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <str_upper+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_upper>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
test   %eax,%eax
jle    1161 <str_upper+0x41>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%r14,%rbx,1),%edi
call   1030 <toupper@plt>
mov    %al,(%r14,%rbx,1)
add    $0x1,%rbx
mov    %r14,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1140 <str_upper+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @str_upper(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp sgt i32 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %5, %1
ret void
5: ; preds = %1, %5
%6 = phi i64 [ %12, %5 ], [ 0, %1 ]
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = tail call i64 @toupper(i32 %9)
%11 = trunc i64 %10 to i8
store i8 %11, i8* %7
%12 = add nuw nsw i64 %6, 1
%13 = tail call i32 @strlen(i8* %0)
%14 = sext i32 %13 to i64
%15 = icmp slt i64 %12, %14
br i1 %15, label %5, label %4
}
void ble_rsp_flash_ps_dump(const void *nul) {}


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

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

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

LLVM IR (-O2):
define void @ble_rsp_flash_ps_dump(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ spawn(char *, char **);
int main(void) {
  char *arg_list[] = {"ls", "-l", "/", NULL};
  spawn("ls", arg_list);
  printf("done with main program\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2cca(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2cc7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2cc4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cc1(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xe9a(%rip),%rdi
call   1040 <spawn@plt>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movaps 0x2ce5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2cc9(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xebe(%rip),%rdi
mov    %rsp,%rsi
call   1040 <spawn@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"ls\00"
@.str.1 = [3 x i8] c"-l\00"
@.str.2 = [2 x i8] c"/\00"
@__const.main.arg_list = [4 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null]
@.str.3 = [24 x i8] c"done with main program\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8*]
store i32 0, i32* %1
%3 = bitcast [4 x i8*]* %2 to i8*
%4 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 0
%5 = call i32 @spawn(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"ls\00"
@.str.1 = [3 x i8] c"-l\00"
@.str.2 = [2 x i8] c"/\00"
@__const.main.arg_list = [4 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null]
@str = [23 x i8] c"done with main program\00"
define i32 @main() {
%1 = alloca [4 x i8*]
%2 = bitcast [4 x i8*]* %1 to i8*
%3 = getelementptr inbounds [4 x i8*], [4 x i8*]* %1, i64 0, i64 0
%4 = call i32 @spawn(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %3)
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free6(void ******);
void free6ushort(unsigned short ******p) { free6((void ******)p); }


x86 assembly (clang, -O0):
<free6ushort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <free6@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free6ushort>:
jmp    1030 <free6@plt>

LLVM IR (-O0):
define void @free6ushort(i16****** %0) {
%2 = alloca i16******
store i16****** %0, i16******* %2
%3 = load i16******, i16******* %2
%4 = bitcast i16****** %3 to i8******
%5 = call i32 @free6(i8****** %4)
ret void
}

LLVM IR (-O2):
define void @free6ushort(i16****** %0) {
%2 = bitcast i16****** %0 to i8******
%3 = tail call i32 @free6(i8****** %2)
ret void
}
int test_imm_F6int8_mem(signed char *val) {
  return ((*val) & (-0xF6 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_F6int8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
and    $0xffffff0a,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_F6int8_mem>:
movsbl (%rdi),%eax
test   $0xffffff0a,%eax
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_F6int8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = and i32 %5, -246
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_F6int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = and i32 %3, -246
%5 = icmp eq i32 %4, 0
%6 = select i1 %5, i32 -40, i32 -20
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ send_tcp(char *, int);
int /*<<< orphan*/ sleep(int);
int main(int argc, char *argv[]) {
  send_tcp("127.0.0.1", 80);
  sleep(5);
  send_tcp("127.0.0.1", 80);
  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)
lea    0xec3(%rip),%rdi
mov    $0x50,%esi
call   1030 <send_tcp@plt>
mov    $0x5,%edi
call   1040 <sleep@plt>
lea    0xea8(%rip),%rdi
mov    $0x50,%esi
call   1030 <send_tcp@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
call   1030 <send_tcp@plt>
mov    $0x5,%edi
call   1040 <sleep@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
call   1030 <send_tcp@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"127.0.0.1\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 = call i32 @send_tcp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 80)
%7 = call i32 @sleep(i32 5)
%8 = call i32 @send_tcp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 80)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"127.0.0.1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @send_tcp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 80)
%4 = tail call i32 @sleep(i32 5)
%5 = tail call i32 @send_tcp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 80)
ret i32 0
}
/* Type definitions */
struct stat {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _STAT_VER;
int __fxstat(int /*<<< orphan*/, int, struct stat *);
int __fstat(int fd, struct stat *buf) { return __fxstat(_STAT_VER, fd, buf); }


x86 assembly (clang, -O0):
<__fstat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1030 <__fxstat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__fstat>:
mov    %rsi,%rdx
mov    %edi,%esi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
jmp    1030 <__fxstat@plt>

LLVM IR (-O0):
%struct.stat = type { i32 }
@_STAT_VER = global i32 0
define i32 @__fstat(i32 %0, %struct.stat* %1) {
%3 = alloca i32
%4 = alloca %struct.stat*
store i32 %0, i32* %3
store %struct.stat* %1, %struct.stat** %4
%5 = load i32, i32* @_STAT_VER
%6 = load i32, i32* %3
%7 = load %struct.stat*, %struct.stat** %4
%8 = call i32 @__fxstat(i32 %5, i32 %6, %struct.stat* %7)
ret i32 %8
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@_STAT_VER = global i32 0
define i32 @__fstat(i32 %0, %struct.stat* %1) {
%3 = load i32, i32* @_STAT_VER
%4 = tail call i32 @__fxstat(i32 %3, i32 %0, %struct.stat* %1)
ret i32 %4
}
float fun(int n, float h) {
  if (n == 1)
    return h;
  return fun(n - 1, h / 2) + h;
}


x86 assembly (clang, -O0):
<fun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1139 <fun+0x29>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    115f <fun+0x4f>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
movss  -0xc(%rbp),%xmm0
movss  0xeb4(%rip),%xmm1
divss  %xmm1,%xmm0
call   1030 <fun@plt>
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun>:
movaps %xmm0,%xmm1
cmp    $0x1,%edi
je     1141 <fun+0x31>
push   %rax
add    $0xffffffff,%edi
movss  0xedc(%rip),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm1,0x4(%rsp)
call   1030 <fun@plt>
movss  0x4(%rsp),%xmm1
addss  %xmm0,%xmm1
add    $0x8,%rsp
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @fun(i32 %0, float %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca float
store i32 %0, i32* %4
store float %1, float* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load float, float* %5
store float %9, float* %3
br label %18
10: ; preds = %2
%11 = load i32, i32* %4
%12 = sub nsw i32 %11, 1
%13 = load float, float* %5
%14 = fdiv float %13, 2.000000e+00
%15 = call float @fun(i32 %12, float %14)
%16 = load float, float* %5
%17 = fadd float %15, %16
store float %17, float* %3
br label %18
18: ; preds = %10, %8
%19 = load float, float* %3
ret float %19
}

LLVM IR (-O2):
define float @fun(i32 %0, float %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2, %6
%5 = phi float [ %10, %6 ], [ %1, %2 ]
ret float %5
6: ; preds = %2
%7 = add nsw i32 %0, -1
%8 = fmul float %1, 5.000000e-01
%9 = tail call float @fun(i32 %7, float %8)
%10 = fadd float %9, %1
br label %4
}
byteoff() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @byteoff() {
ret i32 0
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t hash_bj7(uint32_t a) {
  a -= (a << 6);
  a ^= (a >> 17);
  a -= (a << 9);
  a ^= (a << 4);
  a -= (a << 3);
  a ^= (a << 10);
  a ^= (a >> 15);
  return a;
}


x86 assembly (clang, -O0):
<hash_bj7>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
shl    $0x6,%ecx
mov    -0x4(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x11,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
shl    $0x9,%ecx
mov    -0x4(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x4,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x4(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0xa,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0xf,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_bj7>:
mov    %edi,%eax
shl    $0x6,%eax
sub    %eax,%edi
mov    %edi,%ecx
sar    $0x11,%ecx
xor    %edi,%ecx
mov    %ecx,%eax
shl    $0x9,%eax
imul   $0xffffe010,%ecx,%edx
sub    %eax,%ecx
xor    %edx,%ecx
lea    0x0(,%rcx,8),%eax
imul   $0xffffe400,%ecx,%edx
sub    %eax,%ecx
xor    %edx,%ecx
mov    %ecx,%eax
sar    $0xf,%eax
xor    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @hash_bj7(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = shl i32 %3, 6
%5 = load i32, i32* %2
%6 = sub nsw i32 %5, %4
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = ashr i32 %7, 17
%9 = load i32, i32* %2
%10 = xor i32 %9, %8
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = shl i32 %11, 9
%13 = load i32, i32* %2
%14 = sub nsw i32 %13, %12
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = shl i32 %15, 4
%17 = load i32, i32* %2
%18 = xor i32 %17, %16
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = shl i32 %19, 3
%21 = load i32, i32* %2
%22 = sub nsw i32 %21, %20
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = shl i32 %23, 10
%25 = load i32, i32* %2
%26 = xor i32 %25, %24
store i32 %26, i32* %2
%27 = load i32, i32* %2
%28 = ashr i32 %27, 15
%29 = load i32, i32* %2
%30 = xor i32 %29, %28
store i32 %30, i32* %2
%31 = load i32, i32* %2
ret i32 %31
}

LLVM IR (-O2):
define i32 @hash_bj7(i32 %0) {
%2 = mul i32 %0, -63
%3 = ashr i32 %2, 17
%4 = xor i32 %3, %2
%5 = mul i32 %4, -511
%6 = mul i32 %4, -8176
%7 = xor i32 %5, %6
%8 = mul i32 %7, -7
%9 = mul i32 %7, -7168
%10 = xor i32 %8, %9
%11 = ashr i32 %10, 15
%12 = xor i32 %11, %10
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
scalar_t__ returnBoolean(int);
int main(int argc, char const *argv[]) {
  int i = 1;
  if (i == 0 && returnBoolean(1))
    printf("True\n");
  else
    printf("False\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    116c <main+0x4c>
mov    $0x1,%edi
call   1040 <returnBoolean@plt>
cmp    $0x0,%rax
je     116c <main+0x4c>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    1178 <main+0x58>
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"True\0A\00"
@.str.1 = [7 x i8] c"False\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = call i64 @returnBoolean(i32 1)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %16
14: ; preds = %9, %2
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %12
ret i32 0
}

LLVM IR (-O2):
@str = [6 x i8] c"False\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
unsigned long long __bextr_u64(unsigned long, unsigned long);
unsigned long long test__bextr_u64(unsigned long __X, unsigned long __Y) {
  return __bextr_u64(__X, __Y);
}


x86 assembly (clang, -O0):
<test__bextr_u64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <__bextr_u64@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test__bextr_u64>:
jmp    1030 <__bextr_u64@plt>

LLVM IR (-O0):
define i64 @test__bextr_u64(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = call i64 @__bextr_u64(i64 %5, i64 %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @test__bextr_u64(i64 %0, i64 %1) {
%3 = tail call i64 @__bextr_u64(i64 %0, i64 %1)
ret i64 %3
}
int utime(const char *filename, const struct utimbuf *times) {
  printf("tcl>>> %s\n", __func__);
  return -1;
}


x86 assembly (clang, -O0):
<utime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed9(%rip),%rdi
lea    0xedd(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<utime>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.utimbuf = type opaque
@.str = [11 x i8] c"tcl>>> %s\0A\00"
@__func__.utime = [6 x i8] c"utime\00"
define i32 @utime(i8* %0, %struct.utimbuf* %1) {
%3 = alloca i8*
%4 = alloca %struct.utimbuf*
store i8* %0, i8** %3
store %struct.utimbuf* %1, %struct.utimbuf** %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.utime, i64 0, i64 0))
ret i32 -1
}

LLVM IR (-O2):
%struct.utimbuf = type opaque
@.str = [11 x i8] c"tcl>>> %s\0A\00"
@__func__.utime = [6 x i8] c"utime\00"
define i32 @utime(i8* nocapture readnone %0, %struct.utimbuf* nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.utime, i64 0, i64 0))
ret i32 -1
}
int valid_bo(long value) {
  switch (value & 0x14) {
  default:
  case 0:
    return 1;
  case 0x4:
    return (value & 0x2) == 0;
  case 0x10:
    return (value & 0x8) == 0;
  case 0x14:
    return value == 0x14;
  }
}


x86 assembly (clang, -O0):
<valid_bo>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
and    $0x14,%eax
mov    %rax,-0x18(%rbp)
sub    $0x14,%rax
ja     1131 <valid_bo+0x31>
mov    -0x18(%rbp),%rax
lea    0xed8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1136 <valid_bo+0x36>
movl   $0x1,-0x4(%rbp)
jmp    118a <valid_bo+0x8a>
mov    -0x10(%rbp),%rax
and    $0x2,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    118a <valid_bo+0x8a>
mov    -0x10(%rbp),%rax
and    $0x8,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    118a <valid_bo+0x8a>
cmpq   $0x14,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<valid_bo>:
mov    %rdi,%rcx
shr    $0x2,%rcx
and    $0x5,%ecx
mov    $0x1,%al
lea    0xeed(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
test   $0x2,%dil
jmp    112c <valid_bo+0x2c>
cmp    $0x14,%rdi
jmp    112c <valid_bo+0x2c>
test   $0x8,%dil
sete   %al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @valid_bo(i64 %0) {
%2 = alloca i32
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = and i64 %4, 20
switch i64 %5, label %6 [
i64 0, label %7
i64 4, label %8
i64 16, label %13
i64 20, label %18
]
6: ; preds = %1
br label %7
7: ; preds = %1, %6
store i32 1, i32* %2
br label %22
8: ; preds = %1
%9 = load i64, i64* %3
%10 = and i64 %9, 2
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
store i32 %12, i32* %2
br label %22
13: ; preds = %1
%14 = load i64, i64* %3
%15 = and i64 %14, 8
%16 = icmp eq i64 %15, 0
%17 = zext i1 %16 to i32
store i32 %17, i32* %2
br label %22
18: ; preds = %1
%19 = load i64, i64* %3
%20 = icmp eq i64 %19, 20
%21 = zext i1 %20 to i32
store i32 %21, i32* %2
br label %22
22: ; preds = %18, %13, %8, %7
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @valid_bo(i64 %0) {
%2 = lshr i64 %0, 2
%3 = and i64 %2, 5
switch i64 %3, label %4 [
i64 0, label %13
i64 1, label %5
i64 4, label %8
i64 5, label %11
]
4: ; preds = %1
unreachable
5: ; preds = %1
%6 = and i64 %0, 2
%7 = icmp eq i64 %6, 0
br label %13
8: ; preds = %1
%9 = and i64 %0, 8
%10 = icmp eq i64 %9, 0
br label %13
11: ; preds = %1
%12 = icmp eq i64 %0, 20
br label %13
13: ; preds = %1, %11, %8, %5
%14 = phi i1 [ %12, %11 ], [ %10, %8 ], [ %7, %5 ], [ true, %1 ]
%15 = zext i1 %14 to i32
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ axle1(double);
int /*<<< orphan*/ axle2(double);
int /*<<< orphan*/ axle3(double);
int /*<<< orphan*/ axle4(double);
int /*<<< orphan*/ axle5(double);
int /*<<< orphan*/ axle6(double);
double path1(double n1, double n2, double n3, double n4, double n5, double n6) {
  axle1(n1);
  axle2(n2);
  axle3(n3);
  axle4(n4);
  axle5(n5);
  axle6(n6);
}


x86 assembly (clang, -O0):
<path1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1070 <axle1@plt>
movsd  -0x18(%rbp),%xmm0
call   1030 <axle2@plt>
movsd  -0x20(%rbp),%xmm0
call   1060 <axle3@plt>
movsd  -0x28(%rbp),%xmm0
call   1040 <axle4@plt>
movsd  -0x30(%rbp),%xmm0
call   1080 <axle5@plt>
movsd  -0x38(%rbp),%xmm0
call   1050 <axle6@plt>
movsd  -0x8(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<path1>:
sub    $0x28,%rsp
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x18(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,(%rsp)
call   1070 <axle1@plt>
movsd  (%rsp),%xmm0
call   1030 <axle2@plt>
movsd  0x8(%rsp),%xmm0
call   1060 <axle3@plt>
movsd  0x10(%rsp),%xmm0
call   1040 <axle4@plt>
movsd  0x18(%rsp),%xmm0
call   1080 <axle5@plt>
movsd  0x20(%rsp),%xmm0
add    $0x28,%rsp
jmp    1050 <axle6@plt>

LLVM IR (-O0):
define double @path1(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 double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
%14 = load double, double* %8
%15 = call i32 @axle1(double %14)
%16 = load double, double* %9
%17 = call i32 @axle2(double %16)
%18 = load double, double* %10
%19 = call i32 @axle3(double %18)
%20 = load double, double* %11
%21 = call i32 @axle4(double %20)
%22 = load double, double* %12
%23 = call i32 @axle5(double %22)
%24 = load double, double* %13
%25 = call i32 @axle6(double %24)
%26 = load double, double* %7
ret double %26
}

LLVM IR (-O2):
define double @path1(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call i32 @axle1(double %0)
%8 = tail call i32 @axle2(double %1)
%9 = tail call i32 @axle3(double %2)
%10 = tail call i32 @axle4(double %3)
%11 = tail call i32 @axle5(double %4)
%12 = tail call i32 @axle6(double %5)
ret double undef
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
size_t reg_nr_to_idx(unsigned nr) {
  assert(nr >= 5);
  assert(nr <= 8);
  return nr - 5;
}


x86 assembly (clang, -O0):
<reg_nr_to_idx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
setae  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x8,-0x4(%rbp)
setbe  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
sub    $0x5,%eax
mov    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reg_nr_to_idx>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
cmp    $0x5,%ebx
setae  %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x9,%ebx
setb   %dil
call   1030 <assert@plt>
add    $0xfffffffb,%ebx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @reg_nr_to_idx(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp uge i32 %3, 5
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load i32, i32* %2
%8 = icmp ule i32 %7, 8
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = load i32, i32* %2
%12 = sub i32 %11, 5
%13 = zext i32 %12 to i64
ret i64 %13
}

LLVM IR (-O2):
define i64 @reg_nr_to_idx(i32 %0) {
%2 = icmp ugt i32 %0, 4
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = icmp ult i32 %0, 9
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = add i32 %0, -5
%9 = zext i32 %8 to i64
ret i64 %9
}
int prefix(int c) {
  signed char base = 0;
  if ('a' <= c && c <= 'z')
    c += 'A' - 'a';
  if (c == 'B')
    base = 2;
  if (c == 'D')
    base = 10;
  if (c == 'O')
    base = 8;
  if (c == 'X')
    base = 16;
  return base;
}


x86 assembly (clang, -O0):
<prefix>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
mov    $0x61,%eax
cmp    -0x4(%rbp),%eax
jg     112c <prefix+0x2c>
cmpl   $0x7a,-0x4(%rbp)
jg     112c <prefix+0x2c>
mov    -0x4(%rbp),%eax
add    $0xffffffe0,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x42,-0x4(%rbp)
jne    113a <prefix+0x3a>
movb   $0x2,-0x5(%rbp)
cmpl   $0x44,-0x4(%rbp)
jne    1148 <prefix+0x48>
movb   $0xa,-0x5(%rbp)
cmpl   $0x4f,-0x4(%rbp)
jne    1156 <prefix+0x56>
movb   $0x8,-0x5(%rbp)
cmpl   $0x58,-0x4(%rbp)
jne    1164 <prefix+0x64>
movb   $0x10,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<prefix>:
lea    -0x61(%rdi),%eax
lea    -0x20(%rdi),%ecx
cmp    $0x1a,%eax
cmovae %edi,%ecx
xor    %eax,%eax
cmp    $0x42,%ecx
sete   %al
add    %eax,%eax
cmp    $0x44,%ecx
mov    $0xa,%edx
cmovne %eax,%edx
cmp    $0x4f,%ecx
mov    $0x8,%esi
cmovne %edx,%esi
cmp    $0x58,%ecx
mov    $0x10,%eax
cmovne %esi,%eax
ret

LLVM IR (-O0):
define i32 @prefix(i32 %0) {
%2 = alloca i32
%3 = alloca i8
store i32 %0, i32* %2
store i8 0, i8* %3
%4 = load i32, i32* %2
%5 = icmp sle i32 97, %4
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 122
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, i32* %2
%11 = add nsw i32 %10, -32
store i32 %11, i32* %2
br label %12
12: ; preds = %9, %6, %1
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 66
br i1 %14, label %15, label %16
15: ; preds = %12
store i8 2, i8* %3
br label %16
16: ; preds = %15, %12
%17 = load i32, i32* %2
%18 = icmp eq i32 %17, 68
br i1 %18, label %19, label %20
19: ; preds = %16
store i8 10, i8* %3
br label %20
20: ; preds = %19, %16
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 79
br i1 %22, label %23, label %24
23: ; preds = %20
store i8 8, i8* %3
br label %24
24: ; preds = %23, %20
%25 = load i32, i32* %2
%26 = icmp eq i32 %25, 88
br i1 %26, label %27, label %28
27: ; preds = %24
store i8 16, i8* %3
br label %28
28: ; preds = %27, %24
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
ret i32 %30
}

LLVM IR (-O2):
define i32 @prefix(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %4, i32 %0
%6 = icmp eq i32 %5, 66
%7 = select i1 %6, i32 2, i32 0
%8 = icmp eq i32 %5, 68
%9 = select i1 %8, i32 10, i32 %7
%10 = icmp eq i32 %5, 79
%11 = select i1 %10, i32 8, i32 %9
%12 = icmp eq i32 %5, 88
%13 = select i1 %12, i32 16, i32 %11
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ check_ready();
int /*<<< orphan*/ reset();
void picosat_reset(void) {
  check_ready();
  reset();
}


x86 assembly (clang, -O0):
<picosat_reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <check_ready@plt>
mov    $0x0,%al
call   1030 <reset@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<picosat_reset>:
push   %rax
xor    %eax,%eax
call   1040 <check_ready@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <reset@plt>

LLVM IR (-O0):
define void @picosat_reset() {
%1 = call i32 (...) @check_ready()
%2 = call i32 (...) @reset()
ret void
}

LLVM IR (-O2):
define void @picosat_reset() {
%1 = tail call i32 (...) @check_ready()
%2 = tail call i32 (...) @reset()
ret void
}
/* Type definitions */
struct winsize {
  int ws_col;
};

/* Variables and functions */
int /*<<< orphan*/ STDOUT_FILENO;
int /*<<< orphan*/ TIOCGWINSZ;
int ioctl(int /*<<< orphan*/, int /*<<< orphan*/, struct winsize *);
int tvi_console_width(void) {
  struct winsize w;
  if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1)
    return w.ws_col;
  return 40;
}


x86 assembly (clang, -O0):
<tvi_console_width>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
mov    0x2ea8(%rip),%rax
mov    (%rax),%esi
lea    -0x8(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0xffffffff,%eax
je     1147 <tvi_console_width+0x37>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    114e <tvi_console_width+0x3e>
movl   $0x28,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tvi_console_width>:
push   %rax
mov    0x2ed8(%rip),%rax
mov    (%rax),%edi
mov    0x2eaf(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   1030 <ioctl@plt>
mov    %eax,%ecx
mov    $0x28,%eax
cmp    $0xffffffff,%ecx
je     113a <tvi_console_width+0x2a>
mov    (%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
%struct.winsize = type { i32 }
@STDOUT_FILENO = global i32 0
@TIOCGWINSZ = global i32 0
define i32 @tvi_console_width() {
%1 = alloca %struct.winsize
%2 = bitcast %struct.winsize* %1 to i8*
%3 = load i32, i32* @STDOUT_FILENO
%4 = load i32, i32* @TIOCGWINSZ
%5 = call i32 @ioctl(i32 %3, i32 %4, %struct.winsize* %1)
%6 = icmp eq i32 %5, -1
%7 = getelementptr inbounds %struct.winsize, %struct.winsize* %1, i64 0, i32 0
%8 = load i32, i32* %7
%9 = select i1 %6, i32 40, i32 %8
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void error_print(char *arr) {
  fprintf(stderr,
          "\n%s converts the intensity/phase file into matlab m-file \n", arr);
  fprintf(stderr,
          "\nUSAGE: %s F > M_F  where F is the file in gnuplot format, M_F is "
          "the matlab m-file\n\n",
          arr);
}


x86 assembly (clang, -O0):
<error_print>:
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>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xef2(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error_print>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2ec2(%rip),%r14
mov    (%r14),%edi
lea    0xed8(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf01(%rip),%rsi
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [59 x i8] c"\0A%s converts the intensity/phase file into matlab m-file \0A\00"
@.str.1 = [86 x i8] c"\0AUSAGE: %s F > M_F where F is the file in gnuplot format, M_F is the matlab m-file\0A\0A\00"
define void @error_print(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 ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %2
%8 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [59 x i8] c"\0A%s converts the intensity/phase file into matlab m-file \0A\00"
@.str.1 = [86 x i8] c"\0AUSAGE: %s F > M_F where F is the file in gnuplot format, M_F is the matlab m-file\0A\0A\00"
define void @error_print(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ mapper_unregister_all();
int /*<<< orphan*/ stdout;
void uninit() {
  fprintf(stdout, "Unregistering all mappers..."
                  "\n");
  mapper_unregister_all();
}


x86 assembly (clang, -O0):
<uninit>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <mapper_unregister_all@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninit>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <mapper_unregister_all@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [30 x i8] c"Unregistering all mappers...\0A\00"
define void @uninit() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @mapper_unregister_all()
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [30 x i8] c"Unregistering all mappers...\0A\00"
define void @uninit() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @mapper_unregister_all()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ var_declaration();
int /*<<< orphan*/ var_declarator();
void var_definition() {
  var_declaration();
  var_declarator();
}


x86 assembly (clang, -O0):
<var_definition>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <var_declaration@plt>
mov    $0x0,%al
call   1040 <var_declarator@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<var_definition>:
push   %rax
xor    %eax,%eax
call   1030 <var_declaration@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <var_declarator@plt>

LLVM IR (-O0):
define void @var_definition() {
%1 = call i32 (...) @var_declaration()
%2 = call i32 (...) @var_declarator()
ret void
}

LLVM IR (-O2):
define void @var_definition() {
%1 = tail call i32 (...) @var_declaration()
%2 = tail call i32 (...) @var_declarator()
ret void
}
/* Variables and functions */
void *emalloc(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
void *ecalloc(size_t nelem, size_t size) {
  void *p;
  p = emalloc(nelem * size);
  memset(p, 0, size);
  return p;
}


x86 assembly (clang, -O0):
<ecalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
imul   -0x10(%rbp),%rdi
call   1040 <emalloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ecalloc>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
imul   %rsi,%rdi
call   1040 <emalloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @ecalloc(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i8*
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = mul i64 %6, %7
%9 = call i8* @emalloc(i64 %8)
store i8* %9, i8** %5
%10 = load i8*, i8** %5
%11 = load i64, i64* %4
%12 = call i32 @memset(i8* %10, i32 0, i64 %11)
%13 = load i8*, i8** %5
ret i8* %13
}

LLVM IR (-O2):
define i8* @ecalloc(i64 %0, i64 %1) {
%3 = mul i64 %1, %0
%4 = tail call i8* @emalloc(i64 %3)
%5 = tail call i32 @memset(i8* %4, i32 0, i64 %1)
ret i8* %4
}
void AK_print_function_uses() {}


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

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

LLVM IR (-O0):
define void @AK_print_function_uses() {
ret void
}

LLVM IR (-O2):
define void @AK_print_function_uses() {
ret void
}
int grab7th(void *p) { return ((char *)p)[7]; }


x86 assembly (clang, -O0):
<grab7th>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x7(%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<grab7th>:
movsbl 0x7(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @grab7th(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 7
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @grab7th(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 7
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
ret i32 %4
}