xunge/DecIR huggingface dataset:
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int initialize_quaddobl_monodromy(int n, int d, int k) {
  int fail;
  double *c;
  int dk[2];
  dk[0] = d;
  dk[1] = k;
  fail = _ada_use_c2phc(670, &n, dk, c);
  return fail;
}


x86 assembly (clang, -O0):
<initialize_quaddobl_monodromy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x20(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x29e,%edi
lea    -0x4(%rbp),%rsi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize_quaddobl_monodromy>:
sub    $0x18,%rsp
mov    %edi,0xc(%rsp)
mov    %esi,0x10(%rsp)
mov    %edx,0x14(%rsp)
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    $0x29e,%edi
call   1030 <_ada_use_c2phc@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @initialize_quaddobl_monodromy(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double*
%9 = alloca [2 x i32]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = load i32, i32* %5
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
store i32 %10, i32* %11
%12 = load i32, i32* %6
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
store i32 %12, i32* %13
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%15 = load double*, double** %8
%16 = call i32 @_ada_use_c2phc(i32 670, i32* %4, i32* %14, double* %15)
store i32 %16, i32* %7
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @initialize_quaddobl_monodromy(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca [2 x i32]
store i32 %0, i32* %4
%6 = bitcast [2 x i32]* %5 to i8*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
store i32 %1, i32* %7
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
store i32 %2, i32* %8
%9 = call i32 @_ada_use_c2phc(i32 670, i32* %4, i32* %7, double* undef)
ret i32 %9
}
/* Type definitions */
struct cxl_afu_h {
  int dummy;
};

/* Variables and functions */
void _cxl_afu_free(struct cxl_afu_h *, int);
void cxl_afu_free(struct cxl_afu_h *afu) { return _cxl_afu_free(afu, 1); }


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

x86 assembly (clang, -O2):
<cxl_afu_free>:
mov    $0x1,%esi
jmp    1030 <_cxl_afu_free@plt>

LLVM IR (-O0):
%struct.cxl_afu_h = type { i32 }
define void @cxl_afu_free(%struct.cxl_afu_h* %0) {
%2 = alloca %struct.cxl_afu_h*
store %struct.cxl_afu_h* %0, %struct.cxl_afu_h** %2
%3 = load %struct.cxl_afu_h*, %struct.cxl_afu_h** %2
ret void
}

LLVM IR (-O2):
%struct.cxl_afu_h = type { i32 }
define void @cxl_afu_free(%struct.cxl_afu_h* %0) {
tail call void @_cxl_afu_free(%struct.cxl_afu_h* %0, i32 1)
ret void
}
extern void gui_ksys_debug_out(int c) {
  __asm__ __volatile__("int $0x40" : : "a"(63), "b"(1), "c"(c));
}


x86 assembly (clang, -O0):
<gui_ksys_debug_out>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x3f,%eax
mov    $0x1,%ebx
int    $0x40
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_ksys_debug_out>:
push   %rbx
mov    %edi,%ecx
mov    $0x3f,%eax
mov    $0x1,%ebx
int    $0x40
pop    %rbx
ret

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

LLVM IR (-O2):
define void @gui_ksys_debug_out(i32 %0) {
tail call void asm sideeffect "int $$0x40", "{ax},{bx},{cx},~{dirflag},~{fpsr},~{flags}"(i32 63, i32 1, i32 %0)
ret void
}
/* Variables and functions */
double sin(float);
float custom_n0(float x, void *data) {
  return 1.0 + 0.5 * sin(x / 3.14159265358979323846264338327950288) *
                   sin(x / 3.14159265358979323846264338327950288);
}


x86 assembly (clang, -O0):
<custom_n0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xed6(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  0xec6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea4(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe7b(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<custom_n0>:
sub    $0x18,%rsp
cvtss2sd %xmm0,%xmm0
divsd  0xee0(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
call   1030 <sin@plt>
mulsd  0xed1(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0xeba(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @custom_n0(float %0, i8* %1) {
%3 = alloca float
%4 = alloca i8*
store float %0, float* %3
store i8* %1, i8** %4
%5 = load float, float* %3
%6 = fpext float %5 to double
%7 = fdiv double %6, 0x400921FB54442D18
%8 = fptrunc double %7 to float
%9 = call double @sin(float %8)
%10 = fmul double 5.000000e-01, %9
%11 = load float, float* %3
%12 = fpext float %11 to double
%13 = fdiv double %12, 0x400921FB54442D18
%14 = fptrunc double %13 to float
%15 = call double @sin(float %14)
%16 = call double @llvm.fmuladd.f64(double %10, double %15, double 1.000000e+00)
%17 = fptrunc double %16 to float
ret float %17
}

LLVM IR (-O2):
define float @custom_n0(float %0, i8* nocapture readnone %1) {
%3 = fpext float %0 to double
%4 = fdiv double %3, 0x400921FB54442D18
%5 = fptrunc double %4 to float
%6 = tail call double @sin(float %5)
%7 = fmul double %6, 5.000000e-01
%8 = tail call double @sin(float %5)
%9 = tail call double @llvm.fmuladd.f64(double %7, double %8, double 1.000000e+00)
%10 = fptrunc double %9 to float
ret float %10
}
/* Variables and functions */
bool is_valid_path(char value[]) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @is_valid_path(i8* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
char *malloc(unsigned int);
char *get_code_mem(unsigned int sz) { return malloc(sz); }


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

x86 assembly (clang, -O2):
<get_code_mem>:
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define noalias i8* @get_code_mem(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
void usage_help(char *argv[]) { fprintf(stdout, "Usage help...\n"); }


x86 assembly (clang, -O0):
<usage_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage_help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [15 x i8] c"Usage help...\0A\00"
define void @usage_help(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i32, i32* @stdout
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [15 x i8] c"Usage help...\0A\00"
define void @usage_help(i8** nocapture readnone %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ first_keycode;
};
typedef TYPE_1__ XMappingEvent;

/* Variables and functions */
int get_XMappingEvent_first_keycode(void *_p) {
  return (int)((XMappingEvent *)_p)->first_keycode;
}


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

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

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

LLVM IR (-O2):
define i32 @get_XMappingEvent_first_keycode(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
int *tddfunc4(void) {
  int localauto;
  return (&localauto);
}


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

x86 assembly (clang, -O2):
<tddfunc4>:
lea    -0x4(%rsp),%rax
ret

LLVM IR (-O0):
define i32* @tddfunc4() {
%1 = alloca i32
ret i32* %1
}

LLVM IR (-O2):
define noalias i32* @tddfunc4() {
%1 = alloca i32
ret i32* %1
}
/* Variables and functions */
int /*<<< orphan*/ FIONREAD;
scalar_t__ ioctl(int, int /*<<< orphan*/, long *);
int bot_fileutils_read_available(int fd) {
  long avail = 0;
  if (ioctl(fd, FIONREAD, &avail) == 0)
    return avail;
  else
    return -1;
}


x86 assembly (clang, -O0):
<bot_fileutils_read_available>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
lea    -0x10(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
jne    114e <bot_fileutils_read_available+0x3e>
mov    -0x10(%rbp),%rax
mov    %eax,-0x4(%rbp)
jmp    1155 <bot_fileutils_read_available+0x45>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bot_fileutils_read_available>:
push   %rax
movq   $0x0,(%rsp)
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   1030 <ioctl@plt>
neg    %rax
sbb    %eax,%eax
or     (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@FIONREAD = global i32 0
define i32 @bot_fileutils_read_available(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
store i32 %0, i32* %3
store i64 0, i64* %4
%5 = load i32, i32* %3
%6 = load i32, i32* @FIONREAD
%7 = call i64 @ioctl(i32 %5, i32 %6, i64* %4)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i64, i64* %4
%11 = trunc i64 %10 to i32
store i32 %11, i32* %2
br label %13
12: ; preds = %1
store i32 -1, i32* %2
br label %13
13: ; preds = %12, %9
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@FIONREAD = global i32 0
define i32 @bot_fileutils_read_available(i32 %0) {
%2 = alloca i64
%3 = bitcast i64* %2 to i8*
store i64 0, i64* %2
%4 = load i32, i32* @FIONREAD
%5 = call i64 @ioctl(i32 %0, i32 %4, i64* %2)
%6 = icmp eq i64 %5, 0
%7 = load i64, i64* %2
%8 = trunc i64 %7 to i32
%9 = select i1 %6, i32 %8, i32 -1
ret i32 %9
}
/* Variables and functions */
double Normal(double, double);
double exp(double);
double Lognormal(double a, double b) { return (exp(a + b * Normal(0.0, 1.0))); }


x86 assembly (clang, -O0):
<Lognormal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  0xeaf(%rip),%xmm1
call   1030 <Normal@plt>
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <exp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Lognormal>:
sub    $0x18,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0xec8(%rip),%xmm1
xorpd  %xmm0,%xmm0
call   1030 <Normal@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
jmp    1040 <exp@plt>

LLVM IR (-O0):
define double @Lognormal(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = call double @Normal(double 0.000000e+00, double 1.000000e+00)
%8 = call double @llvm.fmuladd.f64(double %6, double %7, double %5)
%9 = call double @exp(double %8)
ret double %9
}

LLVM IR (-O2):
define double @Lognormal(double %0, double %1) {
%3 = tail call double @Normal(double 0.000000e+00, double 1.000000e+00)
%4 = tail call double @llvm.fmuladd.f64(double %1, double %3, double %0)
%5 = tail call double @exp(double %4)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isalpha(int);
void t_isalpha_0x7a() {
  Assert_real((isalpha(122)),
              "/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/ctype/test_isalpha.c",
              615, ("isalpha should be 1 for z"));
}


x86 assembly (clang, -O0):
<t_isalpha_0x7a>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7a,%edi
call   1030 <isalpha@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x267,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isalpha_0x7a>:
push   %rax
mov    $0x7a,%edi
call   1030 <isalpha@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x267,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 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/ctype/test_isalpha.c\00"
@.str.1 = [26 x i8] c"isalpha should be 1 for z\00"
define void @t_isalpha_0x7a() {
%1 = call i32 @isalpha(i32 122)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 615, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 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/ctype/test_isalpha.c\00"
@.str.1 = [26 x i8] c"isalpha should be 1 for z\00"
define void @t_isalpha_0x7a() {
%1 = tail call i32 @isalpha(i32 122)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 615, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ parse_1();
int /*<<< orphan*/ parse_const();
int main(void) {
  parse_1();
  parse_const();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <parse_1@plt>
mov    $0x0,%al
call   1040 <parse_const@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @parse_1()
%2 = call i32 (...) @parse_const()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @parse_1()
%2 = tail call i32 (...) @parse_const()
ret i32 0
}
long double __subtf3(long double a __attribute__((unused)),
                     long double b __attribute__((unused))) {
  return 0.0;
}


x86 assembly (clang, -O0):
<__subtf3>:
push   %rbp
mov    %rsp,%rbp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldz
pop    %rbp
ret

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

LLVM IR (-O0):
define x86_fp80 @__subtf3(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
ret x86_fp80 0xK00000000000000000000
}

LLVM IR (-O2):
define x86_fp80 @__subtf3(x86_fp80 %0, x86_fp80 %1) {
ret x86_fp80 0xK00000000000000000000
}
/* Variables and functions */
int /*<<< orphan*/ e_abs();
int /*<<< orphan*/ e_stx();
int /*<<< orphan*/ e_writeback();
void e_stx_abs() {
  e_abs();
  e_stx();
  e_writeback();
}


x86 assembly (clang, -O0):
<e_stx_abs>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <e_abs@plt>
mov    $0x0,%al
call   1050 <e_stx@plt>
mov    $0x0,%al
call   1030 <e_writeback@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_stx_abs>:
push   %rax
xor    %eax,%eax
call   1040 <e_abs@plt>
xor    %eax,%eax
call   1050 <e_stx@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <e_writeback@plt>

LLVM IR (-O0):
define void @e_stx_abs() {
%1 = call i32 (...) @e_abs()
%2 = call i32 (...) @e_stx()
%3 = call i32 (...) @e_writeback()
ret void
}

LLVM IR (-O2):
define void @e_stx_abs() {
%1 = tail call i32 (...) @e_abs()
%2 = tail call i32 (...) @e_stx()
%3 = tail call i32 (...) @e_writeback()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ i2c1_write(unsigned char *, int);
void i2c1_writeregs(unsigned char reg, unsigned char *data, int length) {
  i2c1_write(&reg, 1);
  i2c1_write(data, length);
}


x86 assembly (clang, -O0):
<i2c1_writeregs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    -0x1(%rbp),%rdi
mov    $0x1,%esi
call   1030 <i2c1_write@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <i2c1_write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<i2c1_writeregs>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rsi,%rbx
mov    %dil,0x7(%rsp)
lea    0x7(%rsp),%rdi
mov    $0x1,%esi
call   1030 <i2c1_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <i2c1_write@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define void @i2c1_writeregs(i8 zeroext %0, i8* %1, i32 %2) {
%4 = alloca i8
store i8 %0, i8* %4
%5 = call i32 @i2c1_write(i8* %4, i32 1)
%6 = call i32 @i2c1_write(i8* %1, i32 %2)
ret void
}
void initWSA() { return; }


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

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

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

LLVM IR (-O2):
define void @initWSA() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void default_terminal_info(char *args, int from_tty) {
  printf("No saved terminal information.\n");
}


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

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

LLVM IR (-O0):
@.str = [32 x i8] c"No saved terminal information.\0A\00"
define void @default_terminal_info(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [31 x i8] c"No saved terminal information.\00"
define void @default_terminal_info(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
ret void
}
int vis_level(void) {
  int accel = 0;
  accel |= 1;
  accel |= 2;
  return accel;
}


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

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

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

LLVM IR (-O2):
define i32 @vis_level() {
ret i32 3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, int, int);
void version(void) {
  printf("MISO v.%d.%d.%d\n", 0, 9, 15);
  return;
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
xor    %esi,%esi
mov    $0x9,%edx
mov    $0xf,%ecx
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
lea    0xee9(%rip),%rdi
xor    %esi,%esi
mov    $0x9,%edx
mov    $0xf,%ecx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"MISO v.%d.%d.%d\0A\00"
define void @version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i32 9, i32 15)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"MISO v.%d.%d.%d\0A\00"
define void @version() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i32 9, i32 15)
ret void
}
/* Variables and functions */
int INT_MAX;
int INT_MIN;
float scalbnf(float, int);
float scalblnf(float x, long n) {
  int in;
  in = (int)n;
  if (in != n) {
    if (n > 0)
      in = INT_MAX;
    else
      in = INT_MIN;
  }
  return (scalbnf(x, in));
}


x86 assembly (clang, -O0):
<scalblnf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     1163 <scalblnf+0x53>
cmpq   $0x0,-0x10(%rbp)
jle    1152 <scalblnf+0x42>
mov    0x2ea0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    115e <scalblnf+0x4e>
mov    0x2e87(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    1163 <scalblnf+0x53>
movss  -0x4(%rbp),%xmm0
mov    -0x14(%rbp),%edi
call   1030 <scalbnf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scalblnf>:
movslq %edi,%rax
cmp    %rdi,%rax
je     112f <scalblnf+0x1f>
test   %rdi,%rdi
jle    1126 <scalblnf+0x16>
mov    0x2ec4(%rip),%rax
jmp    112d <scalblnf+0x1d>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
jmp    1030 <scalbnf@plt>

LLVM IR (-O0):
@INT_MAX = global i32 0
@INT_MIN = global i32 0
define float @scalblnf(float %0, i64 %1) {
%3 = alloca float
%4 = alloca i64
%5 = alloca i32
store float %0, float* %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = trunc i64 %6 to i32
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = sext i32 %8 to i64
%10 = load i64, i64* %4
%11 = icmp ne i64 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load i64, i64* %4
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load i32, i32* @INT_MAX
store i32 %16, i32* %5
br label %19
17: ; preds = %12
%18 = load i32, i32* @INT_MIN
store i32 %18, i32* %5
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %2
%21 = load float, float* %3
%22 = load i32, i32* %5
%23 = call float @scalbnf(float %21, i32 %22)
ret float %23
}

LLVM IR (-O2):
@INT_MAX = global i32 0
@INT_MIN = global i32 0
define float @scalblnf(float %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = add i64 %1, 2147483648
%5 = icmp ult i64 %4, 4294967296
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = icmp sgt i64 %1, 0
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = load i32, i32* @INT_MAX
br label %12
10: ; preds = %6
%11 = load i32, i32* @INT_MIN
br label %12
12: ; preds = %8, %10, %2
%13 = phi i32 [ %9, %8 ], [ %11, %10 ], [ %3, %2 ]
%14 = tail call float @scalbnf(float %0, i32 %13)
ret float %14
}
unsigned SkipWhitespace(const char *in, unsigned length) {
  unsigned i = 0;
  while ((*in == ' ' || *in == '\t' || *in == '\n') && i++ < length)
    in++;
  return i;
}


x86 assembly (clang, -O0):
<SkipWhitespace>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1147 <SkipWhitespace+0x47>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1147 <SkipWhitespace+0x47>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x11(%rbp)
jne    115b <SkipWhitespace+0x5b>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
cmp    -0xc(%rbp),%eax
setb   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    116b <SkipWhitespace+0x6b>
jmp    117c <SkipWhitespace+0x7c>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1112 <SkipWhitespace+0x12>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SkipWhitespace>:
mov    %esi,%eax
add    $0x1,%eax
xor    %ecx,%ecx
movabs $0x100000600,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl (%rdi,%rcx,1),%esi
cmp    $0x20,%rsi
ja     1139 <SkipWhitespace+0x39>
bt     %rsi,%rdx
jae    1139 <SkipWhitespace+0x39>
add    $0x1,%rcx
cmp    %ecx,%eax
jne    1120 <SkipWhitespace+0x20>
ret
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @SkipWhitespace(i8* nocapture %0, i32 %1) {
%3 = add i32 %1, 1
br label %4
4: ; preds = %8, %2
%5 = phi i8* [ %0, %2 ], [ %10, %8 ]
%6 = phi i32 [ 0, %2 ], [ %9, %8 ]
%7 = load i8, i8* %5
switch i8 %7, label %12 [
i8 32, label %8
i8 9, label %8
i8 10, label %8
]
8: ; preds = %4, %4, %4
%9 = add i32 %6, 1
%10 = getelementptr inbounds i8, i8* %5, i64 1
%11 = icmp eq i32 %6, %1
br i1 %11, label %12, label %4
12: ; preds = %4, %8
%13 = phi i32 [ %3, %8 ], [ %6, %4 ]
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_secp256k1_set_one(uintptr_t);
void fiat_secp256k1_set_one(uint64_t out1[4]) {
  internal_fiat_secp256k1_set_one((uintptr_t)out1);
}


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

x86 assembly (clang, -O2):
<fiat_secp256k1_set_one>:
jmp    1030 <internal_fiat_secp256k1_set_one@plt>

LLVM IR (-O0):
define void @fiat_secp256k1_set_one(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = ptrtoint i32* %3 to i64
%5 = call i32 @internal_fiat_secp256k1_set_one(i64 %4)
ret void
}

LLVM IR (-O2):
define void @fiat_secp256k1_set_one(i32* %0) {
%2 = ptrtoint i32* %0 to i64
%3 = tail call i32 @internal_fiat_secp256k1_set_one(i64 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a = 0x7fffffff;
  int b = 0x80000000;
  a = a + 1;
  b = b - 1;
  printf("%d\n", a);
  printf("%d\n", b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7fffffff,-0x8(%rbp)
movl   $0x80000000,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x80000000,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7fffffff,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 -2147483648)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2147483647)
ret i32 0
}
int places(unsigned int num, int base) {
  int i = 0;
  while (num >= 1) {
    num = num / base;
    i++;
  }
  return i;
}


x86 assembly (clang, -O0):
<places>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1,-0x4(%rbp)
jb     1134 <places+0x34>
mov    -0x4(%rbp),%eax
xor    %edx,%edx
divl   -0x8(%rbp)
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1111 <places+0x11>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<places>:
xor    %ecx,%ecx
test   %edi,%edi
je     111f <places+0x1f>
cs nopw 0x0(%rax,%rax,1)
mov    %edi,%eax
xor    %edx,%edx
div    %esi
add    $0x1,%ecx
cmp    %esi,%edi
mov    %eax,%edi
jae    1110 <places+0x10>
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @places(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %9, %2
%7 = load i32, i32* %3
%8 = icmp uge i32 %7, 1
br i1 %8, label %9, label %15
9: ; preds = %6
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = udiv i32 %10, %11
store i32 %12, i32* %3
%13 = load i32, i32* %5
%14 = add nsw i32 %13, 1
store i32 %14, i32* %5
br label %6
15: ; preds = %6
%16 = load i32, i32* %5
ret i32 %16
}

LLVM IR (-O2):
define i32 @places(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %10, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %8, %4 ], [ 0, %2 ]
%6 = phi i32 [ %7, %4 ], [ %0, %2 ]
%7 = udiv i32 %6, %1
%8 = add nuw nsw i32 %5, 1
%9 = icmp ult i32 %6, %1
br i1 %9, label %10, label %4
10: ; preds = %4, %2
%11 = phi i32 [ 0, %2 ], [ %8, %4 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void OS_Solaris_print() { printf("Solaris - Sun Microsystems\n"); }


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

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

LLVM IR (-O0):
@.str = [28 x i8] c"Solaris - Sun Microsystems\0A\00"
define void @OS_Solaris_print() {
%1 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [27 x i8] c"Solaris - Sun Microsystems\00"
define void @OS_Solaris_print() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: mld6query ifname [addr]\n");
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"usage: mld6query ifname [addr]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"usage: mld6query ifname [addr]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
unsigned int val_uint(unsigned int x) { return x; }


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

x86 assembly (clang, -O2):
<val_uint>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @val_uint(i32 returned %0) {
ret i32 %0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int
sd_event_source_set_time_accuracy(void *s, uint64_t usec) {
  return -EINVAL;
}


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

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

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @sd_event_source_set_time_accuracy(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @EINVAL
%6 = sub nsw i32 0, %5
ret i32 %6
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_event_source_set_time_accuracy(i8* nocapture readnone %0, i32 %1) {
%3 = load i32, i32* @EINVAL
%4 = sub nsw i32 0, %3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ halt_isr();
__attribute__((weak)) void MemManage_Handler() { halt_isr(); }


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

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

LLVM IR (-O0):
define weak void @MemManage_Handler() {
%1 = call i32 (...) @halt_isr()
ret void
}

LLVM IR (-O2):
define weak void @MemManage_Handler() {
%1 = tail call i32 (...) @halt_isr()
ret void
}
/* Type definitions */
struct RNAsnoop_args_info {
  int dummy;
};

/* Variables and functions */
int RNAsnoop_cmdline_parser2(int, char **, struct RNAsnoop_args_info *,
                             int /*<<< orphan*/, int, int);
int RNAsnoop_cmdline_parser(int argc, char **argv,
                            struct RNAsnoop_args_info *args_info) {
  return RNAsnoop_cmdline_parser2(argc, argv, args_info, 0, 1, 1);
}


x86 assembly (clang, -O0):
<RNAsnoop_cmdline_parser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %r9d,%r8d
call   1030 <RNAsnoop_cmdline_parser2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RNAsnoop_cmdline_parser>:
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
jmp    1030 <RNAsnoop_cmdline_parser2@plt>

LLVM IR (-O0):
%struct.RNAsnoop_args_info = type { i32 }
define i32 @RNAsnoop_cmdline_parser(i32 %0, i8** %1, %struct.RNAsnoop_args_info* %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.RNAsnoop_args_info*
store i32 %0, i32* %4
store i8** %1, i8*** %5
store %struct.RNAsnoop_args_info* %2, %struct.RNAsnoop_args_info** %6
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = load %struct.RNAsnoop_args_info*, %struct.RNAsnoop_args_info** %6
%10 = call i32 @RNAsnoop_cmdline_parser2(i32 %7, i8** %8, %struct.RNAsnoop_args_info* %9, i32 0, i32 1, i32 1)
ret i32 %10
}

LLVM IR (-O2):
%struct.RNAsnoop_args_info = type { i32 }
define i32 @RNAsnoop_cmdline_parser(i32 %0, i8** %1, %struct.RNAsnoop_args_info* %2) {
%4 = tail call i32 @RNAsnoop_cmdline_parser2(i32 %0, i8** %1, %struct.RNAsnoop_args_info* %2, i32 0, i32 1, i32 1)
ret i32 %4
}
int fun969() { return 969; }


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

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

LLVM IR (-O0):
define i32 @fun969() {
ret i32 969
}

LLVM IR (-O2):
define i32 @fun969() {
ret i32 969
}
/* Variables and functions */
char *getenv(char *);
char *getClassPath() { return getenv("CLASSPATH"); }


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

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

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

LLVM IR (-O2):
@.str = [10 x i8] c"CLASSPATH\00"
define i8* @getClassPath() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i = 10, sum = 0;
  while (i <= 98) {
    sum = sum + i;
    i += 2;
  }
  printf("%d\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x62,-0x8(%rbp)
jg     114e <main+0x3e>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
mov    -0xc(%rbp),%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2430)
ret i32 0
}
/* Variables and functions */
char *strcpy(int /*<<< orphan*/, char const *);
scalar_t__ strlen(char const *);
int /*<<< orphan*/ xmalloc(scalar_t__);
char *xstrdup(const char *s) { return strcpy(xmalloc(strlen(s) + 1), s); }


x86 assembly (clang, -O0):
<xstrdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <xmalloc@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xstrdup>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <xmalloc@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <strcpy@plt>

LLVM IR (-O0):
define i8* @xstrdup(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strlen(i8* %3)
%5 = add nsw i64 %4, 1
%6 = call i32 @xmalloc(i64 %5)
%7 = load i8*, i8** %2
%8 = call i8* @strcpy(i32 %6, i8* %7)
ret i8* %8
}

LLVM IR (-O2):
define i8* @xstrdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i32 @xmalloc(i64 %3)
%5 = tail call i8* @strcpy(i32 %4, i8* %0)
ret i8* %5
}
void gdk_x11_colormap_foreign_new() {}


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

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

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

LLVM IR (-O2):
define void @gdk_x11_colormap_foreign_new() {
ret void
}
int Bematech_FI_FlagsISS(Var, Retorno) {
  return Formata("\x1b|35|29|\x1b", Var, Retorno);
}


x86 assembly (clang, -O0):
<Bematech_FI_FlagsISS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <Formata@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bematech_FI_FlagsISS>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <Formata@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B|35|29|\1B\00"
define i32 @Bematech_FI_FlagsISS(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 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B|35|29|\1B\00"
define i32 @Bematech_FI_FlagsISS(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, char *);
int main(int argc, char **argv) {
  int i;
  for (i = 0; i < argc; i++) {
    printf("argv[ %d ] = '%s'\n", i, argv[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1162 <main+0x52>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %edi,%edi
jle    1147 <main+0x37>
mov    %rsi,%r14
mov    %edi,%r12d
xor    %ebx,%ebx
lea    0xed5(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdx
mov    %r15,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"argv[ %d ] = '%s'\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %14
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %12, %6 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = trunc i64 %7 to i32
%11 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %10, i8* %9)
%12 = add nuw nsw i64 %7, 1
%13 = icmp eq i64 %12, %5
br i1 %13, label %14, label %6
14: ; preds = %6, %2
ret i32 0
}
double negate_logical_not(double a) { return -(a == 0.0); }


x86 assembly (clang, -O0):
<negate_logical_not>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%ecx
xor    %eax,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<negate_logical_not>:
xorpd  %xmm1,%xmm1
cmpeqsd %xmm1,%xmm0
movsd  0xeef(%rip),%xmm1
andpd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @negate_logical_not(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp oeq double %3, 0.000000e+00
%5 = zext i1 %4 to i32
%6 = sub nsw i32 0, %5
%7 = sitofp i32 %6 to double
ret double %7
}

LLVM IR (-O2):
define double @negate_logical_not(double %0) {
%2 = fcmp oeq double %0, 0.000000e+00
%3 = sitofp i1 %2 to double
ret double %3
}
void LbxFreeFontTag() {}


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

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

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

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