xunge/DecIR huggingface dataset:
/* Variables and functions */
int get_Delaunay_reduction(double **, double **, double const);
int lat_smallest_lattice_vector(double min_lattice[3][3], double lattice[3][3],
                                const double symprec) {
  ;
  return get_Delaunay_reduction(min_lattice, lattice, symprec);
}


x86 assembly (clang, -O0):
<lat_smallest_lattice_vector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movsd  -0x18(%rbp),%xmm0
call   1030 <get_Delaunay_reduction@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lat_smallest_lattice_vector>:
jmp    1030 <get_Delaunay_reduction@plt>

LLVM IR (-O0):
define i32 @lat_smallest_lattice_vector([3 x double]* %0, [3 x double]* %1, double %2) {
%4 = alloca [3 x double]*
%5 = alloca [3 x double]*
%6 = alloca double
store [3 x double]* %0, [3 x double]** %4
store [3 x double]* %1, [3 x double]** %5
store double %2, double* %6
%7 = load [3 x double]*, [3 x double]** %4
%8 = bitcast [3 x double]* %7 to double**
%9 = load [3 x double]*, [3 x double]** %5
%10 = bitcast [3 x double]* %9 to double**
%11 = load double, double* %6
%12 = call i32 @get_Delaunay_reduction(double** %8, double** %10, double %11)
ret i32 %12
}

LLVM IR (-O2):
define i32 @lat_smallest_lattice_vector([3 x double]* %0, [3 x double]* %1, double %2) {
%4 = bitcast [3 x double]* %0 to double**
%5 = bitcast [3 x double]* %1 to double**
%6 = tail call i32 @get_Delaunay_reduction(double** %4, double** %5, double %2)
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ X509_REVOKED;
typedef int /*<<< orphan*/ ASN1_VALUE;

/* Variables and functions */
int /*<<< orphan*/ ASN1_item_free(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ X509_REVOKED_it;
void X509_REVOKED_free(X509_REVOKED *a) {
  ASN1_item_free((ASN1_VALUE *)a, &X509_REVOKED_it);
}


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

x86 assembly (clang, -O2):
<X509_REVOKED_free>:
mov    0x2ec9(%rip),%rsi
jmp    1030 <ASN1_item_free@plt>

LLVM IR (-O0):
@X509_REVOKED_it = global i32 0
define void @X509_REVOKED_free(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @ASN1_item_free(i32* %3, i32* @X509_REVOKED_it)
ret void
}

LLVM IR (-O2):
@X509_REVOKED_it = global i32 0
define void @X509_REVOKED_free(i32* %0) {
%2 = tail call i32 @ASN1_item_free(i32* %0, i32* @X509_REVOKED_it)
ret void
}
int test_imm_31uint32_reg(unsigned int val) {
  return ((val) & (0x31 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_31uint32_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
and    $0x31,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @test_imm_31uint32_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 49
%5 = icmp ne i32 %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_31uint32_reg(i32 %0) {
%2 = and i32 %0, 49
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
int test_imm_2Fint32_mem(int *val) {
  return ((*val) & (0x2F << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_2Fint32_mem>:
testb  $0x2f,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_2Fint32_mem(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = and i32 %4, 47
%6 = icmp ne i32 %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_2Fint32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 47
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
const char *hfp_subevent_sudirriber_number_information_get_bnip_number(
    const uint8_t *event) {
  return (const char *)&event[5];
}


x86 assembly (clang, -O0):
<hfp_subevent_sudirriber_number_information_get_bnip_number>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x14,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hfp_subevent_sudirriber_number_information_get_bnip_number>:
lea    0x14(%rdi),%rax
ret

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

LLVM IR (-O2):
define i8* @hfp_subevent_sudirriber_number_information_get_bnip_number(i32* readnone %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 5
%3 = bitcast i32* %2 to i8*
ret i8* %3
}
void ERR_print_errors_cb(void) {}


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

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

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

LLVM IR (-O2):
define void @ERR_print_errors_cb() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dnaUtilOpen();
scalar_t__ isIupacAmbiguous(char);
int anyIupac(char *s) {
  dnaUtilOpen();
  char c;
  while ((c = *s++) != 0) {
    if (isIupacAmbiguous(c))
      return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<anyIupac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <dnaUtilOpen@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    %al,-0x11(%rbp)
movsbl %al,%eax
cmp    $0x0,%eax
je     1177 <anyIupac+0x57>
movsbl -0x11(%rbp),%edi
call   1040 <isIupacAmbiguous@plt>
cmp    $0x0,%rax
je     1172 <anyIupac+0x52>
movl   $0x1,-0x4(%rbp)
jmp    117e <anyIupac+0x5e>
jmp    1133 <anyIupac+0x13>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anyIupac>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <dnaUtilOpen@plt>
nop
movzbl (%rbx),%eax
test   %al,%al
je     114d <anyIupac+0x2d>
add    $0x1,%rbx
movsbl %al,%edi
call   1040 <isIupacAmbiguous@plt>
test   %rax,%rax
je     1130 <anyIupac+0x10>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @anyIupac(i8* nocapture %0) {
%2 = tail call i32 (...) @dnaUtilOpen()
br label %3
3: ; preds = %7, %1
%4 = phi i8* [ %0, %1 ], [ %8, %7 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %4, i64 1
%9 = tail call i64 @isIupacAmbiguous(i8 signext %5)
%10 = icmp eq i64 %9, 0
br i1 %10, label %3, label %11
11: ; preds = %3, %7
%12 = phi i32 [ 1, %7 ], [ 0, %3 ]
ret i32 %12
}
void RTUtf16LocaleICmp(void) {}


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

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

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

LLVM IR (-O2):
define void @RTUtf16LocaleICmp() {
ret void
}
IR0IR1(r0, r1, x0, x1, p0, p1) unsigned char r0, r1;
unsigned char *p0, *p1;
{
  if ((*p0) <= (*p1))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<IR0IR1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %dil,%sil
mov    %sil,-0x5(%rbp)
mov    %al,-0x6(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl (%rcx),%ecx
cmp    %ecx,%eax
jg     1140 <IR0IR1+0x40>
movl   $0x1,-0x4(%rbp)
jmp    1147 <IR0IR1+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IR0IR1>:
mov    (%r8),%cl
xor    %eax,%eax
cmp    (%r9),%cl
setbe  %al
ret

LLVM IR (-O0):
define i32 @IR0IR1(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = trunc i32 %0 to i8
%15 = trunc i32 %1 to i8
store i8 %14, i8* %8
store i8 %15, i8* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i8* %4, i8** %12
store i8* %5, i8** %13
%16 = load i8*, i8** %12
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = load i8*, i8** %13
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = icmp sle i32 %18, %21
br i1 %22, label %23, label %24
23: ; preds = %6
store i32 1, i32* %7
br label %25
24: ; preds = %6
store i32 0, i32* %7
br label %25
25: ; preds = %24, %23
%26 = load i32, i32* %7
ret i32 %26
}

LLVM IR (-O2):
define i32 @IR0IR1(i32 %0, i32 %1, i32 %2, i32 %3, i8* nocapture %4, i8* nocapture %5) {
%7 = load i8, i8* %4
%8 = load i8, i8* %5
%9 = icmp ule i8 %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}
void RTZipCompress(void) {}


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

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

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

LLVM IR (-O2):
define void @RTZipCompress() {
ret void
}
/* Variables and functions */
int errno;
int pipe2(int *, int);
int __sulong_posix_pipe2(int pipefd[2], int flags) {
  {
    int native_errno = errno;
    int result = pipe2(pipefd, flags);
    if (result == (int)-1) {
      result = (int)(long)-errno;
    }
    errno = native_errno;
    return result;
  };
}


x86 assembly (clang, -O0):
<__sulong_posix_pipe2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <pipe2@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    1154 <__sulong_posix_pipe2+0x44>
xor    %eax,%eax
mov    0x2e93(%rip),%rcx
sub    (%rcx),%eax
cltq
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%ecx
mov    0x2e82(%rip),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__sulong_posix_pipe2>:
push   %rbp
push   %rbx
push   %rax
mov    0x2ec6(%rip),%rbx
mov    (%rbx),%ebp
call   1030 <pipe2@plt>
xor    %ecx,%ecx
sub    (%rbx),%ecx
cmp    $0xffffffff,%eax
cmove  %ecx,%eax
mov    %ebp,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i32 0
define i32 @__sulong_posix_pipe2(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = load i32, i32* @errno
store i32 %7, i32* %5
%8 = load i32*, i32** %3
%9 = load i32, i32* %4
%10 = call i32 @pipe2(i32* %8, i32 %9)
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i32, i32* @errno
%15 = sub nsw i32 0, %14
%16 = sext i32 %15 to i64
%17 = trunc i64 %16 to i32
store i32 %17, i32* %6
br label %18
18: ; preds = %13, %2
%19 = load i32, i32* %5
store i32 %19, i32* @errno
%20 = load i32, i32* %6
ret i32 %20
}

LLVM IR (-O2):
@errno = global i32 0
define i32 @__sulong_posix_pipe2(i32* %0, i32 %1) {
%3 = load i32, i32* @errno
%4 = tail call i32 @pipe2(i32* %0, i32 %1)
%5 = icmp eq i32 %4, -1
%6 = load i32, i32* @errno
%7 = sub nsw i32 0, %6
%8 = select i1 %5, i32 %7, i32 %4
store i32 %3, i32* @errno
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void f5(int (*f)(int)) { printf("f5: %d\n", f(5)); }


x86 assembly (clang, -O0):
<f5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x5,%edi
call   *-0x8(%rbp)
mov    %eax,%esi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f5>:
push   %rax
mov    %rdi,%rax
mov    $0x5,%edi
call   *%rax
lea    0xede(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [8 x i8] c"f5: %d\0A\00"
define void @f5(i32 (i32)* nocapture %0) {
%2 = tail call i32 %0(i32 5)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CallBack0(int);
int /*<<< orphan*/ CheckRunningInMainThread(char *);
void HistoryDisplaySelection(void) {
  if (!CheckRunningInMainThread("HistoryDisplaySelection"))
    return;
  CallBack0(100 + 512);
}


x86 assembly (clang, -O0):
<HistoryDisplaySelection>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <CheckRunningInMainThread@plt>
cmp    $0x0,%eax
jne    113e <HistoryDisplaySelection+0x1e>
jmp    1148 <HistoryDisplaySelection+0x28>
mov    $0x264,%edi
call   1040 <CallBack0@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HistoryDisplaySelection>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <CheckRunningInMainThread@plt>
test   %eax,%eax
je     113c <HistoryDisplaySelection+0x1c>
mov    $0x264,%edi
pop    %rax
jmp    1040 <CallBack0@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [24 x i8] c"HistoryDisplaySelection\00"
define void @HistoryDisplaySelection() {
%1 = call i32 @CheckRunningInMainThread(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i32 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
br label %6
4: ; preds = %0
%5 = call i32 @CallBack0(i32 612)
br label %6
6: ; preds = %4, %3
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"HistoryDisplaySelection\00"
define void @HistoryDisplaySelection() {
%1 = tail call i32 @CheckRunningInMainThread(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @CallBack0(i32 612)
br label %5
5: ; preds = %0, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ hc_cleanup();
void hc_atexit() { hc_cleanup(); }


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

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

LLVM IR (-O0):
define void @hc_atexit() {
%1 = call i32 (...) @hc_cleanup()
ret void
}

LLVM IR (-O2):
define void @hc_atexit() {
%1 = tail call i32 (...) @hc_cleanup()
ret void
}
int ssusb_sysfs_init(struct musb *musb) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.musb = type opaque
define i32 @ssusb_sysfs_init(%struct.musb* nocapture readnone %0) {
ret i32 0
}
void M50Reset(void) {}


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

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

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

LLVM IR (-O2):
define void @M50Reset() {
ret void
}
/* Type definitions */
typedef scalar_t__ uint32_t;
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
scalar_t__ f32(int /*<<< orphan*/);
bool isLFilled32(uint32_t i) {
  return i == 0 ? false : f32((int64_t)i) == ~(uint32_t)0;
}


x86 assembly (clang, -O0):
<isLFilled32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1131 <isLFilled32+0x21>
xor    %eax,%eax
mov    %eax,-0xc(%rbp)
jmp    114b <isLFilled32+0x3b>
mov    -0x8(%rbp),%rax
mov    %eax,%edi
call   1030 <f32@plt>
cmp    $0xffffffffffffffff,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isLFilled32>:
test   %rdi,%rdi
je     112c <isLFilled32+0x1c>
push   %rax
call   1030 <f32@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0xffffffffffffffff,%rcx
sete   %al
add    $0x8,%rsp
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @isLFilled32(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %12
6: ; preds = %1
%7 = load i64, i64* %2
%8 = trunc i64 %7 to i32
%9 = call i64 @f32(i32 %8)
%10 = icmp eq i64 %9, -1
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %6, %5
%13 = phi i32 [ 0, %5 ], [ %11, %6 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @isLFilled32(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = trunc i64 %0 to i32
%5 = tail call i64 @f32(i32 %4)
%6 = icmp eq i64 %5, -1
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %1, %3
%9 = phi i32 [ %7, %3 ], [ 0, %1 ]
ret i32 %9
}
int err_syntax20_lex(void) { return -1; }


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

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

LLVM IR (-O0):
define i32 @err_syntax20_lex() {
ret i32 -1
}

LLVM IR (-O2):
define i32 @err_syntax20_lex() {
ret i32 -1
}
void sme_event_disassoc(struct wpa_supplicant *wpa_s,
                        struct disassoc_info *info) {}


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

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

LLVM IR (-O0):
%struct.wpa_supplicant = type opaque
%struct.disassoc_info = type opaque
define void @sme_event_disassoc(%struct.wpa_supplicant* %0, %struct.disassoc_info* %1) {
%3 = alloca %struct.wpa_supplicant*
%4 = alloca %struct.disassoc_info*
store %struct.wpa_supplicant* %0, %struct.wpa_supplicant** %3
store %struct.disassoc_info* %1, %struct.disassoc_info** %4
ret void
}

LLVM IR (-O2):
%struct.wpa_supplicant = type opaque
%struct.disassoc_info = type opaque
define void @sme_event_disassoc(%struct.wpa_supplicant* nocapture %0, %struct.disassoc_info* nocapture %1) {
ret void
}
/* Type definitions */
struct sift_keypoints {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fprintf_keypoints(int /*<<< orphan*/,
                                     struct sift_keypoints const *, int);
int /*<<< orphan*/ stdout;
void sift_print_keypoints(const struct sift_keypoints *keys, int flag) {
  fprintf_keypoints(stdout, keys, flag);
}


x86 assembly (clang, -O0):
<sift_print_keypoints>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <fprintf_keypoints@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sift_print_keypoints>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
jmp    1030 <fprintf_keypoints@plt>

LLVM IR (-O0):
%struct.sift_keypoints = type { i32 }
@stdout = global i32 0
define void @sift_print_keypoints(%struct.sift_keypoints* %0, i32 %1) {
%3 = alloca %struct.sift_keypoints*
%4 = alloca i32
store %struct.sift_keypoints* %0, %struct.sift_keypoints** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stdout
%6 = load %struct.sift_keypoints*, %struct.sift_keypoints** %3
%7 = load i32, i32* %4
%8 = call i32 @fprintf_keypoints(i32 %5, %struct.sift_keypoints* %6, i32 %7)
ret void
}

LLVM IR (-O2):
%struct.sift_keypoints = type { i32 }
@stdout = global i32 0
define void @sift_print_keypoints(%struct.sift_keypoints* %0, i32 %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf_keypoints(i32 %3, %struct.sift_keypoints* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void version(void) {
  printf("%d.%d.%d-%s ", 2, 0, 0, "devel");
  printf("\n");
  exit(0);
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x2,%esi
xor    %ecx,%ecx
lea    0xed4(%rip),%r8
mov    %ecx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xece(%rip),%r8
mov    $0x2,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%d.%d.%d-%s \00"
@.str.1 = [6 x i8] c"devel\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @version() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 2, i32 0, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [13 x i8] c"%d.%d.%d-%s \00"
@.str.1 = [6 x i8] c"devel\00"
define void @version() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 2, i32 0, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;
struct timespec {
  int /*<<< orphan*/ tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ nanosleep(struct timespec *, int /*<<< orphan*/ *);
void ss_sleep(uint64_t ns) {
  struct timespec ts;
  ts.tv_sec = 0;
  ts.tv_nsec = ns;
  nanosleep(&ts, NULL);
}


x86 assembly (clang, -O0):
<ss_sleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
lea    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <nanosleep@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ss_sleep>:
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
mov    %edi,0x8(%rsp)
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <nanosleep@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
define void @ss_sleep(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.timespec
store i32 %0, i32* %2
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 1
store i64 0, i64* %4
%5 = load i32, i32* %2
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
store i32 %5, i32* %6
%7 = call i32 @nanosleep(%struct.timespec* %3, i32* null)
ret void
}

LLVM IR (-O2):
%struct.timespec = type { i32, i64 }
define void @ss_sleep(i32 %0) {
%2 = alloca %struct.timespec
%3 = bitcast %struct.timespec* %2 to i8*
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 1
store i64 0, i64* %4
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 0
store i32 %0, i32* %5
%6 = call i32 @nanosleep(%struct.timespec* %2, i32* null)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void a_function() {
  int a, b;
  a = 3;
  b = 4;
  if (b > a) {
    printf("right in func %d\n", a + b);
  } else {
    printf("left in func  %d\n", a + b);
  }
}


x86 assembly (clang, -O0):
<a_function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x3,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jle    1149 <a_function+0x39>
mov    -0x4(%rbp),%esi
add    -0x8(%rbp),%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
jmp    115b <a_function+0x4b>
mov    -0x4(%rbp),%esi
add    -0x8(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a_function>:
lea    0xee9(%rip),%rdi
mov    $0x7,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"right in func %d\0A\00"
@.str.1 = [18 x i8] c"left in func %d\0A\00"
define void @a_function() {
%1 = alloca i32
%2 = alloca i32
store i32 3, i32* %1
store i32 4, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %1
%5 = icmp sgt i32 %3, %4
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = add nsw i32 %7, %8
%10 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %9)
br label %16
11: ; preds = %0
%12 = load i32, i32* %1
%13 = load i32, i32* %2
%14 = add nsw i32 %12, %13
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %11, %6
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"right in func %d\0A\00"
define void @a_function() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 7)
ret void
}
OP(ed, f9) {}


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

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

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

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void print_hex(unsigned char *out, size_t len) {
  int i;
  for (i = 0; i < len; ++i) {
    printf("%x ", out[i]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<print_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    115d <print_hex+0x4d>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <print_hex+0x17>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %rsi,%rsi
je     1158 <print_hex+0x38>
mov    %rsi,%r12
mov    %rdi,%r14
lea    0xec6(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
movzbl (%r14,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <print_hex+0x20>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%x \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @print_hex(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
store i8* %0, i8** %3
store i64 %1, i64* %4
store i32 0, i32* %5
br label %6
6: ; preds = %19, %2
%7 = load i32, i32* %5
%8 = sext i32 %7 to i64
%9 = load i64, i64* %4
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %6
%12 = load i8*, i8** %3
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %12, i64 %14
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
br label %19
19: ; preds = %11
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %6
22: ; preds = %6
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%x \00"
define void @print_hex(i8* nocapture %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %12, label %4
4: ; preds = %2, %4
%5 = phi i64 [ %10, %4 ], [ 0, %2 ]
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = add nuw i64 %5, 1
%11 = icmp eq i64 %10, %1
br i1 %11, label %12, label %4
12: ; preds = %4, %2
%13 = tail call i32 @putchar(i32 10)
ret void
}
double FDLIBM_copysign(double x, double y) {
  *(1 + (int *)&x) =
      (*(1 + (int *)&x) & 0x7fffffff) | (*(1 + (int *)&y) & 0x80000000);
  return x;
}


x86 assembly (clang, -O0):
<FDLIBM_copysign>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7fffffff,%eax
mov    -0xc(%rbp),%ecx
and    $0x80000000,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<FDLIBM_copysign>:
movq   %xmm0,%rax
movmskpd %xmm1,%ecx
shl    $0x3f,%rcx
movabs $0x7fffffffffffffff,%rdx
ff ff 7f
and    %rax,%rdx
or     %rcx,%rdx
movq   %rdx,%xmm0
ret

LLVM IR (-O0):
define double @FDLIBM_copysign(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = bitcast double* %3 to i32*
%6 = getelementptr inbounds i32, i32* %5, i64 1
%7 = load i32, i32* %6
%8 = and i32 %7, 2147483647
%9 = bitcast double* %4 to i32*
%10 = getelementptr inbounds i32, i32* %9, i64 1
%11 = load i32, i32* %10
%12 = and i32 %11, -2147483648
%13 = or i32 %8, %12
%14 = bitcast double* %3 to i32*
%15 = getelementptr inbounds i32, i32* %14, i64 1
store i32 %13, i32* %15
%16 = load double, double* %3
ret double %16
}

LLVM IR (-O2):
define double @FDLIBM_copysign(double %0, double %1) {
%3 = bitcast double %0 to i64
%4 = bitcast double %1 to i64
%5 = and i64 %4, -9223372036854775808
%6 = and i64 %3, 9223372036854775807
%7 = or i64 %6, %5
%8 = bitcast i64 %7 to double
ret double %8
}
/* Variables and functions */
int f325(int *);
int f326(int *p) { return f325(p); }


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

x86 assembly (clang, -O2):
<f326>:
jmp    1030 <f325@plt>

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

LLVM IR (-O2):
define i32 @f326(i32* %0) {
%2 = tail call i32 @f325(i32* %0)
ret i32 %2
}
int IPC_recv(char *buff, int len) { return -1; }


x86 assembly (clang, -O0):
<IPC_recv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @IPC_recv(i8* nocapture readnone %0, i32 %1) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ adc_a_hl();
void opcode_8e() { adc_a_hl(); }


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

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

LLVM IR (-O0):
define void @opcode_8e() {
%1 = call i32 (...) @adc_a_hl()
ret void
}

LLVM IR (-O2):
define void @opcode_8e() {
%1 = tail call i32 (...) @adc_a_hl()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128d;

/* Variables and functions */
int /*<<< orphan*/ _mm_cmple_pd(int /*<<< orphan*/, int /*<<< orphan*/);
__m128d test_mm_cmple_pd(__m128d __a, __m128d __b) {
  return _mm_cmple_pd(__a, __b);
}


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

x86 assembly (clang, -O2):
<test_mm_cmple_pd>:
jmp    1030 <_mm_cmple_pd@plt>

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

LLVM IR (-O2):
define i32 @test_mm_cmple_pd(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmple_pd(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a;
  scanf("%d", &a);
  if (a % 2 == 0) {
    printf("par");
  } else {
    printf("ímpar");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1164 <main+0x44>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
jmp    1170 <main+0x50>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
testb  $0x1,0x4(%rsp)
lea    0xec8(%rip),%rax
lea    0xebe(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"par\00"
@.str.2 = [7 x i8] c"\C3\ADmpar\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = srem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %11
9: ; preds = %0
%10 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"par\00"
@.str.2 = [7 x i8] c"\C3\ADmpar\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%8 = call i32 @printf(i8* dereferenceable(1) %7)
ret i32 0
}
/* Variables and functions */
unsigned long sysfs_get_freq_kernel(unsigned int);
unsigned long cpufreq_get_freq_kernel(unsigned int cpu) {
  return sysfs_get_freq_kernel(cpu);
}


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

x86 assembly (clang, -O2):
<cpufreq_get_freq_kernel>:
jmp    1030 <sysfs_get_freq_kernel@plt>

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

LLVM IR (-O2):
define i64 @cpufreq_get_freq_kernel(i32 %0) {
%2 = tail call i64 @sysfs_get_freq_kernel(i32 %0)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ pong_test(int, int, int);
void pong_test_500K_10(void) { pong_test(0x00, 0x1c, 10); }


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x1c,%esi
mov    $0xa,%edx
call   1030 <pong_test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
xor    %edi,%edi
mov    $0x1c,%esi
mov    $0xa,%edx
jmp    1030 <pong_test@plt>

LLVM IR (-O0):
define void @pong_test_500K_10() {
%1 = call i32 @pong_test(i32 0, i32 28, i32 10)
ret void
}

LLVM IR (-O2):
define void @pong_test_500K_10() {
%1 = tail call i32 @pong_test(i32 0, i32 28, i32 10)
ret void
}
int isspace(int c) {
  return ((c) == ' ') || ((c) == '\f') || ((c) == '\n') || ((c) == '\r') ||
         ((c) == '\t') || ((c) == '\v');
}


x86 assembly (clang, -O0):
<isspace>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xc,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xa,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xd,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
cmpl   $0xb,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isspace>:
cmp    $0x20,%edi
ja     111d <isspace+0x1d>
mov    $0x1,%eax
mov    %edi,%ecx
movabs $0x100003600,%rdx
bt     %rcx,%rdx
jae    111d <isspace+0x1d>
ret
xor    %eax,%eax
cmp    $0xb,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @isspace(i32 %0) {
switch i32 %0, label %2 [
i32 32, label %5
i32 13, label %5
i32 12, label %5
i32 10, label %5
i32 9, label %5
]
2: ; preds = %1
%3 = icmp eq i32 %0, 11
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ do_66pushb_neg();
int /*<<< orphan*/ do_66pushb_pos();
int /*<<< orphan*/ do_pushb_neg();
int /*<<< orphan*/ do_pushb_pos();
int /*<<< orphan*/ do_pushl_neg();
int /*<<< orphan*/ do_pushl_pos();
int /*<<< orphan*/ do_pushw_neg();
int /*<<< orphan*/ do_pushw_pos();
int main(void) {
  do_pushb_pos();
  do_pushb_neg();
  do_pushw_pos();
  do_pushw_neg();
  do_pushl_pos();
  do_pushl_neg();
  do_66pushb_pos();
  do_66pushb_neg();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <do_pushb_pos@plt>
mov    $0x0,%al
call   1030 <do_pushb_neg@plt>
mov    $0x0,%al
call   1060 <do_pushw_pos@plt>
mov    $0x0,%al
call   1050 <do_pushw_neg@plt>
mov    $0x0,%al
call   1090 <do_pushl_pos@plt>
mov    $0x0,%al
call   1070 <do_pushl_neg@plt>
mov    $0x0,%al
call   10a0 <do_66pushb_pos@plt>
mov    $0x0,%al
call   1080 <do_66pushb_neg@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <do_pushb_pos@plt>
xor    %eax,%eax
call   1030 <do_pushb_neg@plt>
xor    %eax,%eax
call   1060 <do_pushw_pos@plt>
xor    %eax,%eax
call   1050 <do_pushw_neg@plt>
xor    %eax,%eax
call   1090 <do_pushl_pos@plt>
xor    %eax,%eax
call   1070 <do_pushl_neg@plt>
xor    %eax,%eax
call   10a0 <do_66pushb_pos@plt>
xor    %eax,%eax
call   1080 <do_66pushb_neg@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @do_pushb_pos()
%3 = call i32 (...) @do_pushb_neg()
%4 = call i32 (...) @do_pushw_pos()
%5 = call i32 (...) @do_pushw_neg()
%6 = call i32 (...) @do_pushl_pos()
%7 = call i32 (...) @do_pushl_neg()
%8 = call i32 (...) @do_66pushb_pos()
%9 = call i32 (...) @do_66pushb_neg()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @do_pushb_pos()
%2 = tail call i32 (...) @do_pushb_neg()
%3 = tail call i32 (...) @do_pushw_pos()
%4 = tail call i32 (...) @do_pushw_neg()
%5 = tail call i32 (...) @do_pushl_pos()
%6 = tail call i32 (...) @do_pushl_neg()
%7 = tail call i32 (...) @do_66pushb_pos()
%8 = tail call i32 (...) @do_66pushb_neg()
ret i32 0
}
/* Variables and functions */
size_t upb_roundup_pow2(size_t bytes) {
  size_t ret = 128;
  while (ret < bytes) {
    ret *= 2;
  }
  return ret;
}


x86 assembly (clang, -O0):
<upb_roundup_pow2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x80,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    112f <upb_roundup_pow2+0x2f>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <upb_roundup_pow2+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<upb_roundup_pow2>:
mov    $0x80,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rcx,%rax
add    %rcx,%rcx
cmp    %rdi,%rax
jb     1110 <upb_roundup_pow2+0x10>
ret

LLVM IR (-O0):
define i64 @upb_roundup_pow2(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
store i64 128, i64* %3
br label %4
4: ; preds = %8, %1
%5 = load i64, i64* %3
%6 = load i64, i64* %2
%7 = icmp ult i64 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i64, i64* %3
%10 = mul i64 %9, 2
store i64 %10, i64* %3
br label %4
11: ; preds = %4
%12 = load i64, i64* %3
ret i64 %12
}

LLVM IR (-O2):
define i64 @upb_roundup_pow2(i64 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ 128, %1 ], [ %5, %2 ]
%4 = icmp ult i64 %3, %0
%5 = shl i64 %3, 1
br i1 %4, label %2, label %6
6: ; preds = %2
ret i64 %3
}
/* Variables and functions */
char tolower(char);
char *str_lcase(char *str) {
  char *s;
  s = str;
  while (*s) {
    *s = tolower(*s);
    ++s;
  }
  return str;
}


x86 assembly (clang, -O0):
<str_lcase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1156 <str_lcase+0x46>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <tolower@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <str_lcase+0x14>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_lcase>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%al
test   %al,%al
je     1146 <str_lcase+0x36>
lea    0x1(%r14),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <tolower@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <str_lcase+0x20>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @str_lcase(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call signext i8 @tolower(i8 signext %5)
store i8 %7, i8* %6
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret i8* %0
}
/* Type definitions */
typedef int /*<<< orphan*/ const uint8_t;

/* Variables and functions */
uint8_t
hsp_subevent_audio_disconnection_complete_get_status(const uint8_t *event) {
  return event[3];
}


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

x86 assembly (clang, -O2):
<hsp_subevent_audio_disconnection_complete_get_status>:
mov    0xc(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @hsp_subevent_audio_disconnection_complete_get_status(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 3
%3 = load i32, i32* %2
ret i32 %3
}
int fasterFloor(float value) {
  return value >= 0 ? (int)value : (int)value - 1;
}


x86 assembly (clang, -O0):
<fasterFloor>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1127 <fasterFloor+0x27>
cvttss2si -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1132 <fasterFloor+0x32>
cvttss2si -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fasterFloor>:
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
cvttss2si %xmm0,%eax
sbb    $0x0,%eax
ret

LLVM IR (-O0):
define i32 @fasterFloor(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fcmp oge float %3, 0.000000e+00
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load float, float* %2
%7 = fptosi float %6 to i32
br label %12
8: ; preds = %1
%9 = load float, float* %2
%10 = fptosi float %9 to i32
%11 = sub nsw i32 %10, 1
br label %12
12: ; preds = %8, %5
%13 = phi i32 [ %7, %5 ], [ %11, %8 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @fasterFloor(float %0) {
%2 = fcmp ult float %0, 0.000000e+00
%3 = fptosi float %0 to i32
%4 = sext i1 %2 to i32
%5 = add nsw i32 %4, %3
ret i32 %5
}
float cents_to_dollars(int cents) { return ((float)cents / 100); }


x86 assembly (clang, -O0):
<cents_to_dollars>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
movss  0xeec(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<cents_to_dollars>:
cvtsi2ss %edi,%xmm0
divss  0xef4(%rip),%xmm0
ret

LLVM IR (-O0):
define float @cents_to_dollars(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sitofp i32 %3 to float
%5 = fdiv float %4, 1.000000e+02
ret float %5
}

LLVM IR (-O2):
define float @cents_to_dollars(i32 %0) {
%2 = sitofp i32 %0 to float
%3 = fdiv float %2, 1.000000e+02
ret float %3
}
double f(int i, double (*fct)(double)) { return fct(i); }


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cvtsi2sdl -0x4(%rbp),%xmm0
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
cvtsi2sd %edi,%xmm0
jmp    *%rsi

LLVM IR (-O0):
define double @f(i32 %0, double (double)* %1) {
%3 = alloca i32
%4 = alloca double (double)*
store i32 %0, i32* %3
store double (double)* %1, double (double)** %4
%5 = load double (double)*, double (double)** %4
%6 = load i32, i32* %3
%7 = sitofp i32 %6 to double
%8 = call double %5(double %7)
ret double %8
}

LLVM IR (-O2):
define double @f(i32 %0, double (double)* nocapture %1) {
%3 = sitofp i32 %0 to double
%4 = tail call double %1(double %3)
ret double %4
}