xunge/DecIR huggingface dataset:
/* Variables and functions */
int EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int putchar(int);
void xputchar(int c) {
  int ret;
  ret = putchar(c);
  if (ret == EOF) {
    perror("fixdep");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<xputchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <putchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2e98(%rip),%rcx
cmp    (%rcx),%eax
jne    116e <xputchar+0x3e>
lea    0xea1(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xputchar>:
push   %rax
call   1030 <putchar@plt>
mov    0x2eab(%rip),%rcx
cmp    (%rcx),%eax
je     1143 <xputchar+0x13>
pop    %rax
ret
lea    0xeb6(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@EOF = global i32 0
@.str = [7 x i8] c"fixdep\00"
define void @xputchar(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @putchar(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @exit(i32 1)
unreachable
12: ; preds = %1
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
@.str = [7 x i8] c"fixdep\00"
define void @xputchar(i32 %0) {
%2 = tail call i32 @putchar(i32 %0)
%3 = load i32, i32* @EOF
%4 = icmp eq i32 %2, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %1
ret void
}
int fbcon_mode_deleted(struct fb_info *info, struct fb_videomode *mode) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.fb_info = type opaque
%struct.fb_videomode = type opaque
define i32 @fbcon_mode_deleted(%struct.fb_info* nocapture readnone %0, %struct.fb_videomode* nocapture readnone %1) {
ret i32 0
}
void _pobj_debug_notice(const char *api_name, const char *file, int line) {}


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

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

LLVM IR (-O0):
define void @_pobj_debug_notice(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
define void @_pobj_debug_notice(i8* nocapture %0, i8* nocapture %1, i32 %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, ("hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s "
                   "skip] [file ...]\n"));
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [77 x i8] c"hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [77 x i8] c"hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
int main() {
  int i;
  float *f;
  i = 1092616192;
  f = (float *)&i;
  printf("i address and f address are %ul and %ul\n", &i, &f);
  printf("i is %d and f is %f\n", i, *f);
  printf("int length float length %d %d\n", sizeof(int), sizeof(float));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x41200000,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xed6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x4,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x41200000,0xc(%rsp)
41
lea    0xc(%rsp),%rsi
mov    %rsi,0x10(%rsp)
lea    0xed3(%rip),%rdi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x10(%rsp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xed8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [41 x i8] c"i address and f address are %ul and %ul\0A\00"
@.str.1 = [21 x i8] c"i is %d and f is %f\0A\00"
@.str.2 = [31 x i8] c"int length float length %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float*
store i32 1092616192, i32* %1
%3 = bitcast i32* %1 to float*
store float* %3, float** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32* %1, float** %2)
%5 = load i32, i32* %1
%6 = load float*, float** %2
%7 = load float, float* %6
%8 = fpext float %7 to double
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %5, double %8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i64 4, i64 4)
ret i32 0
}

LLVM IR (-O2):
@.str = [41 x i8] c"i address and f address are %ul and %ul\0A\00"
@.str.1 = [21 x i8] c"i is %d and f is %f\0A\00"
@.str.2 = [31 x i8] c"int length float length %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float*
%3 = bitcast i32* %1 to i8*
%4 = bitcast float** %2 to i8*
store i32 1092616192, i32* %1
%5 = bitcast float** %2 to i32**
store i32* %1, i32** %5
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32* %1, float** %2)
%7 = load i32, i32* %1
%8 = load float*, float** %2
%9 = load float, float* %8
%10 = fpext float %9 to double
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %7, double %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i64 4, i64 4)
ret i32 0
}
void strtolower(char *str) {
  while (*str != '\0') {
    if (*str >= 'A' && *str <= 'Z') {
      *str = (char)(*str | (1 << 5));
    }
    str++;
  }
}


x86 assembly (clang, -O0):
<strtolower>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     115b <strtolower+0x5b>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     114a <strtolower+0x4a>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jg     114a <strtolower+0x4a>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
or     $0x20,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <strtolower+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strtolower>:
mov    (%rdi),%al
test   %al,%al
je     112a <strtolower+0x2a>
add    $0x1,%rdi
jmp    111b <strtolower+0x1b>
nopl   0x0(%rax)
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
je     112a <strtolower+0x2a>
lea    -0x41(%rax),%ecx
cmp    $0x19,%cl
ja     1110 <strtolower+0x10>
or     $0x20,%al
mov    %al,-0x1(%rdi)
jmp    1110 <strtolower+0x10>
ret

LLVM IR (-O0):
define void @strtolower(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %25, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %28
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp sge i32 %11, 65
br i1 %12, label %13, label %25
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 90
br i1 %17, label %18, label %25
18: ; preds = %13
%19 = load i8*, i8** %2
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = or i32 %21, 32
%23 = trunc i32 %22 to i8
%24 = load i8*, i8** %2
store i8 %23, i8* %24
br label %25
25: ; preds = %18, %13, %8
%26 = load i8*, i8** %2
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %2
br label %3
28: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @strtolower(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %11
%5 = phi i8 [ %13, %11 ], [ %2, %1 ]
%6 = phi i8* [ %12, %11 ], [ %0, %1 ]
%7 = add i8 %5, -65
%8 = icmp ult i8 %7, 26
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = or i8 %5, 32
store i8 %10, i8* %6
br label %11
11: ; preds = %9, %4
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %11, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int test();
int test_nodecl();
main() {
  int sz = test();
  if (sz != 32)
    abort();
  sz = test_nodecl();
  if (sz != 24)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <test@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
je     115a <main+0x2a>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1040 <test_nodecl@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x18,-0x8(%rbp)
je     1175 <main+0x45>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test@plt>
cmp    $0x20,%eax
jne    114d <main+0x1d>
xor    %eax,%eax
call   1040 <test_nodecl@plt>
cmp    $0x18,%eax
jne    114d <main+0x1d>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @test()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 32
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
%9 = call i32 (...) @test_nodecl()
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = icmp ne i32 %10, 24
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (...) @abort()
unreachable
14: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test()
%2 = icmp eq i32 %1, 32
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 (...) @test_nodecl()
%7 = icmp eq i32 %6, 24
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %5
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ WNOHANG;
int /*<<< orphan*/ waitpid(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
void handle_sigchld(int sig) {
  (void)sig;
  waitpid(-1, NULL, WNOHANG);
}


x86 assembly (clang, -O0):
<handle_sigchld>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <waitpid@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_sigchld>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%edi
xor    %esi,%esi
jmp    1030 <waitpid@plt>

LLVM IR (-O0):
@WNOHANG = global i32 0
define void @handle_sigchld(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @WNOHANG
%5 = call i32 @waitpid(i32 -1, i32* null, i32 %4)
ret void
}

LLVM IR (-O2):
@WNOHANG = global i32 0
define void @handle_sigchld(i32 %0) {
%2 = load i32, i32* @WNOHANG
%3 = tail call i32 @waitpid(i32 -1, i32* null, i32 %2)
ret void
}
void dhcp_snoop_deinit(struct hostapd_data *hapd) {}


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

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

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

LLVM IR (-O2):
%struct.hostapd_data = type opaque
define void @dhcp_snoop_deinit(%struct.hostapd_data* nocapture %0) {
ret void
}
/* Variables and functions */
int baudrate();
int wrap_baudrate(void) { return baudrate(); }


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

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

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

LLVM IR (-O2):
define i32 @wrap_baudrate() {
%1 = tail call i32 (...) @baudrate()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ crc32cleanup_be();
int /*<<< orphan*/ crc32cleanup_le();
void cleanup_crc32(void) {
  crc32cleanup_le();
  crc32cleanup_be();
}


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

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

LLVM IR (-O0):
define void @cleanup_crc32() {
%1 = call i32 (...) @crc32cleanup_le()
%2 = call i32 (...) @crc32cleanup_be()
ret void
}

LLVM IR (-O2):
define void @cleanup_crc32() {
%1 = tail call i32 (...) @crc32cleanup_le()
%2 = tail call i32 (...) @crc32cleanup_be()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char *);
int strlen(char *);
void account_name_from_filename(char filename[], char account[]) {
  sprintf(account, "%s", filename);
  account[strlen(filename) - 8] = 0;
}


x86 assembly (clang, -O0):
<account_name_from_filename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xec1(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
sub    $0x8,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<account_name_from_filename>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
movb   $0x0,-0x8(%rax,%r14,1)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define void @account_name_from_filename(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i8*, i8** %3
%7 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i8*, i8** %4
%9 = load i8*, i8** %3
%10 = call i32 @strlen(i8* %9)
%11 = sub nsw i32 %10, 8
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %8, i64 %12
store i8 0, i8* %13
ret void
}

LLVM IR (-O2):
define void @account_name_from_filename(i8* %0, i8* %1) {
%3 = tail call i8* @strcpy(i8* dereferenceable(1) %1, i8* dereferenceable(1) %0)
%4 = tail call i32 @strlen(i8* %0)
%5 = add nsw i32 %4, -8
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %1, i64 %6
store i8 0, i8* %7
ret void
}
int test_imm_DBint64_lowword_reg(long long val) {
  return ((val) & (0xDB << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_DBint64_lowword_reg>:
test   $0xdb,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_DBint64_lowword_reg(i64 %0) {
%2 = and i64 %0, 219
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ subwindow;
};
typedef TYPE_1__ XEnterWindowEvent;

/* Variables and functions */
unsigned long get_XEnterWindowEvent_subwindow(void *_p) {
  return (unsigned long)((XEnterWindowEvent *)_p)->subwindow;
}


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

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

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

LLVM IR (-O2):
define i64 @get_XEnterWindowEvent_subwindow(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
ret i64 %3
}
/* Variables and functions */
__attribute__((visibility("default"))) const char *
sd_bus_message_get_signature(void *m, int complete) {
  return NULL;
}


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

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

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

LLVM IR (-O2):
define noalias i8* @sd_bus_message_get_signature(i8* nocapture readnone %0, i32 %1) {
ret i8* null
}
int resort_free_list() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @resort_free_list() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ str_to_int(int);
int main(void) {
  str_to_int(200);
  str_to_int(200);
  str_to_int(245);
  str_to_int(-245);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xc8,%edi
call   1030 <str_to_int@plt>
mov    $0xc8,%edi
call   1030 <str_to_int@plt>
mov    $0xf5,%edi
call   1030 <str_to_int@plt>
mov    $0xffffff0b,%edi
call   1030 <str_to_int@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xc8,%edi
call   1030 <str_to_int@plt>
mov    $0xc8,%edi
call   1030 <str_to_int@plt>
mov    $0xf5,%edi
call   1030 <str_to_int@plt>
mov    $0xffffff0b,%edi
call   1030 <str_to_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @str_to_int(i32 200)
%3 = call i32 @str_to_int(i32 200)
%4 = call i32 @str_to_int(i32 245)
%5 = call i32 @str_to_int(i32 -245)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @str_to_int(i32 200)
%2 = tail call i32 @str_to_int(i32 200)
%3 = tail call i32 @str_to_int(i32 245)
%4 = tail call i32 @str_to_int(i32 -245)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ system(char *);
int x18_setup() {
  char cmd[256];
  sprintf(cmd,
          "iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags "
          "SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d",
          1);
  system(cmd);
  return 0;
}


x86 assembly (clang, -O0):
<x18_setup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
lea    -0x100(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x18_setup>:
push   %rbx
sub    $0x100,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x18_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = call i32 @system(i8* %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x18_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = call i32 @system(i8* %2)
ret i32 0
}
int ft_countchars(int n) {
  int i;
  i = 0;
  if (n == 0)
    i++;
  else if (n < 0)
    i++;
  else {
    while (n > 0) {
      i++;
      n /= 10;
    }
  }
  return (i);
}


x86 assembly (clang, -O0):
<ft_countchars>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1126 <ft_countchars+0x26>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1173 <ft_countchars+0x73>
cmpl   $0x0,-0x4(%rbp)
jge    113e <ft_countchars+0x3e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116e <ft_countchars+0x6e>
jmp    1143 <ft_countchars+0x43>
cmpl   $0x0,-0x4(%rbp)
jle    1169 <ft_countchars+0x69>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
jmp    1143 <ft_countchars+0x43>
jmp    116e <ft_countchars+0x6e>
jmp    1173 <ft_countchars+0x73>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_countchars>:
test   %edi,%edi
jle    1125 <ft_countchars+0x25>
xor    %eax,%eax
mov    $0xcccccccd,%ecx
nopl   0x0(%rax,%rax,1)
add    $0x1,%eax
mov    %edi,%edx
imul   %rcx,%rdx
shr    $0x23,%rdx
cmp    $0x9,%edi
mov    %edx,%edi
ja     1110 <ft_countchars+0x10>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @ft_countchars(i32 %0) {
%2 = icmp slt i32 %0, 1
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ 0, %1 ]
%5 = phi i32 [ %7, %3 ], [ %0, %1 ]
%6 = add nuw nsw i32 %4, 1
%7 = udiv i32 %5, 10
%8 = icmp ult i32 %5, 10
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 1, %1 ], [ %6, %3 ]
ret i32 %10
}
/* Variables and functions */
char *pipe2string(char *);
int /*<<< orphan*/ sprintf(char *, char *, char, char, char);
char *date_get_unix_now_string(void) {
  char sys_string[128];
  sprintf(sys_string, "date +'%cF:%cH%cM'", '%', '%', '%');
  return pipe2string(sys_string);
}


x86 assembly (clang, -O0):
<date_get_unix_now_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    -0x80(%rbp),%rdi
lea    0xeca(%rip),%rsi
mov    $0x25,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1040 <sprintf@plt>
lea    -0x80(%rbp),%rdi
call   1030 <pipe2string@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<date_get_unix_now_string>:
push   %rbx
sub    $0x80,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x25,%edx
mov    $0x25,%ecx
mov    $0x25,%r8d
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <pipe2string@plt>
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"date +'%cF:%cH%cM'\00"
define i8* @date_get_unix_now_string() {
%1 = alloca [128 x i8]
%2 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext 37, i8 signext 37, i8 signext 37)
%4 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%5 = call i8* @pipe2string(i8* %4)
ret i8* %5
}

LLVM IR (-O2):
@.str = [19 x i8] c"date +'%cF:%cH%cM'\00"
define i8* @date_get_unix_now_string() {
%1 = alloca [128 x i8]
%2 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext 37, i8 signext 37, i8 signext 37)
%4 = call i8* @pipe2string(i8* %2)
ret i8* %4
}
/* Type definitions */
struct zdap_ioctl {
  int dummy;
};
struct ifreq {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ set_ioctl(int, struct ifreq *);
int read_reg(int sock, struct ifreq *req) {
  struct zdap_ioctl *zdreq = NULL;
  if (!set_ioctl(sock, req))
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<read_reg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <set_ioctl@plt>
cmp    $0x0,%eax
jne    1148 <read_reg+0x38>
movl   $0xffffffff,-0x4(%rbp)
jmp    114f <read_reg+0x3f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_reg>:
push   %rax
call   1030 <set_ioctl@plt>
cmp    $0x1,%eax
sbb    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.ifreq = type { i32 }
%struct.zdap_ioctl = type { i32 }
define i32 @read_reg(i32 %0, %struct.ifreq* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.ifreq*
%6 = alloca %struct.zdap_ioctl*
store i32 %0, i32* %4
store %struct.ifreq* %1, %struct.ifreq** %5
store %struct.zdap_ioctl* null, %struct.zdap_ioctl** %6
%7 = load i32, i32* %4
%8 = load %struct.ifreq*, %struct.ifreq** %5
%9 = call i32 @set_ioctl(i32 %7, %struct.ifreq* %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 -1, i32* %3
br label %13
12: ; preds = %2
store i32 0, i32* %3
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
%struct.ifreq = type { i32 }
%struct.zdap_ioctl = type { i32 }
define i32 @read_reg(i32 %0, %struct.ifreq* %1) {
%3 = tail call i32 @set_ioctl(i32 %0, %struct.ifreq* %1)
%4 = icmp eq i32 %3, 0
%5 = sext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ handle_ALRM(int /*<<< orphan*/);
int gen_ALRM() { handle_ALRM(0); }


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

x86 assembly (clang, -O2):
<gen_ALRM>:
xor    %edi,%edi
jmp    1030 <handle_ALRM@plt>

LLVM IR (-O0):
define i32 @gen_ALRM() {
%1 = alloca i32
%2 = call i32 @handle_ALRM(i32 0)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @gen_ALRM() {
%1 = tail call i32 @handle_ALRM(i32 0)
ret i32 undef
}
/* Type definitions */
struct stat {
  scalar_t__ st_size;
};
typedef scalar_t__ off_t;

/* Variables and functions */
int /*<<< orphan*/ stat(char const *, struct stat *);
bool not_empty(const char *path) {
  struct stat st;
  stat(path, &st);
  off_t size = st.st_size;
  return size > 0;
}


x86 assembly (clang, -O0):
<not_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1030 <stat@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<not_empty>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
xor    %eax,%eax
cmpq   $0x0,(%rsp)
setg   %al
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i64 }
define i32 @not_empty(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.stat
%4 = alloca i64
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @stat(i8* %5, %struct.stat* %3)
%7 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%8 = load i64, i64* %7
store i64 %8, i64* %4
%9 = load i64, i64* %4
%10 = icmp sgt i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
%struct.stat = type { i64 }
define i32 @not_empty(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%6 = load i64, i64* %5
%7 = icmp sgt i64 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
int chaz_CC_test_macro(char *, char const *);
int chaz_CC_test_msvc_version(const char *predicate) {
  return chaz_CC_test_macro("_MSC_VER", predicate);
}


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

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

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

LLVM IR (-O2):
@.str = [9 x i8] c"_MSC_VER\00"
define i32 @chaz_CC_test_msvc_version(i8* %0) {
%2 = tail call i32 @chaz_CC_test_macro(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 %2
}
void CDAudio_Update(void) {}


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

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

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

LLVM IR (-O2):
define void @CDAudio_Update() {
ret void
}
unsigned xrop3_100_0_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = T | S;
  stk2 = D & stk3;
  stk1 = S ^ stk2;
  return (stk1 & S) | (stk1 & (~T)) | (T & (~S) & D);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
or     -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
and    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
and    -0x8(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
or     %esi,%edi
xor    %eax,%edi
not    %ecx
or     %eax,%ecx
and    %edi,%ecx
not    %eax
and    %esi,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_100_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = load i32, i32* %6
%25 = or i32 %23, %24
store i32 %25, i32* %10
%26 = load i32, i32* %5
%27 = load i32, i32* %10
%28 = and i32 %26, %27
store i32 %28, i32* %9
%29 = load i32, i32* %6
%30 = load i32, i32* %9
%31 = xor i32 %29, %30
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = load i32, i32* %6
%34 = and i32 %32, %33
%35 = load i32, i32* %8
%36 = load i32, i32* %7
%37 = xor i32 %36, -1
%38 = and i32 %35, %37
%39 = or i32 %34, %38
%40 = load i32, i32* %7
%41 = load i32, i32* %6
%42 = xor i32 %41, -1
%43 = and i32 %40, %42
%44 = load i32, i32* %5
%45 = and i32 %43, %44
%46 = or i32 %39, %45
ret i32 %46
}

LLVM IR (-O2):
define i32 @xrop3_100_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = or i8 %1, %0
%8 = zext i8 %7 to i32
%9 = xor i32 %4, %8
%10 = xor i32 %6, -1
%11 = or i32 %4, %10
%12 = and i32 %11, %9
%13 = xor i32 %4, -1
%14 = and i32 %13, %5
%15 = or i32 %12, %14
ret i32 %15
}
int net_hashmap_core_module_earse(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @net_hashmap_core_module_earse() {
ret i32 0
}
/* Variables and functions */
int via_vt823x_gpio_set(int, int);
int via_vt823x_gpio9_raise(void) { return via_vt823x_gpio_set(9, 1); }


x86 assembly (clang, -O0):
<via_vt823x_gpio9_raise>:
push   %rbp
mov    %rsp,%rbp
mov    $0x9,%edi
mov    $0x1,%esi
call   1030 <via_vt823x_gpio_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<via_vt823x_gpio9_raise>:
mov    $0x9,%edi
mov    $0x1,%esi
jmp    1030 <via_vt823x_gpio_set@plt>

LLVM IR (-O0):
define i32 @via_vt823x_gpio9_raise() {
%1 = call i32 @via_vt823x_gpio_set(i32 9, i32 1)
ret i32 %1
}

LLVM IR (-O2):
define i32 @via_vt823x_gpio9_raise() {
%1 = tail call i32 @via_vt823x_gpio_set(i32 9, i32 1)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ handle_WAITING(int /*<<< orphan*/);
int gen_WAITING(void) {
  handle_WAITING(0);
  return 0;
}


x86 assembly (clang, -O0):
<gen_WAITING>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <handle_WAITING@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @gen_WAITING() {
%1 = call i32 @handle_WAITING(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @gen_WAITING() {
%1 = tail call i32 @handle_WAITING(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ xor_hl();
void opcode_ae() { xor_hl(); }


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

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

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

LLVM IR (-O2):
define void @opcode_ae() {
%1 = tail call i32 (...) @xor_hl()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ socktype;

/* Variables and functions */
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_TYPE;
char *getSocketTypeName(int);
int getsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *,
               unsigned int *);
char *getSocketProtocolFromFD(int __fd) {
  unsigned int optlen;
  int gs, socktype;
  optlen = sizeof(socktype);
  gs = getsockopt(__fd, SOL_SOCKET, SO_TYPE, &socktype, &optlen);
  if (gs == -1) {
    socktype = -1;
  }
  return getSocketTypeName(socktype);
}


x86 assembly (clang, -O0):
<getSocketProtocolFromFD>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2eac(%rip),%rax
mov    (%rax),%esi
mov    0x2e9b(%rip),%rax
mov    (%rax),%edx
lea    -0x10(%rbp),%rcx
lea    -0x8(%rbp),%r8
call   1040 <getsockopt@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
jne    1168 <getSocketProtocolFromFD+0x48>
movl   $0xffffffff,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1030 <getSocketTypeName@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getSocketProtocolFromFD>:
push   %rax
movl   $0x4,0x4(%rsp)
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
mov    0x2ea7(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rcx
lea    0x4(%rsp),%r8
call   1040 <getsockopt@plt>
cmp    $0xffffffff,%eax
je     1152 <getSocketProtocolFromFD+0x32>
mov    (%rsp),%edi
jmp    115e <getSocketProtocolFromFD+0x3e>
movl   $0xffffffff,(%rsp)
mov    $0xffffffff,%edi
call   1030 <getSocketTypeName@plt>
pop    %rcx
ret

LLVM IR (-O0):
@SOL_SOCKET = global i32 0
@SO_TYPE = global i32 0
define i8* @getSocketProtocolFromFD(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
store i32 4, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* @SOL_SOCKET
%8 = load i32, i32* @SO_TYPE
%9 = call i32 @getsockopt(i32 %6, i32 %7, i32 %8, i32* %5, i32* %3)
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 -1, i32* %5
br label %13
13: ; preds = %12, %1
%14 = load i32, i32* %5
%15 = call i8* @getSocketTypeName(i32 %14)
ret i8* %15
}

LLVM IR (-O2):
@SOL_SOCKET = global i32 0
@SO_TYPE = global i32 0
define i8* @getSocketProtocolFromFD(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %2 to i8*
%5 = bitcast i32* %3 to i8*
store i32 4, i32* %2
%6 = load i32, i32* @SOL_SOCKET
%7 = load i32, i32* @SO_TYPE
%8 = call i32 @getsockopt(i32 %0, i32 %6, i32 %7, i32* %3, i32* %2)
%9 = icmp eq i32 %8, -1
br i1 %9, label %12, label %10
10: ; preds = %1
%11 = load i32, i32* %3
br label %13
12: ; preds = %1
store i32 -1, i32* %3
br label %13
13: ; preds = %10, %12
%14 = phi i32 [ %11, %10 ], [ -1, %12 ]
%15 = call i8* @getSocketTypeName(i32 %14)
ret i8* %15
}
int xtensa_simm8(v)
int v;
{ return v >= -128 && v <= 127; }


x86 assembly (clang, -O0):
<xtensa_simm8>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0xffffff80,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <xtensa_simm8+0x20>
cmpl   $0x7f,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xtensa_simm8>:
movsbl %dil,%ecx
xor    %eax,%eax
cmp    %edi,%ecx
sete   %al
ret

LLVM IR (-O0):
define i32 @xtensa_simm8(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, -128
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 127
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @xtensa_simm8(i32 %0) {
%2 = add i32 %0, 128
%3 = icmp ult i32 %2, 256
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef scalar_t__ int32_t;

/* Variables and functions */
int32_t bmax_int32(int32_t a, int32_t b) { return (a > b ? a : b); }


x86 assembly (clang, -O0):
<bmax_int32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jle    1127 <bmax_int32+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <bmax_int32+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bmax_int32>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovg  %rdi,%rax
ret

LLVM IR (-O0):
define i64 @bmax_int32(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp sgt i64 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i64, i64* %3
br label %12
10: ; preds = %2
%11 = load i64, i64* %4
br label %12
12: ; preds = %10, %8
%13 = phi i64 [ %9, %8 ], [ %11, %10 ]
ret i64 %13
}

LLVM IR (-O2):
define i64 @bmax_int32(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
int rct_is_eth_enabled(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @rct_is_eth_enabled() {
ret i32 1
}
void test60_PrintImpl_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @test60_PrintImpl_targetInit__I() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ strftime(char *, unsigned long, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void get_datestr(char *datestr, unsigned long bufsize) {
  time_t now = time(NULL);
  struct tm *t = localtime(&now);
  strftime(datestr, bufsize, "%Y-%m-%d %H:%M:%S", t);
}


x86 assembly (clang, -O0):
<get_datestr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rcx
lea    0xe94(%rip),%rdx
call   1050 <strftime@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_datestr>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1030 <localtime@plt>
lea    0xeaa(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rcx
call   1050 <strftime@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [18 x i8] c"%Y-%m-%d %H:%M:%S\00"
define void @get_datestr(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca %struct.tm*
store i8* %0, i8** %3
store i64 %1, i64* %4
%7 = call i32 @time(i32* null)
store i32 %7, i32* %5
%8 = call %struct.tm* @localtime(i32* %5)
store %struct.tm* %8, %struct.tm** %6
%9 = load i8*, i8** %3
%10 = load i64, i64* %4
%11 = load %struct.tm*, %struct.tm** %6
%12 = call i32 @strftime(i8* %9, i64 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), %struct.tm* %11)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [18 x i8] c"%Y-%m-%d %H:%M:%S\00"
define void @get_datestr(i8* %0, i64 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i32 @time(i32* null)
store i32 %5, i32* %3
%6 = call %struct.tm* @localtime(i32* %3)
%7 = call i32 @strftime(i8* %0, i64 %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), %struct.tm* %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128GeneralIOPinP__8__IO__makeOutput();
void HplAtm128SpiP__SS__makeOutput(void) {
  HplAtm128GeneralIOPinP__8__IO__makeOutput();
}


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

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

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

LLVM IR (-O2):
define void @HplAtm128SpiP__SS__makeOutput() {
%1 = tail call i32 (...) @HplAtm128GeneralIOPinP__8__IO__makeOutput()
ret void
}
void avformat_seek_file() {}


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

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

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

LLVM IR (-O2):
define void @avformat_seek_file() {
ret void
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ sprintf(char *, char *, unsigned long);
char *itex2MML_character_reference(unsigned long int code) {
  char *entity = (char *)malloc(10);
  sprintf(entity, "&#x%05lx;", code);
  return entity;
}


x86 assembly (clang, -O0):
<itex2MML_character_reference>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0xa,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xeb7(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<itex2MML_character_reference>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0xa,%edi
call   1030 <malloc@plt>
mov    %rax,%rbx
lea    0xec5(%rip),%rsi
mov    %rax,%rdi
mov    %r14,%rdx
call   1040 <sprintf@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [10 x i8] c"&#x%05lx;\00"
define i8* @itex2MML_character_reference(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = call i64 @malloc(i32 10)
%5 = inttoptr i64 %4 to i8*
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = load i64, i64* %2
%8 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %7)
%9 = load i8*, i8** %3
ret i8* %9
}

LLVM IR (-O2):
@.str = [10 x i8] c"&#x%05lx;\00"
define i8* @itex2MML_character_reference(i64 %0) {
%2 = tail call i64 @malloc(i32 10)
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %0)
ret i8* %3
}