xunge/DecIR huggingface dataset:
PHP_MINFO_FUNCTION(request) {
  php_info_print_table_start();
  php_info_print_table_row(2, "Version", "2.0.0");
  php_info_print_table_end();
}


x86 assembly (clang, -O0):
<PHP_MINFO_FUNCTION>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <php_info_print_table_start@plt>
mov    $0x2,%edi
lea    0xeb2(%rip),%rsi
lea    0xeb3(%rip),%rdx
mov    $0x0,%al
call   1030 <php_info_print_table_row@plt>
mov    $0x0,%al
call   1040 <php_info_print_table_end@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PHP_MINFO_FUNCTION>:
push   %rax
xor    %eax,%eax
call   1050 <php_info_print_table_start@plt>
lea    0xec1(%rip),%rsi
lea    0xec2(%rip),%rdx
mov    $0x2,%edi
xor    %eax,%eax
call   1030 <php_info_print_table_row@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <php_info_print_table_end@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Version\00"
@.str.1 = [6 x i8] c"2.0.0\00"
define i32 @PHP_MINFO_FUNCTION(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 (...) @php_info_print_table_start()
%5 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @php_info_print_table_row to i32 (i32, i8*, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (...) @php_info_print_table_end()
%7 = load i32, i32* %2
ret i32 %7
}

LLVM IR (-O2):
@.str = [8 x i8] c"Version\00"
@.str.1 = [6 x i8] c"2.0.0\00"
define i32 @PHP_MINFO_FUNCTION(i32 %0) {
%2 = tail call i32 (...) @php_info_print_table_start()
%3 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @php_info_print_table_row to i32 (i32, i8*, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @php_info_print_table_end()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void checker1(int *toCheck1) {
  if (!toCheck1) {
    exit(0);
  }
  return;
}


x86 assembly (clang, -O0):
<checker1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112e <checker1+0x1e>
xor    %edi,%edi
call   1030 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checker1>:
test   %rdi,%rdi
je     1116 <checker1+0x6>
ret
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @checker1(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = icmp ne i32* %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 @exit(i32 0)
unreachable
7: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @checker1(i32* readnone %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @exit(i32 0)
unreachable
5: ; preds = %1
ret void
}
/* Variables and functions */
long ff_rint(double);
long ff_lrint(double x) { return ff_rint(x); }


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

x86 assembly (clang, -O2):
<ff_lrint>:
jmp    1030 <ff_rint@plt>

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

LLVM IR (-O2):
define i64 @ff_lrint(double %0) {
%2 = tail call i64 @ff_rint(double %0)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void setscheduler() { printf("not implemented yet..."); }


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

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

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

LLVM IR (-O2):
@.str = [23 x i8] c"not implemented yet...\00"
define void @setscheduler() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int errno;
void tosError_setContext(int errCode, int errCodeDetail) { errno = errCode; }


x86 assembly (clang, -O0):
<tosError_setContext>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
mov    0x2ecc(%rip),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<tosError_setContext>:
mov    0x2ed9(%rip),%rax
mov    %edi,(%rax)
ret

LLVM IR (-O0):
@errno = global i32 0
define void @tosError_setContext(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
store i32 %5, i32* @errno
ret void
}

LLVM IR (-O2):
@errno = global i32 0
define void @tosError_setContext(i32 %0, i32 %1) {
store i32 %0, i32* @errno
ret void
}
int module_function() {
  static int static_local_var;
  int local_var;
  return 0;
}


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

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

LLVM IR (-O0):
@module_function.static_local_var = internal global i32 0
define i32 @module_function() {
%1 = alloca i32
ret i32 0
}

LLVM IR (-O2):
define i32 @module_function() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
void *realloc(void *, size_t);
int /*<<< orphan*/ stderr;
void *lanli_realloc(void *ptr, size_t size) {
  void *ret = realloc(ptr, size);
  if (!ret) {
    fprintf(stderr, "Allocation failed.\n");
    abort();
  }
  return ret;
}


x86 assembly (clang, -O0):
<lanli_realloc>:
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   1050 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1178 <lanli_realloc+0x48>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
lea    0xe94(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lanli_realloc>:
push   %rax
call   1050 <realloc@plt>
test   %rax,%rax
je     113d <lanli_realloc+0xd>
pop    %rcx
ret
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"Allocation failed.\0A\00"
define noalias i8* @lanli_realloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @abort()
unreachable
9: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int x;
  if (!(x >= 0))
    return 0;
  while (x < 100 && x >= 0) {
    x++;
  }
  assert(x >= 100);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1135 <main+0x25>
movl   $0x0,-0x4(%rbp)
jmp    1189 <main+0x79>
jmp    113a <main+0x2a>
xor    %eax,%eax
cmpl   $0x64,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jge    1153 <main+0x43>
cmpl   $0x0,-0x8(%rbp)
setge  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1163 <main+0x53>
jmp    1171 <main+0x61>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113a <main+0x2a>
cmpl   $0x64,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %0
store i32 0, i32* %1
br label %23
6: ; preds = %0
br label %7
7: ; preds = %15, %6
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp sge i32 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ false, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %18
15: ; preds = %13
%16 = load i32, i32* %2
%17 = add nsw i32 %16, 1
store i32 %17, i32* %2
br label %7
18: ; preds = %13
%19 = load i32, i32* %2
%20 = icmp sge i32 %19, 100
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
store i32 0, i32* %1
br label %23
23: ; preds = %18, %5
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ _PROCEDURE_LINKAGE_TABLE_();
void fn00027C98() {
  _PROCEDURE_LINKAGE_TABLE_();
  return;
}


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

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

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

LLVM IR (-O2):
define void @fn00027C98() {
%1 = tail call i32 (...) @_PROCEDURE_LINKAGE_TABLE_()
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ starexit(int);
void *starmalloc(size_t size) {
  void *memptr;
  memptr = malloc(size);
  if (memptr == (void *)NULL) {
    printf("Error:  Out of memory.\n");
    starexit(1);
  }
  return (memptr);
}


x86 assembly (clang, -O0):
<starmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116a <starmalloc+0x3a>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <starexit@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<starmalloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1154 <starmalloc+0x24>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <starexit@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Error: Out of memory.\0A\00"
define i8* @starmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @starexit(i32 1)
br label %11
11: ; preds = %8, %1
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@str = [23 x i8] c"Error: Out of memory.\00"
define noalias i8* @starmalloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @starexit(i32 1)
br label %7
7: ; preds = %4, %1
ret i8* %2
}
void do_device_not_available(void *x) {
  do {
    kprintf("Unsupport Now...[%s]\n", __FUNCTION__);
    while (1)
      ;
  } while (0);
  ;
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @null_stop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_letters(char *);
void print_arguments(int argc, char *argv[]) {
  int i = 0;
  for (; i < argc; ++i) {
    print_letters(argv[i]);
  }
}


x86 assembly (clang, -O0):
<print_arguments>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1151 <print_arguments+0x41>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <print_letters@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <print_arguments+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_arguments>:
push   %r15
push   %r14
push   %rbx
test   %edi,%edi
jle    1142 <print_arguments+0x32>
mov    %rsi,%r14
mov    %edi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <print_letters@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <print_arguments+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @print_arguments(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @print_letters(i8* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fgetc(int /*<<< orphan*/ *);
__attribute__((__weak__, __always___)) int softboundmpx_fgetc(FILE *stream) {
  return fgetc(stream);
}


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

x86 assembly (clang, -O2):
<softboundmpx_fgetc>:
jmp    1030 <fgetc@plt>

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

LLVM IR (-O2):
define weak i32 @softboundmpx_fgetc(i32* %0) {
%2 = tail call i32 @fgetc(i32* %0)
ret i32 %2
}
void ff_hevc_put_hevc_pel_pixels24_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_pel_pixels24_12_sse4() {
ret void
}
/* Variables and functions */
char *strchr(char *, char);
int commonname_type(char *cn) {
  char *pos;
  pos = strchr(cn, '@');
  if (pos)
    return 2;
  else
    return 1;
}


x86 assembly (clang, -O0):
<commonname_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x40,%esi
call   1030 <strchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1145 <commonname_type+0x35>
movl   $0x2,-0x4(%rbp)
jmp    114c <commonname_type+0x3c>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<commonname_type>:
push   %rax
mov    $0x40,%esi
call   1030 <strchr@plt>
cmp    $0x1,%rax
mov    $0x2,%eax
sbb    $0x0,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @commonname_type(i8* %0) {
%2 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 64)
%3 = icmp eq i8* %2, null
%4 = select i1 %3, i32 1, i32 2
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, char *);
int /*<<< orphan*/ stderr;
int posit(int boolean, char *boolstr, char *file, int line) {
  if (!boolean)
    fprintf(stderr, "Assertion %s failed in line %d of file %s\n", boolstr,
            line, file);
  return boolean;
}


x86 assembly (clang, -O0):
<posit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1150 <posit+0x40>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%r8
lea    0xeb5(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<posit>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    1132 <posit+0x22>
mov    %rdx,%r8
mov    %rsi,%rdx
mov    0x2ebc(%rip),%rax
mov    (%rax),%edi
lea    0xed3(%rip),%rsi
call   1030 <fprintf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [43 x i8] c"Assertion %s failed in line %d of file %s\0A\00"
define i32 @posit(i32 %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = icmp ne i32 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %4
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %6
%14 = load i32, i32* %8
%15 = load i8*, i8** %7
%16 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %14, i8* %15)
br label %17
17: ; preds = %11, %4
%18 = load i32, i32* %5
ret i32 %18
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [43 x i8] c"Assertion %s failed in line %d of file %s\0A\00"
define i32 @posit(i32 returned %0, i8* %1, i8* %2, i32 %3) {
%5 = icmp eq i32 %0, 0
br i1 %5, label %6, label %9
6: ; preds = %4
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %3, i8* %2)
br label %9
9: ; preds = %6, %4
ret i32 %0
}
unsigned long long __lzcnt64(unsigned long long value) {
  return __builtin_clzll(value);
}


x86 assembly (clang, -O0):
<__lzcnt64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
bsr    %rax,%rax
xor    $0x3f,%rax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<__lzcnt64>:
bsr    %rdi,%rax
xor    $0x3f,%rax
ret

LLVM IR (-O0):
define i64 @__lzcnt64(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @llvm.ctlz.i64(i64 %3, i1 true)
%5 = trunc i64 %4 to i32
%6 = sext i32 %5 to i64
ret i64 %6
}

LLVM IR (-O2):
define i64 @__lzcnt64(i64 %0) {
%2 = tail call i64 @llvm.ctlz.i64(i64 %0, i1 true)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void print_error(char *message) {
  fprintf(stderr, "tgl: error: %s\n", message);
}


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

x86 assembly (clang, -O2):
<print_error>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [16 x i8] c"tgl: error: %s\0A\00"
define void @print_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [16 x i8] c"tgl: error: %s\0A\00"
define void @print_error(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ ethernet_dstaddr(int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(int /*<<< orphan*/, int /*<<< orphan*/ const *, int);
void ethernet_set_dstaddr(uint8_t *p_ethernet, const uint8_t *p_addr) {
  memcpy(ethernet_dstaddr(p_ethernet), p_addr, 6);
}


x86 assembly (clang, -O0):
<ethernet_set_dstaddr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <ethernet_dstaddr@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    $0x6,%edx
call   1040 <memcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ethernet_set_dstaddr>:
push   %rbx
mov    %rsi,%rbx
call   1030 <ethernet_dstaddr@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x6,%edx
pop    %rbx
jmp    1040 <memcpy@plt>

LLVM IR (-O0):
define void @ethernet_set_dstaddr(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 = call i32 @ethernet_dstaddr(i32* %5)
%7 = load i32*, i32** %4
%8 = call i32 @memcpy(i32 %6, i32* %7, i32 6)
ret void
}

LLVM IR (-O2):
define void @ethernet_set_dstaddr(i32* %0, i32* %1) {
%3 = tail call i32 @ethernet_dstaddr(i32* %0)
%4 = tail call i32 @memcpy(i32 %3, i32* %1, i32 6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void echo(char *s) { printf("%s\n", s); }


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

x86 assembly (clang, -O2):
<echo>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

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

/* Variables and functions */
int putc(int, int /*<<< orphan*/ *);
int fputc(int c, FILE *stream) { return (putc(c, stream)); }


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

x86 assembly (clang, -O2):
<fputc>:
jmp    1030 <putc@plt>

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

LLVM IR (-O2):
define i32 @fputc(i32 %0, i32* nocapture %1) {
%3 = tail call i32 @putc(i32 %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ print_threadid(char *);
void *thread_run(void *arg) {
  print_threadid("new thread:");
  return (void *)0;
}


x86 assembly (clang, -O0):
<thread_run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <print_threadid@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [12 x i8] c"new thread:\00"
define i8* @thread_run(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @print_threadid(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i8* null
}

LLVM IR (-O2):
@.str = [12 x i8] c"new thread:\00"
define noalias i8* @thread_run(i8* nocapture readnone %0) {
%2 = tail call i32 @print_threadid(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Hallo, Tschüss, Baba!\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [24 x i8] c"Hallo, Tsch\C3\BCss, Baba!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [23 x i8] c"Hallo, Tsch\C3\BCss, Baba!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
deleteEvent(void *toBeDeleted) { free(toBeDeleted); }


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

x86 assembly (clang, -O2):
<deleteEvent>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define i32 @deleteEvent(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret i32 undef
}
void resx_exec(int argc, char **argv) {
  (void)argc;
  (void)argv;
}


x86 assembly (clang, -O0):
<resx_exec>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @resx_exec(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
ret void
}

LLVM IR (-O2):
define void @resx_exec(i32 %0, i8** nocapture %1) {
ret void
}
int pldummy_gnome() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @pldummy_gnome() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i = 0;
  int j;
  for (i = 0; i < 1000; i++) {
    j = i * 5;
    printf("The answer is %d\n", j);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    115e <main+0x4e>
imul   $0x5,-0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x5,%ebx
cmp    $0x1388,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [18 x i8] c"The answer is %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %5, %1 ]
%3 = mul nuw nsw i32 %2, 5
%4 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = add nuw nsw i32 %2, 1
%6 = icmp eq i32 %5, 1000
br i1 %6, label %7, label %1
7: ; preds = %1
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Tfailed(char *);
void Tnomem(void) { Tfailed("unable to malloc/realloc"); }


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

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

LLVM IR (-O0):
@.str = [25 x i8] c"unable to malloc/realloc\00"
define void @Tnomem() {
%1 = call i32 @Tfailed(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"unable to malloc/realloc\00"
define void @Tnomem() {
%1 = tail call i32 @Tfailed(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
ret void
}
_Noreturn void _exit(int status) { _Exit(status); }


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

x86 assembly (clang, -O2):
<_exit>:
push   %rax
call   1030 <_Exit@plt>

LLVM IR (-O0):
define void @_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
unreachable
}

LLVM IR (-O2):
define void @_exit(i32 %0) {
tail call void @_Exit(i32 %0)
unreachable
}
int inter_mercenary_sql_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @inter_mercenary_sql_init() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ WriteInstruction(char *);
void CR_DigUp(void) { WriteInstruction("call digu"); }


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

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

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

LLVM IR (-O2):
@.str = [10 x i8] c"call digu\00"
define void @CR_DigUp() {
%1 = tail call i32 @WriteInstruction(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *_s2_f2cstr(char *, long);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ ss2tsc(char *);
void ss2tsc_(char *whichscreens, long int ws_length) {
  char *ws = _s2_f2cstr(whichscreens, ws_length);
  ss2tsc(ws);
  free(ws);
}


x86 assembly (clang, -O0):
<ss2tsc_>:
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 <_s2_f2cstr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <ss2tsc@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ss2tsc_>:
push   %rbx
call   1040 <_s2_f2cstr@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <ss2tsc@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @ss2tsc_(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @_s2_f2cstr(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = call i32 @ss2tsc(i8* %9)
%11 = load i8*, i8** %5
%12 = call i32 @free(i8* %11)
ret void
}

LLVM IR (-O2):
define void @ss2tsc_(i8* %0, i64 %1) {
%3 = tail call i8* @_s2_f2cstr(i8* %0, i64 %1)
%4 = tail call i32 @ss2tsc(i8* %3)
%5 = tail call i32 @free(i8* %3)
ret void
}
/* Variables and functions */
int bitcount_(double *);
int bitcount(double *x) { return bitcount_(x); }


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

x86 assembly (clang, -O2):
<bitcount>:
jmp    1030 <bitcount_@plt>

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

LLVM IR (-O2):
define i32 @bitcount(double* %0) {
%2 = tail call i32 @bitcount_(double* %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ wint_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _DIAGASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ __fgetwc_unlock(int /*<<< orphan*/ *);
wint_t fgetwc(FILE *fp) {
  wint_t r;
  _DIAGASSERT(fp != NULL);
  ;
  r = __fgetwc_unlock(fp);
  ;
  return r;
}


x86 assembly (clang, -O0):
<fgetwc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <_DIAGASSERT@plt>
mov    -0x8(%rbp),%rdi
call   1040 <__fgetwc_unlock@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fgetwc>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1030 <_DIAGASSERT@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <__fgetwc_unlock@plt>

LLVM IR (-O0):
define i32 @fgetwc(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = icmp ne i32* %4, null
%6 = zext i1 %5 to i32
%7 = call i32 @_DIAGASSERT(i32 %6)
%8 = load i32*, i32** %2
%9 = call i32 @__fgetwc_unlock(i32* %8)
store i32 %9, i32* %3
%10 = load i32, i32* %3
ret i32 %10
}

LLVM IR (-O2):
define i32 @fgetwc(i32* %0) {
%2 = icmp ne i32* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @_DIAGASSERT(i32 %3)
%5 = tail call i32 @__fgetwc_unlock(i32* %0)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fgeth(int /*<<< orphan*/ *);
int fgetint(register FILE *f, register int *i) {
  *i = fgeth(f);
  fgeth(f);
  return 1;
}


x86 assembly (clang, -O0):
<fgetint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgeth@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rdi
call   1030 <fgeth@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fgetint>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <fgeth@plt>
mov    %eax,(%r14)
mov    %rbx,%rdi
call   1030 <fgeth@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @fgetint(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 = call i32 @fgeth(i32* %5)
%7 = load i32*, i32** %4
store i32 %6, i32* %7
%8 = load i32*, i32** %3
%9 = call i32 @fgeth(i32* %8)
ret i32 1
}

LLVM IR (-O2):
define i32 @fgetint(i32* %0, i32* nocapture writeonly %1) {
%3 = tail call i32 @fgeth(i32* %0)
store i32 %3, i32* %1
%4 = tail call i32 @fgeth(i32* %0)
ret i32 1
}
__attribute__((always_)) void debug_check_no_locks_freed(const void *from,
                                                         unsigned long len) {}


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

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

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

LLVM IR (-O2):
define void @debug_check_no_locks_freed(i8* nocapture %0, i64 %1) {
ret void
}
/* Variables and functions */
int sv_deinit();
int vox_deinit() { return sv_deinit(); }


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

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

LLVM IR (-O0):
define i32 @vox_deinit() {
%1 = call i32 (...) @sv_deinit()
ret i32 %1
}

LLVM IR (-O2):
define i32 @vox_deinit() {
%1 = tail call i32 (...) @sv_deinit()
ret i32 %1
}
int lm_rem_lockspace_dlm(struct lockspace *ls, int free_vg) { return -1; }


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

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

LLVM IR (-O0):
%struct.lockspace = type opaque
define i32 @lm_rem_lockspace_dlm(%struct.lockspace* %0, i32 %1) {
%3 = alloca %struct.lockspace*
%4 = alloca i32
store %struct.lockspace* %0, %struct.lockspace** %3
store i32 %1, i32* %4
ret i32 -1
}

LLVM IR (-O2):
%struct.lockspace = type opaque
define i32 @lm_rem_lockspace_dlm(%struct.lockspace* nocapture readnone %0, i32 %1) {
ret i32 -1
}
double maximum(double a, double b) {
  if (a > b) {
    return (a);
  }
  return (b);
}


x86 assembly (clang, -O0):
<maximum>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    112d <maximum+0x2d>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1137 <maximum+0x37>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<maximum>:
maxsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @maximum(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = load double, double* %5
%8 = fcmp ogt double %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load double, double* %4
store double %10, double* %3
br label %13
11: ; preds = %2
%12 = load double, double* %5
store double %12, double* %3
br label %13
13: ; preds = %11, %9
%14 = load double, double* %3
ret double %14
}

LLVM IR (-O2):
define double @maximum(double %0, double %1) {
%3 = fcmp ogt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
void INT_Excep_DOC_DOPCF(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_DOC_DOPCF() {
ret void
}
/* Variables and functions */
double tanh(double);
double ladder_shape(double x) { return tanh(x); }


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

x86 assembly (clang, -O2):
<ladder_shape>:
jmp    1030 <tanh@plt>

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

LLVM IR (-O2):
define double @ladder_shape(double %0) {
%2 = tail call double @tanh(double %0)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void handle_error(char *error) {
  ;
  exit(-1);
}


x86 assembly (clang, -O0):
<handle_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0xffffffff,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<handle_error>:
push   %rax
mov    $0xffffffff,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @handle_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
define void @handle_error(i8* nocapture readnone %0) {
%2 = tail call i32 @exit(i32 -1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ test_common();
int /*<<< orphan*/ test_cpy();
int /*<<< orphan*/ test_eq();
int /*<<< orphan*/ test_join();
int /*<<< orphan*/ test_project();
int /*<<< orphan*/ test_rename();
int main(void) {
  test_rename();
  test_eq();
  test_cpy();
  test_join();
  test_project();
  test_common();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <test_rename@plt>
mov    $0x0,%al
call   1040 <test_eq@plt>
mov    $0x0,%al
call   1050 <test_cpy@plt>
mov    $0x0,%al
call   1030 <test_join@plt>
mov    $0x0,%al
call   1070 <test_project@plt>
mov    $0x0,%al
call   1060 <test_common@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <test_rename@plt>
xor    %eax,%eax
call   1040 <test_eq@plt>
xor    %eax,%eax
call   1050 <test_cpy@plt>
xor    %eax,%eax
call   1030 <test_join@plt>
xor    %eax,%eax
call   1070 <test_project@plt>
xor    %eax,%eax
call   1060 <test_common@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_rename()
%3 = call i32 (...) @test_eq()
%4 = call i32 (...) @test_cpy()
%5 = call i32 (...) @test_join()
%6 = call i32 (...) @test_project()
%7 = call i32 (...) @test_common()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_rename()
%2 = tail call i32 (...) @test_eq()
%3 = tail call i32 (...) @test_cpy()
%4 = tail call i32 (...) @test_join()
%5 = tail call i32 (...) @test_project()
%6 = tail call i32 (...) @test_common()
ret i32 0
}
/* Variables and functions */
int _syslog(int, char *, int);
int klogctl(int type, char *buf, int len) { return (_syslog(type, buf, len)); }


x86 assembly (clang, -O0):
<klogctl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <_syslog@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<klogctl>:
jmp    1030 <_syslog@plt>

LLVM IR (-O0):
define i32 @klogctl(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @_syslog(i32 %7, i8* %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @klogctl(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 @_syslog(i32 %0, i8* %1, i32 %2)
ret i32 %4
}
int do_453() { return 453; }


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

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

LLVM IR (-O0):
define i32 @do_453() {
ret i32 453
}

LLVM IR (-O2):
define i32 @do_453() {
ret i32 453
}
/* Type definitions */
struct vec2 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ vec2_rotate(float *, float *, float);
__attribute__((always_)) struct vec2 *
psvec2_rotate(struct vec2 *result, struct vec2 *a, float angle) {
  vec2_rotate((float *)result, (float *)a, angle);
  return result;
}


x86 assembly (clang, -O0):
<psvec2_rotate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movss  -0x14(%rbp),%xmm0
call   1030 <vec2_rotate@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psvec2_rotate>:
push   %rbx
mov    %rdi,%rbx
call   1030 <vec2_rotate@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.vec2 = type { i32 }
define %struct.vec2* @psvec2_rotate(%struct.vec2* %0, %struct.vec2* %1, float %2) {
%4 = alloca %struct.vec2*
%5 = alloca %struct.vec2*
%6 = alloca float
store %struct.vec2* %0, %struct.vec2** %4
store %struct.vec2* %1, %struct.vec2** %5
store float %2, float* %6
%7 = load %struct.vec2*, %struct.vec2** %4
%8 = bitcast %struct.vec2* %7 to float*
%9 = load %struct.vec2*, %struct.vec2** %5
%10 = bitcast %struct.vec2* %9 to float*
%11 = load float, float* %6
%12 = call i32 @vec2_rotate(float* %8, float* %10, float %11)
%13 = load %struct.vec2*, %struct.vec2** %4
ret %struct.vec2* %13
}

LLVM IR (-O2):
%struct.vec2 = type { i32 }
define %struct.vec2* @psvec2_rotate(%struct.vec2* returned %0, %struct.vec2* %1, float %2) {
%4 = bitcast %struct.vec2* %0 to float*
%5 = bitcast %struct.vec2* %1 to float*
%6 = tail call i32 @vec2_rotate(float* %4, float* %5, float %2)
ret %struct.vec2* %0
}