xunge/DecIR huggingface dataset:
/* Type definitions */
struct mn_socket {
  int dummy;
};

/* Variables and functions */
int mn_socket_close(struct mn_socket *);
int mn_net_close(struct mn_socket *sfd) {
  if (NULL == sfd) {
    return -(1000 + 10);
  }
  int rst;
  rst = mn_socket_close(sfd);
  return rst;
}


x86 assembly (clang, -O0):
<mn_net_close>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
jne    1134 <mn_net_close+0x24>
movl   $0xfffffc0e,-0x4(%rbp)
jmp    1146 <mn_net_close+0x36>
mov    -0x10(%rbp),%rdi
call   1030 <mn_socket_close@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mn_net_close>:
test   %rdi,%rdi
je     111a <mn_net_close+0xa>
jmp    1030 <mn_socket_close@plt>
mov    $0xfffffc0e,%eax
ret

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

LLVM IR (-O2):
%struct.mn_socket = type { i32 }
define i32 @mn_net_close(%struct.mn_socket* %0) {
%2 = icmp eq %struct.mn_socket* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @mn_socket_close(%struct.mn_socket* %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ -1010, %1 ]
ret i32 %6
}
/* Type definitions */
struct iovec {
  scalar_t__ iov_len;
};

/* Variables and functions */
bool iov_empty(const struct iovec iov[], unsigned int num_iov) {
  unsigned int i;
  for (i = 0; i < num_iov; i++)
    if (iov[i].iov_len)
      return false;
  return true;
}


x86 assembly (clang, -O0):
<iov_empty>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    114f <iov_empty+0x4f>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
cmpq   $0x0,(%rax,%rcx,8)
je     113c <iov_empty+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    1156 <iov_empty+0x56>
jmp    1141 <iov_empty+0x41>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1112 <iov_empty+0x12>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iov_empty>:
mov    $0x1,%eax
test   %esi,%esi
je     1120 <iov_empty+0x20>
mov    %esi,%ecx
xor    %edx,%edx
nopl   (%rax)
cmpq   $0x0,(%rdi,%rdx,8)
jne    1121 <iov_empty+0x21>
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1110 <iov_empty+0x10>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.iovec = type { i64 }
define i32 @iov_empty(%struct.iovec* %0, i32 %1) {
%3 = alloca i32
%4 = alloca %struct.iovec*
%5 = alloca i32
%6 = alloca i32
store %struct.iovec* %0, %struct.iovec** %4
store i32 %1, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %21, %2
%8 = load i32, i32* %6
%9 = load i32, i32* %5
%10 = icmp ult i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = load %struct.iovec*, %struct.iovec** %4
%13 = load i32, i32* %6
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds %struct.iovec, %struct.iovec* %12, i64 %14
%16 = getelementptr inbounds %struct.iovec, %struct.iovec* %15, i32 0, i32 0
%17 = load i64, i64* %16
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %11
store i32 0, i32* %3
br label %25
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, i32* %6
%23 = add i32 %22, 1
store i32 %23, i32* %6
br label %7
24: ; preds = %7
store i32 1, i32* %3
br label %25
25: ; preds = %24, %19
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
%struct.iovec = type { i64 }
define i32 @iov_empty(%struct.iovec* nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %14, label %4
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %8
6: ; preds = %8
%7 = icmp eq i64 %13, %5
br i1 %7, label %14, label %8
8: ; preds = %4, %6
%9 = phi i64 [ 0, %4 ], [ %13, %6 ]
%10 = getelementptr inbounds %struct.iovec, %struct.iovec* %0, i64 %9, i32 0
%11 = load i64, i64* %10
%12 = icmp eq i64 %11, 0
%13 = add nuw nsw i64 %9, 1
br i1 %12, label %6, label %14
14: ; preds = %8, %6, %2
%15 = phi i32 [ 1, %2 ], [ 1, %6 ], [ 0, %8 ]
ret i32 %15
}
void g_fprintf() {}


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

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

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

LLVM IR (-O2):
define void @g_fprintf() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
void sigint_handler(int signum) {
  fprintf(stderr, "Exiting on signal %d\n", signum);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<sigint_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<sigint_handler>:
push   %rax
mov    %edi,%edx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"Exiting on signal %d\0A\00"
@EXIT_SUCCESS = global i32 0
define void @sigint_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = load i32, i32* %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @EXIT_SUCCESS
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"Exiting on signal %d\0A\00"
@EXIT_SUCCESS = global i32 0
define void @sigint_handler(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = load i32, i32* @EXIT_SUCCESS
%5 = tail call i32 @exit(i32 %4)
unreachable
}
int fun582() { return 582; }


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

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

LLVM IR (-O0):
define i32 @fun582() {
ret i32 582
}

LLVM IR (-O2):
define i32 @fun582() {
ret i32 582
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void grt_stack_error_null_access(void) { abort(); }


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

x86 assembly (clang, -O2):
<grt_stack_error_null_access>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @grt_stack_error_null_access() {
%1 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @grt_stack_error_null_access() {
%1 = tail call i32 (...) @abort()
unreachable
}
int Fatoracao(long int n) {
  long int numero = n;
  int divisor = 1;
  long int resto;
  int i = 2;
  while (numero != 1) {
    resto = numero % i;
    if (resto == 0) {
      divisor = i;
      numero /= i;
    } else
      i++;
  }
  return divisor;
}


x86 assembly (clang, -O0):
<Fatoracao>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x24(%rbp)
cmpq   $0x1,-0x10(%rbp)
je     116f <Fatoracao+0x6f>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
cqto
idiv   %rcx
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1161 <Fatoracao+0x61>
mov    -0x24(%rbp),%eax
mov    %eax,-0x14(%rbp)
movslq -0x24(%rbp),%rcx
mov    -0x10(%rbp),%rax
cqto
idiv   %rcx
mov    %rax,-0x10(%rbp)
jmp    116a <Fatoracao+0x6a>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    111e <Fatoracao+0x1e>
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Fatoracao>:
mov    $0x1,%r8d
cmp    $0x1,%rdi
jne    1110 <Fatoracao+0x10>
mov    %r8d,%eax
ret
mov    $0x2,%esi
jmp    1141 <Fatoracao+0x41>
nopw   0x0(%rax,%rax,1)
mov    %rdi,%rax
cqto
idiv   %rcx
test   %rdx,%rdx
cmove  %esi,%r8d
cmove  %rax,%rdi
lea    0x1(%rsi),%eax
cmove  %esi,%eax
mov    %eax,%esi
cmp    $0x1,%rdi
je     110c <Fatoracao+0xc>
movslq %esi,%rcx
mov    %rdi,%rax
or     %rcx,%rax
shr    $0x20,%rax
jne    1120 <Fatoracao+0x20>
mov    %edi,%eax
xor    %edx,%edx
div    %esi
jmp    1128 <Fatoracao+0x28>

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

LLVM IR (-O2):
define i32 @Fatoracao(i64 %0) {
%2 = icmp eq i64 %0, 1
br i1 %2, label %16, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %14, %3 ], [ 2, %1 ]
%5 = phi i64 [ %13, %3 ], [ %0, %1 ]
%6 = phi i32 [ %12, %3 ], [ 1, %1 ]
%7 = sext i32 %4 to i64
%8 = srem i64 %5, %7
%9 = sdiv i64 %5, %7
%10 = icmp eq i64 %8, 0
%11 = add nsw i32 %4, 1
%12 = select i1 %10, i32 %4, i32 %6
%13 = select i1 %10, i64 %9, i64 %5
%14 = select i1 %10, i32 %4, i32 %11
%15 = icmp eq i64 %13, 1
br i1 %15, label %16, label %3
16: ; preds = %3, %1
%17 = phi i32 [ 1, %1 ], [ %12, %3 ]
ret i32 %17
}
/* Variables and functions */
int /*<<< orphan*/ GenerateBinaryCode(int);
int main(int agc, char *argv[]) {
  GenerateBinaryCode(3);
  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)
mov    $0x3,%edi
call   1030 <GenerateBinaryCode@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
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 @GenerateBinaryCode(i32 3)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @GenerateBinaryCode(i32 3)
ret i32 0
}
void gdk_screen_get_root_window() {}


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

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

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

LLVM IR (-O2):
define void @gdk_screen_get_root_window() {
ret void
}
/* Variables and functions */
void _Block_copy_error(void) {}


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

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

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

LLVM IR (-O2):
define void @_Block_copy_error() {
ret void
}
float FloatMin(float input1, float input2) {
  return input1 < input2 ? input1 : input2;
}


x86 assembly (clang, -O0):
<FloatMin>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1130 <FloatMin+0x30>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    113a <FloatMin+0x3a>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<FloatMin>:
minss  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define float @FloatMin(float %0, float %1) {
%3 = fcmp olt float %0, %1
%4 = select i1 %3, float %0, float %1
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
void WriteString(char string[]) {
  fputs(string, stdout);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<WriteString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteString>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%esi
call   1030 <fputs@plt>
mov    (%rbx),%edi
pop    %rbx
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@stdout = global i32 0
define void @WriteString(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @stdout
%5 = call i32 @fputs(i8* %3, i32 %4)
%6 = load i32, i32* @stdout
%7 = call i32 @fflush(i32 %6)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @WriteString(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fputs(i8* %0, i32 %2)
%4 = load i32, i32* @stdout
%5 = tail call i32 @fflush(i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ unlink(char *);
int main(void) { unlink("foo"); }


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"foo\00"
define i32 @main() {
%1 = call i32 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"foo\00"
define i32 @main() {
%1 = tail call i32 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int EXIT_FAILURE;
int scalanative_libc_exit_failure() { return EXIT_FAILURE; }


x86 assembly (clang, -O0):
<scalanative_libc_exit_failure>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
define i32 @scalanative_libc_exit_failure() {
%1 = load i32, i32* @EXIT_FAILURE
ret i32 %1
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define i32 @scalanative_libc_exit_failure() {
%1 = load i32, i32* @EXIT_FAILURE
ret i32 %1
}
void outsw(int port, const void *addr, unsigned long count) {
  __asm__ __volatile__("rep; outsw" : "+S"(addr), "+c"(count) : "d"(port));
}


x86 assembly (clang, -O0):
<outsw>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    -0x4(%rbp),%edx
rep outsw %ds:(%rsi),(%dx)
mov    %rsi,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<outsw>:
mov    %rdx,%rcx
mov    %edi,%edx
rep outsw %ds:(%rsi),(%dx)
ret

LLVM IR (-O0):
define void @outsw(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %5
%8 = load i64, i64* %6
%9 = load i32, i32* %4
%10 = call { i8*, i64 } asm sideeffect "rep; outsw", "={si},={cx},{dx},0,1,~{dirflag},~{fpsr},~{flags}"(i32 %9, i8* %7, i64 %8)
%11 = extractvalue { i8*, i64 } %10, 0
%12 = extractvalue { i8*, i64 } %10, 1
store i8* %11, i8** %5
store i64 %12, i64* %6
ret void
}

LLVM IR (-O2):
define void @outsw(i32 %0, i8* %1, i64 %2) {
%4 = tail call { i8*, i64 } asm sideeffect "rep; outsw", "={si},={cx},{dx},0,1,~{dirflag},~{fpsr},~{flags}"(i32 %0, i8* %1, i64 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void job_info_destroy(void *arg) { free(arg); }


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

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

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

LLVM IR (-O2):
define void @job_info_destroy(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
void cw1200_itp_consume_txed(struct cw1200_common *priv) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
%struct.cw1200_common = type opaque
define void @cw1200_itp_consume_txed(%struct.cw1200_common* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DwBreakAndSync();
int /*<<< orphan*/ DwReconnect();
int /*<<< orphan*/ SkipEoln();
int /*<<< orphan*/ Wsl(char *);
void KeyboardBreak(void) {
  Wsl("Keyboard requested break. ");
  SkipEoln();
  DwBreakAndSync();
  DwReconnect();
}


x86 assembly (clang, -O0):
<KeyboardBreak>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1050 <Wsl@plt>
mov    $0x0,%al
call   1060 <SkipEoln@plt>
mov    $0x0,%al
call   1040 <DwBreakAndSync@plt>
mov    $0x0,%al
call   1030 <DwReconnect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<KeyboardBreak>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1050 <Wsl@plt>
xor    %eax,%eax
call   1060 <SkipEoln@plt>
xor    %eax,%eax
call   1040 <DwBreakAndSync@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <DwReconnect@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Keyboard requested break. \00"
define void @KeyboardBreak() {
%1 = call i32 @Wsl(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @SkipEoln()
%3 = call i32 (...) @DwBreakAndSync()
%4 = call i32 (...) @DwReconnect()
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"Keyboard requested break. \00"
define void @KeyboardBreak() {
%1 = tail call i32 @Wsl(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @SkipEoln()
%3 = tail call i32 (...) @DwBreakAndSync()
%4 = tail call i32 (...) @DwReconnect()
ret void
}
int test_routine() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @test_routine() {
ret i32 0
}
/* Variables and functions */
scalar_t__ CallBack3(int, void *, void *, void *);
int /*<<< orphan*/ CheckRunningInMainThread(char *);
int XOPCommand2(const char *cmdPtr, int silent, int sendToHistory) {
  if (!CheckRunningInMainThread("XOPCommand2"))
    return 978;
  return (int)CallBack3(181, (void *)cmdPtr, (void *)silent,
                        (void *)sendToHistory);
}


x86 assembly (clang, -O0):
<XOPCommand2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
lea    0xec7(%rip),%rdi
call   1040 <CheckRunningInMainThread@plt>
cmp    $0x0,%eax
jne    1153 <XOPCommand2+0x33>
movl   $0x3d2,-0x4(%rbp)
jmp    116c <XOPCommand2+0x4c>
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rdx
movslq -0x18(%rbp),%rcx
mov    $0xb5,%edi
call   1030 <CallBack3@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XOPCommand2>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r14
lea    0xece(%rip),%rdi
call   1040 <CheckRunningInMainThread@plt>
test   %eax,%eax
je     1150 <XOPCommand2+0x30>
movslq %ebx,%rdx
movslq %ebp,%rcx
mov    $0xb5,%edi
mov    %r14,%rsi
call   1030 <CallBack3@plt>
jmp    1155 <XOPCommand2+0x35>
mov    $0x3d2,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"XOPCommand2\00"
define i32 @XOPCommand2(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = call i32 @CheckRunningInMainThread(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %3
store i32 978, i32* %4
br label %21
11: ; preds = %3
%12 = load i8*, i8** %5
%13 = load i32, i32* %6
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
%16 = load i32, i32* %7
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i8*
%19 = call i64 @CallBack3(i32 181, i8* %12, i8* %15, i8* %18)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %4
br label %21
21: ; preds = %11, %10
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
@.str = [12 x i8] c"XOPCommand2\00"
define i32 @XOPCommand2(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @CheckRunningInMainThread(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %13, label %6
6: ; preds = %3
%7 = sext i32 %1 to i64
%8 = inttoptr i64 %7 to i8*
%9 = sext i32 %2 to i64
%10 = inttoptr i64 %9 to i8*
%11 = tail call i64 @CallBack3(i32 181, i8* %0, i8* %8, i8* %10)
%12 = trunc i64 %11 to i32
br label %13
13: ; preds = %3, %6
%14 = phi i32 [ %12, %6 ], [ 978, %3 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ strncmp(char *, char *, int);
int env_is_true(char *value) { return !strncmp(value, "1", 1); }


x86 assembly (clang, -O0):
<env_is_true>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<env_is_true>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
define i32 @env_is_true(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strncmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
define i32 @env_is_true(i8* %0) {
%2 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
int descend(const void *a, const void *b) {
  return (*(float *)b - *(float *)a);
}


x86 assembly (clang, -O0):
<descend>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
subss  (%rax),%xmm0
cvttss2si %xmm0,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<descend>:
movss  (%rsi),%xmm0
subss  (%rdi),%xmm0
cvttss2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @descend(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 = bitcast i8* %5 to float*
%7 = load float, float* %6
%8 = load i8*, i8** %3
%9 = bitcast i8* %8 to float*
%10 = load float, float* %9
%11 = fsub float %7, %10
%12 = fptosi float %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @descend(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to float*
%4 = load float, float* %3
%5 = bitcast i8* %0 to float*
%6 = load float, float* %5
%7 = fsub float %4, %6
%8 = fptosi float %7 to i32
ret i32 %8
}
int Pa_GetVersion(void) { return 1899; }


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

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

LLVM IR (-O0):
define i32 @Pa_GetVersion() {
ret i32 1899
}

LLVM IR (-O2):
define i32 @Pa_GetVersion() {
ret i32 1899
}
/* Variables and functions */
int debinarise(size_t);
unsigned char debinarisebyte(size_t num) {
  return (num == 0 || num == 1 ? num : ((num % 10) + 2 * debinarise(num / 10)));
}


x86 assembly (clang, -O0):
<debinarisebyte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1132 <debinarisebyte+0x22>
cmpq   $0x1,-0x8(%rbp)
jne    113f <debinarisebyte+0x2f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    117a <debinarisebyte+0x6a>
mov    -0x8(%rbp),%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdi
call   1030 <debinarise@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
shl    $0x1,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debinarisebyte>:
push   %rbx
mov    %rdi,%rbx
cmp    $0x2,%rdi
jb     1146 <debinarisebyte+0x36>
movabs $0xcccccccccccccccd,%rcx
cc cc cc
mov    %rbx,%rax
mul    %rcx
mov    %rdx,%rdi
shr    $0x3,%rdi
lea    (%rdi,%rdi,1),%rax
lea    (%rax,%rax,4),%rax
sub    %rax,%rbx
call   1030 <debinarise@plt>
add    %eax,%eax
add    %rax,%rbx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i8 @debinarisebyte(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i64, i64* %2
%7 = icmp eq i64 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %5, %1
%9 = load i64, i64* %2
br label %19
10: ; preds = %5
%11 = load i64, i64* %2
%12 = urem i64 %11, 10
%13 = load i64, i64* %2
%14 = udiv i64 %13, 10
%15 = call i32 @debinarise(i64 %14)
%16 = mul nsw i32 2, %15
%17 = sext i32 %16 to i64
%18 = add i64 %12, %17
br label %19
19: ; preds = %10, %8
%20 = phi i64 [ %9, %8 ], [ %18, %10 ]
%21 = trunc i64 %20 to i8
ret i8 %21
}

LLVM IR (-O2):
define zeroext i8 @debinarisebyte(i64 %0) {
%2 = icmp ult i64 %0, 2
br i1 %2, label %10, label %3
3: ; preds = %1
%4 = urem i64 %0, 10
%5 = udiv i64 %0, 10
%6 = tail call i32 @debinarise(i64 %5)
%7 = shl nsw i32 %6, 1
%8 = zext i32 %7 to i64
%9 = add nuw nsw i64 %4, %8
br label %10
10: ; preds = %1, %3
%11 = phi i64 [ %9, %3 ], [ %0, %1 ]
%12 = trunc i64 %11 to i8
ret i8 %12
}
void rop3_129_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  stk1 = S ^ T;
  stk2 = *D ^ S;
  stk1 = stk1 | stk2;
  stk1 = ~stk1;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_129_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xa(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_129_1_1>:
mov    (%rdi),%al
mov    %eax,%ecx
xor    %sil,%cl
or     %esi,%edx
or     %dl,%cl
not    %cl
and    %dl,%al
or     %cl,%al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_129_1_1(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = load i8, i8* %6
%12 = zext i8 %11 to i32
%13 = xor i32 %10, %12
%14 = trunc i32 %13 to i8
store i8 %14, i8* %7
%15 = load i8*, i8** %4
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = load i8, i8* %5
%19 = zext i8 %18 to i32
%20 = xor i32 %17, %19
%21 = trunc i32 %20 to i8
store i8 %21, i8* %8
%22 = load i8, i8* %7
%23 = zext i8 %22 to i32
%24 = load i8, i8* %8
%25 = zext i8 %24 to i32
%26 = or i32 %23, %25
%27 = trunc i32 %26 to i8
store i8 %27, i8* %7
%28 = load i8, i8* %7
%29 = zext i8 %28 to i32
%30 = xor i32 %29, -1
%31 = trunc i32 %30 to i8
store i8 %31, i8* %7
%32 = load i8, i8* %7
%33 = zext i8 %32 to i32
%34 = load i8, i8* %5
%35 = zext i8 %34 to i32
%36 = xor i32 %35, -1
%37 = and i32 %33, %36
%38 = load i8, i8* %6
%39 = zext i8 %38 to i32
%40 = xor i32 %39, -1
%41 = and i32 %37, %40
%42 = load i8*, i8** %4
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = load i8, i8* %5
%46 = zext i8 %45 to i32
%47 = and i32 %44, %46
%48 = or i32 %41, %47
%49 = load i8*, i8** %4
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = load i8, i8* %6
%53 = zext i8 %52 to i32
%54 = and i32 %51, %53
%55 = or i32 %48, %54
%56 = trunc i32 %55 to i8
%57 = load i8*, i8** %4
store i8 %56, i8* %57
ret void
}

LLVM IR (-O2):
define void @rop3_129_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %1
%6 = or i8 %2, %1
%7 = or i8 %6, %5
%8 = xor i8 %7, -1
%9 = and i8 %4, %6
%10 = or i8 %9, %8
store i8 %10, i8* %0
ret void
}
int test_imm_15int8_mem(signed char *val) {
  return ((*val) & (-0x15 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_15int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -21
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ ADC_SOC_SaveConfig();
void ADC_SOC_Sleep(void) { ADC_SOC_SaveConfig(); }


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

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

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

LLVM IR (-O2):
define void @ADC_SOC_Sleep() {
%1 = tail call i32 (...) @ADC_SOC_SaveConfig()
ret void
}
void walt_init_cpu_efficiency(void) {}


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

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

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

LLVM IR (-O2):
define void @walt_init_cpu_efficiency() {
ret void
}
void g_ascii_formatd() {}


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

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

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

LLVM IR (-O2):
define void @g_ascii_formatd() {
ret void
}
void gtk_tree_store_insert_after() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_store_insert_after() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cplusplusend();
void print_funcend(int did) {
  if (did) {
    cplusplusend();
  }
}


x86 assembly (clang, -O0):
<print_funcend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     112c <print_funcend+0x1c>
mov    $0x0,%al
call   1030 <cplusplusend@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_funcend>:
test   %edi,%edi
je     111b <print_funcend+0xb>
xor    %eax,%eax
jmp    1030 <cplusplusend@plt>
ret

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

LLVM IR (-O2):
define void @print_funcend(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (...) @cplusplusend()
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
scalar_t__ isupper(char);
char tolower_(char c) {
  if (isupper(c))
    return c - 'A' + 'a';
  return c;
}


x86 assembly (clang, -O0):
<tolower_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%edi
call   1030 <isupper@plt>
cmp    $0x0,%rax
je     1143 <tolower_+0x33>
movsbl -0x2(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %al,-0x1(%rbp)
jmp    1149 <tolower_+0x39>
mov    -0x2(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tolower_>:
push   %rbx
mov    %edi,%ebx
call   1030 <isupper@plt>
lea    0x20(%rbx),%ecx
test   %rax,%rax
movzbl %cl,%eax
cmove  %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @tolower_(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call i64 @isupper(i8 signext %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = sub nsw i32 %9, 65
%11 = add nsw i32 %10, 97
%12 = trunc i32 %11 to i8
store i8 %12, i8* %2
br label %15
13: ; preds = %1
%14 = load i8, i8* %3
store i8 %14, i8* %2
br label %15
15: ; preds = %13, %7
%16 = load i8, i8* %2
ret i8 %16
}

LLVM IR (-O2):
define signext i8 @tolower_(i8 signext %0) {
%2 = tail call i64 @isupper(i8 signext %0)
%3 = icmp eq i64 %2, 0
%4 = add i8 %0, 32
%5 = select i1 %3, i8 %0, i8 %4
ret i8 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;

/* Variables and functions */
int _gdbio_open_r(int /*<<< orphan*/ *, char const *, int, int /*<<< orphan*/);
int /*<<< orphan*/ errno;
int gdbio_open(const char *pathname, int flags, mode_t mode) {
  return _gdbio_open_r(&errno, pathname, flags, mode);
}


x86 assembly (clang, -O0):
<gdbio_open>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    0x2ead(%rip),%rdi
call   1030 <_gdbio_open_r@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gdbio_open>:
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ec2(%rip),%rdi
jmp    1030 <_gdbio_open_r@plt>

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

LLVM IR (-O2):
@errno = global i32 0
define i32 @gdbio_open(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @_gdbio_open_r(i32* @errno, i8* %0, i32 %1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ sys_usleep(unsigned int);
void sys_msleep(unsigned int ms) { sys_usleep(ms * 1000); }


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

x86 assembly (clang, -O2):
<sys_msleep>:
imul   $0x3e8,%edi,%edi
jmp    1030 <sys_usleep@plt>

LLVM IR (-O0):
define void @sys_msleep(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = mul i32 %3, 1000
%5 = call i32 @sys_usleep(i32 %4)
ret void
}

LLVM IR (-O2):
define void @sys_msleep(i32 %0) {
%2 = mul i32 %0, 1000
%3 = tail call i32 @sys_usleep(i32 %2)
ret void
}
int calculate_size(int scale) {
  int size = 10 * (scale + 10) / 10;
  return size;
}


x86 assembly (clang, -O0):
<calculate_size>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa,%eax
imul   $0xa,%eax,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_size>:
lea    0xa(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @calculate_size(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = add nsw i32 %4, 10
%6 = mul nsw i32 10, %5
%7 = sdiv i32 %6, 10
store i32 %7, i32* %3
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @calculate_size(i32 %0) {
%2 = add nsw i32 %0, 10
ret i32 %2
}
void PiComs_EnableRxInt(void) {}


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

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

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

LLVM IR (-O2):
define void @PiComs_EnableRxInt() {
ret void
}
void info(void) {}


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

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

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

LLVM IR (-O2):
define void @info() {
ret void
}
/* Variables and functions */
char *malloc(size_t);
int /*<<< orphan*/ snprintf(char *, size_t, char *, char const *, char const *);
int strlen(char const *);
char *cg_control(const char *cgroup, const char *control) {
  size_t len = strlen(cgroup) + strlen(control) + 2;
  char *ret = malloc(len);
  snprintf(ret, len, "%s/%s", cgroup, control);
  return ret;
}


x86 assembly (clang, -O0):
<cg_control>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
add    %ecx,%eax
add    $0x2,%eax
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe77(%rip),%rdx
call   1040 <snprintf@plt>
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cg_control>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r15
call   1030 <strlen@plt>
mov    %eax,%ebx
mov    %r14,%rdi
call   1030 <strlen@plt>
add    %ebx,%eax
add    $0x2,%eax
movslq %eax,%rbx
mov    %rbx,%rdi
call   1050 <malloc@plt>
mov    %rax,%r12
lea    0xe99(%rip),%rdx
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %r15,%rcx
mov    %r14,%r8
call   1040 <snprintf@plt>
mov    %r12,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s/%s\00"
define i8* @cg_control(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = add nsw i32 %8, %10
%12 = add nsw i32 %11, 2
%13 = sext i32 %12 to i64
store i64 %13, i64* %5
%14 = load i64, i64* %5
%15 = call i8* @malloc(i64 %14)
store i8* %15, i8** %6
%16 = load i8*, i8** %6
%17 = load i64, i64* %5
%18 = load i8*, i8** %3
%19 = load i8*, i8** %4
%20 = call i32 @snprintf(i8* %16, i64 %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %19)
%21 = load i8*, i8** %6
ret i8* %21
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s/%s\00"
define i8* @cg_control(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = add i32 %3, 2
%6 = add i32 %5, %4
%7 = sext i32 %6 to i64
%8 = tail call i8* @malloc(i64 %7)
%9 = tail call i32 @snprintf(i8* %8, i64 %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
ret i8* %8
}
int ftp_i_signal_is_error(int signal) {
  return (signal > 399 && signal < 600) || signal == 1000;
}


x86 assembly (clang, -O0):
<ftp_i_signal_is_error>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x18f,-0x4(%rbp)
jle    1126 <ftp_i_signal_is_error+0x26>
mov    $0x1,%al
cmpl   $0x258,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1133 <ftp_i_signal_is_error+0x33>
cmpl   $0x3e8,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ftp_i_signal_is_error>:
lea    -0x190(%rdi),%eax
cmp    $0xc8,%eax
setb   %al
cmp    $0x3e8,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @ftp_i_signal_is_error(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 399
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 600
br i1 %7, label %11, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 1000
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @ftp_i_signal_is_error(i32 %0) {
%2 = add i32 %0, -400
%3 = icmp ult i32 %2, 200
%4 = icmp eq i32 %0, 1000
%5 = or i1 %4, %3
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
struct parameters {
  int dummy;
};

/* Variables and functions */
double chi_32(struct parameters *);
double chi_23(struct parameters *p) { return -chi_32(p); }


x86 assembly (clang, -O0):
<chi_23>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <chi_32@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chi_23>:
push   %rax
call   1030 <chi_32@plt>
xorps  0xee3(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
%struct.parameters = type { i32 }
define double @chi_23(%struct.parameters* %0) {
%2 = alloca %struct.parameters*
store %struct.parameters* %0, %struct.parameters** %2
%3 = load %struct.parameters*, %struct.parameters** %2
%4 = call double @chi_32(%struct.parameters* %3)
%5 = fneg double %4
ret double %5
}

LLVM IR (-O2):
%struct.parameters = type { i32 }
define double @chi_23(%struct.parameters* %0) {
%2 = tail call double @chi_32(%struct.parameters* %0)
%3 = fneg double %2
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
void recurse(int x, int y) {
  printf("%d\n", (x++));
  if (x < y)
    recurse(x, y);
}


x86 assembly (clang, -O0):
<recurse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xec0(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    115c <recurse+0x3c>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <recurse@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recurse>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%esi
lea    0xee1(%rip),%r14
nop
lea    0x1(%rsi),%ebp
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %ebp,%esi
cmp    %ebx,%ebp
jl     1120 <recurse+0x10>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define void @recurse(i32 %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i32 [ %0, %2 ], [ %5, %3 ]
%5 = add nsw i32 %4, 1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%7 = icmp slt i32 %5, %1
br i1 %7, label %3, label %8
8: ; preds = %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void Usage() {
  printf("Usage: eaytest [dh|md5|sha1|hmac|cipher]\n");
  printf("       eaytest cert [cert_directory]\n");
  exit(0);
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"Usage: eaytest [dh|md5|sha1|hmac|cipher]\0A\00"
@.str.1 = [38 x i8] c" eaytest cert [cert_directory]\0A\00"
define void @Usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [41 x i8] c"Usage: eaytest [dh|md5|sha1|hmac|cipher]\00"
@str.2 = [37 x i8] c" eaytest cert [cert_directory]\00"
define void @Usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}
int do_173() { return 173; }


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

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

LLVM IR (-O0):
define i32 @do_173() {
ret i32 173
}

LLVM IR (-O2):
define i32 @do_173() {
ret i32 173
}
/* Variables and functions */
int /*<<< orphan*/ die(char *);
int /*<<< orphan*/ perror(char *);
void perrordie(char *prg) {
  perror(prg);
  die("Aborting\n");
}


x86 assembly (clang, -O0):
<perrordie>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <perror@plt>
lea    0xec4(%rip),%rdi
call   1030 <die@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<perrordie>:
push   %rax
call   1040 <perror@plt>
lea    0xed3(%rip),%rdi
pop    %rax
jmp    1030 <die@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"Aborting\0A\00"
define void @perrordie(i8* nocapture %0) {
%2 = tail call i32 @perror(i8* %0)
%3 = tail call i32 @die(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}