xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ l_row_less_than(void *, void *, void *);
int l_row_cmp_fn(void *a, void *b, void *data) {
  return l_row_less_than(data, a, b) ? 1 : -1;
}


x86 assembly (clang, -O0):
<l_row_cmp_fn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <l_row_less_than@plt>
mov    %rax,%rdx
mov    $0xffffffff,%eax
mov    $0x1,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<l_row_cmp_fn>:
push   %rax
mov    %rdx,%rax
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %rax,%rdi
call   1030 <l_row_less_than@plt>
cmp    $0x1,%rax
sbb    %eax,%eax
or     $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @l_row_cmp_fn(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = call i64 @l_row_less_than(i8* %7, i8* %8, i8* %9)
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 1, i32 -1
ret i32 %13
}

LLVM IR (-O2):
define i32 @l_row_cmp_fn(i8* %0, i8* %1, i8* %2) {
%4 = tail call i64 @l_row_less_than(i8* %2, i8* %0, i8* %1)
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i32 -1, i32 1
ret i32 %6
}
/* Variables and functions */
char *CLemma_BuyBuf(char const *, int);
scalar_t__ strlen(char const *);
char *CLemma_BuyString(char const *string) {
  if (string == NULL)
    return NULL;
  return CLemma_BuyBuf(string, (int)strlen(string));
}


x86 assembly (clang, -O0):
<CLemma_BuyString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1144 <CLemma_BuyString+0x24>
movq   $0x0,-0x8(%rbp)
jmp    1164 <CLemma_BuyString+0x44>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%esi
call   1040 <CLemma_BuyBuf@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CLemma_BuyString>:
test   %rdi,%rdi
je     1139 <CLemma_BuyString+0x19>
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1040 <CLemma_BuyBuf@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i8* @CLemma_BuyString(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %7, label %3
3: ; preds = %1
%4 = tail call i64 @strlen(i8* %0)
%5 = trunc i64 %4 to i32
%6 = tail call i8* @CLemma_BuyBuf(i8* %0, i32 %5)
br label %7
7: ; preds = %1, %3
%8 = phi i8* [ %6, %3 ], [ null, %1 ]
ret i8* %8
}
void d2i_AutoPrivateKey(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_AutoPrivateKey() {
ret void
}
void foo374() {}


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

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

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

LLVM IR (-O2):
define void @foo374() {
ret void
}
char Q_tolower(const char in) {
  char out;
  if (in >= 'A' && in <= 'Z')
    out = in + 'a' - 'A';
  else
    out = in;
  return out;
}


x86 assembly (clang, -O0):
<Q_tolower>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1136 <Q_tolower+0x36>
movsbl -0x1(%rbp),%eax
cmp    $0x5a,%eax
jg     1136 <Q_tolower+0x36>
movsbl -0x1(%rbp),%eax
add    $0x61,%eax
sub    $0x41,%eax
mov    %al,-0x2(%rbp)
jmp    113c <Q_tolower+0x3c>
mov    -0x1(%rbp),%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Q_tolower>:
lea    -0x41(%rdi),%eax
lea    0x20(%rdi),%ecx
cmp    $0x1a,%al
movzbl %cl,%eax
cmovae %edi,%eax
ret

LLVM IR (-O0):
define signext i8 @Q_tolower(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 65
br i1 %6, label %7, label %17
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 90
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = add nsw i32 %13, 97
%15 = sub nsw i32 %14, 65
%16 = trunc i32 %15 to i8
store i8 %16, i8* %3
br label %19
17: ; preds = %7, %1
%18 = load i8, i8* %2
store i8 %18, i8* %3
br label %19
19: ; preds = %17, %11
%20 = load i8, i8* %3
ret i8 %20
}

LLVM IR (-O2):
define signext i8 @Q_tolower(i8 signext %0) {
%2 = add i8 %0, -65
%3 = icmp ult i8 %2, 26
%4 = add i8 %0, 32
%5 = select i1 %3, i8 %4, i8 %0
ret i8 %5
}
int isnondigit(char chr) {
  return (chr >= 'a' && chr <= 'z') || (chr >= 'A' && chr <= 'Z') ||
         (chr == '_');
}


x86 assembly (clang, -O0):
<isnondigit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     1129 <isnondigit+0x29>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x7a,%ecx
mov    %al,-0x2(%rbp)
jle    1155 <isnondigit+0x55>
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1148 <isnondigit+0x48>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5a,%ecx
mov    %al,-0x2(%rbp)
jle    1155 <isnondigit+0x55>
movsbl -0x1(%rbp),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnondigit>:
mov    %edi,%eax
and    $0xdf,%al
add    $0xbf,%al
cmp    $0x1a,%al
setb   %al
cmp    $0x5f,%dil
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @isnondigit(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 122
br i1 %9, label %22, label %10
10: ; preds = %6, %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 65
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 90
br i1 %17, label %22, label %18
18: ; preds = %14, %10
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 95
br label %22
22: ; preds = %18, %14, %6
%23 = phi i1 [ true, %14 ], [ true, %6 ], [ %21, %18 ]
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @isnondigit(i8 signext %0) {
%2 = and i8 %0, -33
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
%5 = icmp eq i8 %0, 95
%6 = or i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
char *langRomTypeSg1000Cart() { return "SG-1000 Cartridge"; }


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

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

LLVM IR (-O0):
@.str = [18 x i8] c"SG-1000 Cartridge\00"
define i8* @langRomTypeSg1000Cart() {
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [18 x i8] c"SG-1000 Cartridge\00"
define i8* @langRomTypeSg1000Cart() {
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int fib(int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("%d", fib(5));
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @fib(i32 5)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
void func2() { static int my_init_static_local = 0; }


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

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

LLVM IR (-O0):
@func2.my_init_static_local = internal global i32 0
define void @func2() {
ret void
}

LLVM IR (-O2):
define void @func2() {
ret void
}
void csi_cache_reset_profile(void) { ; }


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

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

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

LLVM IR (-O2):
define void @csi_cache_reset_profile() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ printid(float);
int main() {
  float a = 1, b = 2;
  if (a != b)
    print("a 1");
  printid(a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebc(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jne    1163 <main+0x43>
jp     1163 <main+0x43>
jmp    116f <main+0x4f>
lea    0xe9e(%rip),%rdi
call   1030 <print@plt>
movss  -0x8(%rbp),%xmm0
call   1040 <printid@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
call   1030 <print@plt>
movss  0xecb(%rip),%xmm0
call   1040 <printid@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"a 1\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
store float 1.000000e+00, float* %2
store float 2.000000e+00, float* %3
%4 = load float, float* %2
%5 = load float, float* %3
%6 = fcmp une float %4, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
%10 = load float, float* %2
%11 = call i32 @printid(float %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"a 1\00"
define i32 @main() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printid(float 1.000000e+00)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ *stdout;
int /*<<< orphan*/ translate(int /*<<< orphan*/, int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  int ch, x;
  FILE *out = stdout;
  translate(stdin, out);
  fputc('\n', out);
  fflush(out);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e8b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rsi
call   1050 <translate@plt>
mov    -0x20(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ea0(%rip),%rax
mov    (%rax),%rbx
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1050 <translate@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %rbx,%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32* null
@stdin = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32*, i32** @stdout
store i32* %9, i32** %8
%10 = load i32, i32* @stdin
%11 = load i32*, i32** %8
%12 = call i32 @translate(i32 %10, i32* %11)
%13 = load i32*, i32** %8
%14 = call i32 @fputc(i8 signext 10, i32* %13)
%15 = load i32*, i32** %8
%16 = call i32 @fflush(i32* %15)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32* null
@stdin = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32*, i32** @stdout
%4 = load i32, i32* @stdin
%5 = tail call i32 @translate(i32 %4, i32* %3)
%6 = tail call i32 @fputc(i8 signext 10, i32* %3)
%7 = tail call i32 @fflush(i32* %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ nom_repl();
int /*<<< orphan*/ nom_run_file(char *);
int main(int argc, char **argv) {
  if (argc < 2) {
    nom_repl();
    return 0;
  }
  nom_run_file(argv[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1153 <main+0x33>
mov    $0x0,%al
call   1030 <nom_repl@plt>
movl   $0x0,-0x4(%rbp)
jmp    1167 <main+0x47>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <nom_run_file@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x1,%edi
jg     112f <main+0xf>
xor    %eax,%eax
call   1030 <nom_repl@plt>
jmp    1138 <main+0x18>
mov    0x8(%rsi),%rdi
call   1040 <nom_run_file@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @nom_repl()
br label %10
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @nom_run_file(i8* %8)
br label %10
10: ; preds = %6, %4
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ cube(double);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, double *);
int main(void) {
  double num;
  printf("Enter a double value: ");
  scanf("%lf", &num);
  cube(num);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
call   1050 <cube@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
call   1050 <cube@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Enter a double value: \00"
@.str.1 = [4 x i8] c"%lf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%5 = load double, double* %2
%6 = call i32 @cube(double %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Enter a double value: \00"
@.str.1 = [4 x i8] c"%lf\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%5 = load double, double* %1
%6 = call i32 @cube(double %5)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
void AuChannelClose(FILE *audioChannel) { fclose(audioChannel); }


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

x86 assembly (clang, -O2):
<AuChannelClose>:
jmp    1030 <fclose@plt>

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

LLVM IR (-O2):
define void @AuChannelClose(i32* nocapture %0) {
%2 = tail call i32 @fclose(i32* %0)
ret void
}
int bkl_eng_mode2_read_als(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @bkl_eng_mode2_read_als() {
ret i32 0
}
int devfs_mk_dir(char *fmt, ...) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @devfs_mk_dir(i8* nocapture readnone %0, ...) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
void package_reboot_device(char *buffer) {
  memset(buffer, 0, 17 - 1);
  buffer[0x00] = 0x5a;
  buffer[0x01] = 0x2e;
}


x86 assembly (clang, -O0):
<package_reboot_device>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%rax
movb   $0x5a,(%rax)
mov    -0x8(%rbp),%rax
movb   $0x2e,0x1(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<package_reboot_device>:
push   %rbx
mov    %rdi,%rbx
xor    %esi,%esi
mov    $0x10,%edx
call   1030 <memset@plt>
movw   $0x2e5a,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @package_reboot_device(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @memset(i8* %3, i32 0, i32 16)
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i64 0
store i8 90, i8* %6
%7 = load i8*, i8** %2
%8 = getelementptr inbounds i8, i8* %7, i64 1
store i8 46, i8* %8
ret void
}

LLVM IR (-O2):
define void @package_reboot_device(i8* %0) {
%2 = tail call i32 @memset(i8* %0, i32 0, i32 16)
store i8 90, i8* %0
%3 = getelementptr inbounds i8, i8* %0, i64 1
store i8 46, i8* %3
ret void
}
/* Variables and functions */
scalar_t__ EACCES;
int /*<<< orphan*/ assert(int);
scalar_t__ errno;
int getpid();
int main(void) {
  int pid = getpid();
  assert(pid == -1);
  assert(errno == EACCES);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%rax
mov    0x2e8d(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <getpid@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1040 <assert@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%rax
mov    0x2ea1(%rip),%rcx
xor    %edi,%edi
cmp    (%rcx),%rax
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@errno = global i64 0
@EACCES = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @getpid()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, -1
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i64, i64* @errno
%9 = load i64, i64* @EACCES
%10 = icmp eq i64 %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
ret i32 0
}

LLVM IR (-O2):
@errno = global i64 0
@EACCES = global i64 0
define i32 @main() {
%1 = tail call i32 (...) @getpid()
%2 = icmp eq i32 %1, -1
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = load i64, i64* @errno
%6 = load i64, i64* @EACCES
%7 = icmp eq i64 %5, %6
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8)
ret i32 0
}
/* Type definitions */
struct io_buf_handle {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ io_error();
struct io_buf_handle *io_init() {
  io_error();
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.io_buf_handle = type { i32 }
define %struct.io_buf_handle* @io_init() {
%1 = call i32 (...) @io_error()
ret %struct.io_buf_handle* null
}

LLVM IR (-O2):
%struct.io_buf_handle = type { i32 }
define noalias %struct.io_buf_handle* @io_init() {
%1 = tail call i32 (...) @io_error()
ret %struct.io_buf_handle* null
}
double sin(double x) { return x; }


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

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

LLVM IR (-O0):
define double @sin(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
ret double %3
}

LLVM IR (-O2):
define double @sin(double returned %0) {
ret double %0
}
int func10() { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @func10() {
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ sqlite3_vfs;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ usleep(int);
int wrap_Sleep(sqlite3_vfs *pVfs, int nMicro) {
  assert(0);
  sleep(nMicro / 1000000);
  usleep(nMicro % 1000000);
  return nMicro;
}


x86 assembly (clang, -O0):
<wrap_Sleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1040 <sleep@plt>
mov    -0xc(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1050 <usleep@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wrap_Sleep>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
xor    %edi,%edi
call   1030 <assert@plt>
movslq %ebx,%r14
imul   $0x431bde83,%r14,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x32,%rbx
add    %eax,%ebx
mov    %ebx,%edi
call   1040 <sleep@plt>
imul   $0xf4240,%ebx,%eax
mov    %r14d,%edi
sub    %eax,%edi
call   1050 <usleep@plt>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @wrap_Sleep(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = call i32 @assert(i32 0)
%6 = load i32, i32* %4
%7 = sdiv i32 %6, 1000000
%8 = call i32 @sleep(i32 %7)
%9 = load i32, i32* %4
%10 = srem i32 %9, 1000000
%11 = call i32 @usleep(i32 %10)
%12 = load i32, i32* %4
ret i32 %12
}

LLVM IR (-O2):
define i32 @wrap_Sleep(i32* nocapture readnone %0, i32 returned %1) {
%3 = tail call i32 @assert(i32 0)
%4 = sdiv i32 %1, 1000000
%5 = tail call i32 @sleep(i32 %4)
%6 = srem i32 %1, 1000000
%7 = tail call i32 @usleep(i32 %6)
ret i32 %1
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t rgb_to_u(int r, int g, int b) {
  int u = ((-5538 * r + -10846 * g + 16351 * b) >> 15) + 128;
  return u > 255 ? 255 : u < 0 ? 0 : u;
}


x86 assembly (clang, -O0):
<rgb_to_u>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
imul   $0xffffea5e,-0x4(%rbp),%eax
imul   $0xffffd5a2,-0x8(%rbp),%ecx
add    %ecx,%eax
imul   $0x3fdf,-0xc(%rbp),%ecx
add    %ecx,%eax
sar    $0xf,%eax
add    $0x80,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0xff,-0x10(%rbp)
jle    114b <rgb_to_u+0x4b>
mov    $0xff,%eax
mov    %eax,-0x14(%rbp)
jmp    116b <rgb_to_u+0x6b>
cmpl   $0x0,-0x10(%rbp)
jge    115f <rgb_to_u+0x5f>
xor    %eax,%eax
mov    %eax,-0x18(%rbp)
jmp    1165 <rgb_to_u+0x65>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgb_to_u>:
imul   $0xffffea5e,%edi,%eax
imul   $0xffffd5a2,%esi,%ecx
add    %eax,%ecx
imul   $0x3fdf,%edx,%eax
add    %ecx,%eax
sar    $0xf,%eax
cmp    $0xffffff81,%eax
mov    $0xffffff80,%ecx
cmovge %eax,%ecx
cmp    $0x7f,%ecx
mov    $0x7f,%eax
cmovl  %ecx,%eax
sub    $0xffffff80,%eax
ret

LLVM IR (-O0):
define i32 @rgb_to_u(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = mul nsw i32 -5538, %8
%10 = load i32, i32* %5
%11 = mul nsw i32 -10846, %10
%12 = add nsw i32 %9, %11
%13 = load i32, i32* %6
%14 = mul nsw i32 16351, %13
%15 = add nsw i32 %12, %14
%16 = ashr i32 %15, 15
%17 = add nsw i32 %16, 128
store i32 %17, i32* %7
%18 = load i32, i32* %7
%19 = icmp sgt i32 %18, 255
br i1 %19, label %20, label %21
20: ; preds = %3
br label %29
21: ; preds = %3
%22 = load i32, i32* %7
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
br label %27
25: ; preds = %21
%26 = load i32, i32* %7
br label %27
27: ; preds = %25, %24
%28 = phi i32 [ 0, %24 ], [ %26, %25 ]
br label %29
29: ; preds = %27, %20
%30 = phi i32 [ 255, %20 ], [ %28, %27 ]
ret i32 %30
}

LLVM IR (-O2):
define i32 @rgb_to_u(i32 %0, i32 %1, i32 %2) {
%4 = mul nsw i32 %0, -5538
%5 = mul nsw i32 %1, -10846
%6 = add nsw i32 %5, %4
%7 = mul nsw i32 %2, 16351
%8 = add nsw i32 %6, %7
%9 = ashr i32 %8, 15
%10 = icmp sgt i32 %9, -128
%11 = select i1 %10, i32 %9, i32 -128
%12 = icmp slt i32 %11, 127
%13 = select i1 %12, i32 %11, i32 127
%14 = add nsw i32 %13, 128
ret i32 %14
}
enum E2 *f6() { ; }


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

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

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

LLVM IR (-O2):
define noalias i32* @f6() {
ret i32* undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ write(int, int *, int);
main() {
  if (1) {
    int neg = '-';
    write(1, &neg, 1);
  }
  printf("\n");
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x2d,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1040 <write@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 45, i32* %1
%3 = call i32 @write(i32 1, i32* %1, i32 1)
%4 = tail call i32 @putchar(i32 10)
ret i32 0
}
int main(void) {
  int i, chunk;
  float a[10000], b[10000], c[10000];
  for (i = 0; i < 10000; ++i) {
    a[i] = b[i] = i * 1.0;
  }
  chunk = 100;
#pragma omp parallel shared(a, b, c, chunk) private(i)
  {
#pragma omp for schedule(dynamic, chunk) nowait
    for (i = 0; i < 10000; ++i)
      c[i] = a[i] + b[i];
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d450,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x2710,-0x8(%rbp)
jge    1163 <main+0x63>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xecd(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x8(%rbp),%rax
movss  %xmm0,-0x13890(%rbp,%rax,4)
fe ff
movslq -0x8(%rbp),%rax
movss  %xmm0,-0x9c50(%rbp,%rax,4)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1119 <main+0x19>
movl   $0x64,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x2710,-0x8(%rbp)
jge    11b3 <main+0xb3>
movslq -0x8(%rbp),%rax
movss  -0x9c50(%rbp,%rax,4),%xmm0
ff ff
movslq -0x8(%rbp),%rax
addss  -0x13890(%rbp,%rax,4),%xmm0
fe ff
movslq -0x8(%rbp),%rax
movss  %xmm0,-0x1d4d0(%rbp,%rax,4)
fe ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1171 <main+0x71>
mov    -0x4(%rbp),%eax
add    $0x1d450,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10000 x float]
%5 = alloca [10000 x float]
%6 = alloca [10000 x float]
store i32 0, i32* %1
store i32 0, i32* %2
br label %7
7: ; preds = %21, %0
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 10000
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to double
%13 = fmul double %12, 1.000000e+00
%14 = fptrunc double %13 to float
%15 = load i32, i32* %2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10000 x float], [10000 x float]* %5, i64 0, i64 %16
store float %14, float* %17
%18 = load i32, i32* %2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10000 x float], [10000 x float]* %4, i64 0, i64 %19
store float %14, float* %20
br label %21
21: ; preds = %10
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %7
24: ; preds = %7
store i32 100, i32* %3
store i32 0, i32* %2
br label %25
25: ; preds = %41, %24
%26 = load i32, i32* %2
%27 = icmp slt i32 %26, 10000
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10000 x float], [10000 x float]* %4, i64 0, i64 %30
%32 = load float, float* %31
%33 = load i32, i32* %2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10000 x float], [10000 x float]* %5, i64 0, i64 %34
%36 = load float, float* %35
%37 = fadd float %32, %36
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10000 x float], [10000 x float]* %6, i64 0, i64 %39
store float %37, float* %40
br label %41
41: ; preds = %28
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %25
44: ; preds = %25
%45 = load i32, i32* %1
ret i32 %45
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
void *pattern_search(void const *, int, int, int, int);
void *ldr32_search_up(const void *start_addr, int len) {
  return pattern_search(start_addr, len, 0x0000F8DF, 0x0000FFFF, -1);
}


x86 assembly (clang, -O0):
<ldr32_search_up>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0xf8df,%edx
mov    $0xffff,%ecx
mov    $0xffffffff,%r8d
call   1030 <pattern_search@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ldr32_search_up>:
mov    $0xf8df,%edx
mov    $0xffff,%ecx
mov    $0xffffffff,%r8d
jmp    1030 <pattern_search@plt>

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

LLVM IR (-O2):
define i8* @ldr32_search_up(i8* %0, i32 %1) {
%3 = tail call i8* @pattern_search(i8* %0, i32 %1, i32 63711, i32 65535, i32 -1)
ret i8* %3
}
void ED_operatortypes_io(void) {}


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

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

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

LLVM IR (-O2):
define void @ED_operatortypes_io() {
ret void
}
/* Type definitions */
struct option {
  int dummy;
};

/* Variables and functions */
int _gnu_getopt_internal(int, char *const *, char const *,
                         struct option const *, int *, int /*<<< orphan*/);
int gnu_getopt(int argc, char *const *argv, const char *optstring) {
  return _gnu_getopt_internal(argc, argv, optstring, (const struct option *)0,
                              (int *)0, 0);
}


x86 assembly (clang, -O0):
<gnu_getopt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%r8d
xor    %r9d,%r9d
mov    %r8,%rcx
call   1030 <_gnu_getopt_internal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gnu_getopt>:
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
jmp    1030 <_gnu_getopt_internal@plt>

LLVM IR (-O0):
%struct.option = type { i32 }
define i32 @gnu_getopt(i32 %0, i8** %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = load i8*, i8** %6
%10 = call i32 @_gnu_getopt_internal(i32 %7, i8** %8, i8* %9, %struct.option* null, i32* null, i32 0)
ret i32 %10
}

LLVM IR (-O2):
%struct.option = type { i32 }
define i32 @gnu_getopt(i32 %0, i8** %1, i8* %2) {
%4 = tail call i32 @_gnu_getopt_internal(i32 %0, i8** %1, i8* %2, %struct.option* null, i32* null, i32 0)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ stuff();
int main() {
bar:
  if (0) {
  foo:
    stuff();
  } else {
    goto bar;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    112e <main+0x1e>
jmp    113f <main+0x2f>
jmp    1133 <main+0x23>
mov    $0x0,%al
call   1030 <stuff@plt>
jmp    1144 <main+0x34>
jmp    111f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %6, %0
br i1 false, label %3, label %6
3: ; preds = %2
br label %4
4: ; preds = %3
%5 = call i32 (...) @stuff()
br label %7
6: ; preds = %2
br label %2
7: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
double xor128();
double randDouble(double low, double high) {
  double range = (high - low);
  double div = 4294967296.0 / range;
  return low + (xor128() / div);
}


x86 assembly (clang, -O0):
<randDouble>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec7(%rip),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    $0x0,%al
call   1030 <xor128@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<randDouble>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
subsd  %xmm0,%xmm1
movsd  0xeda(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1030 <xor128@plt>
divsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @randDouble(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double %1, double* %4
%7 = load double, double* %4
%8 = load double, double* %3
%9 = fsub double %7, %8
store double %9, double* %5
%10 = load double, double* %5
%11 = fdiv double 0x41F0000000000000, %10
store double %11, double* %6
%12 = load double, double* %3
%13 = call double (...) @xor128()
%14 = load double, double* %6
%15 = fdiv double %13, %14
%16 = fadd double %12, %15
ret double %16
}

LLVM IR (-O2):
define double @randDouble(double %0, double %1) {
%3 = fsub double %1, %0
%4 = fdiv double 0x41F0000000000000, %3
%5 = tail call double (...) @xor128()
%6 = fdiv double %5, %4
%7 = fadd double %6, %0
ret double %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void PlaneStep1(void) { printf("PlaneStep1\n"); }


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

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

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

LLVM IR (-O2):
@str = [11 x i8] c"PlaneStep1\00"
define void @PlaneStep1() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *getenv(char const *);
const char *qgetenv(const char *envname, const char *nullstr) {
  const char *envstr = getenv(envname);
  if (envstr != NULL)
    return envstr;
  return nullstr;
}


x86 assembly (clang, -O0):
<qgetenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1145 <qgetenv+0x35>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    114d <qgetenv+0x3d>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qgetenv>:
push   %rbx
mov    %rsi,%rbx
call   1030 <getenv@plt>
test   %rax,%rax
cmove  %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @qgetenv(i8* nocapture %0, i8* readnone %1) {
%3 = tail call i8* @getenv(i8* %0)
%4 = icmp eq i8* %3, null
%5 = select i1 %4, i8* %1, i8* %3
ret i8* %5
}
/* Type definitions */
typedef int /*<<< orphan*/ PKCS8_PRIV_KEY_INFO;
typedef int /*<<< orphan*/ ASN1_VALUE;

/* Variables and functions */
int ASN1_item_i2d(int /*<<< orphan*/ *, unsigned char **, int /*<<< orphan*/ *);
int /*<<< orphan*/ PKCS8_PRIV_KEY_INFO_it;
int i2d_PKCS8_PRIV_KEY_INFO(PKCS8_PRIV_KEY_INFO *a, unsigned char **out) {
  return ASN1_item_i2d((ASN1_VALUE *)a, out, &PKCS8_PRIV_KEY_INFO_it);
}


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

x86 assembly (clang, -O2):
<i2d_PKCS8_PRIV_KEY_INFO>:
mov    0x2ec9(%rip),%rdx
jmp    1030 <ASN1_item_i2d@plt>

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

LLVM IR (-O2):
@PKCS8_PRIV_KEY_INFO_it = global i32 0
define i32 @i2d_PKCS8_PRIV_KEY_INFO(i32* %0, i8** %1) {
%3 = tail call i32 @ASN1_item_i2d(i32* %0, i8** %1, i32* @PKCS8_PRIV_KEY_INFO_it)
ret i32 %3
}
void posix_class_neg2NP_BLANK() {}


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

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

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

LLVM IR (-O2):
define void @posix_class_neg2NP_BLANK() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(char *, char *, int /*<<< orphan*/ *);
void function_empty_est_date_ini() { write("csv-task.csv", ",", NULL); }


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

x86 assembly (clang, -O2):
<function_empty_est_date_ini>:
lea    0xee9(%rip),%rdi
lea    0xeef(%rip),%rsi
xor    %edx,%edx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"csv-task.csv\00"
@.str.1 = [2 x i8] c",\00"
define void @function_empty_est_date_ini() {
%1 = call i32 @write(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* null)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"csv-task.csv\00"
@.str.1 = [2 x i8] c",\00"
define void @function_empty_est_date_ini() {
%1 = tail call i32 @write(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* null)
ret void
}
reg0adrx1_set(r0, r1, x0, x1, p0, p1) float r0, r1;
float *p0, *p1;
{ r0 = (((float *)(11111111 & ~(__alignof__(float) - 1)))[x1]); }


x86 assembly (clang, -O0):
<reg0adrx1_set>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm1,-0x30(%rbp)
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm0
movss  %xmm1,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movslq -0x14(%rbp),%rcx
mov    $0xa98ac4,%eax
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @reg0adrx1_set(double %0, double %1, i32 %2, i32 %3, float* %4, float* %5) {
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
%13 = alloca float*
%14 = fptrunc double %0 to float
%15 = fptrunc double %1 to float
store float %14, float* %8
store float %15, float* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store float* %4, float** %12
store float* %5, float** %13
%16 = load i32, i32* %11
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds float, float* inttoptr (i64 11111108 to float*), i64 %17
%19 = load float, float* %18
store float %19, float* %8
%20 = load i32, i32* %7
ret i32 %20
}

LLVM IR (-O2):
define i32 @reg0adrx1_set(double %0, double %1, i32 %2, i32 %3, float* nocapture readnone %4, float* nocapture readnone %5) {
ret i32 undef
}
/* Variables and functions */
int f(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int m, n, s;
  scanf("%d%d", &m, &n);
  s = f(m) / (f(n) * f(m - n));
  printf("%d\n", s);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1030 <f@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <f@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
sub    -0xc(%rbp),%edi
call   1030 <f@plt>
mov    -0x18(%rbp),%ecx
mov    %eax,%edx
mov    -0x14(%rbp),%eax
imul   %edx,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe76(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xec6(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x4(%rsp),%edi
call   1030 <f@plt>
mov    %eax,%ebx
mov    (%rsp),%edi
call   1030 <f@plt>
mov    %eax,%ebp
mov    0x4(%rsp),%edi
sub    (%rsp),%edi
call   1030 <f@plt>
mov    %eax,%ecx
imul   %ebp,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
lea    0xe8c(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = call i32 @f(i32 %6)
%8 = load i32, i32* %3
%9 = call i32 @f(i32 %8)
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = sub nsw i32 %10, %11
%13 = call i32 @f(i32 %12)
%14 = mul nsw i32 %9, %13
%15 = sdiv i32 %7, %14
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %16)
ret i32 1
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = call i32 @f(i32 %6)
%8 = load i32, i32* %2
%9 = call i32 @f(i32 %8)
%10 = load i32, i32* %1
%11 = load i32, i32* %2
%12 = sub nsw i32 %10, %11
%13 = call i32 @f(i32 %12)
%14 = mul nsw i32 %13, %9
%15 = sdiv i32 %7, %14
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %15)
ret i32 1
}
int main(void) {
  int a;
  &a + 1;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}