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

/* Variables and functions */
int errno;
int pthread_cond_destroy(int /*<<< orphan*/ *);
int tosCondition_destroy(pthread_cond_t *cond) {
  int res = 0;
  res = pthread_cond_destroy(cond);
  if (res) {
    errno = res;
    res = -1;
  }
  return res;
}


x86 assembly (clang, -O0):
<tosCondition_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <pthread_cond_destroy@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     114c <tosCondition_destroy+0x3c>
mov    -0xc(%rbp),%ecx
mov    0x2e9d(%rip),%rax
mov    %ecx,(%rax)
movl   $0xffffffff,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tosCondition_destroy>:
push   %rax
call   1030 <pthread_cond_destroy@plt>
test   %eax,%eax
je     112a <tosCondition_destroy+0x1a>
mov    0x2ebf(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@errno = global i32 0
define i32 @tosCondition_destroy(i32* %0) {
%2 = tail call i32 @pthread_cond_destroy(i32* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %1
store i32 %2, i32* @errno
br label %5
5: ; preds = %4, %1
%6 = phi i32 [ -1, %4 ], [ 0, %1 ]
ret i32 %6
}
int x38_process_syn(struct mypacket *packet) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.mypacket = type opaque
define i32 @x38_process_syn(%struct.mypacket* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long);
int print_token(long l) {
  if (l == -1)
    return 0;
  printf("token(%ld)", l);
  return 0;
}


x86 assembly (clang, -O0):
<print_token>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0xffffffffffffffff,-0x10(%rbp)
jne    1133 <print_token+0x23>
movl   $0x0,-0x4(%rbp)
jmp    114a <print_token+0x3a>
mov    -0x10(%rbp),%rsi
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_token>:
cmp    $0xffffffffffffffff,%rdi
je     112a <print_token+0x1a>
push   %rax
mov    %rdi,%rsi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"token(%ld)\00"
define i32 @print_token(i64 %0) {
%2 = icmp eq i64 %0, -1
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i64 %0)
br label %5
5: ; preds = %1, %3
ret i32 0
}
/* Type definitions */
struct qu_config_context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct qu_config_context *);
int /*<<< orphan*/ qu_config_context_free(struct qu_config_context *);
void qu_config_parser_free(struct qu_config_context *ctx) {
  qu_config_context_free(ctx);
  free(ctx);
}


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

x86 assembly (clang, -O2):
<qu_config_parser_free>:
push   %rbx
mov    %rdi,%rbx
call   1040 <qu_config_context_free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.qu_config_context = type { i32 }
define void @qu_config_parser_free(%struct.qu_config_context* %0) {
%2 = alloca %struct.qu_config_context*
store %struct.qu_config_context* %0, %struct.qu_config_context** %2
%3 = load %struct.qu_config_context*, %struct.qu_config_context** %2
%4 = call i32 @qu_config_context_free(%struct.qu_config_context* %3)
%5 = load %struct.qu_config_context*, %struct.qu_config_context** %2
%6 = call i32 @free(%struct.qu_config_context* %5)
ret void
}

LLVM IR (-O2):
%struct.qu_config_context = type { i32 }
define void @qu_config_parser_free(%struct.qu_config_context* %0) {
%2 = tail call i32 @qu_config_context_free(%struct.qu_config_context* %0)
%3 = tail call i32 @free(%struct.qu_config_context* %0)
ret void
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
int /*<<< orphan*/ S_ISDIR(int /*<<< orphan*/);
scalar_t__ lstat(char const *, struct stat *);
int mc_path_isdir(const char *filename) {
  struct stat st;
  if (0 != lstat(filename, &st)) {
    return 0;
  }
  return !!S_ISDIR(st.st_mode);
}


x86 assembly (clang, -O0):
<mc_path_isdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <lstat@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     1153 <mc_path_isdir+0x33>
movl   $0x0,-0x4(%rbp)
jmp    116d <mc_path_isdir+0x4d>
mov    -0x18(%rbp),%edi
call   1030 <S_ISDIR@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mc_path_isdir>:
push   %rax
mov    %rsp,%rsi
call   1040 <lstat@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
je     1135 <mc_path_isdir+0x15>
pop    %rcx
ret
mov    (%rsp),%edi
call   1030 <S_ISDIR@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @mc_path_isdir(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i64 @lstat(i8* %5, %struct.stat* %4)
%7 = icmp ne i64 0, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, i32* %2
br label %17
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%11 = load i32, i32* %10
%12 = call i32 @S_ISDIR(i32 %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
%15 = xor i1 %14, true
%16 = zext i1 %15 to i32
store i32 %16, i32* %2
br label %17
17: ; preds = %9, %8
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @mc_path_isdir(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i64 @lstat(i8* %0, %struct.stat* %2)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i32 @S_ISDIR(i32 %8)
%10 = icmp ne i32 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %1, %6
%13 = phi i32 [ %11, %6 ], [ 0, %1 ]
ret i32 %13
}
void p16e_int_ports_rst(void) {}


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

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

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

LLVM IR (-O2):
define void @p16e_int_ports_rst() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void output_header(int size) {
  printf("#include <stdint.h>\n");
  printf("int32_t ngaImageCells = %d;\n", size);
  printf("int32_t ngaImage[] = { ");
}


x86 assembly (clang, -O0):
<output_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_header>:
push   %rbx
mov    %edi,%ebx
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"#include <stdint.h>\0A\00"
@.str.1 = [29 x i8] c"int32_t ngaImageCells = %d;\0A\00"
@.str.2 = [24 x i8] c"int32_t ngaImage[] = { \00"
define void @output_header(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"int32_t ngaImageCells = %d;\0A\00"
@.str.2 = [24 x i8] c"int32_t ngaImage[] = { \00"
@str = [20 x i8] c"#include <stdint.h>\00"
define void @output_header(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ draw_rectangle(int /*<<< orphan*/, int /*<<< orphan*/,
                                  char *);
int /*<<< orphan*/ to_point(int, int);
void draw_border() {
  draw_rectangle(to_point(-1, -1), to_point(16, 16),
                 "\033[1;47m"
                 "  ");
}


x86 assembly (clang, -O0):
<draw_border>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <to_point@plt>
mov    %eax,-0x4(%rbp)
mov    $0x10,%esi
mov    %esi,%edi
call   1040 <to_point@plt>
mov    -0x4(%rbp),%edi
mov    %eax,%esi
lea    0xeb1(%rip),%rdx
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_border>:
push   %rbx
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1040 <to_point@plt>
mov    %eax,%ebx
mov    $0x10,%edi
mov    $0x10,%esi
call   1040 <to_point@plt>
lea    0xeb8(%rip),%rdx
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1030 <draw_rectangle@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B[1;47m \00"
define void @draw_border() {
%1 = call i32 @to_point(i32 -1, i32 -1)
%2 = call i32 @to_point(i32 16, i32 16)
%3 = call i32 @draw_rectangle(i32 %1, i32 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B[1;47m \00"
define void @draw_border() {
%1 = tail call i32 @to_point(i32 -1, i32 -1)
%2 = tail call i32 @to_point(i32 16, i32 16)
%3 = tail call i32 @draw_rectangle(i32 %1, i32 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}
int goldbach(i, num) {
  int desc1;
  int desc2;
  desc1 = i;
  i = num - i;
  if (esprimo(i)) {
    desc2 = i;
    printf("%d = %d + %d \n", num, desc1, desc2);
  }
  i = desc1;
  return 0;
}


x86 assembly (clang, -O0):
<goldbach>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1040 <esprimo@plt>
cmp    $0x0,%eax
je     116d <goldbach+0x4d>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<goldbach>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebp
mov    %esi,%ebx
sub    %edi,%ebx
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <esprimo@plt>
test   %eax,%eax
je     114f <goldbach+0x2f>
lea    0xebf(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [15 x i8] c"%d = %d + %d \0A\00"
define i32 @goldbach(i32 %0, i32 %1) {
%3 = sub nsw i32 %1, %0
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @esprimo to i32 (i32, ...)*)(i32 %3)
%5 = icmp eq i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %0, i32 %3)
br label %8
8: ; preds = %6, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ execute(int);
int main(void) {
  if (execute(1) == 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
call   1040 <execute@plt>
cmp    $0x0,%rax
jne    114a <main+0x2a>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1040 <execute@plt>
test   %rax,%rax
je     1134 <main+0x14>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @execute(i32 1)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @execute(i32 1)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
ret i32 0
}
int hydra_connect_to_ssl(int socket) { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @hydra_connect_to_ssl(i32 %0) {
ret i32 -1
}
int tw1_compare_int(void *p1, void *p2) {
  if (*(unsigned int *)p1 < *(unsigned int *)p2)
    return -1;
  if (*(unsigned int *)p1 == *(unsigned int *)p2)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<tw1_compare_int>:
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
jae    112a <tw1_compare_int+0x2a>
movl   $0xffffffff,-0x4(%rbp)
jmp    114f <tw1_compare_int+0x4f>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jne    1148 <tw1_compare_int+0x48>
movl   $0x0,-0x4(%rbp)
jmp    114f <tw1_compare_int+0x4f>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tw1_compare_int>:
mov    (%rdi),%eax
xor    %ecx,%ecx
cmp    (%rsi),%eax
setne  %cl
mov    $0xffffffff,%eax
cmovae %ecx,%eax
ret

LLVM IR (-O0):
define i32 @tw1_compare_int(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 ult 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 eq i32 %17, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store i32 0, i32* %3
br label %24
23: ; preds = %14
store i32 1, i32* %3
br label %24
24: ; preds = %23, %22, %13
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
define i32 @tw1_compare_int(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 ult i32 %4, %6
%8 = icmp ne i32 %4, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
int __clzdi2(unsigned long long i) {
  int b;
  if (i == 0)
    return 0;
  for (b = 0; !(i & (1ULL << (sizeof(i) * 8 - 1))); ++b)
    i = (unsigned long long)i << 1;
  return b;
}


x86 assembly (clang, -O0):
<__clzdi2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    111f <__clzdi2+0x1f>
movl   $0x0,-0x4(%rbp)
jmp    116a <__clzdi2+0x6a>
movl   $0x0,-0x14(%rbp)
movabs $0x8000000000000000,%rax
and    -0x10(%rbp),%rax
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    114a <__clzdi2+0x4a>
jmp    1164 <__clzdi2+0x64>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <__clzdi2+0x26>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__clzdi2>:
xor    %eax,%eax
test   %rdi,%rdi
jle    111b <__clzdi2+0x1b>
nopw   0x0(%rax,%rax,1)
add    %rdi,%rdi
add    $0x1,%eax
test   %rdi,%rdi
jns    1110 <__clzdi2+0x10>
ret

LLVM IR (-O0):
define i32 @__clzdi2(i64 %0) {
%2 = alloca i32
%3 = alloca i64
%4 = alloca i32
store i64 %0, i64* %3
%5 = load i64, i64* %3
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, i32* %2
br label %22
8: ; preds = %1
store i32 0, i32* %4
br label %9
9: ; preds = %17, %8
%10 = load i64, i64* %3
%11 = and i64 %10, -9223372036854775808
%12 = icmp ne i64 %11, 0
%13 = xor i1 %12, true
br i1 %13, label %14, label %20
14: ; preds = %9
%15 = load i64, i64* %3
%16 = shl i64 %15, 1
store i64 %16, i64* %3
br label %17
17: ; preds = %14
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %4
br label %9
20: ; preds = %9
%21 = load i32, i32* %4
store i32 %21, i32* %2
br label %22
22: ; preds = %20, %7
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @__clzdi2(i64 %0) {
%2 = icmp sgt i64 %0, 0
br i1 %2, label %3, label %9
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i64 [ %6, %3 ], [ %0, %1 ]
%6 = shl nuw i64 %5, 1
%7 = add nuw nsw i32 %4, 1
%8 = icmp sgt i64 %6, -1
br i1 %8, label %3, label %9
9: ; preds = %3, %1
%10 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %10
}
void clear() { asm volatile("movl $0x2, %%eax; int $0x80" : : : "eax"); }


x86 assembly (clang, -O0):
<clear>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%eax
int    $0x80
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear>:
mov    $0x2,%eax
int    $0x80
ret

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

LLVM IR (-O2):
define void @clear() {
tail call void asm sideeffect "movl $$0x2, %eax; int $$0x80", "~{eax},~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
long strtol(char const *, char **, int);
int parse_cpu_id(const char *s) {
  char *endptr = NULL;
  long int cpu_id = strtol(s, &endptr, 10);
  if (endptr[0] != '\0') {
    fprintf(stderr, "Skipping affinity setting of: %s\n", s);
    cpu_id = -1;
  }
  return (int)cpu_id;
}


x86 assembly (clang, -O0):
<parse_cpu_id>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     117b <parse_cpu_id+0x5b>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe92(%rip),%rsi
call   1030 <fprintf@plt>
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_cpu_id>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movq   $0x0,0x8(%rsp)
lea    0x8(%rsp),%rsi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    0x8(%rsp),%rcx
cmpb   $0x0,(%rcx)
je     1169 <parse_cpu_id+0x49>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    $0xffffffffffffffff,%rax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"Skipping affinity setting of: %s\0A\00"
define i32 @parse_cpu_id(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %2
store i8* null, i8** %3
%5 = load i8*, i8** %2
%6 = call i64 @strtol(i8* %5, i8** %3, i32 10)
store i64 %6, i64* %4
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i64 0
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %1
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %2
%15 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %14)
store i64 -1, i64* %4
br label %16
16: ; preds = %12, %1
%17 = load i64, i64* %4
%18 = trunc i64 %17 to i32
ret i32 %18
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"Skipping affinity setting of: %s\0A\00"
define i32 @parse_cpu_id(i8* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%4 = call i64 @strtol(i8* %0, i8** %2, i32 10)
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %11
11: ; preds = %8, %1
%12 = phi i64 [ -1, %8 ], [ %4, %1 ]
%13 = trunc i64 %12 to i32
ret i32 %13
}
/* Variables and functions */
size_t ib_hash_func_int(const void *key) { return (size_t)key; }


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

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

LLVM IR (-O0):
define i64 @ib_hash_func_int(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = ptrtoint i8* %3 to i64
ret i64 %4
}

LLVM IR (-O2):
define i64 @ib_hash_func_int(i8* %0) {
%2 = ptrtoint i8* %0 to i64
ret i64 %2
}
/* Variables and functions */
double __infer_nondet_double();
double tgamma(double x) { return __infer_nondet_double(); }


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

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

LLVM IR (-O0):
define double @tgamma(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double (...) @__infer_nondet_double()
ret double %3
}

LLVM IR (-O2):
define double @tgamma(double %0) {
%2 = tail call double (...) @__infer_nondet_double()
ret double %2
}
int lm_add_lockspace_sanlock(struct lockspace *ls, int adopt) { return -1; }


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

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

LLVM IR (-O0):
%struct.lockspace = type opaque
define i32 @lm_add_lockspace_sanlock(%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_add_lockspace_sanlock(%struct.lockspace* nocapture readnone %0, i32 %1) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ list_dir(char *);
int main(int argc, char *argv[]) {
  list_dir(".");
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @list_dir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void printUsage() {
  printf("Usage:\n	\t-v, --version\t:Print the version Number\n	\t-h, "
         "--help\t:Print this help\n	\t-s, --search\t:Search for "
         "PackageName\n\t\t--search PackageName\n");
}


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

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

LLVM IR (-O0):
@.str = [142 x i8] c"Usage:\0A\09\09-v, --version\09:Print the version Number\0A\09\09-h, --help\09:Print this help\0A\09\09-s, --search\09:Search for PackageName\0A\09\09--search PackageName\0A\00"
define void @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [141 x i8] c"Usage:\0A\09\09-v, --version\09:Print the version Number\0A\09\09-h, --help\09:Print this help\0A\09\09-s, --search\09:Search for PackageName\0A\09\09--search PackageName\00"
define void @printUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([141 x i8], [141 x i8]* @str, i64 0, i64 0))
ret void
}
int ars_valid_layer(int layer) {
  if (layer < 0 || layer >= 16)
    return -4;
  return -0;
}


x86 assembly (clang, -O0):
<ars_valid_layer>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     111b <ars_valid_layer+0x1b>
cmpl   $0x10,-0x8(%rbp)
jl     1127 <ars_valid_layer+0x27>
movl   $0xfffffffc,-0x4(%rbp)
jmp    112e <ars_valid_layer+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ars_valid_layer>:
xor    %eax,%eax
cmp    $0x10,%edi
setb   %al
lea    -0x4(,%rax,4),%eax
ret

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

LLVM IR (-O2):
define i32 @ars_valid_layer(i32 %0) {
%2 = icmp ugt i32 %0, 15
%3 = select i1 %2, i32 -4, i32 0
ret i32 %3
}
/* Type definitions */
struct mem_block {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mem_block_footer_btag(struct mem_block *);
int /*<<< orphan*/ mem_block_header_btag(struct mem_block *);
int /*<<< orphan*/ mem_btag_clear_allocated(int /*<<< orphan*/);
void mem_block_clear_allocated(struct mem_block *block) {
  mem_btag_clear_allocated(mem_block_header_btag(block));
  mem_btag_clear_allocated(mem_block_footer_btag(block));
}


x86 assembly (clang, -O0):
<mem_block_clear_allocated>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <mem_block_header_btag@plt>
mov    %eax,%edi
call   1040 <mem_btag_clear_allocated@plt>
mov    -0x8(%rbp),%rdi
call   1030 <mem_block_footer_btag@plt>
mov    %eax,%edi
call   1040 <mem_btag_clear_allocated@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mem_block_clear_allocated>:
push   %rbx
mov    %rdi,%rbx
call   1050 <mem_block_header_btag@plt>
mov    %eax,%edi
call   1040 <mem_btag_clear_allocated@plt>
mov    %rbx,%rdi
call   1030 <mem_block_footer_btag@plt>
mov    %eax,%edi
pop    %rbx
jmp    1040 <mem_btag_clear_allocated@plt>

LLVM IR (-O0):
%struct.mem_block = type { i32 }
define void @mem_block_clear_allocated(%struct.mem_block* %0) {
%2 = alloca %struct.mem_block*
store %struct.mem_block* %0, %struct.mem_block** %2
%3 = load %struct.mem_block*, %struct.mem_block** %2
%4 = call i32 @mem_block_header_btag(%struct.mem_block* %3)
%5 = call i32 @mem_btag_clear_allocated(i32 %4)
%6 = load %struct.mem_block*, %struct.mem_block** %2
%7 = call i32 @mem_block_footer_btag(%struct.mem_block* %6)
%8 = call i32 @mem_btag_clear_allocated(i32 %7)
ret void
}

LLVM IR (-O2):
%struct.mem_block = type { i32 }
define void @mem_block_clear_allocated(%struct.mem_block* %0) {
%2 = tail call i32 @mem_block_header_btag(%struct.mem_block* %0)
%3 = tail call i32 @mem_btag_clear_allocated(i32 %2)
%4 = tail call i32 @mem_block_footer_btag(%struct.mem_block* %0)
%5 = tail call i32 @mem_btag_clear_allocated(i32 %4)
ret void
}
int fun410() { return 410; }


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

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

LLVM IR (-O0):
define i32 @fun410() {
ret i32 410
}

LLVM IR (-O2):
define i32 @fun410() {
ret i32 410
}
void test5() {
  const int *cip;
  void *vp;
  cip = 0 ? vp : cip;
}


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

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

LLVM IR (-O0):
define void @test5() {
%1 = alloca i32*
%2 = alloca i8*
%3 = load i32*, i32** %1
%4 = bitcast i32* %3 to i8*
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %1
ret void
}

LLVM IR (-O2):
define void @test5() {
ret void
}
int config_CARDREADER_STAPI(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @config_CARDREADER_STAPI() {
ret i32 0
}
__attribute__((always_)) void time_interpolator_reset(void) {}


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

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

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

LLVM IR (-O2):
define void @time_interpolator_reset() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int, ...);
int main(void) {
  int ones;
  unsigned value = 15;
  printf("\n**value is  %d**\n", value);
  for (ones = 0; value != 0; value >>= 1)
    if (value % 2 != 0)
      ones += 1;
  printf("\nValue is %d, return is %d\n\n", value, ones);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xf,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1173 <main+0x63>
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1160 <main+0x50>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1165 <main+0x55>
mov    -0xc(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113e <main+0x2e>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
xor    %esi,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"\0A**value is %d**\0A\00"
@.str.1 = [29 x i8] c"\0AValue is %d, return is %d\0A\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 15)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 4)
ret i32 0
}
/* Variables and functions */
void vector_bzero(void *s, size_t n) {
  char *t;
  if (n) {
    t = s;
    while (n) {
      *t++ = 0;
      n--;
    }
  }
}


x86 assembly (clang, -O0):
<vector_bzero>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1152 <vector_bzero+0x52>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     114d <vector_bzero+0x4d>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    111f <vector_bzero+0x1f>
jmp    1152 <vector_bzero+0x52>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vector_bzero>:
test   %rsi,%rsi
je     1124 <vector_bzero+0x14>
push   %rax
mov    %rsi,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

LLVM IR (-O0):
define void @vector_bzero(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 i64, i64* %4
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %19
8: ; preds = %2
%9 = load i8*, i8** %3
store i8* %9, i8** %5
br label %10
10: ; preds = %13, %8
%11 = load i64, i64* %4
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i32 1
store i8* %15, i8** %5
store i8 0, i8* %14
%16 = load i64, i64* %4
%17 = add i64 %16, -1
store i64 %17, i64* %4
br label %10
18: ; preds = %10
br label %19
19: ; preds = %18, %2
ret void
}

LLVM IR (-O2):
define void @vector_bzero(i8* nocapture writeonly %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %5, label %4
4: ; preds = %2
br label %5
5: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void init_2(void) { printf("init array 2\n"); }


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

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

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

LLVM IR (-O2):
@str = [13 x i8] c"init array 2\00"
define void @init_2() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int errno;
int remove(char const *);
void remove_f_(const char *path, int *ierr) {
  if (*ierr = remove(path))
    *ierr = errno;
}


x86 assembly (clang, -O0):
<remove_f_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <remove@plt>
mov    -0x10(%rbp),%rcx
mov    %eax,(%rcx)
cmp    $0x0,%eax
je     1147 <remove_f_+0x37>
mov    0x2ea1(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<remove_f_>:
push   %rbx
mov    %rsi,%rbx
call   1030 <remove@plt>
mov    %eax,(%rbx)
test   %eax,%eax
je     112a <remove_f_+0x1a>
mov    0x2eba(%rip),%rax
mov    (%rax),%eax
mov    %eax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
@errno = global i32 0
define void @remove_f_(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 = call i32 @remove(i8* %5)
%7 = load i32*, i32** %4
store i32 %6, i32* %7
%8 = icmp ne i32 %6, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, i32* @errno
%11 = load i32*, i32** %4
store i32 %10, i32* %11
br label %12
12: ; preds = %9, %2
ret void
}

LLVM IR (-O2):
@errno = global i32 0
define void @remove_f_(i8* nocapture %0, i32* nocapture writeonly %1) {
%3 = tail call i32 @remove(i8* %0)
store i32 %3, i32* %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = load i32, i32* @errno
store i32 %6, i32* %1
br label %7
7: ; preds = %5, %2
ret void
}
void yaml_get_version(int *major, int *minor, int *patch) {
  *major = 0;
  *minor = 1;
  *patch = 5;
}


x86 assembly (clang, -O0):
<yaml_get_version>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x5,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<yaml_get_version>:
movl   $0x0,(%rdi)
movl   $0x1,(%rsi)
movl   $0x5,(%rdx)
ret

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

LLVM IR (-O2):
define void @yaml_get_version(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
store i32 0, i32* %0
store i32 1, i32* %1
store i32 5, i32* %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ do_csi(char *, char const *);
void rm(const char *ps) { do_csi("%sl", ps); }


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"%sl\00"
define void @rm(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @do_csi(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"%sl\00"
define void @rm(i8* %0) {
%2 = tail call i32 @do_csi(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
const char *network_write_show_handlers(void) {
  return "\nNetwork handler:\n\n"
         "\t- linux-sendfile\n"
         "\t- freebsd-sendfile\n"
         "\t- darwin-sendfile\n"
         "\t- solaris-sendfilev\n"
         "\t- writev\n"
         "\t+ write\n"
         "\t- mmap support\n";
}


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

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

LLVM IR (-O0):
@.str = [133 x i8] c"\0ANetwork handler:\0A\0A\09- linux-sendfile\0A\09- freebsd-sendfile\0A\09- darwin-sendfile\0A\09- solaris-sendfilev\0A\09- writev\0A\09+ write\0A\09- mmap support\0A\00"
define i8* @network_write_show_handlers() {
ret i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [133 x i8] c"\0ANetwork handler:\0A\0A\09- linux-sendfile\0A\09- freebsd-sendfile\0A\09- darwin-sendfile\0A\09- solaris-sendfilev\0A\09- writev\0A\09+ write\0A\09- mmap support\0A\00"
define i8* @network_write_show_handlers() {
ret i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int _evdns_nameserver_add_impl(unsigned long, int);
int evdns_nameserver_add(unsigned long int address) {
  return _evdns_nameserver_add_impl(address, 53);
}


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

x86 assembly (clang, -O2):
<evdns_nameserver_add>:
mov    $0x35,%esi
jmp    1030 <_evdns_nameserver_add_impl@plt>

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

LLVM IR (-O2):
define i32 @evdns_nameserver_add(i64 %0) {
%2 = tail call i32 @_evdns_nameserver_add_impl(i64 %0, i32 53)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ DEBUG_ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ GPIOBaseValid(unsigned long);
void GPIOPinIntDisable(unsigned long ulPort, unsigned char ucPins) {
  DEBUG_ASSERT(GPIOBaseValid(ulPort));
  (*((volatile unsigned long *)(ulPort + 0x00000410))) &= ~(ucPins);
}


x86 assembly (clang, -O0):
<GPIOPinIntDisable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <GPIOBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
movzbl -0x9(%rbp),%eax
xor    $0xffffffff,%eax
movslq %eax,%rdx
mov    -0x8(%rbp),%rax
mov    0x410(%rax),%rcx
and    %rdx,%rcx
mov    %rcx,0x410(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPIOPinIntDisable>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
call   1030 <GPIOBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
mov    %ebp,%eax
not    %rax
and    %rax,0x410(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @GPIOPinIntDisable(i64 %0, i8 zeroext %1) {
%3 = alloca i64
%4 = alloca i8
store i64 %0, i64* %3
store i8 %1, i8* %4
%5 = load i64, i64* %3
%6 = call i32 @GPIOBaseValid(i64 %5)
%7 = call i32 @DEBUG_ASSERT(i32 %6)
%8 = load i8, i8* %4
%9 = zext i8 %8 to i32
%10 = xor i32 %9, -1
%11 = sext i32 %10 to i64
%12 = load i64, i64* %3
%13 = add i64 %12, 1040
%14 = inttoptr i64 %13 to i64*
%15 = load volatile i64, i64* %14
%16 = and i64 %15, %11
store volatile i64 %16, i64* %14
ret void
}

LLVM IR (-O2):
define void @GPIOPinIntDisable(i64 %0, i8 zeroext %1) {
%3 = tail call i32 @GPIOBaseValid(i64 %0)
%4 = tail call i32 @DEBUG_ASSERT(i32 %3)
%5 = zext i8 %1 to i64
%6 = xor i64 %5, -1
%7 = add i64 %0, 1040
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
%10 = and i64 %9, %6
store volatile i64 %10, i64* %8
ret void
}
int axp_set_ocv(void) {
  int ret = 0;
  return ret;
}


x86 assembly (clang, -O0):
<axp_set_ocv>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @axp_set_ocv() {
ret i32 0
}
/* Variables and functions */
scalar_t__ rint(double);
long long L_round(double v) { return (long long)rint(v); }


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

x86 assembly (clang, -O2):
<L_round>:
jmp    1030 <rint@plt>

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

LLVM IR (-O2):
define i64 @L_round(double %0) {
%2 = tail call i64 @rint(double %0)
ret i64 %2
}
/* Variables and functions */
int parse_fps(char const *, int /*<<< orphan*/, int /*<<< orphan*/);
int is_fps(const char *fps) { return parse_fps(fps, 0, 0); }


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

x86 assembly (clang, -O2):
<is_fps>:
xor    %esi,%esi
xor    %edx,%edx
jmp    1030 <parse_fps@plt>

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

LLVM IR (-O2):
define i32 @is_fps(i8* %0) {
%2 = tail call i32 @parse_fps(i8* %0, i32 0, i32 0)
ret i32 %2
}