xunge/DecIR huggingface dataset:
double kernel__Float__unary_32d_45d(double self) {
  double var;
  double var1;
  var1 = -self;
  var = var1;
  goto RET_LABEL;
RET_LABEL:;
  return var;
}


x86 assembly (clang, -O0):
<kernel__Float__unary_32d_45d>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel__Float__unary_32d_45d>:
xorps  0xef9(%rip),%xmm0
ret

LLVM IR (-O0):
define double @kernel__Float__unary_32d_45d(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
%5 = load double, double* %2
%6 = fneg double %5
store double %6, double* %4
%7 = load double, double* %4
store double %7, double* %3
br label %8
8: ; preds = %1
%9 = load double, double* %3
ret double %9
}

LLVM IR (-O2):
define double @kernel__Float__unary_32d_45d(double %0) {
%2 = fneg double %0
ret double %2
}
int tegra_clk_debugfs_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @tegra_clk_debugfs_init() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, ...);
int G91_f(char *s) {
  debug("G91_f(const char *s) is not yet implemented!\n");
  debug("%s\n", s);
  return 1;
}


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

x86 assembly (clang, -O2):
<G91_f>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1030 <debug@plt>
lea    0xf05(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <debug@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [46 x i8] c"G91_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @G91_f(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 1
}

LLVM IR (-O2):
@.str = [46 x i8] c"G91_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @G91_f(i8* %0) {
%2 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret i32 1
}
/* Variables and functions */
int netRead(int, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ writeTest(int);
void onRead(int socket) {
  char buf[1024];
  int received;
  printf("onRead\n");
  received = netRead(socket, buf, 1024);
  printf("received: %i\n", received);
  writeTest(socket);
}


x86 assembly (clang, -O0):
<onRead>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %edi,-0x4(%rbp)
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
lea    -0x410(%rbp),%rsi
mov    $0x400,%edx
call   1050 <netRead@plt>
mov    %eax,-0x414(%rbp)
mov    -0x414(%rbp),%esi
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <writeTest@plt>
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<onRead>:
push   %rbx
sub    $0x400,%rsp
mov    %edi,%ebx
lea    0xebd(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rsi
mov    %ebx,%edi
mov    $0x400,%edx
call   1060 <netRead@plt>
lea    0xe94(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
call   1030 <writeTest@plt>
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"onRead\0A\00"
@.str.1 = [14 x i8] c"received: %i\0A\00"
define void @onRead(i32 %0) {
%2 = alloca i32
%3 = alloca [1024 x i8]
%4 = alloca i32
store i32 %0, i32* %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %2
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = call i32 @netRead(i32 %6, i8* %7, i32 1024)
store i32 %8, i32* %4
%9 = load i32, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = load i32, i32* %2
%12 = call i32 @writeTest(i32 %11)
ret void
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"received: %i\0A\00"
@str = [7 x i8] c"onRead\00"
define void @onRead(i32 %0) {
%2 = alloca [1024 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%5 = call i32 @netRead(i32 %0, i8* %3, i32 1024)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = call i32 @writeTest(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_arrays();
int /*<<< orphan*/ main1(int, int);
int main(void) {
  init_arrays();
  main1(1600, 2558400);
  main1(1600 - 1, 2555202);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <init_arrays@plt>
mov    $0x640,%edi
mov    $0x2709c0,%esi
call   1030 <main1@plt>
mov    $0x63f,%edi
mov    $0x26fd42,%esi
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <init_arrays@plt>
mov    $0x640,%edi
mov    $0x2709c0,%esi
call   1030 <main1@plt>
mov    $0x63f,%edi
mov    $0x26fd42,%esi
call   1030 <main1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @init_arrays()
%3 = call i32 @main1(i32 1600, i32 2558400)
%4 = call i32 @main1(i32 1599, i32 2555202)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @init_arrays()
%2 = tail call i32 @main1(i32 1600, i32 2558400)
%3 = tail call i32 @main1(i32 1599, i32 2555202)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int streamtoaccept(int, int /*<<< orphan*/);
int tcptoaccept(int lsock, uint32_t msecto) {
  return streamtoaccept(lsock, msecto);
}


x86 assembly (clang, -O0):
<tcptoaccept>:
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 <streamtoaccept@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcptoaccept>:
jmp    1030 <streamtoaccept@plt>

LLVM IR (-O0):
define i32 @tcptoaccept(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 @streamtoaccept(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @tcptoaccept(i32 %0, i32 %1) {
%3 = tail call i32 @streamtoaccept(i32 %0, i32 %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ c;

/* Variables and functions */
int read(int /*<<< orphan*/, unsigned char *, int);
int getch(void) {
  int r;
  unsigned char c;
  r = read(0, &c, sizeof(c));
  if (r < 0) {
    return r;
  } else {
    return c;
  }
}


x86 assembly (clang, -O0):
<getch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
lea    -0x9(%rbp),%rsi
mov    $0x1,%edx
call   1030 <read@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1140 <getch+0x30>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <getch+0x37>
movzbl -0x9(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getch>:
push   %rax
lea    0x7(%rsp),%rsi
xor    %edi,%edi
mov    $0x1,%edx
call   1030 <read@plt>
test   %eax,%eax
movzbl 0x7(%rsp),%ecx
cmovns %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @getch() {
%1 = alloca i8
%2 = call i32 @read(i32 0, i8* %1, i32 1)
%3 = icmp slt i32 %2, 0
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = select i1 %3, i32 %2, i32 %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_warnIfReached();
void reachable_break_loop() {
  int i = 0;
  while (1) {
    ++i;
    if (i == 100)
      break;
  }
  clang_analyzer_warnIfReached();
}


x86 assembly (clang, -O0):
<reachable_break_loop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x64,-0x4(%rbp)
jne    1137 <reachable_break_loop+0x27>
jmp    113c <reachable_break_loop+0x2c>
jmp    111f <reachable_break_loop+0xf>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @reachable_break_loop() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0, %8
%3 = load i32, i32* %1
%4 = add nsw i32 %3, 1
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = icmp eq i32 %5, 100
br i1 %6, label %7, label %8
7: ; preds = %2
br label %9
8: ; preds = %2
br label %2
9: ; preds = %7
%10 = call i32 (...) @clang_analyzer_warnIfReached()
ret void
}

LLVM IR (-O2):
define void @reachable_break_loop() {
%1 = tail call i32 (...) @clang_analyzer_warnIfReached()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
bool regular_char(unsigned char const c) {
  assert('\0' != c);
  return c <= 127;
}


x86 assembly (clang, -O0):
<regular_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzbl -0x1(%rbp),%eax
cmp    $0x7f,%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<regular_char>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
test   %ebx,%ebx
setne  %dil
call   1030 <assert@plt>
not    %bl
shr    $0x7,%bl
movzbl %bl,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @regular_char(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = icmp ne i32 0, %4
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i8, i8* %2
%9 = zext i8 %8 to i32
%10 = icmp sle i32 %9, 127
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @regular_char(i8 zeroext %0) {
%2 = icmp ne i8 %0, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = xor i8 %0, -1
%6 = lshr i8 %5, 7
%7 = zext i8 %6 to i32
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
wchar_t *wcscpy(wchar_t *__restrict__ dest, const wchar_t *__restrict__ src) {
  wchar_t *orig = dest;
  for (; (*dest = *src); ++src, ++dest)
    ;
  return orig;
}


x86 assembly (clang, -O0):
<wcscpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%rcx
mov    %eax,(%rcx)
cmp    $0x0,%eax
je     114b <wcscpy+0x4b>
jmp    112e <wcscpy+0x2e>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
jmp    1114 <wcscpy+0x14>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcscpy>:
mov    %rdi,%rax
mov    (%rsi),%ecx
mov    %ecx,(%rdi)
test   %ecx,%ecx
je     111e <wcscpy+0x1e>
mov    $0x4,%ecx
mov    (%rsi,%rcx,1),%edx
mov    %edx,(%rax,%rcx,1)
add    $0x4,%rcx
test   %edx,%edx
jne    1110 <wcscpy+0x10>
ret

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

LLVM IR (-O2):
define i32* @wcscpy(i32* noalias returned writeonly %0, i32* noalias nocapture %1) {
%3 = load i32, i32* %1
store i32 %3, i32* %0
%4 = icmp eq i32 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi i32* [ %9, %5 ], [ %0, %2 ]
%7 = phi i32* [ %8, %5 ], [ %1, %2 ]
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = getelementptr inbounds i32, i32* %6, i64 1
%10 = load i32, i32* %8
store i32 %10, i32* %9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %2
ret i32* %0
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ test_create();
int /*<<< orphan*/ test_io();
int /*<<< orphan*/ test_signal();
int main(int argc, char *argv[]) {
  test_create();
  test_io();
  test_signal();
  return EXIT_SUCCESS;
}


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)
mov    $0x0,%al
call   1050 <test_create@plt>
mov    $0x0,%al
call   1040 <test_io@plt>
mov    $0x0,%al
call   1030 <test_signal@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test_create@plt>
xor    %eax,%eax
call   1040 <test_io@plt>
xor    %eax,%eax
call   1030 <test_signal@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @test_create()
%7 = call i32 (...) @test_io()
%8 = call i32 (...) @test_signal()
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_create()
%4 = tail call i32 (...) @test_io()
%5 = tail call i32 (...) @test_signal()
%6 = load i32, i32* @EXIT_SUCCESS
ret i32 %6
}
/* Variables and functions */
double __nv_j1(double);
double j1(double __a) { return __nv_j1(__a); }


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

x86 assembly (clang, -O2):
<j1>:
jmp    1030 <__nv_j1@plt>

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

LLVM IR (-O2):
define double @j1(double %0) {
%2 = tail call double @__nv_j1(double %0)
ret double %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int32_t btoh_32(int32_t bigval) {
  union {
    int32_t l;
    uint8_t b[4];
  } u1, u2;
  u1.l = bigval;
  u2.b[0] = u1.b[3];
  u2.b[1] = u1.b[2];
  u2.b[2] = u1.b[1];
  u2.b[3] = u1.b[0];
  return u2.l;
}


x86 assembly (clang, -O0):
<btoh_32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%union.anon = type { [4 x i32] }
define i32 @btoh_32(i32 %0) {
%2 = alloca i32
%3 = alloca %union.anon
%4 = alloca %union.anon
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = bitcast %union.anon* %3 to i32*
store i32 %5, i32* %6
%7 = bitcast %union.anon* %3 to [4 x i32]*
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%9 = load i32, i32* %8
%10 = bitcast %union.anon* %4 to [4 x i32]*
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
store i32 %9, i32* %11
%12 = bitcast %union.anon* %3 to [4 x i32]*
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 2
%14 = load i32, i32* %13
%15 = bitcast %union.anon* %4 to [4 x i32]*
%16 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 1
store i32 %14, i32* %16
%17 = bitcast %union.anon* %3 to [4 x i32]*
%18 = getelementptr inbounds [4 x i32], [4 x i32]* %17, i64 0, i64 1
%19 = load i32, i32* %18
%20 = bitcast %union.anon* %4 to [4 x i32]*
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %20, i64 0, i64 2
store i32 %19, i32* %21
%22 = bitcast %union.anon* %3 to [4 x i32]*
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %22, i64 0, i64 0
%24 = load i32, i32* %23
%25 = bitcast %union.anon* %4 to [4 x i32]*
%26 = getelementptr inbounds [4 x i32], [4 x i32]* %25, i64 0, i64 3
store i32 %24, i32* %26
%27 = bitcast %union.anon* %4 to i32*
%28 = load i32, i32* %27
ret i32 %28
}

LLVM IR (-O2):
define i32 @btoh_32(i32 %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ bgnpoint();
void bgnpoint_() { bgnpoint(); }


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

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

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

LLVM IR (-O2):
define void @bgnpoint_() {
%1 = tail call i32 (...) @bgnpoint()
ret void
}
void __attribute__((weak)) usart3_isr() { debug_handler(__FUNCTION__); }


x86 assembly (clang, -O0):
<usart3_isr>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <debug_handler@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usart3_isr>:
lea    0xee9(%rip),%rdi
xor    %eax,%eax
jmp    1030 <debug_handler@plt>

LLVM IR (-O0):
@__FUNCTION__.usart3_isr = [11 x i8] c"usart3_isr\00"
define weak void @usart3_isr() {
%1 = call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.usart3_isr, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__FUNCTION__.usart3_isr = [11 x i8] c"usart3_isr\00"
define weak void @usart3_isr() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.usart3_isr, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *generatePasscode(int);
int /*<<< orphan*/ phase(int);
void phase_2() {
  char *pass = generatePasscode(2);
  phase(2);
}


x86 assembly (clang, -O0):
<phase_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x2,%edi
call   1030 <generatePasscode@plt>
mov    %rax,-0x8(%rbp)
mov    $0x2,%edi
call   1040 <phase@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phase_2>:
push   %rax
mov    $0x2,%edi
call   1030 <generatePasscode@plt>
mov    $0x2,%edi
pop    %rax
jmp    1040 <phase@plt>

LLVM IR (-O0):
define void @phase_2() {
%1 = alloca i8*
%2 = call i8* @generatePasscode(i32 2)
store i8* %2, i8** %1
%3 = call i32 @phase(i32 2)
ret void
}

LLVM IR (-O2):
define void @phase_2() {
%1 = tail call i8* @generatePasscode(i32 2)
%2 = tail call i32 @phase(i32 2)
ret void
}
void __DELETE_java_security_AccessController(void *me, void *client_data) {}


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

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

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

LLVM IR (-O2):
define void @__DELETE_java_security_AccessController(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, long, char const *);
int /*<<< orphan*/ stderr;
void prl(long val, const char *expn) {
  (void)fprintf(stderr, "%10ld  %s\n", val, expn);
}


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

x86 assembly (clang, -O2):
<prl>:
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
lea    0xeda(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [11 x i8] c"%10ld %s\0A\00"
define void @prl(i64 %0, i8* %1) {
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i64, i64* %3
%7 = load i8*, i8** %4
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i64 %6, i8* %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [11 x i8] c"%10ld %s\0A\00"
define void @prl(i64 %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i64 %0, i8* %1)
ret void
}
void foo46() {}


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

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

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

LLVM IR (-O2):
define void @foo46() {
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int min_width;
};
typedef TYPE_1__ XIconSize;

/* Variables and functions */
void set_XIconSize_min_width(void *_p, int _v) {
  ((XIconSize *)_p)->min_width = (int)_v;
}


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

x86 assembly (clang, -O2):
<set_XIconSize_min_width>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XIconSize_min_width(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XIconSize_min_width(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
/* Variables and functions */
char *parse_stat(char *, int);
char *get_thread_count(char *pid) {
  char *threads = parse_stat(pid, 20);
  return threads;
}


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

x86 assembly (clang, -O2):
<get_thread_count>:
mov    $0x14,%esi
jmp    1030 <parse_stat@plt>

LLVM IR (-O0):
define i8* @get_thread_count(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @parse_stat(i8* %4, i32 20)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
ret i8* %6
}

LLVM IR (-O2):
define i8* @get_thread_count(i8* %0) {
%2 = tail call i8* @parse_stat(i8* %0, i32 20)
ret i8* %2
}
char ack(char atual) {
  if (atual == '1')
    return '0';
  return '1';
}


x86 assembly (clang, -O0):
<ack>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x31,%eax
jne    1120 <ack+0x20>
movb   $0x30,-0x1(%rbp)
jmp    1124 <ack+0x24>
movb   $0x31,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ack>:
cmp    $0x31,%dil
sete   %al
xor    $0x31,%al
ret

LLVM IR (-O0):
define signext i8 @ack(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 49
br i1 %6, label %7, label %8
7: ; preds = %1
store i8 48, i8* %2
br label %9
8: ; preds = %1
store i8 49, i8* %2
br label %9
9: ; preds = %8, %7
%10 = load i8, i8* %2
ret i8 %10
}

LLVM IR (-O2):
define signext i8 @ack(i8 signext %0) {
%2 = icmp eq i8 %0, 49
%3 = select i1 %2, i8 48, i8 49
ret i8 %3
}
int ChangWenJun_LongJuanQiangFa_cost(struct Ability *self) { return 165; }


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

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

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

LLVM IR (-O2):
%struct.Ability = type opaque
define i32 @ChangWenJun_LongJuanQiangFa_cost(%struct.Ability* nocapture readnone %0) {
ret i32 165
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int /*<<< orphan*/ hd44780_ll_instruction_write(int);
int8_t hd44780_cursor_or_display_shift(uint8_t shift_screen,
                                       uint8_t shift_right) {
  uint8_t data = 0x10;
  if (shift_screen) {
    data = data | 0x08;
  }
  if (shift_right) {
    data = data | 0x04;
  }
  return (hd44780_ll_instruction_write(data));
}


x86 assembly (clang, -O0):
<hd44780_cursor_or_display_shift>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x10,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1138 <hd44780_cursor_or_display_shift+0x28>
mov    -0xc(%rbp),%eax
or     $0x8,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     114b <hd44780_cursor_or_display_shift+0x3b>
mov    -0xc(%rbp),%eax
or     $0x4,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <hd44780_ll_instruction_write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hd44780_cursor_or_display_shift>:
xor    %eax,%eax
test   %edi,%edi
setne  %al
shl    $0x3,%eax
xor    %ecx,%ecx
test   %esi,%esi
setne  %cl
lea    (%rax,%rcx,4),%edi
add    $0x10,%edi
jmp    1030 <hd44780_ll_instruction_write@plt>

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

LLVM IR (-O2):
define i32 @hd44780_cursor_or_display_shift(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
%4 = select i1 %3, i32 16, i32 24
%5 = icmp eq i32 %1, 0
%6 = or i32 %4, 4
%7 = select i1 %5, i32 %4, i32 %6
%8 = tail call i32 @hd44780_ll_instruction_write(i32 %7)
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ num;

/* Variables and functions */
int /*<<< orphan*/ SwapWord(char *, int);
unsigned short little2bigus(unsigned short num) {
  SwapWord((char *)&num, sizeof(num));
  return num;
}


x86 assembly (clang, -O0):
<little2bigus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
lea    -0x2(%rbp),%rdi
mov    $0x2,%esi
call   1030 <SwapWord@plt>
movzwl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<little2bigus>:
push   %rax
mov    %di,0x6(%rsp)
lea    0x6(%rsp),%rdi
mov    $0x2,%esi
call   1030 <SwapWord@plt>
movzwl 0x6(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define zeroext i16 @little2bigus(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = bitcast i16* %2 to i8*
%4 = call i32 @SwapWord(i8* %3, i32 2)
%5 = load i16, i16* %2
ret i16 %5
}
int mtp(int motor, int speed, long goal_pos) {}


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

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

LLVM IR (-O0):
define i32 @mtp(i32 %0, i32 %1, i64 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
store i32 %0, i32* %5
store i32 %1, i32* %6
store i64 %2, i64* %7
%8 = load i32, i32* %4
ret i32 %8
}

LLVM IR (-O2):
define i32 @mtp(i32 %0, i32 %1, i64 %2) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ _Error(long, char *);
void Error_BinarySyntaxMustFinishWithExpression(long p_position) {
  _Error(p_position, "Binary operator syntax must finish with an expression");
}


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

x86 assembly (clang, -O2):
<Error_BinarySyntaxMustFinishWithExpression>:
lea    0xee9(%rip),%rsi
jmp    1030 <_Error@plt>

LLVM IR (-O0):
@.str = [54 x i8] c"Binary operator syntax must finish with an expression\00"
define void @Error_BinarySyntaxMustFinishWithExpression(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @_Error(i64 %3, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"Binary operator syntax must finish with an expression\00"
define void @Error_BinarySyntaxMustFinishWithExpression(i64 %0) {
%2 = tail call i32 @_Error(i64 %0, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret void
}
char *safe_symbol(const char *text) { return (char *)text; }


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

x86 assembly (clang, -O2):
<safe_symbol>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i8* @safe_symbol(i8* readnone returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ PR_SET_PDEATHSIG;
int /*<<< orphan*/ SIGKILL;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ prctl(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int child(void *args) {
  prctl(PR_SET_PDEATHSIG, SIGKILL);
  while (1) {
    sleep(1);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
call   1030 <prctl@plt>
mov    $0x1,%edi
call   1040 <sleep@plt>
jmp    1143 <child+0x23>

x86 assembly (clang, -O2):
<child>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
mov    0x2ea7(%rip),%rax
mov    (%rax),%esi
call   1030 <prctl@plt>
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1040 <sleep@plt>
jmp    1140 <child+0x20>

LLVM IR (-O0):
@PR_SET_PDEATHSIG = global i32 0
@SIGKILL = global i32 0
define i32 @child(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @PR_SET_PDEATHSIG
%4 = load i32, i32* @SIGKILL
%5 = call i32 @prctl(i32 %3, i32 %4)
br label %6
6: ; preds = %1, %6
%7 = call i32 @sleep(i32 1)
br label %6
}

LLVM IR (-O2):
@PR_SET_PDEATHSIG = global i32 0
@SIGKILL = global i32 0
define i32 @child(i8* nocapture readnone %0) {
%2 = load i32, i32* @PR_SET_PDEATHSIG
%3 = load i32, i32* @SIGKILL
%4 = tail call i32 @prctl(i32 %2, i32 %3)
br label %5
5: ; preds = %1, %5
%6 = tail call i32 @sleep(i32 1)
br label %5
}
/* Type definitions */
struct wpa_ctrl {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int wpa_ctrl_command(struct wpa_ctrl *, char *);
int wpa_cli_list_interfaces(struct wpa_ctrl *ctrl) {
  printf("Available interfaces:\n");
  return wpa_ctrl_command(ctrl, "INTERFACES");
}


x86 assembly (clang, -O0):
<wpa_cli_list_interfaces>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
lea    0xed4(%rip),%rsi
call   1040 <wpa_ctrl_command@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wpa_cli_list_interfaces>:
push   %rbx
mov    %rdi,%rbx
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <wpa_ctrl_command@plt>

LLVM IR (-O0):
%struct.wpa_ctrl = type { i32 }
@.str = [23 x i8] c"Available interfaces:\0A\00"
@.str.1 = [11 x i8] c"INTERFACES\00"
define i32 @wpa_cli_list_interfaces(%struct.wpa_ctrl* %0) {
%2 = alloca %struct.wpa_ctrl*
store %struct.wpa_ctrl* %0, %struct.wpa_ctrl** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = load %struct.wpa_ctrl*, %struct.wpa_ctrl** %2
%5 = call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
ret i32 %5
}

LLVM IR (-O2):
%struct.wpa_ctrl = type { i32 }
@.str.1 = [11 x i8] c"INTERFACES\00"
@str = [22 x i8] c"Available interfaces:\00"
define i32 @wpa_cli_list_interfaces(%struct.wpa_ctrl* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ e_bcs();
int /*<<< orphan*/ e_branch();
void e_bcs_branch() {
  e_branch();
  e_bcs();
}


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

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

LLVM IR (-O0):
define void @e_bcs_branch() {
%1 = call i32 (...) @e_branch()
%2 = call i32 (...) @e_bcs()
ret void
}

LLVM IR (-O2):
define void @e_bcs_branch() {
%1 = tail call i32 (...) @e_branch()
%2 = tail call i32 (...) @e_bcs()
ret void
}
int cairo_code_draw_stuckbg_get_height() { return 400; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_stuckbg_get_height() {
ret i32 400
}

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

/* Variables and functions */
uint32_t rsp_mem_address(uint32_t address) { return (address & 0x1fff) >> 2; }


x86 assembly (clang, -O0):
<rsp_mem_address>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1fff,%eax
sar    $0x2,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rsp_mem_address>:
mov    %edi,%eax
shr    $0x2,%eax
and    $0x7ff,%eax
ret

LLVM IR (-O0):
define i32 @rsp_mem_address(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 8191
%5 = ashr i32 %4, 2
ret i32 %5
}

LLVM IR (-O2):
define i32 @rsp_mem_address(i32 %0) {
%2 = lshr i32 %0, 2
%3 = and i32 %2, 2047
ret i32 %3
}
char *DL_GetString(const char *url) { return 0; }


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

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

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

LLVM IR (-O2):
define noalias i8* @DL_GetString(i8* nocapture readnone %0) {
ret i8* null
}
void lex_item_unfreed() {}


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

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

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

LLVM IR (-O2):
define void @lex_item_unfreed() {
ret void
}
two2(a, b) { nop(); }


x86 assembly (clang, -O0):
<two2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nop@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @two2(i32 %0, i32 %1) {
%3 = tail call i32 (...) @nop()
ret i32 undef
}
/* Variables and functions */
void *calloc(size_t, size_t);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void *xcalloc(size_t num, size_t size) {
  void *p;
  p = calloc(num, size);
  if (!p) {
    printf("failed calloc");
    exit(1);
  }
  return p;
}


x86 assembly (clang, -O0):
<xcalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <calloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1172 <xcalloc+0x42>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcalloc>:
push   %rax
call   1040 <calloc@plt>
test   %rax,%rax
je     113d <xcalloc+0xd>
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@.str = [14 x i8] c"failed calloc\00"
define noalias i8* @xcalloc(i64 %0, i64 %1) {
%3 = tail call i8* @calloc(i64 %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
ret i8* %3
}
void glBindBufferRange(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glBindBufferRange() {
ret void
}
/* Variables and functions */
double **malloc(int);
double **arrayAlloc2D(int dim1, int dim2) {
  double(*array)[dim1];
  array = malloc(sizeof(double) * dim1 * dim2);
  return (double **)array;
}


x86 assembly (clang, -O0):
<arrayAlloc2D>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
movslq -0x8(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arrayAlloc2D>:
imul   %esi,%edi
shl    $0x3,%edi
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define double** @arrayAlloc2D(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = zext i32 %6 to i64
%8 = load i32, i32* %3
%9 = sext i32 %8 to i64
%10 = mul i64 8, %9
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = mul i64 %10, %12
%14 = trunc i64 %13 to i32
%15 = call double** @malloc(i32 %14)
%16 = bitcast double** %15 to double*
store double* %16, double** %5
%17 = load double*, double** %5
%18 = bitcast double* %17 to double**
ret double** %18
}

LLVM IR (-O2):
define noalias double** @arrayAlloc2D(i32 %0, i32 %1) {
%3 = shl i32 %0, 3
%4 = mul i32 %3, %1
%5 = tail call double** @malloc(i32 %4)
ret double** %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int prompt(int *input) {
  printf("\nEnter withdraw amount: ");
  scanf("%d", input);
}


x86 assembly (clang, -O0):
<prompt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xed6(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prompt>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <scanf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"\0AEnter withdraw amount: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @prompt(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
store i32* %0, i32** %3
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %3
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%7 = load i32, i32* %2
ret i32 %7
}

LLVM IR (-O2):
@.str = [25 x i8] c"\0AEnter withdraw amount: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @prompt(i32* %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %0)
ret i32 undef
}
/* Type definitions */
typedef int uint8_t;
typedef int const uint32_t;

/* Variables and functions */
uint32_t mp2vseq_get_bitrate(const uint8_t *p_mp2vseq) {
  return (p_mp2vseq[8] << 10) | (p_mp2vseq[9] << 2) | (p_mp2vseq[10] >> 6);
}


x86 assembly (clang, -O0):
<mp2vseq_get_bitrate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%eax
shl    $0xa,%eax
mov    -0x8(%rbp),%rcx
mov    0x24(%rcx),%ecx
shl    $0x2,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x28(%rcx),%ecx
sar    $0x6,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp2vseq_get_bitrate>:
mov    0x20(%rdi),%eax
mov    0x24(%rdi),%ecx
shl    $0xa,%eax
shl    $0x2,%ecx
or     %eax,%ecx
mov    0x28(%rdi),%eax
sar    $0x6,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @mp2vseq_get_bitrate(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 8
%5 = load i32, i32* %4
%6 = shl i32 %5, 10
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 9
%9 = load i32, i32* %8
%10 = shl i32 %9, 2
%11 = or i32 %6, %10
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 10
%14 = load i32, i32* %13
%15 = ashr i32 %14, 6
%16 = or i32 %11, %15
ret i32 %16
}

LLVM IR (-O2):
define i32 @mp2vseq_get_bitrate(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 8
%3 = load i32, i32* %2
%4 = shl i32 %3, 10
%5 = getelementptr inbounds i32, i32* %0, i64 9
%6 = load i32, i32* %5
%7 = shl i32 %6, 2
%8 = or i32 %7, %4
%9 = getelementptr inbounds i32, i32* %0, i64 10
%10 = load i32, i32* %9
%11 = ashr i32 %10, 6
%12 = or i32 %8, %11
ret i32 %12
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int32_t L_abs(int32_t L_var1) {
  int32_t L_var_out;
  if (L_var1 == (int32_t)0x80000000L) {
    L_var_out = (int32_t)0x7fffffffL;
  } else {
    if (L_var1 < 0) {
      L_var_out = -L_var1;
    } else {
      L_var_out = L_var1;
    }
  }
  return (L_var_out);
}


x86 assembly (clang, -O0):
<L_abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x80000000,-0x4(%rbp)
jne    1120 <L_abs+0x20>
movl   $0x7fffffff,-0x8(%rbp)
jmp    1142 <L_abs+0x42>
cmpl   $0x0,-0x4(%rbp)
jge    1137 <L_abs+0x37>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    113d <L_abs+0x3d>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1142 <L_abs+0x42>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<L_abs>:
mov    %edi,%ecx
neg    %ecx
cmovs  %edi,%ecx
cmp    $0x80000000,%edi
mov    $0x7fffffff,%eax
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @L_abs(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, -2147483648
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 2147483647, i32* %3
br label %16
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %2
%12 = sub nsw i32 0, %11
store i32 %12, i32* %3
br label %15
13: ; preds = %7
%14 = load i32, i32* %2
store i32 %14, i32* %3
br label %15
15: ; preds = %13, %10
br label %16
16: ; preds = %15, %6
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @L_abs(i32 %0) {
%2 = icmp eq i32 %0, -2147483648
%3 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
%4 = select i1 %2, i32 2147483647, i32 %3
ret i32 %4
}
/* Variables and functions */
int par_geti_def(char *, char *, int);
void par_geti_def_f_(char *block, char *name, int *def, int *value) {
  *value = par_geti_def(block, name, *def);
}


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

x86 assembly (clang, -O2):
<par_geti_def_f_>:
push   %rbx
mov    %rcx,%rbx
mov    (%rdx),%edx
call   1030 <par_geti_def@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @par_geti_def_f_(i8* %0, i8* %1, i32* %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32*, i32** %7
%12 = load i32, i32* %11
%13 = call i32 @par_geti_def(i8* %9, i8* %10, i32 %12)
%14 = load i32*, i32** %8
store i32 %13, i32* %14
ret void
}

LLVM IR (-O2):
define void @par_geti_def_f_(i8* %0, i8* %1, i32* nocapture %2, i32* nocapture writeonly %3) {
%5 = load i32, i32* %2
%6 = tail call i32 @par_geti_def(i8* %0, i8* %1, i32 %5)
store i32 %6, i32* %3
ret void
}