xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ SSL;

/* Variables and functions */
int custom_ext_1_cli_parse_cb(SSL *s, unsigned int ext_type,
                              const unsigned char *in, size_t inlen, int *al,
                              void *arg) {
  return 1;
}


x86 assembly (clang, -O0):
<custom_ext_1_cli_parse_cb>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @custom_ext_1_cli_parse_cb(i32* %0, i32 %1, i8* %2, i64 %3, i32* %4, i8* %5) {
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32*
%12 = alloca i8*
store i32* %0, i32** %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i64 %3, i64* %10
store i32* %4, i32** %11
store i8* %5, i8** %12
ret i32 1
}

LLVM IR (-O2):
define i32 @custom_ext_1_cli_parse_cb(i32* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i64 %3, i32* nocapture readnone %4, i8* nocapture readnone %5) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ core3_swap(char *, int);
void U_EMRSETLAYOUT_swap(char *record, int torev) { core3_swap(record, torev); }


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

x86 assembly (clang, -O2):
<U_EMRSETLAYOUT_swap>:
jmp    1030 <core3_swap@plt>

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

LLVM IR (-O2):
define void @U_EMRSETLAYOUT_swap(i8* %0, i32 %1) {
%3 = tail call i32 @core3_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ remove(char *);
void dinfo_free_devnode(char *device) {
  if (remove(device)) {
    printf("Warning: Could not remove "
           "temporary file %s",
           device);
  }
}


x86 assembly (clang, -O0):
<dinfo_free_devnode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <remove@plt>
cmp    $0x0,%rax
je     114f <dinfo_free_devnode+0x2f>
mov    -0x8(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dinfo_free_devnode>:
push   %rbx
mov    %rdi,%rbx
call   1030 <remove@plt>
test   %rax,%rax
je     113e <dinfo_free_devnode+0x1e>
lea    0xecb(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Warning: Could not remove temporary file %s\00"
define void @dinfo_free_devnode(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @remove(i8* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"Warning: Could not remove temporary file %s\00"
define void @dinfo_free_devnode(i8* %0) {
%2 = tail call i64 @remove(i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %4, %1
ret void
}
int fun110() { return 110; }


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

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

LLVM IR (-O0):
define i32 @fun110() {
ret i32 110
}

LLVM IR (-O2):
define i32 @fun110() {
ret i32 110
}
/* Variables and functions */
int netConnect(char *, int);
int /*<<< orphan*/ noWarnAbort();
int netMustConnect(char *hostName, int port) {
  int sd = netConnect(hostName, port);
  if (sd < 0)
    noWarnAbort();
  return sd;
}


x86 assembly (clang, -O0):
<netMustConnect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <netConnect@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    114f <netMustConnect+0x2f>
mov    $0x0,%al
call   1030 <noWarnAbort@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<netMustConnect>:
push   %rbx
call   1040 <netConnect@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1133 <netMustConnect+0x13>
xor    %eax,%eax
call   1030 <noWarnAbort@plt>
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @netMustConnect(i8* %0, i32 %1) {
%3 = tail call i32 @netConnect(i8* %0, i32 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @noWarnAbort()
br label %7
7: ; preds = %5, %2
ret i32 %3
}
/* Variables and functions */
const char *show_null_as_the_string_null(const char *string) {
  return (string == NULL ? "NULL" : string);
}


x86 assembly (clang, -O0):
<show_null_as_the_string_null>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1123 <show_null_as_the_string_null+0x23>
lea    0xee6(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    112b <show_null_as_the_string_null+0x2b>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_null_as_the_string_null>:
test   %rdi,%rdi
lea    0xef6(%rip),%rax
cmovne %rdi,%rax
ret

LLVM IR (-O0):
@.str = [5 x i8] c"NULL\00"
define i8* @show_null_as_the_string_null(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = load i8*, i8** %2
br label %8
8: ; preds = %6, %5
%9 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %5 ], [ %7, %6 ]
ret i8* %9
}

LLVM IR (-O2):
@.str = [5 x i8] c"NULL\00"
define i8* @show_null_as_the_string_null(i8* readnone %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0
ret i8* %3
}
/* Variables and functions */
int F(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, const char *argv[]) {
  int n;
  scanf("%d", &n);
  printf("%d", F(n));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x14(%rbp),%edi
call   1030 <F@plt>
mov    %eax,%esi
lea    0xe99(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
call   1030 <F@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%6 = load i32, i32* %3
%7 = call i32 @F(i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 0
}
int egsy_gcm_csr_hashout1_set(unsigned int dev_id,
                              union egsy_gcm_csr_hashout1_u *value) {
  return 1;
}


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

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

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

LLVM IR (-O2):
%union.egsy_gcm_csr_hashout1_u = type opaque
define i32 @egsy_gcm_csr_hashout1_set(i32 %0, %union.egsy_gcm_csr_hashout1_u* nocapture readnone %1) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ callee_function(int);
void caller_function() { callee_function(0xdede); }


x86 assembly (clang, -O0):
<caller_function>:
push   %rbp
mov    %rsp,%rbp
mov    $0xdede,%edi
call   1030 <callee_function@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<caller_function>:
mov    $0xdede,%edi
jmp    1030 <callee_function@plt>

LLVM IR (-O0):
define void @caller_function() {
%1 = call i32 @callee_function(i32 57054)
ret void
}

LLVM IR (-O2):
define void @caller_function() {
%1 = tail call i32 @callee_function(i32 57054)
ret void
}
void getExpire(void) {
  _serverPanic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/"
               "heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c",
               75, "Function '%s' is disabled.", __func__);
}


x86 assembly (clang, -O0):
<getExpire>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x4b,%esi
lea    0xf79(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    $0x0,%al
call   1030 <_serverPanic@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<getExpire>:
lea    0xee9(%rip),%rdi
lea    0xf82(%rip),%rdx
lea    0xf96(%rip),%rcx
mov    $0x4b,%esi
xor    %eax,%eax
jmp    1030 <_serverPanic@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.getExpire = [10 x i8] c"getExpire\00"
define void @getExpire() {
%1 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 75, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__func__.getExpire, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.getExpire = [10 x i8] c"getExpire\00"
define void @getExpire() {
%1 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 75, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__func__.getExpire, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRBE_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_WMRBE_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

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

LLVM IR (-O2):
define void @U_WMRBE_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
void swap(int *x, int *y) {
  if (x != y) {
    *x = *x ^ *y;
    *y = *x ^ *y;
    *x = *x ^ *y;
  }
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     1150 <swap+0x50>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
xor    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
xor    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
xor    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
cmp    %rsi,%rdi
je     1111 <swap+0x11>
mov    (%rsi),%eax
xor    (%rdi),%eax
mov    %eax,(%rdi)
xor    (%rsi),%eax
mov    %eax,(%rsi)
xor    %eax,(%rdi)
ret

LLVM IR (-O0):
define void @swap(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 = icmp ne i32* %5, %6
br i1 %7, label %8, label %27
8: ; preds = %2
%9 = load i32*, i32** %3
%10 = load i32, i32* %9
%11 = load i32*, i32** %4
%12 = load i32, i32* %11
%13 = xor i32 %10, %12
%14 = load i32*, i32** %3
store i32 %13, i32* %14
%15 = load i32*, i32** %3
%16 = load i32, i32* %15
%17 = load i32*, i32** %4
%18 = load i32, i32* %17
%19 = xor i32 %16, %18
%20 = load i32*, i32** %4
store i32 %19, i32* %20
%21 = load i32*, i32** %3
%22 = load i32, i32* %21
%23 = load i32*, i32** %4
%24 = load i32, i32* %23
%25 = xor i32 %22, %24
%26 = load i32*, i32** %3
store i32 %25, i32* %26
br label %27
27: ; preds = %8, %2
ret void
}

LLVM IR (-O2):
define void @swap(i32* %0, i32* %1) {
%3 = icmp eq i32* %0, %1
br i1 %3, label %12, label %4
4: ; preds = %2
%5 = load i32, i32* %0
%6 = load i32, i32* %1
%7 = xor i32 %6, %5
store i32 %7, i32* %0
%8 = load i32, i32* %1
%9 = xor i32 %8, %7
store i32 %9, i32* %1
%10 = load i32, i32* %0
%11 = xor i32 %10, %9
store i32 %11, i32* %0
br label %12
12: ; preds = %4, %2
ret void
}
int gui_start() { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @gui_start() {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ error_msg(char *);
int /*<<< orphan*/ player_set_rg_preamp(double);
double strtod(char const *, char **);
void set_replaygain_preamp(unsigned int id, const char *buf) {
  double val;
  char *end;
  val = strtod(buf, &end);
  if (end == buf) {
    error_msg("floating point number expected (dB)");
    return;
  }
  player_set_rg_preamp(val);
}


x86 assembly (clang, -O0):
<set_replaygain_preamp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <strtod@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1170 <set_replaygain_preamp+0x40>
lea    0xe9a(%rip),%rdi
call   1030 <error_msg@plt>
jmp    117a <set_replaygain_preamp+0x4a>
movsd  -0x18(%rbp),%xmm0
call   1050 <player_set_rg_preamp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_replaygain_preamp>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <strtod@plt>
cmp    %rbx,0x8(%rsp)
je     1156 <set_replaygain_preamp+0x26>
add    $0x10,%rsp
pop    %rbx
jmp    1050 <player_set_rg_preamp@plt>
lea    0xea3(%rip),%rdi
add    $0x10,%rsp
pop    %rbx
jmp    1030 <error_msg@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"floating point number expected (dB)\00"
define void @set_replaygain_preamp(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca double
%6 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = call double @strtod(i8* %7, i8** %6)
store double %8, double* %5
%9 = load i8*, i8** %6
%10 = load i8*, i8** %4
%11 = icmp eq i8* %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @error_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
br label %17
14: ; preds = %2
%15 = load double, double* %5
%16 = call i32 @player_set_rg_preamp(double %15)
br label %17
17: ; preds = %14, %12
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"floating point number expected (dB)\00"
define void @set_replaygain_preamp(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
%5 = call double @strtod(i8* %1, i8** %3)
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, %1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @error_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
br label %12
10: ; preds = %2
%11 = tail call i32 @player_set_rg_preamp(double %5)
br label %12
12: ; preds = %10, %8
ret void
}
void gdk_keyval_to_upper() {}


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

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

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

LLVM IR (-O2):
define void @gdk_keyval_to_upper() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void *malloc(size_t);
void *xmalloc(size_t sz) {
  void *ret;
  ret = malloc(sz);
  if (!ret)
    abort();
  return ret;
}


x86 assembly (clang, -O0):
<xmalloc>:
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    114b <xmalloc+0x2b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %rax
call   1040 <malloc@plt>
test   %rax,%rax
je     112d <xmalloc+0xd>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i8* @xmalloc(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 ne i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = call i32 (...) @abort()
unreachable
10: ; preds = %1
%11 = load i8*, i8** %3
ret i8* %11
}

LLVM IR (-O2):
define noalias i8* @xmalloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %1
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int unmap(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wgetch(int /*<<< orphan*/ *);
int getmapped(WINDOW *w) { return (unmap(w, wgetch(w))); }


x86 assembly (clang, -O0):
<getmapped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <wgetch@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%esi
call   1030 <unmap@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getmapped>:
push   %rbx
mov    %rdi,%rbx
call   1040 <wgetch@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1030 <unmap@plt>

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

LLVM IR (-O2):
define i32 @getmapped(i32* %0) {
%2 = tail call i32 @wgetch(i32* %0)
%3 = tail call i32 @unmap(i32* %0, i32 %2)
ret i32 %3
}
void platform_udc_dtd_prepare(void) {}


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

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

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

LLVM IR (-O2):
define void @platform_udc_dtd_prepare() {
ret void
}
/* Variables and functions */
unsigned int sys_call(int, unsigned int, int, int /*<<< orphan*/,
                      int /*<<< orphan*/);
unsigned int tty_getc_irq(char *byte) {
  unsigned int ret = 0;
  while (ret == 0) {
    ret = sys_call(0x0A, (unsigned int)byte, 1, 0, 0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<tty_getc_irq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1150 <tty_getc_irq+0x40>
mov    -0x8(%rbp),%rax
mov    %eax,%esi
mov    $0xa,%edi
mov    $0x1,%edx
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1030 <sys_call@plt>
mov    %eax,-0xc(%rbp)
jmp    1123 <tty_getc_irq+0x13>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tty_getc_irq>:
push   %rbx
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
mov    %ebx,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <sys_call@plt>
test   %eax,%eax
je     1120 <tty_getc_irq+0x10>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @tty_getc_irq(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
br label %4
4: ; preds = %1, %4
%5 = tail call i32 @sys_call(i32 10, i32 %3, i32 1, i32 0, i32 0)
%6 = icmp eq i32 %5, 0
br i1 %6, label %4, label %7
7: ; preds = %4
ret i32 0
}
void CG_InitTeamChat() {}


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

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

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

LLVM IR (-O2):
define void @CG_InitTeamChat() {
ret void
}
int f0(int a, int b) { return a + b; }


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

x86 assembly (clang, -O2):
<f0>:
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @f0(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 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @f0(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
void init_group(void) { return; }


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

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

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

LLVM IR (-O2):
define void @init_group() {
ret void
}
void flex_test() {}


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

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

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

LLVM IR (-O2):
define void @flex_test() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ eputc(char);
int /*<<< orphan*/ eputnegd(int);
void eputd(int i) {
  if (i < 0) {
    eputc('-');
  } else {
    i = -i;
  }
  eputnegd(i);
}


x86 assembly (clang, -O0):
<eputd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1144 <eputd+0x24>
mov    $0x2d,%edi
call   1040 <eputc@plt>
jmp    114c <eputd+0x2c>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <eputnegd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eputd>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
js     112b <eputd+0xb>
neg    %ebx
jmp    1135 <eputd+0x15>
mov    $0x2d,%edi
call   1040 <eputc@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <eputnegd@plt>

LLVM IR (-O0):
define void @eputd(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @eputc(i8 signext 45)
br label %10
7: ; preds = %1
%8 = load i32, i32* %2
%9 = sub nsw i32 0, %8
store i32 %9, i32* %2
br label %10
10: ; preds = %7, %5
%11 = load i32, i32* %2
%12 = call i32 @eputnegd(i32 %11)
ret void
}

LLVM IR (-O2):
define void @eputd(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @eputc(i8 signext 45)
br label %7
5: ; preds = %1
%6 = sub nsw i32 0, %0
br label %7
7: ; preds = %5, %3
%8 = phi i32 [ %0, %3 ], [ %6, %5 ]
%9 = tail call i32 @eputnegd(i32 %8)
ret void
}
int vfs_dq_alloc_inode(struct inode *inode) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.inode = type opaque
define i32 @vfs_dq_alloc_inode(%struct.inode* nocapture readnone %0) {
ret i32 0
}
adrreg0reg1_set(r0, r1, x0, x1, p0, p1) char r0, r1;
char *p0, *p1;
{ (p0[10000000]) = r1; }


x86 assembly (clang, -O0):
<adrreg0reg1_set>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %dil,%sil
mov    %sil,-0x5(%rbp)
mov    %al,-0x6(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x6(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %cl,0x989680(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adrreg0reg1_set>:
mov    %sil,0x989680(%r8)
ret

LLVM IR (-O0):
define i32 @adrreg0reg1_set(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = trunc i32 %0 to i8
%15 = trunc i32 %1 to i8
store i8 %14, i8* %8
store i8 %15, i8* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i8* %4, i8** %12
store i8* %5, i8** %13
%16 = load i8, i8* %9
%17 = load i8*, i8** %12
%18 = getelementptr inbounds i8, i8* %17, i64 10000000
store i8 %16, i8* %18
%19 = load i32, i32* %7
ret i32 %19
}

LLVM IR (-O2):
define i32 @adrreg0reg1_set(i32 %0, i32 %1, i32 %2, i32 %3, i8* nocapture writeonly %4, i8* nocapture readnone %5) {
%7 = trunc i32 %1 to i8
%8 = getelementptr inbounds i8, i8* %4, i64 10000000
store i8 %7, i8* %8
ret i32 undef
}
void acc() {}


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

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

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

LLVM IR (-O2):
define void @acc() {
ret void
}
int gui_window_utf_char_valid(const char *utf_char) {
  if ((((unsigned char)(utf_char[0]) == 146) ||
       ((unsigned char)(utf_char[0]) == 0x7F)) &&
      (!utf_char[1]))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<gui_window_utf_char_valid>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x92,%eax
je     112a <gui_window_utf_char_valid+0x2a>
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x7f,%eax
jne    1144 <gui_window_utf_char_valid+0x44>
mov    -0x10(%rbp),%rax
cmpb   $0x0,0x1(%rax)
jne    1144 <gui_window_utf_char_valid+0x44>
movl   $0x0,-0x4(%rbp)
jmp    114b <gui_window_utf_char_valid+0x4b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_window_utf_char_valid>:
mov    (%rdi),%al
cmp    $0x7f,%al
je     110a <gui_window_utf_char_valid+0xa>
cmp    $0x92,%al
jne    1110 <gui_window_utf_char_valid+0x10>
cmpb   $0x0,0x1(%rdi)
je     1116 <gui_window_utf_char_valid+0x16>
mov    $0x1,%eax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @gui_window_utf_char_valid(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = icmp eq i32 %7, 146
br i1 %8, label %15, label %9
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = icmp eq i32 %13, 127
br i1 %14, label %15, label %21
15: ; preds = %9, %1
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = load i8, i8* %17
%19 = icmp ne i8 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %15
store i32 0, i32* %2
br label %22
21: ; preds = %15, %9
store i32 1, i32* %2
br label %22
22: ; preds = %21, %20
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @gui_window_utf_char_valid(i8* nocapture %0) {
%2 = load i8, i8* %0
switch i8 %2, label %7 [
i8 -110, label %3
i8 127, label %3
]
3: ; preds = %1, %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1, %3
br label %8
8: ; preds = %3, %7
%9 = phi i32 [ 1, %7 ], [ 0, %3 ]
ret i32 %9
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int /*<<< orphan*/ fts_name;
};
typedef TYPE_1__ FTSENT;

/* Variables and functions */
int strcmp(int /*<<< orphan*/, int /*<<< orphan*/);
int compare(const FTSENT **one, const FTSENT **two) {
  return strcmp((*one)->fts_name, (*two)->fts_name);
}


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

x86 assembly (clang, -O2):
<compare>:
mov    (%rdi),%rax
mov    (%rax),%edi
mov    (%rsi),%rax
mov    (%rax),%esi
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32 }
define i32 @compare(%struct.TYPE_4__** %0, %struct.TYPE_4__** %1) {
%3 = alloca %struct.TYPE_4__**
%4 = alloca %struct.TYPE_4__**
store %struct.TYPE_4__** %0, %struct.TYPE_4__*** %3
store %struct.TYPE_4__** %1, %struct.TYPE_4__*** %4
%5 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %3
%6 = load %struct.TYPE_4__*, %struct.TYPE_4__** %5
%7 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %6, i32 0, i32 0
%8 = load i32, i32* %7
%9 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %4
%10 = load %struct.TYPE_4__*, %struct.TYPE_4__** %9
%11 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 @strcmp(i32 %8, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32 }
define i32 @compare(%struct.TYPE_4__** nocapture %0, %struct.TYPE_4__** nocapture %1) {
%3 = load %struct.TYPE_4__*, %struct.TYPE_4__** %0
%4 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 0
%5 = load i32, i32* %4
%6 = load %struct.TYPE_4__*, %struct.TYPE_4__** %1
%7 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %6, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i32 @strcmp(i32 %5, i32 %8)
ret i32 %9
}
/* Variables and functions */
scalar_t__ bl_itostr_test();
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int failed = 0;
  if (bl_itostr_test() != 0) {
    ++failed;
  }
  printf("\n[SUITE ERR ] %d suite(s)\n", failed);
  return failed;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <bl_itostr_test@plt>
cmp    $0x0,%rax
je     1150 <main+0x30>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea6(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <bl_itostr_test@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
lea    0xec9(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"\0A[SUITE ERR ] %d suite(s)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i64 (...) @bl_itostr_test()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 1
store i32 %7, i32* %2
br label %8
8: ; preds = %5, %0
%9 = load i32, i32* %2
%10 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@.str = [27 x i8] c"\0A[SUITE ERR ] %d suite(s)\0A\00"
define i32 @main() {
%1 = tail call i64 (...) @bl_itostr_test()
%2 = icmp ne i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 %3
}
void else_ifs(int i) {
  if (i == 1) {
  } else if (i == 2) {
  } else if (i == 3) {
  } else if (i == 4) {
  } else if (i == 5) {
  }
}


x86 assembly (clang, -O0):
<else_ifs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    1116 <else_ifs+0x16>
jmp    1166 <else_ifs+0x66>
cmpl   $0x2,-0x4(%rbp)
jne    1125 <else_ifs+0x25>
jmp    1161 <else_ifs+0x61>
cmpl   $0x3,-0x4(%rbp)
jne    1134 <else_ifs+0x34>
jmp    115c <else_ifs+0x5c>
cmpl   $0x4,-0x4(%rbp)
jne    1143 <else_ifs+0x43>
jmp    1157 <else_ifs+0x57>
cmpl   $0x5,-0x4(%rbp)
jne    1152 <else_ifs+0x52>
jmp    1152 <else_ifs+0x52>
jmp    1157 <else_ifs+0x57>
jmp    115c <else_ifs+0x5c>
jmp    1161 <else_ifs+0x61>
jmp    1166 <else_ifs+0x66>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @else_ifs(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ delay(int);
int /*<<< orphan*/ mbus_remote_register_write(int, int, int);
void set_pmu_active_default(void) {
  mbus_remote_register_write(
      0x8, 0x18, ((3 << 14) | (0 << 13) | (1 << 9) | (2 << 5) | (10)));
  delay(200);
  mbus_remote_register_write(0x8, 0x16,
                             ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) |
                              (0 << 13) | (5 << 9) | (5 << 5) | (16)));
  delay(200);
  delay(200);
  mbus_remote_register_write(0x8, 0x1A,
                             ((0 << 13) | (8 << 9) | (4 << 5) | (16)));
  delay(200);
}


x86 assembly (clang, -O0):
<set_pmu_active_default>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
mov    $0x18,%esi
mov    $0xc24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x16,%esi
mov    $0xcab0,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x1a,%esi
mov    $0x1090,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pmu_active_default>:
push   %rax
mov    $0x8,%edi
mov    $0x18,%esi
mov    $0xc24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x16,%esi
mov    $0xcab0,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x1a,%esi
mov    $0x1090,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
pop    %rax
jmp    1030 <delay@plt>

LLVM IR (-O0):
define void @set_pmu_active_default() {
%1 = call i32 @mbus_remote_register_write(i32 8, i32 24, i32 49738)
%2 = call i32 @delay(i32 200)
%3 = call i32 @mbus_remote_register_write(i32 8, i32 22, i32 51888)
%4 = call i32 @delay(i32 200)
%5 = call i32 @delay(i32 200)
%6 = call i32 @mbus_remote_register_write(i32 8, i32 26, i32 4240)
%7 = call i32 @delay(i32 200)
ret void
}

LLVM IR (-O2):
define void @set_pmu_active_default() {
%1 = tail call i32 @mbus_remote_register_write(i32 8, i32 24, i32 49738)
%2 = tail call i32 @delay(i32 200)
%3 = tail call i32 @mbus_remote_register_write(i32 8, i32 22, i32 51888)
%4 = tail call i32 @delay(i32 200)
%5 = tail call i32 @delay(i32 200)
%6 = tail call i32 @mbus_remote_register_write(i32 8, i32 26, i32 4240)
%7 = tail call i32 @delay(i32 200)
ret void
}
/* Type definitions */
struct xdg_surface {
  int dummy;
};
struct wl_proxy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_marshal(struct wl_proxy *, int, char const *);
void xdg_surface_set_app_id(struct xdg_surface *xdg_surface,
                            const char *app_id) {
  wl_proxy_marshal((struct wl_proxy *)xdg_surface, 3, app_id);
}


x86 assembly (clang, -O0):
<xdg_surface_set_app_id>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x3,%esi
call   1030 <wl_proxy_marshal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xdg_surface_set_app_id>:
mov    %rsi,%rdx
mov    $0x3,%esi
jmp    1030 <wl_proxy_marshal@plt>

LLVM IR (-O0):
%struct.xdg_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @xdg_surface_set_app_id(%struct.xdg_surface* %0, i8* %1) {
%3 = alloca %struct.xdg_surface*
%4 = alloca i8*
store %struct.xdg_surface* %0, %struct.xdg_surface** %3
store i8* %1, i8** %4
%5 = load %struct.xdg_surface*, %struct.xdg_surface** %3
%6 = bitcast %struct.xdg_surface* %5 to %struct.wl_proxy*
%7 = load i8*, i8** %4
%8 = call i32 @wl_proxy_marshal(%struct.wl_proxy* %6, i32 3, i8* %7)
ret void
}

LLVM IR (-O2):
%struct.xdg_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @xdg_surface_set_app_id(%struct.xdg_surface* %0, i8* %1) {
%3 = bitcast %struct.xdg_surface* %0 to %struct.wl_proxy*
%4 = tail call i32 @wl_proxy_marshal(%struct.wl_proxy* %3, i32 3, i8* %1)
ret void
}
/* Variables and functions */
int DNSServiceCreateConnection(void **ptr) {
  *ptr = NULL;
  return 1;
}


x86 assembly (clang, -O0):
<DNSServiceCreateConnection>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<DNSServiceCreateConnection>:
movq   $0x0,(%rdi)
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @DNSServiceCreateConnection(i8** nocapture writeonly %0) {
store i8* null, i8** %0
ret i32 1
}
/* Variables and functions */
int *malloc(int);
int main() {
  int *p;
  int *q;
  p = malloc(4);
  q = malloc(4);
  if (p != q) {
  ERROR:
    goto ERROR;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     114c <main+0x3c>
jmp    1147 <main+0x37>
jmp    1147 <main+0x37>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,%rbx
mov    $0x4,%edi
call   1030 <malloc@plt>
cmp    %rax,%rbx
je     1132 <main+0x22>
nopl   (%rax)
jmp    1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32*
%2 = alloca i32*
%3 = call i32* @malloc(i32 4)
store i32* %3, i32** %1
%4 = call i32* @malloc(i32 4)
store i32* %4, i32** %2
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = icmp ne i32* %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
br label %9
9: ; preds = %9, %8
br label %9
10: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* @malloc(i32 4)
%2 = tail call i32* @malloc(i32 4)
%3 = icmp eq i32* %1, %2
br i1 %3, label %5, label %4
4: ; preds = %0, %4
br label %4
5: ; preds = %0
ret i32 0
}
int compare(const void *a, const void *b) {
  if (*(int *)a > *(int *)b)
    return 1;
  else if (*(int *)a < *(int *)b)
    return -1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<compare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jle    112a <compare+0x2a>
movl   $0x1,-0x4(%rbp)
jmp    114f <compare+0x4f>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jge    1148 <compare+0x48>
movl   $0xffffffff,-0x4(%rbp)
jmp    114f <compare+0x4f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare>:
mov    (%rdi),%eax
mov    (%rsi),%ecx
xor    %edx,%edx
cmp    %ecx,%eax
setl   %dl
neg    %edx
cmp    %ecx,%eax
mov    $0x1,%eax
cmovle %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @compare(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = icmp sgt i32 %4, %6
%8 = icmp slt i32 %4, %6
%9 = sext i1 %8 to i32
%10 = select i1 %7, i32 1, i32 %9
ret i32 %10
}
int test_imm_3Fuint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0x3F << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_3Fuint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 270582939648
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void sym_init(void) {}


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

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

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

LLVM IR (-O2):
define void @sym_init() {
ret void
}
/* Variables and functions */
int f485(int *);
int f486(int *p) { return f485(p); }


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

x86 assembly (clang, -O2):
<f486>:
jmp    1030 <f485@plt>

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

LLVM IR (-O2):
define i32 @f486(i32* %0) {
%2 = tail call i32 @f485(i32* %0)
ret i32 %2
}
void PL_cleanup(void) {}


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

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

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

LLVM IR (-O2):
define void @PL_cleanup() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sscanf(char *, char *, int *);
void console_ESC_D(char *esc_param) {
  int p[1];
  sscanf(esc_param, "%d", &p[0]);
}


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

x86 assembly (clang, -O2):
<console_ESC_D>:
push   %rax
lea    0xee8(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1030 <sscanf@plt>
pop    %rax
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @console_ESC_D(i8* nocapture %0) {
%2 = alloca [1 x i32]
%3 = bitcast [1 x i32]* %2 to i8*
%4 = getelementptr inbounds [1 x i32], [1 x i32]* %2, i64 0, i64 0
%5 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
ret void
}
int cpuhvfs_dvfsp_suspend(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @cpuhvfs_dvfsp_suspend() {
ret i32 0
}
int test_imm_C4int8_mem(signed char *val) {
  return ((*val) & (0xC4 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_C4int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -60
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}