xunge/DecIR huggingface dataset:
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ height;
};
struct TYPE_4__ {
  TYPE_1__ max_logical_extent;
};
typedef TYPE_2__ XFontSetExtents;

/* Variables and functions */
unsigned short get_XFontSetExtents_max_logical_extent_height(void *_p) {
  return (unsigned short)((XFontSetExtents *)_p)->max_logical_extent.height;
}


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

x86 assembly (clang, -O2):
<get_XFontSetExtents_max_logical_extent_height>:
movzwl (%rdi),%eax
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
define zeroext i16 @get_XFontSetExtents_max_logical_extent_height(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_4__*
%5 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %4, i32 0, i32 0
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 0
%7 = load i64, i64* %6
%8 = trunc i64 %7 to i16
ret i16 %8
}

LLVM IR (-O2):
define zeroext i16 @get_XFontSetExtents_max_logical_extent_height(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i16
ret i16 %4
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ send_event;
};
struct TYPE_4__ {
  TYPE_1__ xselectionrequest;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
int get_XEvent_xselectionrequest_send_event(void *_p) {
  return (int)((XEvent *)_p)->xselectionrequest.send_event;
}


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

x86 assembly (clang, -O2):
<get_XEvent_xselectionrequest_send_event>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @get_XEvent_xselectionrequest_send_event(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
int B(int x, double dx, int y, double dy) { return dx - dy == (double)(x - y); }


x86 assembly (clang, -O0):
<B>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
mov    -0x4(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<B>:
sub    %esi,%edi
cvtsi2sd %edi,%xmm2
subsd  %xmm1,%xmm0
cmpeqsd %xmm0,%xmm2
movq   %xmm2,%rax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @B(i32 %0, double %1, i32 %2, double %3) {
%5 = alloca i32
%6 = alloca double
%7 = alloca i32
%8 = alloca double
store i32 %0, i32* %5
store double %1, double* %6
store i32 %2, i32* %7
store double %3, double* %8
%9 = load double, double* %6
%10 = load double, double* %8
%11 = fsub double %9, %10
%12 = load i32, i32* %5
%13 = load i32, i32* %7
%14 = sub nsw i32 %12, %13
%15 = sitofp i32 %14 to double
%16 = fcmp oeq double %11, %15
%17 = zext i1 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @B(i32 %0, double %1, i32 %2, double %3) {
%5 = fsub double %1, %3
%6 = sub nsw i32 %0, %2
%7 = sitofp i32 %6 to double
%8 = fcmp oeq double %5, %7
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
void dit(FILE *out) { fputc('.', out); }


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

x86 assembly (clang, -O2):
<dit>:
mov    %rdi,%rsi
mov    $0x2e,%edi
jmp    1030 <fputc@plt>

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

LLVM IR (-O2):
define void @dit(i32* nocapture %0) {
%2 = tail call i32 @fputc(i8 signext 46, i32* %0)
ret void
}
/* Type definitions */
struct ptimer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ checking_free(struct ptimer *);
void ptimer_destroy(struct ptimer *pt) { checking_free(pt); }


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

x86 assembly (clang, -O2):
<ptimer_destroy>:
jmp    1030 <checking_free@plt>

LLVM IR (-O0):
%struct.ptimer = type { i32 }
define void @ptimer_destroy(%struct.ptimer* %0) {
%2 = alloca %struct.ptimer*
store %struct.ptimer* %0, %struct.ptimer** %2
%3 = load %struct.ptimer*, %struct.ptimer** %2
%4 = call i32 @checking_free(%struct.ptimer* %3)
ret void
}

LLVM IR (-O2):
%struct.ptimer = type { i32 }
define void @ptimer_destroy(%struct.ptimer* %0) {
%2 = tail call i32 @checking_free(%struct.ptimer* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_5483() {
  Assert_real((isqrt(5483) == 74),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/stdlib/isqrt.c",
              1385, ("Integer square root of 5483 should be 74"));
}


x86 assembly (clang, -O0):
<t_sqrt_5483>:
push   %rbp
mov    %rsp,%rbp
mov    $0x156b,%edi
call   1030 <isqrt@plt>
cmp    $0x4a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x569,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_5483>:
push   %rax
mov    $0x156b,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0x4a,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x569,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00"
@.str.1 = [41 x i8] c"Integer square root of 5483 should be 74\00"
define void @t_sqrt_5483() {
%1 = call i32 @isqrt(i32 5483)
%2 = icmp eq i32 %1, 74
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 1385, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00"
@.str.1 = [41 x i8] c"Integer square root of 5483 should be 74\00"
define void @t_sqrt_5483() {
%1 = tail call i32 @isqrt(i32 5483)
%2 = icmp eq i32 %1, 74
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 1385, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int test_imm_FDint16_mem(short *val) {
  return ((*val) & (0xFD << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_FDint16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = sext i16 %4 to i32
%6 = and i32 %5, 253
%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_FDint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 253
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
suma(int a, int b) { return (a + b); }


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

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

LLVM IR (-O0):
define i32 @suma(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @suma(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
void jacFun_incref(void) {}


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

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

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

LLVM IR (-O2):
define void @jacFun_incref() {
ret void
}
void curses_close(void *ui) {}


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

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

LLVM IR (-O0):
define void @curses_close(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret void
}

LLVM IR (-O2):
define void @curses_close(i8* nocapture %0) {
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
void *calloc(size_t nmenb, size_t size) {
  size_t mem_size = nmenb * size;
  void *ptr = NULL;
  if (!mem_size)
    return NULL;
  ptr = malloc(mem_size);
  if (!ptr)
    return NULL;
  memset(ptr, 0, mem_size);
  return ptr;
}


x86 assembly (clang, -O0):
<calloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
imul   -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    115d <calloc+0x3d>
movq   $0x0,-0x8(%rbp)
jmp    1199 <calloc+0x79>
mov    -0x20(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1182 <calloc+0x62>
movq   $0x0,-0x8(%rbp)
jmp    1199 <calloc+0x79>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
imul   %rsi,%rbx
test   %rbx,%rbx
je     114f <calloc+0x2f>
mov    %rbx,%rdi
call   1040 <malloc@plt>
test   %rax,%rax
je     114f <calloc+0x2f>
mov    %rax,%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
jmp    1152 <calloc+0x32>
xor    %r14d,%r14d
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @calloc(i64 %0, i64 %1) {
%3 = mul i64 %1, %0
%4 = icmp eq i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = tail call i8* @malloc(i64 %3)
%7 = icmp eq i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @memset(i8* %6, i32 0, i64 %3)
br label %10
10: ; preds = %5, %2, %8
%11 = phi i8* [ %6, %8 ], [ null, %2 ], [ null, %5 ]
ret i8* %11
}
int decrypt(int cipher[]) {}


x86 assembly (clang, -O0):
<decrypt>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @decrypt(i32* nocapture readnone %0) {
ret i32 undef
}
cbuf19(f, n) int f, n;
{ cbuf(f, n, 19); }


x86 assembly (clang, -O0):
<cbuf19>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x13,%edx
mov    $0x0,%al
call   1030 <cbuf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cbuf19>:
mov    $0x13,%edx
xor    %eax,%eax
jmp    1030 <cbuf@plt>

LLVM IR (-O0):
define i32 @cbuf19(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @cbuf to i32 (i32, i32, i32, ...)*)(i32 %6, i32 %7, i32 19)
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @cbuf19(i32 %0, i32 %1) {
%3 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @cbuf to i32 (i32, i32, i32, ...)*)(i32 %0, i32 %1, i32 19)
ret i32 undef
}
void _setenv() {}


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

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

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

LLVM IR (-O2):
define void @_setenv() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
char *strerror(int /*<<< orphan*/);
void exit_with_errno(void) {
  printf("%s\n", strerror(errno));
  exit(1);
}


x86 assembly (clang, -O0):
<exit_with_errno>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    %rax,%rsi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exit_with_errno>:
push   %rax
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
lea    0xeba(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@errno = global i32 0
define void @exit_with_errno() {
%1 = load i32, i32* @errno
%2 = call i8* @strerror(i32 %1)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@errno = global i32 0
define void @exit_with_errno() {
%1 = load i32, i32* @errno
%2 = tail call i8* @strerror(i32 %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int ENOSYS;
int xntrace_max_begin(unsigned long v) { return -ENOSYS; }


x86 assembly (clang, -O0):
<xntrace_max_begin>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    0x2ed7(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xntrace_max_begin>:
mov    0x2ee1(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
define i32 @xntrace_max_begin(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i32, i32* @ENOSYS
%4 = sub nsw i32 0, %3
ret i32 %4
}

LLVM IR (-O2):
@ENOSYS = global i32 0
define i32 @xntrace_max_begin(i64 %0) {
%2 = load i32, i32* @ENOSYS
%3 = sub nsw i32 0, %2
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
void chaz_ConfWriterPython_vappend_conf(const char *fmt, va_list args) {
  (void)fmt;
  (void)args;
}


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

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

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

LLVM IR (-O2):
define void @chaz_ConfWriterPython_vappend_conf(i8* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _ar_usage(void) {
  fputs("Usage: "
        "ar"
        " -d[-v] archive file...\n       "
        "ar"
        " -p[-v] archive file...\n       "
        "ar"
        " -r[-cuv] archive file...\n       "
        "ar"
        " -t[-v] archive [file...]\n       "
        "ar"
        " -x[-v] archive [file...]\n  -d	Delete one or more files from "
        "the archive\n  -r	Replace or add files to archive\n  -t	Write "
        "a table of contents of archive\n  -u	Update older files in the "
        "archive\n  -v	Give verbose output\n  -x	Extract all or given "
        "files from the archive\n",
        stderr);
  return 1;
}


x86 assembly (clang, -O0):
<_ar_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ar_usage>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [411 x i8] c"Usage: ar -d[-v] archive file...\0A ar -p[-v] archive file...\0A ar -r[-cuv] archive file...\0A ar -t[-v] archive [file...]\0A ar -x[-v] archive [file...]\0A -d\09Delete one or more files from the archive\0A -r\09Replace or add files to archive\0A -t\09Write a table of contents of archive\0A -u\09Update older files in the archive\0A -v\09Give verbose output\0A -x\09Extract all or given files from the archive\0A\00"
@stderr = global i32 0
define i32 @_ar_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([411 x i8], [411 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}

LLVM IR (-O2):
@.str = [411 x i8] c"Usage: ar -d[-v] archive file...\0A ar -p[-v] archive file...\0A ar -r[-cuv] archive file...\0A ar -t[-v] archive [file...]\0A ar -x[-v] archive [file...]\0A -d\09Delete one or more files from the archive\0A -r\09Replace or add files to archive\0A -t\09Write a table of contents of archive\0A -u\09Update older files in the archive\0A -v\09Give verbose output\0A -x\09Extract all or given files from the archive\0A\00"
@stderr = global i32 0
define i32 @_ar_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([411 x i8], [411 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char *);
int GetDefaultPath(char *path) {
  if (path != NULL)
    strcpy(path, "A:\\GAME\\");
  return 0;
}


x86 assembly (clang, -O0):
<GetDefaultPath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1137 <GetDefaultPath+0x27>
mov    -0x8(%rbp),%rdi
lea    0xece(%rip),%rsi
call   1030 <strcpy@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetDefaultPath>:
test   %rdi,%rdi
je     1126 <GetDefaultPath+0x16>
push   %rax
lea    0xee3(%rip),%rsi
call   1030 <strcpy@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"A:\\GAME\\\00"
define i32 @GetDefaultPath(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %3, %1
ret i32 0
}
getpriv(uid) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @getpriv(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char const *, int);
char *needMem(int);
char *cloneStringZExt(const char *s, int size, int copySize) {
  char *d = needMem(copySize + 1);
  copySize = ((size) < (copySize) ? (size) : (copySize));
  memcpy(d, s, copySize);
  d[copySize] = 0;
  return d;
}


x86 assembly (clang, -O0):
<cloneStringZExt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
call   1040 <needMem@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1158 <cloneStringZExt+0x38>
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    115e <cloneStringZExt+0x3e>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%edx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cloneStringZExt>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%r15d
mov    %rdi,%r14
lea    0x1(%rbx),%edi
call   1040 <needMem@plt>
mov    %rax,%rbp
cmp    %ebx,%r15d
cmovl  %r15d,%ebx
mov    %rax,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <memcpy@plt>
movslq %ebx,%rax
movb   $0x0,0x0(%rbp,%rax,1)
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @cloneStringZExt(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
%9 = add nsw i32 %8, 1
%10 = call i8* @needMem(i32 %9)
store i8* %10, i8** %7
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load i32, i32* %5
br label %18
16: ; preds = %3
%17 = load i32, i32* %6
br label %18
18: ; preds = %16, %14
%19 = phi i32 [ %15, %14 ], [ %17, %16 ]
store i32 %19, i32* %6
%20 = load i8*, i8** %7
%21 = load i8*, i8** %4
%22 = load i32, i32* %6
%23 = call i32 @memcpy(i8* %20, i8* %21, i32 %22)
%24 = load i8*, i8** %7
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %24, i64 %26
store i8 0, i8* %27
%28 = load i8*, i8** %7
ret i8* %28
}

LLVM IR (-O2):
define i8* @cloneStringZExt(i8* %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, 1
%5 = tail call i8* @needMem(i32 %4)
%6 = icmp slt i32 %1, %2
%7 = select i1 %6, i32 %1, i32 %2
%8 = tail call i32 @memcpy(i8* %5, i8* %0, i32 %7)
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i8, i8* %5, i64 %9
store i8 0, i8* %10
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ newline();
int /*<<< orphan*/ printSpace(int);
int /*<<< orphan*/ printStar(int);
void lineNine() {
  printStar(9);
  printSpace(6);
  printStar(3);
  printSpace(8);
  printStar(1);
  printSpace(10);
  printStar(1);
  newline();
}


x86 assembly (clang, -O0):
<lineNine>:
push   %rbp
mov    %rsp,%rbp
mov    $0x9,%edi
call   1040 <printStar@plt>
mov    $0x6,%edi
call   1050 <printSpace@plt>
mov    $0x3,%edi
call   1040 <printStar@plt>
mov    $0x8,%edi
call   1050 <printSpace@plt>
mov    $0x1,%edi
call   1040 <printStar@plt>
mov    $0xa,%edi
call   1050 <printSpace@plt>
mov    $0x1,%edi
call   1040 <printStar@plt>
mov    $0x0,%al
call   1030 <newline@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lineNine>:
push   %rax
mov    $0x9,%edi
call   1040 <printStar@plt>
mov    $0x6,%edi
call   1050 <printSpace@plt>
mov    $0x3,%edi
call   1040 <printStar@plt>
mov    $0x8,%edi
call   1050 <printSpace@plt>
mov    $0x1,%edi
call   1040 <printStar@plt>
mov    $0xa,%edi
call   1050 <printSpace@plt>
mov    $0x1,%edi
call   1040 <printStar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <newline@plt>

LLVM IR (-O0):
define void @lineNine() {
%1 = call i32 @printStar(i32 9)
%2 = call i32 @printSpace(i32 6)
%3 = call i32 @printStar(i32 3)
%4 = call i32 @printSpace(i32 8)
%5 = call i32 @printStar(i32 1)
%6 = call i32 @printSpace(i32 10)
%7 = call i32 @printStar(i32 1)
%8 = call i32 (...) @newline()
ret void
}

LLVM IR (-O2):
define void @lineNine() {
%1 = tail call i32 @printStar(i32 9)
%2 = tail call i32 @printSpace(i32 6)
%3 = tail call i32 @printStar(i32 3)
%4 = tail call i32 @printSpace(i32 8)
%5 = tail call i32 @printStar(i32 1)
%6 = tail call i32 @printSpace(i32 10)
%7 = tail call i32 @printStar(i32 1)
%8 = tail call i32 (...) @newline()
ret void
}
/* Type definitions */
struct cursor {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct cursor *);
void cursor_delete(struct cursor *cursor) { free(cursor); }


x86 assembly (clang, -O0):
<cursor_delete>:
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):
<cursor_delete>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.cursor = type { i32 }
define void @cursor_delete(%struct.cursor* nocapture %0) {
%2 = tail call i32 @free(%struct.cursor* %0)
ret void
}
/* Variables and functions */
int fh_bats_main(int, char **, int);
int main(int argc, char **argv) { return fh_bats_main(argc, argv, 1); }


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    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
call   1030 <fh_bats_main@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%edx
jmp    1030 <fh_bats_main@plt>

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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @fh_bats_main(i32 %6, i8** %7, i32 1)
ret i32 %8
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @fh_bats_main(i32 %0, i8** %1, i32 1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ strlen(char const *);
void old_str_clean(char *base, const char *set) {
  int i, j, lenBase, lenSet, check;
  lenBase = (int)strlen(base);
  lenSet = (int)strlen(set);
  char *tempBase = base;
  return;
  for (i = 0; i < lenBase; i++) {
    check = 0;
    for (j = 0; j < lenSet; j++) {
      if (tempBase[i] == set[j]) {
        check = 1;
      }
    }
    if (!check) {
      tempBase++;
    }
  }
  *tempBase = 0;
}


x86 assembly (clang, -O0):
<old_str_clean>:
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,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @old_str_clean(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%11 = load i8*, i8** %3
%12 = call i64 @strlen(i8* %11)
%13 = trunc i64 %12 to i32
store i32 %13, i32* %7
%14 = load i8*, i8** %4
%15 = call i64 @strlen(i8* %14)
%16 = trunc i64 %15 to i32
store i32 %16, i32* %8
%17 = load i8*, i8** %3
store i8* %17, i8** %10
ret void
}

LLVM IR (-O2):
define void @old_str_clean(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int TCP_connect(unsigned int, unsigned short);
int /*<<< orphan*/ send(int, void *, int, int /*<<< orphan*/);
int sendNonConnect(unsigned int ip, unsigned short port, void *send_buf,
                   int send_size) {
  int socket_fd;
  socket_fd = TCP_connect(ip, port);
  send(socket_fd, send_buf, send_size, 0);
  return 1;
}


x86 assembly (clang, -O0):
<sendNonConnect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %si,%ax
mov    %edi,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
movzwl -0x6(%rbp),%esi
call   1040 <TCP_connect@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
call   1030 <send@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sendNonConnect>:
push   %rbp
push   %rbx
push   %rax
mov    %ecx,%ebp
mov    %rdx,%rbx
call   1040 <TCP_connect@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
call   1030 <send@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @sendNonConnect(i32 %0, i16 zeroext %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i16
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %5
store i16 %1, i16* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = load i32, i32* %5
%11 = load i16, i16* %6
%12 = call i32 @TCP_connect(i32 %10, i16 zeroext %11)
store i32 %12, i32* %9
%13 = load i32, i32* %9
%14 = load i8*, i8** %7
%15 = load i32, i32* %8
%16 = call i32 @send(i32 %13, i8* %14, i32 %15, i32 0)
ret i32 1
}

LLVM IR (-O2):
define i32 @sendNonConnect(i32 %0, i16 zeroext %1, i8* %2, i32 %3) {
%5 = tail call i32 @TCP_connect(i32 %0, i16 zeroext %1)
%6 = tail call i32 @send(i32 %5, i8* %2, i32 %3, i32 0)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main(void) {
  long long x;
  int n;
  if (sizeof(long long) < 8)
    exit(0);
  n = 9;
  x = (((long long)n) << 55) / 0xff;
  if (x == 0)
    abort();
  x = (((long long)9) << 55) / 0xff;
  if (x == 0)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x9,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x37,%rax
mov    $0xff,%ecx
cqto
idiv   %rcx
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115e <main+0x3e>
mov    $0x0,%al
call   1030 <abort@plt>
movabs $0x4848484848484,%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    117e <main+0x5e>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i32
store i32 0, i32* %1
store i32 9, i32* %3
%4 = load i32, i32* %3
%5 = sext i32 %4 to i64
%6 = shl i64 %5, 55
%7 = sdiv i64 %6, 255
store i64 %7, i64* %2
%8 = load i64, i64* %2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %0
store i64 1271604600669316, i64* %2
%13 = load i64, i64* %2
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %12
%18 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int arr(int);
int main(void) { return arr(5); }


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

x86 assembly (clang, -O2):
<main>:
mov    $0x5,%edi
jmp    1030 <arr@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @arr(i32 5)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ step_hash(int);
unsigned func_11(unsigned char p_12, int p_13, unsigned char p_14,
                 unsigned char p_15, unsigned p_16) {
  int l_241 = 0xFC9FD4B6L;
  int *l_242 = (void *)0;
  step_hash(136);
  p_13 |= (p_14 < 1L);
  step_hash(137);
  return p_12;
}


x86 assembly (clang, -O0):
<func_11>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %dil,%dl
mov    %dl,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    %r8d,-0x10(%rbp)
movl   $0xfc9fd4b6,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
mov    $0x88,%edi
call   1030 <step_hash@plt>
movzbl -0x9(%rbp),%eax
cmp    $0x1,%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x89,%edi
call   1030 <step_hash@plt>
movzbl -0x1(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_11>:
push   %rbx
mov    %edi,%ebx
mov    $0x88,%edi
call   1030 <step_hash@plt>
mov    $0x89,%edi
call   1030 <step_hash@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @func_11(i8 zeroext %0, i32 %1, i8 zeroext %2, i8 zeroext %3, i32 %4) {
%6 = alloca i8
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
store i8 %0, i8* %6
store i32 %1, i32* %7
store i8 %2, i8* %8
store i8 %3, i8* %9
store i32 %4, i32* %10
store i32 -56634186, i32* %11
store i32* null, i32** %12
%13 = call i32 @step_hash(i32 136)
%14 = load i8, i8* %8
%15 = zext i8 %14 to i64
%16 = icmp slt i64 %15, 1
%17 = zext i1 %16 to i32
%18 = load i32, i32* %7
%19 = or i32 %18, %17
store i32 %19, i32* %7
%20 = call i32 @step_hash(i32 137)
%21 = load i8, i8* %6
%22 = zext i8 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
define i32 @func_11(i8 zeroext %0, i32 %1, i8 zeroext %2, i8 zeroext %3, i32 %4) {
%6 = tail call i32 @step_hash(i32 136)
%7 = tail call i32 @step_hash(i32 137)
%8 = zext i8 %0 to i32
ret i32 %8
}
void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s) {}


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

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

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

LLVM IR (-O2):
%struct.wpa_supplicant = type opaque
define void @wpa_supplicant_dbus_notify_scanning(%struct.wpa_supplicant* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int i;
  int c;
  if (c) {
    i = 2;
  } else {
    i = 3;
  }
  if (c) {
    assert(i != 2);
  } else {
    assert(i != 3);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1135 <main+0x25>
movl   $0x2,-0x8(%rbp)
jmp    113c <main+0x2c>
movl   $0x3,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     115c <main+0x4c>
cmpl   $0x2,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
jmp    116d <main+0x5d>
cmpl   $0x3,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 0)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
void print_L_N(uint64_t number) { printf("%lu\n", number); }


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

x86 assembly (clang, -O2):
<print_L_N>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [5 x i8] c"%lu\0A\00"
define void @print_L_N(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ puts(char *);
void panic(char *ch) {
  puts("Panic!");
  if (ch) {
    puts(ch);
  }
  exit(1);
}


x86 assembly (clang, -O0):
<panic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
cmpq   $0x0,-0x8(%rbp)
je     114c <panic+0x2c>
mov    -0x8(%rbp),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<panic>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
test   %rbx,%rbx
je     113d <panic+0x1d>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Panic!\00"
define void @panic(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = icmp ne i8* %4, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 @puts(i8* %7)
br label %9
9: ; preds = %6, %1
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [7 x i8] c"Panic!\00"
define void @panic(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i8* %0, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @puts(i8* %0)
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
double strtold(char const *, char **);
double strtod(const char *s, char **p) { return strtold(s, p); }


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

x86 assembly (clang, -O2):
<strtod>:
jmp    1030 <strtold@plt>

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

LLVM IR (-O2):
define double @strtod(i8* %0, i8** nocapture %1) {
%3 = tail call double @strtold(i8* %0, i8** %1)
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ op_write1(int);
void op_enc_reti(void) { op_write1(0xd9); }


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

x86 assembly (clang, -O2):
<op_enc_reti>:
mov    $0xd9,%edi
jmp    1030 <op_write1@plt>

LLVM IR (-O0):
define void @op_enc_reti() {
%1 = call i32 @op_write1(i32 217)
ret void
}

LLVM IR (-O2):
define void @op_enc_reti() {
%1 = tail call i32 @op_write1(i32 217)
ret void
}
void _citrus_NONE_stdenc_uninit(struct _citrus_stdenc *ce) {}


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

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

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

LLVM IR (-O2):
%struct._citrus_stdenc = type opaque
define void @_citrus_NONE_stdenc_uninit(%struct._citrus_stdenc* nocapture %0) {
ret void
}
/* Type definitions */
struct of_conn {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct of_conn *);
void of_conn_destroy(struct of_conn *c) { free(c); }


x86 assembly (clang, -O0):
<of_conn_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):
<of_conn_destroy>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.of_conn = type { i32 }
define void @of_conn_destroy(%struct.of_conn* nocapture %0) {
%2 = tail call i32 @free(%struct.of_conn* %0)
ret void
}
void ft_swap(int *a, int *b) {
  int temp_a;
  temp_a = *a;
  *a = *b;
  *b = temp_a;
}


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

x86 assembly (clang, -O2):
<ft_swap>:
mov    (%rdi),%eax
mov    (%rsi),%ecx
mov    %ecx,(%rdi)
mov    %eax,(%rsi)
ret

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

LLVM IR (-O2):
define void @ft_swap(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
store i32 %4, i32* %0
store i32 %3, i32* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void __attribute__((noreturn)) usage(const char *progname) {
  fprintf(stderr, "Usage %s options\n", progname);
  fprintf(stderr, "-n NCOLORS  allocate NCOLORS colors\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
lea    0xebb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xece(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [18 x i8] c"Usage %s options\0A\00"
@.str.1 = [37 x i8] c"-n NCOLORS allocate NCOLORS colors\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [18 x i8] c"Usage %s options\0A\00"
@.str.1 = [37 x i8] c"-n NCOLORS allocate NCOLORS colors\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
}
char drv_base_getkey() { return 0; }


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

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

LLVM IR (-O0):
define signext i8 @drv_base_getkey() {
ret i8 0
}

LLVM IR (-O2):
define signext i8 @drv_base_getkey() {
ret i8 0
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMREE_set(void) { return U_WMRCORENONE_set("U_WMREE"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMREE\00"
define i8* @U_WMREE_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMREE\00"
define i8* @U_WMREE_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
extern void _sbus_writel(unsigned long val, unsigned long addr) {
  *(volatile unsigned long *)addr = val;
}


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

x86 assembly (clang, -O2):
<_sbus_writel>:
mov    %rdi,(%rsi)
ret

LLVM IR (-O0):
define void @_sbus_writel(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 = inttoptr i64 %6 to i64*
store volatile i64 %5, i64* %7
ret void
}

LLVM IR (-O2):
define void @_sbus_writel(i64 %0, i64 %1) {
%3 = inttoptr i64 %1 to i64*
store volatile i64 %0, i64* %3
ret void
}
int _default_storage_uidl_supported() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @_default_storage_uidl_supported() {
ret i32 0
}