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

/* Variables and functions */
int /*<<< orphan*/ sha512_conclude_ctx(struct sha512_ctx *);
void *sha512_read_ctx(struct sha512_ctx *, void *);
void *sha512_finish_ctx(struct sha512_ctx *ctx, void *resbuf) {
  sha512_conclude_ctx(ctx);
  return sha512_read_ctx(ctx, resbuf);
}


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

x86 assembly (clang, -O2):
<sha512_finish_ctx>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <sha512_conclude_ctx@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <sha512_read_ctx@plt>

LLVM IR (-O0):
%struct.sha512_ctx = type { i32 }
define i8* @sha512_finish_ctx(%struct.sha512_ctx* %0, i8* %1) {
%3 = alloca %struct.sha512_ctx*
%4 = alloca i8*
store %struct.sha512_ctx* %0, %struct.sha512_ctx** %3
store i8* %1, i8** %4
%5 = load %struct.sha512_ctx*, %struct.sha512_ctx** %3
%6 = call i32 @sha512_conclude_ctx(%struct.sha512_ctx* %5)
%7 = load %struct.sha512_ctx*, %struct.sha512_ctx** %3
%8 = load i8*, i8** %4
%9 = call i8* @sha512_read_ctx(%struct.sha512_ctx* %7, i8* %8)
ret i8* %9
}

LLVM IR (-O2):
%struct.sha512_ctx = type { i32 }
define i8* @sha512_finish_ctx(%struct.sha512_ctx* %0, i8* %1) {
%3 = tail call i32 @sha512_conclude_ctx(%struct.sha512_ctx* %0)
%4 = tail call i8* @sha512_read_ctx(%struct.sha512_ctx* %0, i8* %1)
ret i8* %4
}
void quit_fullscreen() {}


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

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

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

LLVM IR (-O2):
define void @quit_fullscreen() {
ret void
}
/* Variables and functions */
unsigned char *four_numbering_system_encode(unsigned char *, int);
unsigned char *mincrypt_convert_to_four_system(unsigned char *data, int len) {
  return four_numbering_system_encode(data, len);
}


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

x86 assembly (clang, -O2):
<mincrypt_convert_to_four_system>:
jmp    1030 <four_numbering_system_encode@plt>

LLVM IR (-O0):
define i8* @mincrypt_convert_to_four_system(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
%7 = call i8* @four_numbering_system_encode(i8* %5, i32 %6)
ret i8* %7
}

LLVM IR (-O2):
define i8* @mincrypt_convert_to_four_system(i8* %0, i32 %1) {
%3 = tail call i8* @four_numbering_system_encode(i8* %0, i32 %1)
ret i8* %3
}
int cmp_devlink(const char *dirname, void *priv) {
  (void)priv;
  return (dirname && dirname[0] >= '0' && dirname[0] <= '9');
}


x86 assembly (clang, -O0):
<cmp_devlink>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
je     1141 <cmp_devlink+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x11(%rbp)
jl     1141 <cmp_devlink+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_devlink>:
xor    %eax,%eax
test   %rdi,%rdi
je     1116 <cmp_devlink+0x16>
mov    (%rdi),%cl
cmp    $0x30,%cl
jl     1116 <cmp_devlink+0x16>
xor    %eax,%eax
cmp    $0x3a,%cl
setb   %al
ret

LLVM IR (-O0):
define i32 @cmp_devlink(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i8*, i8** %3
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %20
8: ; preds = %2
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 48
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 0
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 57
br label %20
20: ; preds = %14, %8, %2
%21 = phi i1 [ false, %8 ], [ false, %2 ], [ %19, %14 ]
%22 = zext i1 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
define i32 @cmp_devlink(i8* %0, i8* nocapture readnone %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = load i8, i8* %0
%6 = icmp sgt i8 %5, 47
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = icmp ult i8 %5, 58
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %7, %4, %2
%11 = phi i32 [ 0, %4 ], [ 0, %2 ], [ %9, %7 ]
ret i32 %11
}
void RTMemAllocZTag(void) {}


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

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

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

LLVM IR (-O2):
define void @RTMemAllocZTag() {
ret void
}
double logic_not(double a) { return !a; }


x86 assembly (clang, -O0):
<logic_not>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

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

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

LLVM IR (-O2):
define double @logic_not(double %0) {
%2 = fcmp oeq double %0, 0.000000e+00
%3 = uitofp i1 %2 to double
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ free(double *);
double *get_transpose(double const *);
double *multiply_matrices(double *, double const *);
double *get_metric(const double *M) {
  double *G, *M_T;
  M_T = get_transpose(M);
  G = multiply_matrices(M_T, M);
  free(M_T);
  return G;
}


x86 assembly (clang, -O0):
<get_metric>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <get_transpose@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <multiply_matrices@plt>
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_metric>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1050 <get_transpose@plt>
mov    %rax,%r14
mov    %rax,%rdi
mov    %rbx,%rsi
call   1040 <multiply_matrices@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define double* @get_metric(double* %0) {
%2 = alloca double*
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %2
%5 = load double*, double** %2
%6 = call double* @get_transpose(double* %5)
store double* %6, double** %4
%7 = load double*, double** %4
%8 = load double*, double** %2
%9 = call double* @multiply_matrices(double* %7, double* %8)
store double* %9, double** %3
%10 = load double*, double** %4
%11 = call i32 @free(double* %10)
%12 = load double*, double** %3
ret double* %12
}

LLVM IR (-O2):
define double* @get_metric(double* %0) {
%2 = tail call double* @get_transpose(double* %0)
%3 = tail call double* @multiply_matrices(double* %2, double* %0)
%4 = tail call i32 @free(double* %2)
ret double* %3
}
void gtk_icon_info_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_icon_info_get_type() {
ret void
}
/* Variables and functions */
int z_repair_chunk_needed(int, int, int, int, int *);
int librlc_z_repair_chunk_needed(int m, int k, int node, int chunk_num,
                                 int *chunk_list) {
  int ret = z_repair_chunk_needed(m, k, node, chunk_num, chunk_list);
  return ret;
}


x86 assembly (clang, -O0):
<librlc_z_repair_chunk_needed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
call   1030 <z_repair_chunk_needed@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<librlc_z_repair_chunk_needed>:
jmp    1030 <z_repair_chunk_needed@plt>

LLVM IR (-O0):
define i32 @librlc_z_repair_chunk_needed(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32* %4, i32** %10
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32*, i32** %10
%17 = call i32 @z_repair_chunk_needed(i32 %12, i32 %13, i32 %14, i32 %15, i32* %16)
store i32 %17, i32* %11
%18 = load i32, i32* %11
ret i32 %18
}

LLVM IR (-O2):
define i32 @librlc_z_repair_chunk_needed(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = tail call i32 @z_repair_chunk_needed(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4)
ret i32 %6
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int hoic_read(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ strtol(char *, int /*<<< orphan*/, int);
int hdoip_cli_read(int fd, int fdr, char **argv, int argc) {
  uint32_t s = hoic_read(fd, fdr, strtol(argv[0], 0, 16));
  printf("return: %08x\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<hdoip_cli_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1050 <strtol@plt>
mov    -0x20(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    %eax,%edx
call   1030 <hoic_read@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xe82(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hdoip_cli_read>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    (%rdx),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1050 <strtol@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <hoic_read@plt>
lea    0xea8(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"return: %08x\0A\00"
define i32 @hdoip_cli_read(i32 %0, i32 %1, i8** %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
store i32 %3, i32* %8
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = load i8**, i8*** %7
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 @strtol(i8* %14, i32 0, i32 16)
%16 = call i32 @hoic_read(i32 %10, i32 %11, i32 %15)
store i32 %16, i32* %9
%17 = load i32, i32* %9
%18 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"return: %08x\0A\00"
define i32 @hdoip_cli_read(i32 %0, i32 %1, i8** nocapture %2, i32 %3) {
%5 = load i8*, i8** %2
%6 = tail call i32 @strtol(i8* %5, i32 0, i32 16)
%7 = tail call i32 @hoic_read(i32 %0, i32 %1, i32 %6)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 0
}
/* Variables and functions */
float sqrtf(float const);
float vec3Length(const float *vec) {
  return sqrtf(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]);
}


x86 assembly (clang, -O0):
<vec3Length>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x8(%rbp),%rax
mulss  0x4(%rax),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1030 <sqrtf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec3Length>:
movss  (%rdi),%xmm1
movss  0x4(%rdi),%xmm0
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  0x8(%rdi),%xmm0
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     113f <vec3Length+0x2f>
sqrtss %xmm0,%xmm0
ret
jmp    1030 <sqrtf@plt>

LLVM IR (-O0):
define float @vec3Length(float* %0) {
%2 = alloca float*
store float* %0, float** %2
%3 = load float*, float** %2
%4 = getelementptr inbounds float, float* %3, i64 0
%5 = load float, float* %4
%6 = load float*, float** %2
%7 = getelementptr inbounds float, float* %6, i64 0
%8 = load float, float* %7
%9 = load float*, float** %2
%10 = getelementptr inbounds float, float* %9, i64 1
%11 = load float, float* %10
%12 = load float*, float** %2
%13 = getelementptr inbounds float, float* %12, i64 1
%14 = load float, float* %13
%15 = fmul float %11, %14
%16 = call float @llvm.fmuladd.f32(float %5, float %8, float %15)
%17 = load float*, float** %2
%18 = getelementptr inbounds float, float* %17, i64 2
%19 = load float, float* %18
%20 = load float*, float** %2
%21 = getelementptr inbounds float, float* %20, i64 2
%22 = load float, float* %21
%23 = call float @llvm.fmuladd.f32(float %19, float %22, float %16)
%24 = call float @sqrtf(float %23)
ret float %24
}

LLVM IR (-O2):
define float @vec3Length(float* nocapture %0) {
%2 = load float, float* %0
%3 = getelementptr inbounds float, float* %0, i64 1
%4 = load float, float* %3
%5 = fmul float %4, %4
%6 = tail call float @llvm.fmuladd.f32(float %2, float %2, float %5)
%7 = getelementptr inbounds float, float* %0, i64 2
%8 = load float, float* %7
%9 = tail call float @llvm.fmuladd.f32(float %8, float %8, float %6)
%10 = tail call float @sqrtf(float %9)
ret float %10
}
/* Variables and functions */
const char *eiki_sigfpe_info(int code) {
  switch (code) {
  default:
    return NULL;
  }
}


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

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

LLVM IR (-O0):
define i8* @eiki_sigfpe_info(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %4 [
]
4: ; preds = %1
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @eiki_sigfpe_info(i32 %0) {
ret i8* null
}
int support_avx512_bf16() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @support_avx512_bf16() {
ret i32 0
}
/* Variables and functions */
scalar_t__ strcspn(char *, char *);
scalar_t__ strlen(char *);
int isDirDecl(char *string) { return (strcspn(string, ":") != strlen(string)); }


x86 assembly (clang, -O0):
<isDirDecl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strcspn@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isDirDecl>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
call   1040 <strcspn@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1030 <strlen@plt>
xor    %ecx,%ecx
cmp    %rax,%r14
setne  %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c":\00"
define i32 @isDirDecl(i8* nocapture %0) {
%2 = tail call i64 @strcspn(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = icmp ne i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
void gll_weights_order4_square(double *out_9021652956210223773) {
  out_9021652956210223773[0] = 0.1;
  out_9021652956210223773[1] = 0.544444444444445;
  out_9021652956210223773[2] = 0.711111111111111;
  out_9021652956210223773[3] = 0.544444444444445;
  out_9021652956210223773[4] = 0.1;
}


x86 assembly (clang, -O0):
<gll_weights_order4_square>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xee4(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0xedb(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movsd  0xea9(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<gll_weights_order4_square>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0x10(%rdi)
movabs $0x3fb999999999999a,%rax
99 b9 3f
mov    %rax,0x20(%rdi)
ret

LLVM IR (-O0):
define void @gll_weights_order4_square(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 0
store double 1.000000e-01, double* %4
%5 = load double*, double** %2
%6 = getelementptr inbounds double, double* %5, i64 1
store double 0x3FE16C16C16C16C6, double* %6
%7 = load double*, double** %2
%8 = getelementptr inbounds double, double* %7, i64 2
store double 0x3FE6C16C16C16C16, double* %8
%9 = load double*, double** %2
%10 = getelementptr inbounds double, double* %9, i64 3
store double 0x3FE16C16C16C16C6, double* %10
%11 = load double*, double** %2
%12 = getelementptr inbounds double, double* %11, i64 4
store double 1.000000e-01, double* %12
ret void
}

LLVM IR (-O2):
define void @gll_weights_order4_square(double* nocapture writeonly %0) {
%2 = bitcast double* %0 to <2 x double>*
store <2 x double> <double 1.000000e-01, double 0x3FE16C16C16C16C6>, <2 x double>* %2
%3 = getelementptr inbounds double, double* %0, i64 2
%4 = bitcast double* %3 to <2 x double>*
store <2 x double> <double 0x3FE6C16C16C16C16, double 0x3FE16C16C16C16C6>, <2 x double>* %4
%5 = getelementptr inbounds double, double* %0, i64 4
store double 1.000000e-01, double* %5
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char *, char *);
int opt_verb(char *opt) {
  if (strcmp(opt, "-s") == 0)
    return 1;
  if (strcmp(opt, "--silent") == 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<opt_verb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1142 <opt_verb+0x32>
movl   $0x1,-0x4(%rbp)
jmp    116f <opt_verb+0x5f>
mov    -0x10(%rbp),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1168 <opt_verb+0x58>
movl   $0x1,-0x4(%rbp)
jmp    116f <opt_verb+0x5f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opt_verb>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1141 <opt_verb+0x31>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"-s\00"
@.str.1 = [9 x i8] c"--silent\00"
define i32 @opt_verb(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
int df_libgd_get_pixel(int i, int j, int component) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @df_libgd_get_pixel(i32 %0, i32 %1, i32 %2) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clear();
int /*<<< orphan*/ print_map();
void clear_scr() {
  clear();
  print_map();
}


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

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

LLVM IR (-O0):
define void @clear_scr() {
%1 = call i32 (...) @clear()
%2 = call i32 (...) @print_map()
ret void
}

LLVM IR (-O2):
define void @clear_scr() {
%1 = tail call i32 (...) @clear()
%2 = tail call i32 (...) @print_map()
ret void
}
long klabs(long a) {
  if (a < 0)
    return -a;
  return a;
}


x86 assembly (clang, -O0):
<klabs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    1122 <klabs+0x22>
xor    %eax,%eax
sub    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    112a <klabs+0x2a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @klabs(i64 %0) {
%2 = tail call i64 @llvm.abs.i64(i64 %0, i1 true)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, int, char *);
void header() {
  char *msg = "This utility returns the data header of an HTTP server.\nIt is "
              "distribuited according to GPL license v2.\nFor more details: "
              "\nhttp://www.gnu.org/licenses/old-licenses/gpl-2.0.txt\nThere's "
              "no implicit or explicit warranty, you use it at your own "
              "risk!\nAuthor: Fabrizio Pani - fabph@hotmail.com\n\n";
  printf("ServerHeader %d.%d\n %s", 0, 5, msg);
}


x86 assembly (clang, -O0):
<header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xff5(%rip),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<header>:
lea    0x100c(%rip),%rdi
lea    0xee2(%rip),%rcx
xor    %esi,%esi
mov    $0x5,%edx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [291 x i8] c"This utility returns the data header of an HTTP server.\0AIt is distribuited according to GPL license v2.\0AFor more details: \0Ahttp://www.gnu.org/licenses/old-licenses/gpl-2.0.txt\0AThere's no implicit or explicit warranty, you use it at your own risk!\0AAuthor: Fabrizio Pani - fabph@hotmail.com\0A\0A\00"
@.str.1 = [23 x i8] c"ServerHeader %d.%d\0A %s\00"
define void @header() {
%1 = alloca i8*
store i8* getelementptr inbounds ([291 x i8], [291 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 5, i8* %2)
ret void
}

LLVM IR (-O2):
@.str = [291 x i8] c"This utility returns the data header of an HTTP server.\0AIt is distribuited according to GPL license v2.\0AFor more details: \0Ahttp://www.gnu.org/licenses/old-licenses/gpl-2.0.txt\0AThere's no implicit or explicit warranty, you use it at your own risk!\0AAuthor: Fabrizio Pani - fabph@hotmail.com\0A\0A\00"
@.str.1 = [23 x i8] c"ServerHeader %d.%d\0A %s\00"
define void @header() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 5, i8* getelementptr inbounds ([291 x i8], [291 x i8]* @.str, i64 0, i64 0))
ret void
}
void lcm_init(void) {}


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

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

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

LLVM IR (-O2):
define void @lcm_init() {
ret void
}
/* Type definitions */
typedef int uint64_t;
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
uint64_t _sio_cur_time_ms() {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}


x86 assembly (clang, -O0):
<_sio_cur_time_ms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,-0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_sio_cur_time_ms>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,(%rsp),%ecx
movslq 0x4(%rsp),%rax
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rax
add    %edx,%eax
add    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define i32 @_sio_cur_time_ms() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load i32, i32* %3
%5 = mul nsw i32 %4, 1000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%7 = load i32, i32* %6
%8 = sdiv i32 %7, 1000
%9 = add nsw i32 %5, %8
ret i32 %9
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define i32 @_sio_cur_time_ms() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000
%10 = add nsw i32 %9, %6
ret i32 %10
}
/* Variables and functions */
float saturatef(double);
float self_shadow_smooth(float x) { return saturatef(2.0 * x); }


x86 assembly (clang, -O0):
<self_shadow_smooth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xed2(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <saturatef@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<self_shadow_smooth>:
cvtss2sd %xmm0,%xmm0
addsd  %xmm0,%xmm0
jmp    1030 <saturatef@plt>

LLVM IR (-O0):
define float @self_shadow_smooth(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fmul double 2.000000e+00, %4
%6 = call float @saturatef(double %5)
ret float %6
}

LLVM IR (-O2):
define float @self_shadow_smooth(float %0) {
%2 = fpext float %0 to double
%3 = fmul double %2, 2.000000e+00
%4 = tail call float @saturatef(double %3)
ret float %4
}
void foo288() {}


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

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

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

LLVM IR (-O2):
define void @foo288() {
ret void
}
int ExtractB20(unsigned char *buf) {
  int x;
  x = buf[0];
  x <<= 8;
  x |= buf[1];
  x <<= 8;
  x |= buf[2] & 0x4;
  return x;
}


x86 assembly (clang, -O0):
<ExtractB20>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x2(%rax),%eax
and    $0x4,%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExtractB20>:
movzbl (%rdi),%eax
movzbl 0x1(%rdi),%ecx
shl    $0x10,%eax
shl    $0x8,%ecx
or     %eax,%ecx
movzbl 0x2(%rdi),%eax
and    $0x4,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ExtractB20(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = shl i32 %8, 8
store i32 %9, i32* %3
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = load i32, i32* %3
%15 = or i32 %14, %13
store i32 %15, i32* %3
%16 = load i32, i32* %3
%17 = shl i32 %16, 8
store i32 %17, i32* %3
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 2
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = and i32 %21, 4
%23 = load i32, i32* %3
%24 = or i32 %23, %22
store i32 %24, i32* %3
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
define i32 @ExtractB20(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = zext i8 %2 to i32
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = shl nuw nsw i32 %3, 16
%8 = shl nuw nsw i32 %6, 8
%9 = or i32 %8, %7
%10 = getelementptr inbounds i8, i8* %0, i64 2
%11 = load i8, i8* %10
%12 = and i8 %11, 4
%13 = zext i8 %12 to i32
%14 = or i32 %9, %13
ret i32 %14
}
/* Variables and functions */
scalar_t__ isspace(char const);
int line_is_empty(const char *line) {
  while (isspace(*line))
    line++;
  return !(*line);
}


x86 assembly (clang, -O0):
<line_is_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1143 <line_is_empty+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <line_is_empty+0xc>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<line_is_empty>:
push   %rbx
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1030 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1120 <line_is_empty+0x10>
xor    %eax,%eax
cmpb   $0x0,-0x1(%rbx)
sete   %al
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @line_is_empty(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isspace(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = load i8, i8* %3
%10 = icmp eq i8 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
int do_194() { return 194; }


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

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

LLVM IR (-O0):
define i32 @do_194() {
ret i32 194
}

LLVM IR (-O2):
define i32 @do_194() {
ret i32 194
}
/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ crash(int, void *);
int cmdCrash(int argc, char **argv) {
  void *lr;
  lr = (void *)0xdeadbeef;
  int r = atoi(argv[1]);
  crash(r, lr);
  return 0;
}


x86 assembly (clang, -O0):
<cmdCrash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xdeadbeef,%eax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <crash@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmdCrash>:
push   %rax
mov    0x8(%rsi),%rdi
call   1040 <atoi@plt>
mov    $0xdeadbeef,%esi
mov    %eax,%edi
call   1030 <crash@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @cmdCrash(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i8* inttoptr (i64 3735928559 to i8*), i8** %5
%7 = load i8**, i8*** %4
%8 = getelementptr inbounds i8*, i8** %7, i64 1
%9 = load i8*, i8** %8
%10 = call i32 @atoi(i8* %9)
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = load i8*, i8** %5
%13 = call i32 @crash(i32 %11, i8* %12)
ret i32 0
}

LLVM IR (-O2):
define i32 @cmdCrash(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @atoi(i8* %4)
%6 = tail call i32 @crash(i32 %5, i8* inttoptr (i64 3735928559 to i8*))
ret i32 0
}
void Timer_1_RestoreConfig(void) {}


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

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

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

LLVM IR (-O2):
define void @Timer_1_RestoreConfig() {
ret void
}
void *kill_pointer(void *stub) {
  int *i_ptr = *((int **)((int)stub + 6));
  *i_ptr = (int)stub - (int)i_ptr - 4;
  return i_ptr;
}


x86 assembly (clang, -O0):
<kill_pointer>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x6,%eax
cltq
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
sub    %eax,%ecx
sub    $0x4,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<kill_pointer>:
lea    0x6(%rdi),%eax
cltq
mov    (%rax),%rax
sub    %eax,%edi
add    $0xfffffffc,%edi
mov    %edi,(%rax)
ret

LLVM IR (-O0):
define i8* @kill_pointer(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = ptrtoint i8* %4 to i32
%6 = add nsw i32 %5, 6
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i32**
%9 = load i32*, i32** %8
store i32* %9, i32** %3
%10 = load i8*, i8** %2
%11 = ptrtoint i8* %10 to i32
%12 = load i32*, i32** %3
%13 = ptrtoint i32* %12 to i32
%14 = sub nsw i32 %11, %13
%15 = sub nsw i32 %14, 4
%16 = load i32*, i32** %3
store i32 %15, i32* %16
%17 = load i32*, i32** %3
%18 = bitcast i32* %17 to i8*
ret i8* %18
}

LLVM IR (-O2):
define i8* @kill_pointer(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
%4 = shl i64 %2, 32
%5 = add i64 %4, 25769803776
%6 = ashr exact i64 %5, 32
%7 = inttoptr i64 %6 to i32**
%8 = load i32*, i32** %7
%9 = ptrtoint i32* %8 to i64
%10 = trunc i64 %9 to i32
%11 = add i32 %3, -4
%12 = sub i32 %11, %10
store i32 %12, i32* %8
%13 = bitcast i32* %8 to i8*
ret i8* %13
}
int trailingZeroes(int n) {
  int res = 0;
  while (n / 5 != 0) {
    n /= 5;
    res += n;
  }
  return res;
}


x86 assembly (clang, -O0):
<trailingZeroes>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     113e <trailingZeroes+0x3e>
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    110e <trailingZeroes+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<trailingZeroes>:
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ecx,%eax
movslq %edi,%rdx
imul   $0x66666667,%rdx,%rdi
mov    %rdi,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rdi
add    %ecx,%edi
add    $0x4,%edx
lea    (%rax,%rdi,1),%ecx
cmp    $0x8,%edx
ja     1110 <trailingZeroes+0x10>
ret

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

LLVM IR (-O2):
define i32 @trailingZeroes(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ %0, %1 ], [ %5, %2 ]
%4 = phi i32 [ 0, %1 ], [ %8, %2 ]
%5 = sdiv i32 %3, 5
%6 = add i32 %3, 4
%7 = icmp ult i32 %6, 9
%8 = add nsw i32 %4, %5
br i1 %7, label %9, label %2
9: ; preds = %2
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int yyselect();
null_point() {
  switch (yyselect()) {
  case 108: {
    printf("Find\n");
  } break;
  }
}


x86 assembly (clang, -O0):
<null_point>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1040 <yyselect@plt>
sub    $0x6c,%eax
jne    1149 <null_point+0x29>
jmp    113d <null_point+0x1d>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<null_point>:
push   %rax
xor    %eax,%eax
call   1040 <yyselect@plt>
cmp    $0x6c,%eax
jne    1139 <null_point+0x19>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Find\0A\00"
define i32 @null_point() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %5 [
i32 108, label %3
]
3: ; preds = %0
%4 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %0, %3
%6 = load i32, i32* %1
ret i32 %6
}

LLVM IR (-O2):
@str = [5 x i8] c"Find\00"
define i32 @null_point() {
%1 = tail call i32 (...) @yyselect()
%2 = icmp eq i32 %1, 108
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %5
5: ; preds = %0, %3
ret i32 undef
}
int SupportedLength(int hashbitlen) {
  if (hashbitlen <= 0 || hashbitlen > 512)
    return 0;
  else
    return 1;
}


x86 assembly (clang, -O0):
<SupportedLength>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    111e <SupportedLength+0x1e>
cmpl   $0x200,-0x8(%rbp)
jle    112a <SupportedLength+0x2a>
movl   $0x0,-0x4(%rbp)
jmp    1131 <SupportedLength+0x31>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SupportedLength>:
add    $0xffffffff,%edi
xor    %eax,%eax
cmp    $0x200,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @SupportedLength(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 512
%4 = zext i1 %3 to i32
ret i32 %4
}
void empty_log(char *format, ...) {}


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

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

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

LLVM IR (-O2):
define void @empty_log(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0x86() {
  Assert_real((isdigit(134) == 0),
              "/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_isdigit.c",
              675, ("isdigit should be 0 for 0x86"));
}


x86 assembly (clang, -O0):
<t_isdigit_0x86>:
push   %rbp
mov    %rsp,%rbp
mov    $0x86,%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x2a3,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isdigit_0x86>:
push   %rax
mov    $0x86,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x2a3,%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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x86\00"
define void @t_isdigit_0x86() {
%1 = call i64 @isdigit(i32 134)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 675, i8* getelementptr inbounds ([29 x i8], [29 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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x86\00"
define void @t_isdigit_0x86() {
%1 = tail call i64 @isdigit(i32 134)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 675, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ print_help();
void print_help_exit(int status) {
  print_help();
  exit(status);
}


x86 assembly (clang, -O0):
<print_help_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <print_help@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help_exit>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <print_help@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @print_help_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @print_help()
%4 = load i32, i32* %2
%5 = call i32 @exit(i32 %4)
unreachable
}

LLVM IR (-O2):
define void @print_help_exit(i32 %0) {
%2 = tail call i32 (...) @print_help()
%3 = tail call i32 @exit(i32 %0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ say_hello();
void main() {
  say_hello();
  printf("Hello world");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <say_hello@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <say_hello@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"Hello world\00"
define void @main() {
%1 = call i32 (...) @say_hello()
%2 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"Hello world\00"
define void @main() {
%1 = tail call i32 (...) @say_hello()
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *, int /*<<< orphan*/);
int set_continuation_parameters(double *c) {
  int *a, *b, fail;
  fail = _ada_use_c2phc(73, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<set_continuation_parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    $0x49,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_continuation_parameters>:
mov    %rdi,%rcx
mov    $0x49,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc@plt>

LLVM IR (-O0):
define i32 @set_continuation_parameters(double* %0) {
%2 = alloca double*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store double* %0, double** %2
%6 = load i32*, i32** %3
%7 = load i32*, i32** %4
%8 = load double*, double** %2
%9 = call i32 @_ada_use_c2phc(i32 73, i32* %6, i32* %7, double* %8, i32 0)
store i32 %9, i32* %5
%10 = load i32, i32* %5
ret i32 %10
}

LLVM IR (-O2):
define i32 @set_continuation_parameters(double* %0) {
%2 = tail call i32 @_ada_use_c2phc(i32 73, i32* undef, i32* undef, double* %0, i32 0)
ret i32 %2
}