xunge/DecIR huggingface dataset:
double ms2deg(int m, float s) { return (m + (s / 60.0)) / 60.0; }


x86 assembly (clang, -O0):
<ms2deg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xede(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xece(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ms2deg>:
cvtsi2sd %edi,%xmm1
cvtss2sd %xmm0,%xmm0
movsd  0xef0(%rip),%xmm2
divsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @ms2deg(i32 %0, float %1) {
%3 = alloca i32
%4 = alloca float
store i32 %0, i32* %3
store float %1, float* %4
%5 = load i32, i32* %3
%6 = sitofp i32 %5 to double
%7 = load float, float* %4
%8 = fpext float %7 to double
%9 = fdiv double %8, 6.000000e+01
%10 = fadd double %6, %9
%11 = fdiv double %10, 6.000000e+01
ret double %11
}

LLVM IR (-O2):
define double @ms2deg(i32 %0, float %1) {
%3 = sitofp i32 %0 to double
%4 = fpext float %1 to double
%5 = fdiv double %4, 6.000000e+01
%6 = fadd double %5, %3
%7 = fdiv double %6, 6.000000e+01
ret double %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int display(void) {
  printf("ala ma asa\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"ala ma asa\0A\00"
define i32 @display() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [11 x i8] c"ala ma asa\00"
define i32 @display() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main() {
  float f = 12.34f;
  void *v;
  v = &f;
  float p = *((float *)v);
  printf("%f", p);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8*
%4 = alloca float
store i32 0, i32* %1
store float 0x4028AE1480000000, float* %2
%5 = bitcast float* %2 to i8*
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to float*
%8 = load float, float* %7
store float %8, float* %4
%9 = load float, float* %4
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float 0x4028AE1480000000)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ errexit(char *, char *, int);
scalar_t__ malloc(int);
void *Malloc(int nbytes, char *msg) {
  void *ptr;
  if (nbytes == 0)
    return NULL;
  ptr = (void *)malloc(nbytes);
  if (ptr == NULL)
    errexit("Not enough mem for %s. Requested size: %d bytes", msg, nbytes);
  return ptr;
}


x86 assembly (clang, -O0):
<Malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1146 <Malloc+0x26>
movq   $0x0,-0x8(%rbp)
jmp    1178 <Malloc+0x58>
mov    -0xc(%rbp),%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1170 <Malloc+0x50>
mov    -0x18(%rbp),%rsi
mov    -0xc(%rbp),%edx
lea    0xe95(%rip),%rdi
call   1030 <errexit@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Malloc>:
push   %rbp
push   %r14
push   %rbx
test   %edi,%edi
je     114d <Malloc+0x2d>
mov    %rsi,%r14
mov    %edi,%ebp
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    114f <Malloc+0x2f>
lea    0xebf(%rip),%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1030 <errexit@plt>
jmp    114f <Malloc+0x2f>
xor    %ebx,%ebx
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"Not enough mem for %s. Requested size: %d bytes\00"
define i8* @Malloc(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i8* null, i8** %3
br label %22
10: ; preds = %2
%11 = load i32, i32* %4
%12 = call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %6
%14 = load i8*, i8** %6
%15 = icmp eq i8* %14, null
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = load i8*, i8** %5
%18 = load i32, i32* %4
%19 = call i32 @errexit(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %17, i32 %18)
br label %20
20: ; preds = %16, %10
%21 = load i8*, i8** %6
store i8* %21, i8** %3
br label %22
22: ; preds = %20, %9
%23 = load i8*, i8** %3
ret i8* %23
}

LLVM IR (-O2):
@.str = [48 x i8] c"Not enough mem for %s. Requested size: %d bytes\00"
define i8* @Malloc(i32 %0, i8* %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = tail call i64 @malloc(i32 %0)
%6 = inttoptr i64 %5 to i8*
%7 = icmp eq i64 %5, 0
br i1 %7, label %8, label %10
8: ; preds = %4
%9 = tail call i32 @errexit(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %0)
br label %10
10: ; preds = %4, %8, %2
%11 = phi i8* [ null, %2 ], [ %6, %8 ], [ %6, %4 ]
ret i8* %11
}
/* Variables and functions */
int /*<<< orphan*/ CONF_modules_free();
int /*<<< orphan*/ CONF_modules_unload(int);
int /*<<< orphan*/ CRYPTO_cleanup_all_ex_data();
int /*<<< orphan*/ ENGINE_cleanup();
int /*<<< orphan*/ ERR_free_strings();
int /*<<< orphan*/ ERR_remove_state(int /*<<< orphan*/);
int /*<<< orphan*/ EVP_cleanup();
void lib_cleanup() {
  CONF_modules_free();
  ERR_remove_state(0);
  ENGINE_cleanup();
  CONF_modules_unload(1);
  ERR_free_strings();
  EVP_cleanup();
  CRYPTO_cleanup_all_ex_data();
}


x86 assembly (clang, -O0):
<lib_cleanup>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1090 <CONF_modules_free@plt>
xor    %edi,%edi
call   1030 <ERR_remove_state@plt>
mov    $0x0,%al
call   1050 <ENGINE_cleanup@plt>
mov    $0x1,%edi
call   1060 <CONF_modules_unload@plt>
mov    $0x0,%al
call   1080 <ERR_free_strings@plt>
mov    $0x0,%al
call   1070 <EVP_cleanup@plt>
mov    $0x0,%al
call   1040 <CRYPTO_cleanup_all_ex_data@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lib_cleanup>:
push   %rax
xor    %eax,%eax
call   1090 <CONF_modules_free@plt>
xor    %edi,%edi
call   1030 <ERR_remove_state@plt>
xor    %eax,%eax
call   1050 <ENGINE_cleanup@plt>
mov    $0x1,%edi
call   1060 <CONF_modules_unload@plt>
xor    %eax,%eax
call   1080 <ERR_free_strings@plt>
xor    %eax,%eax
call   1070 <EVP_cleanup@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <CRYPTO_cleanup_all_ex_data@plt>

LLVM IR (-O0):
define void @lib_cleanup() {
%1 = call i32 (...) @CONF_modules_free()
%2 = call i32 @ERR_remove_state(i32 0)
%3 = call i32 (...) @ENGINE_cleanup()
%4 = call i32 @CONF_modules_unload(i32 1)
%5 = call i32 (...) @ERR_free_strings()
%6 = call i32 (...) @EVP_cleanup()
%7 = call i32 (...) @CRYPTO_cleanup_all_ex_data()
ret void
}

LLVM IR (-O2):
define void @lib_cleanup() {
%1 = tail call i32 (...) @CONF_modules_free()
%2 = tail call i32 @ERR_remove_state(i32 0)
%3 = tail call i32 (...) @ENGINE_cleanup()
%4 = tail call i32 @CONF_modules_unload(i32 1)
%5 = tail call i32 (...) @ERR_free_strings()
%6 = tail call i32 (...) @EVP_cleanup()
%7 = tail call i32 (...) @CRYPTO_cleanup_all_ex_data()
ret void
}
/* Variables and functions */
bool nrf52_errata_87(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf52_errata_87() {
ret i32 0
}
void __DELETE_java_net_SocketException(void *me, void *client_data) {}


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

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

LLVM IR (-O0):
define void @__DELETE_java_net_SocketException(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
ret void
}

LLVM IR (-O2):
define void @__DELETE_java_net_SocketException(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fit(char *, int);
int /*<<< orphan*/ puts(char *);
int main(void) {
  char mesg[] = "Hold on to your hats, hackers.";
  puts(mesg);
  fit(mesg, 7);
  puts(mesg);
  puts("Let's look at some more of the string.");
  puts(mesg + 8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec2(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xebc(%rip),%ax
mov    %ax,-0x14(%rbp)
mov    0xeb4(%rip),%al
mov    %al,-0x12(%rbp)
lea    -0x30(%rbp),%rdi
call   1030 <puts@plt>
lea    -0x30(%rbp),%rdi
mov    $0x7,%esi
call   1040 <fit@plt>
lea    -0x30(%rbp),%rdi
call   1030 <puts@plt>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
lea    -0x30(%rbp),%rdi
add    $0x8,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
movups 0xee3(%rip),%xmm0
movups %xmm0,0xf(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <fit@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1030 <puts@plt>
lea    0x8(%rsp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.mesg = [31 x i8] c"Hold on to your hats, hackers.\00"
@.str = [39 x i8] c"Let's look at some more of the string.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [31 x i8]
store i32 0, i32* %1
%3 = bitcast [31 x i8]* %2 to i8*
%4 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%5 = call i32 @puts(i8* %4)
%6 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%7 = call i32 @fit(i8* %6, i32 7)
%8 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%9 = call i32 @puts(i8* %8)
%10 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds i8, i8* %11, i64 8
%13 = call i32 @puts(i8* %12)
ret i32 0
}

LLVM IR (-O2):
@__const.main.mesg = [31 x i8] c"Hold on to your hats, hackers.\00"
@.str = [39 x i8] c"Let's look at some more of the string.\00"
define i32 @main() {
%1 = alloca [31 x i8]
%2 = getelementptr inbounds [31 x i8], [31 x i8]* %1, i64 0, i64 0
%3 = call i32 @puts(i8* %2)
%4 = call i32 @fit(i8* %2, i32 7)
%5 = call i32 @puts(i8* %2)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [31 x i8], [31 x i8]* %1, i64 0, i64 8
%8 = call i32 @puts(i8* %7)
ret i32 0
}
int cksiminp(int spec) { return 1024; }


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

x86 assembly (clang, -O2):
<cksiminp>:
mov    $0x400,%eax
ret

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

LLVM IR (-O2):
define i32 @cksiminp(i32 %0) {
ret i32 1024
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int reverse(int);
int main() {
  int x = -123;
  int x_reverse;
  x_reverse = reverse(x);
  printf("x=%d\nx_reverse=%d\n", x, x_reverse);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffff85,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <reverse@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffff85,%edi
call   1030 <reverse@plt>
lea    0xece(%rip),%rdi
mov    $0xffffff85,%esi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"x=%d\0Ax_reverse=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -123, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @reverse(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"x=%d\0Ax_reverse=%d\0A\00"
define i32 @main() {
%1 = tail call i32 @reverse(i32 -123)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 -123, i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void print(const void *data) { printf("\n%02d", *(int *)data); }


x86 assembly (clang, -O0):
<print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print>:
mov    (%rdi),%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\0A%02d\00"
define void @print(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i32*
%5 = load i32, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\0A%02d\00"
define void @print(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}
void XDisplayPlanes() {}


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

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

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

LLVM IR (-O2):
define void @XDisplayPlanes() {
ret void
}
int test_imm_2Fuint64_lowword_reg(unsigned long long val) {
  return ((val) & (0x2F << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_2Fuint64_lowword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
and    $0x2f,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_2Fuint64_lowword_reg>:
test   $0x2f,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_2Fuint64_lowword_reg(i64 %0) {
%2 = and i64 %0, 47
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_move_epi64(int /*<<< orphan*/);
__m128i test(__m128i b) { return _mm_move_epi64(b); }


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_mm_move_epi64@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
jmp    1030 <_mm_move_epi64@plt>

LLVM IR (-O0):
define i32 @test(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_mm_move_epi64(i32 %3)
ret i32 %4
}

LLVM IR (-O2):
define i32 @test(i32 %0) {
%2 = tail call i32 @_mm_move_epi64(i32 %0)
ret i32 %2
}
void GB_IDENTITY_f_FP32(float *z, const float *x) { (*z) = (*x); }


x86 assembly (clang, -O0):
<GB_IDENTITY_f_FP32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_IDENTITY_f_FP32>:
movss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @GB_IDENTITY_f_FP32(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %4
%6 = load float, float* %5
%7 = load float*, float** %3
store float %6, float* %7
ret void
}

LLVM IR (-O2):
define void @GB_IDENTITY_f_FP32(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
store float %3, float* %0
ret void
}
void g_key_file_set_comment() {}


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

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

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

LLVM IR (-O2):
define void @g_key_file_set_comment() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __coverity_panic__();
void g_assertion_message_expr(const char *domain, const char *file, int line,
                              const char *func, const char *expr) {
  __coverity_panic__();
}


x86 assembly (clang, -O0):
<g_assertion_message_expr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    $0x0,%al
call   1030 <__coverity_panic__@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g_assertion_message_expr>:
xor    %eax,%eax
jmp    1030 <__coverity_panic__@plt>

LLVM IR (-O0):
define void @g_assertion_message_expr(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = call i32 (...) @__coverity_panic__()
ret void
}

LLVM IR (-O2):
define void @g_assertion_message_expr(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2, i8* nocapture readnone %3, i8* nocapture readnone %4) {
%6 = tail call i32 (...) @__coverity_panic__()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void disp_int(void *item_data) { printf(" %d", (*(int *)(item_data))); }


x86 assembly (clang, -O0):
<disp_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<disp_int>:
mov    (%rdi),%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" %d\00"
define void @disp_int(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i32*
%5 = load i32, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" %d\00"
define void @disp_int(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_mutex_t;

/* Variables and functions */
int pthread_mutex_unlock(int /*<<< orphan*/ *);
int unlock_fn(void *handle) {
  pthread_mutex_t *mutex = (pthread_mutex_t *)handle;
  if (mutex)
    return pthread_mutex_unlock(mutex);
  else
    return 0;
}


x86 assembly (clang, -O0):
<unlock_fn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1140 <unlock_fn+0x30>
mov    -0x18(%rbp),%rdi
call   1030 <pthread_mutex_unlock@plt>
mov    %eax,-0x4(%rbp)
jmp    1147 <unlock_fn+0x37>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unlock_fn>:
test   %rdi,%rdi
je     111a <unlock_fn+0xa>
jmp    1030 <pthread_mutex_unlock@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @unlock_fn(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i32*
store i32* %6, i32** %4
%7 = load i32*, i32** %4
%8 = icmp ne i32* %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i32*, i32** %4
%11 = call i32 @pthread_mutex_unlock(i32* %10)
store i32 %11, i32* %2
br label %13
12: ; preds = %1
store i32 0, i32* %2
br label %13
13: ; preds = %12, %9
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @unlock_fn(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = bitcast i8* %0 to i32*
%5 = tail call i32 @pthread_mutex_unlock(i32* %4)
br label %6
6: ; preds = %1, %3
%7 = phi i32 [ %5, %3 ], [ 0, %1 ]
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *);
void fail(const char *why) {
  printf("%s\n", why);
  exit(111);
}


x86 assembly (clang, -O0):
<fail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x6f,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fail>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x6f,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @fail(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 111)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @fail(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 111)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ s;

/* Variables and functions */
int magicconsume(int *, int *, int, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sprintf(char *, char *);
int illusion(int *aces, int *inv) {
  char s[20];
  memset(s, 0, sizeof(s));
  sprintf(s, "Illusion");
  int v = magicconsume(aces, inv, 4, s);
  if (v < 0)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<illusion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
lea    -0x30(%rbp),%rdi
lea    0xea5(%rip),%rsi
call   1050 <sprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x30(%rbp),%rcx
mov    $0x4,%edx
call   1030 <magicconsume@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    118f <illusion+0x5f>
movl   $0x0,-0x4(%rbp)
jmp    1196 <illusion+0x66>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<illusion>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
movabs $0x6e6f6973756c6c49,%rax
69 6f 6e
mov    %rax,(%rsp)
movb   $0x0,0x8(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
mov    %r15,%rcx
call   1030 <magicconsume@plt>
not    %eax
shr    $0x1f,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Illusion\00"
define i32 @illusion(i32* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca [20 x i8]
%7 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%9 = call i32 @memset(i8* %8, i32 0, i32 20)
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%11 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%12 = load i32*, i32** %4
%13 = load i32*, i32** %5
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%15 = call i32 @magicconsume(i32* %12, i32* %13, i32 4, i8* %14)
store i32 %15, i32* %7
%16 = load i32, i32* %7
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 0, i32* %3
br label %20
19: ; preds = %2
store i32 1, i32* %3
br label %20
20: ; preds = %19, %18
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
@.str = [9 x i8] c"Illusion\00"
define i32 @illusion(i32* %0, i32* %1) {
%3 = alloca [20 x i8]
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 20)
%6 = call i32 @magicconsume(i32* %0, i32* %1, i32 4, i8* %4)
%7 = xor i32 %6, -1
%8 = lshr i32 %7, 31
ret i32 %8
}
int test_imm_EFuint64_highword_reg(unsigned long long val) {
  return ((val >> 32) & (0xEF << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_EFuint64_highword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
shr    $0x20,%rdx
and    $0xef,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_EFuint64_highword_reg>:
movabs $0xef00000000,%rax
test   %rax,%rdi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_EFuint64_highword_reg(i64 %0) {
%2 = and i64 %0, 1026497183744
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void dummy_moveto(long x, long y) {
  x = x;
  y = y;
}


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

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

LLVM IR (-O0):
define void @dummy_moveto(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
store i64 %5, i64* %3
%6 = load i64, i64* %4
store i64 %6, i64* %4
ret void
}

LLVM IR (-O2):
define void @dummy_moveto(i64 %0, i64 %1) {
ret void
}
void foo_2_2_2_1_1_2_2_1_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_2_2_2_1_1_2_2_1_2() {
ret void
}
void Draco9210GpioInit() {}


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

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

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

LLVM IR (-O2):
define void @Draco9210GpioInit() {
ret void
}
void sectorset_(ixc, iyc, ix1, iy1, ix2, iy2) int *ixc, *iyc, *ix1, *iy1, *ix2,
    *iy2;
{ sector_set(ixc, iyc, ix1, iy1, ix2, iy2); }


x86 assembly (clang, -O0):
<sectorset_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    $0x0,%al
call   1030 <sector_set@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sectorset_>:
xor    %eax,%eax
jmp    1030 <sector_set@plt>

LLVM IR (-O0):
define void @sectorset_(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load i32*, i32** %7
%14 = load i32*, i32** %8
%15 = load i32*, i32** %9
%16 = load i32*, i32** %10
%17 = load i32*, i32** %11
%18 = load i32*, i32** %12
%19 = call i32 (i32*, i32*, i32*, i32*, i32*, i32*, ...) bitcast (i32 (...)* @sector_set to i32 (i32*, i32*, i32*, i32*, i32*, i32*, ...)*)(i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18)
ret void
}

LLVM IR (-O2):
define void @sectorset_(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = tail call i32 (i32*, i32*, i32*, i32*, i32*, i32*, ...) bitcast (i32 (...)* @sector_set to i32 (i32*, i32*, i32*, i32*, i32*, i32*, ...)*)(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int padcon_dobldobl_initialize_homotopy(int verbose, int homo) {
  int fail;
  int precision = 1;
  int pars[2];
  double *c;
  pars[0] = verbose;
  pars[1] = homo;
  fail = _ada_use_c2phc4c(860, &precision, pars, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<padcon_dobldobl_initialize_homotopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
lea    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x35c,%edi
lea    -0x10(%rbp),%rsi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<padcon_dobldobl_initialize_homotopy>:
sub    $0x18,%rsp
movl   $0x1,0xc(%rsp)
mov    %edi,0x10(%rsp)
mov    %esi,0x14(%rsp)
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    $0x35c,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @padcon_dobldobl_initialize_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [2 x i32]
%8 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 1, i32* %6
%9 = load i32, i32* %3
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
store i32 %9, i32* %10
%11 = load i32, i32* %4
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
store i32 %11, i32* %12
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%14 = load double*, double** %8
%15 = call i32 @_ada_use_c2phc4c(i32 860, i32* %6, i32* %13, double* %14, i32 0)
store i32 %15, i32* %5
%16 = load i32, i32* %5
ret i32 %16
}

LLVM IR (-O2):
define i32 @padcon_dobldobl_initialize_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca [2 x i32]
%5 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%6 = bitcast [2 x i32]* %4 to i8*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
store i32 %0, i32* %7
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
store i32 %1, i32* %8
%9 = call i32 @_ada_use_c2phc4c(i32 860, i32* %3, i32* %7, double* undef, i32 0)
ret i32 %9
}
/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ *data;
  scalar_t__ length;
};
typedef TYPE_1__ *ARRAY16Ptr;

/* Variables and functions */
int /*<<< orphan*/ Xfree(int /*<<< orphan*/ *);
void XdmcpDisposeARRAY16(ARRAY16Ptr array) {
  if (array->data != NULL)
    Xfree(array->data);
  array->length = 0;
  array->data = NULL;
}


x86 assembly (clang, -O0):
<XdmcpDisposeARRAY16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     1136 <XdmcpDisposeARRAY16+0x26>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <Xfree@plt>
mov    -0x8(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XdmcpDisposeARRAY16>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1121 <XdmcpDisposeARRAY16+0x11>
call   1030 <Xfree@plt>
xorps  %xmm0,%xmm0
movups %xmm0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32*, i64 }
define void @XdmcpDisposeARRAY16(%struct.TYPE_3__* %0) {
%2 = alloca %struct.TYPE_3__*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %2
%3 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i32 0, i32 0
%5 = load i32*, i32** %4
%6 = icmp ne i32* %5, null
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %8, i32 0, i32 0
%10 = load i32*, i32** %9
%11 = call i32 @Xfree(i32* %10)
br label %12
12: ; preds = %7, %1
%13 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
store i64 0, i64* %14
%15 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%16 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i32 0, i32 0
store i32* null, i32** %16
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32*, i64 }
define void @XdmcpDisposeARRAY16(%struct.TYPE_3__* nocapture %0) {
%2 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%3 = load i32*, i32** %2
%4 = icmp eq i32* %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @Xfree(i32* %3)
br label %7
7: ; preds = %5, %1
%8 = bitcast %struct.TYPE_3__* %0 to i8*
ret void
}
/* Variables and functions */
int /*<<< orphan*/ runTestCases();
int main() {
  runTestCases();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @runTestCases()
ret i32 0
}
int main() {
  int x, y;
  while (1) {
    x = x + 1;
    y = y - 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    %eax,-0xc(%rbp)
jmp    110b <main+0xb>

x86 assembly (clang, -O2):
<main>:
jmp    1100 <main>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %0, %4
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 1
store i32 %6, i32* %2
%7 = load i32, i32* %3
%8 = sub nsw i32 %7, 1
store i32 %8, i32* %3
br label %4
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
int isleap(int);
int daysinmonth(int y, int m) {
  int b = 31;
  if (m == 2) {
    if (isleap(y) == 1)
      b = 29;
    else
      b = 28;
  }
  if (m == 4 || m == 6 || m == 9 || m == 11)
    b = 30;
  return (b);
}


x86 assembly (clang, -O0):
<daysinmonth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x1f,-0xc(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1158 <daysinmonth+0x48>
mov    -0x4(%rbp),%edi
call   1030 <isleap@plt>
cmp    $0x1,%eax
jne    114c <daysinmonth+0x3c>
movl   $0x1d,-0xc(%rbp)
jmp    1153 <daysinmonth+0x43>
movl   $0x1c,-0xc(%rbp)
jmp    1158 <daysinmonth+0x48>
cmpl   $0x4,-0x8(%rbp)
je     1180 <daysinmonth+0x70>
cmpl   $0x6,-0x8(%rbp)
je     1180 <daysinmonth+0x70>
cmpl   $0x9,-0x8(%rbp)
je     1180 <daysinmonth+0x70>
cmpl   $0xb,-0x8(%rbp)
jne    1187 <daysinmonth+0x77>
movl   $0x1e,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<daysinmonth>:
mov    $0x1f,%eax
cmp    $0xb,%esi
ja     1129 <daysinmonth+0x19>
mov    $0xa50,%ecx
bt     %esi,%ecx
jae    112a <daysinmonth+0x1a>
mov    $0x1e,%eax
ret
cmp    $0x2,%esi
jne    1129 <daysinmonth+0x19>
push   %rax
call   1030 <isleap@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ecx
sete   %al
or     $0x1c,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @daysinmonth(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 31, i32* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load i32, i32* %3
%10 = call i32 @isleap(i32 %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 29, i32* %5
br label %14
13: ; preds = %8
store i32 28, i32* %5
br label %14
14: ; preds = %13, %12
br label %15
15: ; preds = %14, %2
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 4
br i1 %17, label %27, label %18
18: ; preds = %15
%19 = load i32, i32* %4
%20 = icmp eq i32 %19, 6
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 9
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 11
br i1 %26, label %27, label %28
27: ; preds = %24, %21, %18, %15
store i32 30, i32* %5
br label %28
28: ; preds = %27, %24
%29 = load i32, i32* %5
ret i32 %29
}

LLVM IR (-O2):
define i32 @daysinmonth(i32 %0, i32 %1) {
switch i32 %1, label %8 [
i32 2, label %3
i32 11, label %7
i32 9, label %7
i32 6, label %7
i32 4, label %7
]
3: ; preds = %2
%4 = tail call i32 @isleap(i32 %0)
%5 = icmp eq i32 %4, 1
%6 = select i1 %5, i32 29, i32 28
br label %8
7: ; preds = %2, %2, %2, %2
br label %8
8: ; preds = %2, %3, %7
%9 = phi i32 [ 30, %7 ], [ %6, %3 ], [ 31, %2 ]
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ abort();
void mpu_ll_set_region_illegal(uint32_t addr) { abort(); }


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

x86 assembly (clang, -O2):
<mpu_ll_set_region_illegal>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @mpu_ll_set_region_illegal(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @mpu_ll_set_region_illegal(i32 %0) {
%2 = tail call i32 (...) @abort()
unreachable
}
void do_bounds_check(void *x) {
  do {
    kprintf("Unsupport Now...[%s]\n", __FUNCTION__);
    while (1)
      ;
  } while (0);
  ;
}


x86 assembly (clang, -O0):
<do_bounds_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <kprintf@plt>
jmp    1131 <do_bounds_check+0x21>

x86 assembly (clang, -O2):
<do_bounds_check>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xef7(%rip),%rsi
xor    %eax,%eax
call   1030 <kprintf@plt>
cs nopw 0x0(%rax,%rax,1)
jmp    1130 <do_bounds_check+0x20>

LLVM IR (-O0):
@.str = [22 x i8] c"Unsupport Now...[%s]\0A\00"
@__FUNCTION__.do_bounds_check = [16 x i8] c"do_bounds_check\00"
define void @do_bounds_check(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @kprintf to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__FUNCTION__.do_bounds_check, i64 0, i64 0))
br label %5
5: ; preds = %3, %5
br label %5
6: ; No predecessors!
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Unsupport Now...[%s]\0A\00"
@__FUNCTION__.do_bounds_check = [16 x i8] c"do_bounds_check\00"
define void @do_bounds_check(i8* nocapture readnone %0) {
%2 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @kprintf to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__FUNCTION__.do_bounds_check, i64 0, i64 0))
br label %3
3: ; preds = %1, %3
br label %3
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
int /*<<< orphan*/ chr2initPPUGet8(int);
int /*<<< orphan*/ chr8initPPUGet8(int);
void m77initPPUGet8(uint16_t addr) {
  if (addr < 0x800)
    chr2initPPUGet8(addr);
  else if (addr < 0x2000)
    chr8initPPUGet8(addr);
}


x86 assembly (clang, -O0):
<m77initPPUGet8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x800,-0x4(%rbp)
jge    1145 <m77initPPUGet8+0x25>
mov    -0x4(%rbp),%edi
call   1040 <chr2initPPUGet8@plt>
jmp    115f <m77initPPUGet8+0x3f>
cmpl   $0x2000,-0x4(%rbp)
jge    115a <m77initPPUGet8+0x3a>
mov    -0x4(%rbp),%edi
call   1030 <chr8initPPUGet8@plt>
jmp    115f <m77initPPUGet8+0x3f>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m77initPPUGet8>:
cmp    $0x7ff,%edi
jg     112d <m77initPPUGet8+0xd>
jmp    1040 <chr2initPPUGet8@plt>
cmp    $0x1fff,%edi
ja     113a <m77initPPUGet8+0x1a>
jmp    1030 <chr8initPPUGet8@plt>
ret

LLVM IR (-O0):
define void @m77initPPUGet8(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 2048
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = call i32 @chr2initPPUGet8(i32 %6)
br label %15
8: ; preds = %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 8192
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = call i32 @chr8initPPUGet8(i32 %12)
br label %14
14: ; preds = %11, %8
br label %15
15: ; preds = %14, %5
ret void
}

LLVM IR (-O2):
define void @m77initPPUGet8(i32 %0) {
%2 = icmp slt i32 %0, 2048
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @chr2initPPUGet8(i32 %0)
br label %9
5: ; preds = %1
%6 = icmp ult i32 %0, 8192
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @chr8initPPUGet8(i32 %0)
br label %9
9: ; preds = %5, %7, %3
ret void
}
/* Variables and functions */
int strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int);
void writesnl(const char *p) {
  write(1, p, strlen(p));
  write(1, "\n", 1);
}


x86 assembly (clang, -O0):
<writesnl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xea7(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @writesnl(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @write(i32 1, i8* %3, i32 %5)
%7 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @writesnl(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @write(i32 1, i8* %0, i32 %2)
%4 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
ret void
}
void HDrawLine(int x0, int y0, int x1, int y1) {}


x86 assembly (clang, -O0):
<HDrawLine>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @HDrawLine(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
ret void
}

LLVM IR (-O2):
define void @HDrawLine(i32 %0, i32 %1, i32 %2, i32 %3) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f(int *, int *);
int main(void) {
  int p = 5;
  int q = 6;
  f(&p, &q);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x6,-0xc(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1030 <f@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x5,0x4(%rsp)
movl   $0x6,(%rsp)
lea    0x4(%rsp),%rdi
mov    %rsp,%rsi
call   1030 <f@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 5, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 6, i32* %2
%5 = call i32 @f(i32* %1, i32* %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("usage: wordsim -wordlist <str> (REQUIRED)]\n\t[-filedir <str> "
         "(REQUIRED)]\n\t[-filedir2 <str>]\n\t[-subset <n> (defaults to no "
         "splitting)]\n\t[-maxrun <n> (defaults to INT_MAX)]\n\t[-distthr <n> "
         "(defaults to FLOAT_MAX)]\n\t[-delta <n> (defaults to "
         "1.0)]\n\t[-token <n> (defaults to 0)]\n\t[-euclidean <n> (defaults "
         "to 0=cosine)]\n\t[-kldiv <n> (defaults to 0=cosine)]\n\t[-sym <n> "
         "(defaults to 0=not symmetrized)]\n\t[-normalize <n> (defaults to 1, "
         "unless kldiv=1)]\n\t[-mit <n> (defaults to 0)]\n\t[-3D <n> (defaults "
         "to 0)]\n\t[-segnorm <n> (defaults to 0)]\n\t[-dtw_dur_norm <n> "
         "(defaults to 1)]\n\t[-printinds <n> (defaults to 0)]\n");
}


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

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

LLVM IR (-O0):
@.str = [603 x i8] c"usage: wordsim -wordlist <str> (REQUIRED)]\0A\09[-filedir <str> (REQUIRED)]\0A\09[-filedir2 <str>]\0A\09[-subset <n> (defaults to no splitting)]\0A\09[-maxrun <n> (defaults to INT_MAX)]\0A\09[-distthr <n> (defaults to FLOAT_MAX)]\0A\09[-delta <n> (defaults to 1.0)]\0A\09[-token <n> (defaults to 0)]\0A\09[-euclidean <n> (defaults to 0=cosine)]\0A\09[-kldiv <n> (defaults to 0=cosine)]\0A\09[-sym <n> (defaults to 0=not symmetrized)]\0A\09[-normalize <n> (defaults to 1, unless kldiv=1)]\0A\09[-mit <n> (defaults to 0)]\0A\09[-3D <n> (defaults to 0)]\0A\09[-segnorm <n> (defaults to 0)]\0A\09[-dtw_dur_norm <n> (defaults to 1)]\0A\09[-printinds <n> (defaults to 0)]\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([603 x i8], [603 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [602 x i8] c"usage: wordsim -wordlist <str> (REQUIRED)]\0A\09[-filedir <str> (REQUIRED)]\0A\09[-filedir2 <str>]\0A\09[-subset <n> (defaults to no splitting)]\0A\09[-maxrun <n> (defaults to INT_MAX)]\0A\09[-distthr <n> (defaults to FLOAT_MAX)]\0A\09[-delta <n> (defaults to 1.0)]\0A\09[-token <n> (defaults to 0)]\0A\09[-euclidean <n> (defaults to 0=cosine)]\0A\09[-kldiv <n> (defaults to 0=cosine)]\0A\09[-sym <n> (defaults to 0=not symmetrized)]\0A\09[-normalize <n> (defaults to 1, unless kldiv=1)]\0A\09[-mit <n> (defaults to 0)]\0A\09[-3D <n> (defaults to 0)]\0A\09[-segnorm <n> (defaults to 0)]\0A\09[-dtw_dur_norm <n> (defaults to 1)]\0A\09[-printinds <n> (defaults to 0)]\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([602 x i8], [602 x i8]* @str, i64 0, i64 0))
ret void
}