xunge/DecIR huggingface dataset:
long peek(const long *addr) { return *addr; }


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

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

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

LLVM IR (-O2):
define i64 @peek(i64* nocapture %0) {
%2 = load i64, i64* %0
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ err_sys(char *);
scalar_t__ pipe(int *);
void Pipe(int *fds) {
  if (pipe(fds) < 0)
    err_sys("pipe error");
}


x86 assembly (clang, -O0):
<Pipe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <pipe@plt>
cmp    $0x0,%rax
jge    114b <Pipe+0x2b>
lea    0xeba(%rip),%rdi
call   1030 <err_sys@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Pipe>:
push   %rax
call   1040 <pipe@plt>
test   %rax,%rax
js     112d <Pipe+0xd>
pop    %rax
ret
lea    0xecc(%rip),%rdi
pop    %rax
jmp    1030 <err_sys@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"pipe error\00"
define void @Pipe(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i64 @pipe(i32* %3)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @err_sys(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"pipe error\00"
define void @Pipe(i32* %0) {
%2 = tail call i64 @pipe(i32* %0)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @err_sys(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Type definitions */
struct sigaction {
  scalar_t__ sa_flags;
  int /*<<< orphan*/ sa_mask;
  int /*<<< orphan*/ sa_handler;
};

/* Variables and functions */
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ sigaction(int, struct sigaction *, int /*<<< orphan*/ *);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
void ignore_signal(int signal) {
  struct sigaction handler;
  handler.sa_handler = SIG_IGN;
  sigemptyset(&handler.sa_mask);
  handler.sa_flags = 0;
  sigaction(signal, &handler, NULL);
}


x86 assembly (clang, -O0):
<ignore_signal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
lea    -0x18(%rbp),%rdi
add    $0x8,%rdi
call   1040 <sigemptyset@plt>
movq   $0x0,-0x18(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x18(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigaction@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ignore_signal>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    0x2eba(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
lea    0x8(%rsp),%rdi
call   1040 <sigemptyset@plt>
movq   $0x0,(%rsp)
mov    %rsp,%rsi
mov    %ebx,%edi
xor    %edx,%edx
call   1030 <sigaction@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.sigaction = type { i64, i32, i32 }
@SIG_IGN = global i32 0
define void @ignore_signal(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.sigaction
store i32 %0, i32* %2
%4 = load i32, i32* @SIG_IGN
%5 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i32 0, i32 2
store i32 %4, i32* %5
%6 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i32 0, i32 1
%7 = call i32 @sigemptyset(i32* %6)
%8 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i32 0, i32 0
store i64 0, i64* %8
%9 = load i32, i32* %2
%10 = call i32 @sigaction(i32 %9, %struct.sigaction* %3, i32* null)
ret void
}

LLVM IR (-O2):
%struct.sigaction = type { i64, i32, i32 }
@SIG_IGN = global i32 0
define void @ignore_signal(i32 %0) {
%2 = alloca %struct.sigaction
%3 = bitcast %struct.sigaction* %2 to i8*
%4 = load i32, i32* @SIG_IGN
%5 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %2, i64 0, i32 2
store i32 %4, i32* %5
%6 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %2, i64 0, i32 1
%7 = call i32 @sigemptyset(i32* %6)
%8 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %2, i64 0, i32 0
store i64 0, i64* %8
%9 = call i32 @sigaction(i32 %0, %struct.sigaction* %2, i32* null)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int file_exists(const char *filename) {
  FILE *file = fopen(filename, "r");
  if (file) {
    fclose(file);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<file_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1160 <file_exists+0x40>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x4(%rbp)
jmp    1167 <file_exists+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_exists>:
push   %rax
lea    0xed8(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     1141 <file_exists+0x21>
mov    %rax,%rdi
call   1030 <fclose@plt>
mov    $0x1,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
define i32 @file_exists(i8* nocapture %0) {
%2 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fclose(i32* %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %7
}
int t10k_kad_validation(int encrypt_mode, int ukad, int akad) {
  if (ukad > 30 || akad > 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<t10k_kad_validation>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x1e,-0xc(%rbp)
jg     1121 <t10k_kad_validation+0x21>
cmpl   $0x0,-0x10(%rbp)
jle    112d <t10k_kad_validation+0x2d>
movl   $0x1,-0x4(%rbp)
jmp    1134 <t10k_kad_validation+0x34>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<t10k_kad_validation>:
cmp    $0x1f,%esi
setge  %al
test   %edx,%edx
setg   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @t10k_kad_validation(i32 %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %1, 30
%5 = icmp sgt i32 %2, 0
%6 = or i1 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
void backtrace_symbols_fd(void *const *buffer, int size, int fd) {}


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

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

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

LLVM IR (-O2):
define void @backtrace_symbols_fd(i8** nocapture %0, i32 %1, i32 %2) {
ret void
}
void glmMatrixFromVectors2d(double m[4], const double v1[2],
                            const double v2[2]) {
  m[0] = v1[0];
  m[2] = v2[0];
  m[1] = v1[1];
  m[3] = v2[1];
}


x86 assembly (clang, -O0):
<glmMatrixFromVectors2d>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmMatrixFromVectors2d>:
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rdi)
movsd  (%rdx),%xmm0
movsd  %xmm0,0x10(%rdi)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rdi)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x18(%rdi)
ret

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

LLVM IR (-O2):
define void @glmMatrixFromVectors2d(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2) {
%4 = load double, double* %1
store double %4, double* %0
%5 = load double, double* %2
%6 = getelementptr inbounds double, double* %0, i64 2
store double %5, double* %6
%7 = getelementptr inbounds double, double* %1, i64 1
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 1
store double %8, double* %9
%10 = getelementptr inbounds double, double* %2, i64 1
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %0, i64 3
store double %11, double* %12
ret void
}
void cealtesthook_input_iter_begin(long change_size) {}


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

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

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

LLVM IR (-O2):
define void @cealtesthook_input_iter_begin(i64 %0) {
ret void
}
/* Type definitions */
struct serial_buffer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct serial_buffer *);
void kiss_serial_buffer_destroy(struct serial_buffer *buffer) { free(buffer); }


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

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

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

LLVM IR (-O2):
%struct.serial_buffer = type { i32 }
define void @kiss_serial_buffer_destroy(%struct.serial_buffer* nocapture %0) {
%2 = tail call i32 @free(%struct.serial_buffer* %0)
ret void
}
isspace(c) register int c;
{ return (c == ' ' || c == '\t' || c == '\f'); }


x86 assembly (clang, -O0):
<isspace>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     112f <isspace+0x2f>
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     112f <isspace+0x2f>
cmpl   $0xc,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isspace>:
mov    $0x1,%eax
cmp    $0x9,%edi
je     110f <isspace+0xf>
cmp    $0x20,%edi
jne    1110 <isspace+0x10>
ret
xor    %eax,%eax
cmp    $0xc,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @isspace(i32 %0) {
switch i32 %0, label %2 [
i32 32, label %5
i32 9, label %5
]
2: ; preds = %1
%3 = icmp eq i32 %0, 12
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void exithelp(void) {
  printf("Usage: fwcrypt [options] -i infile -o outfile\n"
         "\t -e Encrypt (default)\n"
         "\t -d Decrypt\n"
         "\t -n No output (dry run)\n"
         "\t -c Without checksum signature\n");
  exit(0);
}


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

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

LLVM IR (-O0):
@.str = [140 x i8] c"Usage: fwcrypt [options] -i infile -o outfile\0A\09 -e Encrypt (default)\0A\09 -d Decrypt\0A\09 -n No output (dry run)\0A\09 -c Without checksum signature\0A\00"
define void @exithelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [139 x i8] c"Usage: fwcrypt [options] -i infile -o outfile\0A\09 -e Encrypt (default)\0A\09 -d Decrypt\0A\09 -n No output (dry run)\0A\09 -c Without checksum signature\00"
define void @exithelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([139 x i8], [139 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
long double log2l(long double);
long double logl(long double x) {
  return log2l(x) * 0.693147180559945309417232121458176568L;
}


x86 assembly (clang, -O0):
<logl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <log2l@plt>
fldt   0xecf(%rip)
fmulp  %st,%st(1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logl>:
sub    $0x18,%rsp
fldt   0x20(%rsp)
fstpt  (%rsp)
call   1030 <log2l@plt>
fldt   0xeda(%rip)
fmulp  %st,%st(1)
add    $0x18,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @logl(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = call x86_fp80 @log2l(x86_fp80 %3)
%5 = fmul x86_fp80 %4, 0xK3FFEB17217F7D1CF79AC
ret x86_fp80 %5
}

LLVM IR (-O2):
define x86_fp80 @logl(x86_fp80 %0) {
%2 = tail call x86_fp80 @log2l(x86_fp80 %0)
%3 = fmul x86_fp80 %2, 0xK3FFEB17217F7D1CF79AC
ret x86_fp80 %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isascii(int);
void t_isascii_0x7d() {
  Assert_real((isascii(125)),
              "/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_isascii.c",
              630, ("isascii should be 1 for }"));
}


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

x86 assembly (clang, -O2):
<t_isascii_0x7d>:
lea    0xee9(%rip),%rsi
lea    0xf8a(%rip),%rcx
mov    $0x1,%edi
mov    $0x276,%edx
jmp    1030 <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_isascii.c\00"
@.str.1 = [26 x i8] c"isascii should be 1 for }\00"
define void @t_isascii_0x7d() {
%1 = call i32 @isascii(i32 125)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 630, 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_isascii.c\00"
@.str.1 = [26 x i8] c"isascii should be 1 for }\00"
define void @t_isascii_0x7d() {
%1 = tail call i32 @Assert_real(i32 1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 630, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
void *impl__xmalloc(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
void *impl__xmallocz(size_t size) {
  void *ret = impl__xmalloc(size);
  memset(ret, 0, size);
  return ret;
}


x86 assembly (clang, -O0):
<impl__xmallocz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <impl__xmalloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<impl__xmallocz>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <impl__xmalloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @impl__xmallocz(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @impl__xmalloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = load i64, i64* %2
%8 = call i32 @memset(i8* %6, i32 0, i64 %7)
%9 = load i8*, i8** %3
ret i8* %9
}

LLVM IR (-O2):
define i8* @impl__xmallocz(i64 %0) {
%2 = tail call i8* @impl__xmalloc(i64 %0)
%3 = tail call i32 @memset(i8* %2, i32 0, i64 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ dct64_1(double *, double *, double *, double *, double *);
void dct64_i386(double *a, double *b, double *c) {
  double bufs[0x40];
  dct64_1(a, b, bufs, bufs + 0x20, c);
}


x86 assembly (clang, -O0):
<dct64_i386>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x220(%rbp),%rdx
lea    -0x220(%rbp),%rcx
add    $0x100,%rcx
mov    -0x18(%rbp),%r8
call   1030 <dct64_1@plt>
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dct64_i386>:
sub    $0x208,%rsp
mov    %rdx,%r8
lea    0x100(%rsp),%rcx
mov    %rsp,%rdx
call   1030 <dct64_1@plt>
add    $0x208,%rsp
ret

LLVM IR (-O0):
define void @dct64_i386(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca [64 x double]
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%8 = load double*, double** %4
%9 = load double*, double** %5
%10 = getelementptr inbounds [64 x double], [64 x double]* %7, i64 0, i64 0
%11 = getelementptr inbounds [64 x double], [64 x double]* %7, i64 0, i64 0
%12 = getelementptr inbounds double, double* %11, i64 32
%13 = load double*, double** %6
%14 = call i32 @dct64_1(double* %8, double* %9, double* %10, double* %12, double* %13)
ret void
}

LLVM IR (-O2):
define void @dct64_i386(double* %0, double* %1, double* %2) {
%4 = alloca [64 x double]
%5 = bitcast [64 x double]* %4 to i8*
%6 = getelementptr inbounds [64 x double], [64 x double]* %4, i64 0, i64 0
%7 = getelementptr inbounds [64 x double], [64 x double]* %4, i64 0, i64 32
%8 = call i32 @dct64_1(double* %0, double* %1, double* %6, double* %7, double* %2)
ret void
}
void test4() {}


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

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

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

LLVM IR (-O2):
define void @test4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ testFunc1();
int main(void) {
  testFunc1();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @testFunc1()
ret i32 0
}
int cpu_device_init(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @cpu_device_init() {
ret i32 1
}
/* Variables and functions */
int yahoo_M1Common(unsigned int, int);
int yahoo_f01_09(int Salt, int Parameter) {
  unsigned b = Salt ^ 0x191265C;
  return yahoo_M1Common(b, Parameter);
}


x86 assembly (clang, -O0):
<yahoo_f01_09>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
xor    $0x191265c,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <yahoo_M1Common@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yahoo_f01_09>:
xor    $0x191265c,%edi
jmp    1030 <yahoo_M1Common@plt>

LLVM IR (-O0):
define i32 @yahoo_f01_09(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = xor i32 %6, 26289756
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = load i32, i32* %4
%10 = call i32 @yahoo_M1Common(i32 %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @yahoo_f01_09(i32 %0, i32 %1) {
%3 = xor i32 %0, 26289756
%4 = tail call i32 @yahoo_M1Common(i32 %3, i32 %1)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ close_rule();
int /*<<< orphan*/ insert_rule(int /*<<< orphan*/, int /*<<< orphan*/);
zz_bind_close() {
  insert_rule(0, close_rule());
  return 1;
}


x86 assembly (clang, -O0):
<zz_bind_close>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <close_rule@plt>
mov    %eax,%esi
xor    %edi,%edi
call   1040 <insert_rule@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<zz_bind_close>:
push   %rax
xor    %eax,%eax
call   1030 <close_rule@plt>
xor    %edi,%edi
mov    %eax,%esi
call   1040 <insert_rule@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @zz_bind_close() {
%1 = call i32 (...) @close_rule()
%2 = call i32 @insert_rule(i32 0, i32 %1)
ret i32 1
}

LLVM IR (-O2):
define i32 @zz_bind_close() {
%1 = tail call i32 (...) @close_rule()
%2 = tail call i32 @insert_rule(i32 0, i32 %1)
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ fpu_control_t;

/* Variables and functions */
int /*<<< orphan*/ _FPU_SETCW(int /*<<< orphan*/);
void __mips_fpu_setcw(fpu_control_t cw) { _FPU_SETCW(cw); }


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

x86 assembly (clang, -O2):
<__mips_fpu_setcw>:
jmp    1030 <_FPU_SETCW@plt>

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

LLVM IR (-O2):
define void @__mips_fpu_setcw(i32 %0) {
%2 = tail call i32 @_FPU_SETCW(i32 %0)
ret void
}
int muspcm_stop(int slot) { return (-1); }


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

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

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

LLVM IR (-O2):
define i32 @muspcm_stop(i32 %0) {
ret i32 -1
}
void ff_hevc_put_hevc_uni_qpel_hv24_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_qpel_hv24_12_sse4() {
ret void
}
void __stack_chk_fail() { __asm__("int $0x29" : : "c"(2) : "memory"); }


x86 assembly (clang, -O0):
<__stack_chk_fail>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%ecx
int    $0x29
pop    %rbp
ret

x86 assembly (clang, -O2):
<__stack_chk_fail>:
mov    $0x2,%ecx
int    $0x29
ret

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

LLVM IR (-O2):
define void @__stack_chk_fail() {
tail call void asm sideeffect "int $$0x29", "{cx},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ max_heapify(int *, int, int);
void build_max_heap(int arr[], int len) {
  int i = 0;
  if (len <= 1) {
    return;
  }
  for (i = len / 2 - 1; i >= 0; i--) {
    max_heapify(arr, len, i);
  }
}


x86 assembly (clang, -O0):
<build_max_heap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x1,-0xc(%rbp)
jg     1135 <build_max_heap+0x25>
jmp    116d <build_max_heap+0x5d>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     116d <build_max_heap+0x5d>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <max_heapify@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1146 <build_max_heap+0x36>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_max_heap>:
push   %rbp
push   %r14
push   %rbx
cmp    $0x2,%esi
jl     1145 <build_max_heap+0x35>
mov    %esi,%ebp
mov    %rdi,%r14
mov    %esi,%ebx
shr    %ebx
add    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x2(%rbx),%edx
mov    %r14,%rdi
mov    %ebp,%esi
call   1030 <max_heapify@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1130 <build_max_heap+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @build_max_heap(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
%6 = load i32, i32* %4
%7 = icmp sle i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %24
9: ; preds = %2
%10 = load i32, i32* %4
%11 = sdiv i32 %10, 2
%12 = sub nsw i32 %11, 1
store i32 %12, i32* %5
br label %13
13: ; preds = %21, %9
%14 = load i32, i32* %5
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load i32*, i32** %3
%18 = load i32, i32* %4
%19 = load i32, i32* %5
%20 = call i32 @max_heapify(i32* %17, i32 %18, i32 %19)
br label %21
21: ; preds = %16
%22 = load i32, i32* %5
%23 = add nsw i32 %22, -1
store i32 %23, i32* %5
br label %13
24: ; preds = %8, %13
ret void
}

LLVM IR (-O2):
define void @build_max_heap(i32* %0, i32 %1) {
%3 = icmp slt i32 %1, 2
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = lshr i32 %1, 1
br label %6
6: ; preds = %4, %6
%7 = phi i32 [ %8, %6 ], [ %5, %4 ]
%8 = add nsw i32 %7, -1
%9 = tail call i32 @max_heapify(i32* %0, i32 %1, i32 %8)
%10 = icmp ugt i32 %7, 1
br i1 %10, label %6, label %11
11: ; preds = %6, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ MCUSendCmdOverlayCtrl(int /*<<< orphan*/);
void MCUSendCmdOverlayCtrlStart() { MCUSendCmdOverlayCtrl(0); }


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

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

LLVM IR (-O0):
define void @MCUSendCmdOverlayCtrlStart() {
%1 = call i32 @MCUSendCmdOverlayCtrl(i32 0)
ret void
}

LLVM IR (-O2):
define void @MCUSendCmdOverlayCtrlStart() {
%1 = tail call i32 @MCUSendCmdOverlayCtrl(i32 0)
ret void
}
unsigned long long __max_impl_ulonglong(unsigned long long a,
                                        unsigned long long b) {
  return (a > b) ? a : b;
}


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

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

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

LLVM IR (-O2):
define i64 @__max_impl_ulonglong(i64 %0, i64 %1) {
%3 = icmp ugt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int strlen(char *);
long hash(char *word) {
  long hash = 42;
  int i = 0;
  while (i < strlen(word)) {
    hash = hash + word[i] * (i + 1);
    i++;
  }
  return hash;
}


x86 assembly (clang, -O0):
<hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x2a,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    %ecx,%eax
jge    1178 <hash+0x68>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
mov    -0x14(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112b <hash+0x1b>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <strlen@plt>
mov    $0x2a,%r15d
test   %eax,%eax
jle    1150 <hash+0x40>
xor    %ebx,%ebx
nopl   0x0(%rax)
movsbl (%r14,%rbx,1),%eax
add    $0x1,%rbx
imul   %ebx,%eax
cltq
add    %rax,%r15
mov    %r14,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1130 <hash+0x20>
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i64 @hash(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %18
4: ; preds = %1, %4
%5 = phi i64 [ %10, %4 ], [ 0, %1 ]
%6 = phi i64 [ %14, %4 ], [ 42, %1 ]
%7 = getelementptr inbounds i8, i8* %0, i64 %5
%8 = load i8, i8* %7
%9 = sext i8 %8 to i64
%10 = add nuw nsw i64 %5, 1
%11 = mul i64 %10, %9
%12 = shl i64 %11, 32
%13 = ashr exact i64 %12, 32
%14 = add nsw i64 %6, %13
%15 = tail call i32 @strlen(i8* %0)
%16 = sext i32 %15 to i64
%17 = icmp slt i64 %10, %16
br i1 %17, label %4, label %18
18: ; preds = %4, %1
%19 = phi i64 [ 42, %1 ], [ %14, %4 ]
ret i64 %19
}
/* Type definitions */
struct svc_req {
  int dummy;
};

/* Variables and functions */
int l2tp_app_info_get_1_svc(void *, struct svc_req *);
int _l2tp_app_info_get_1(void *argp, void *result, struct svc_req *rqstp) {
  return (l2tp_app_info_get_1_svc(result, rqstp));
}


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

x86 assembly (clang, -O2):
<_l2tp_app_info_get_1>:
mov    %rsi,%rdi
mov    %rdx,%rsi
jmp    1030 <l2tp_app_info_get_1_svc@plt>

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

LLVM IR (-O2):
%struct.svc_req = type { i32 }
define i32 @_l2tp_app_info_get_1(i8* nocapture readnone %0, i8* %1, %struct.svc_req* %2) {
%4 = tail call i32 @l2tp_app_info_get_1_svc(i8* %1, %struct.svc_req* %2)
ret i32 %4
}
long long longlong_ignoring_unsignedint(long long x, unsigned int y) {
  return x;
}


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

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

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

LLVM IR (-O2):
define i64 @longlong_ignoring_unsignedint(i64 returned %0, i32 %1) {
ret i64 %0
}
/* Variables and functions */
int /*<<< orphan*/ gen(char *);
void cgpush(void) { gen("pushq\t%rax"); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"pushq\09%rax\00"
define void @cgpush() {
%1 = call i32 @gen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"pushq\09%rax\00"
define void @cgpush() {
%1 = tail call i32 @gen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
int do_012() { return 12; }


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

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

LLVM IR (-O0):
define i32 @do_012() {
ret i32 12
}

LLVM IR (-O2):
define i32 @do_012() {
ret i32 12
}
/* Variables and functions */
void **calloc(size_t, size_t);
int /*<<< orphan*/ perror(char *);
void *array_init(size_t osize, size_t nmembers) {
  void **array = calloc(osize, nmembers);
  if (array == NULL) {
    perror("Error allocating memory.");
    return NULL;
  }
}


x86 assembly (clang, -O0):
<array_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <calloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1160 <array_init+0x40>
lea    0xead(%rip),%rdi
call   1040 <perror@plt>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<array_init>:
push   %rax
call   1030 <calloc@plt>
test   %rax,%rax
je     112f <array_init+0xf>
xor    %eax,%eax
pop    %rcx
ret
lea    0xeca(%rip),%rdi
call   1040 <perror@plt>
jmp    112b <array_init+0xb>

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

LLVM IR (-O2):
@.str = [25 x i8] c"Error allocating memory.\00"
define noalias i8* @array_init(i64 %0, i64 %1) {
%3 = tail call i8** @calloc(i64 %0, i64 %1)
%4 = icmp eq i8** %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %2, %5
ret i8* null
}
int get_entity_thread_num() { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @get_entity_thread_num() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ mexMakeMemoryPersistent(void *);
scalar_t__ mxCalloc(size_t, size_t);
void *__wrap_calloc(size_t n, size_t bytes) {
  void *ptr;
  ptr = (void *)mxCalloc(n, bytes);
  if (ptr != 0)
    mexMakeMemoryPersistent(ptr);
  return ptr;
}


x86 assembly (clang, -O0):
<__wrap_calloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <mxCalloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1155 <__wrap_calloc+0x35>
mov    -0x18(%rbp),%rdi
call   1040 <mexMakeMemoryPersistent@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__wrap_calloc>:
push   %rbx
call   1030 <mxCalloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1136 <__wrap_calloc+0x16>
mov    %rbx,%rdi
call   1040 <mexMakeMemoryPersistent@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @__wrap_calloc(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i8*
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = call i64 @mxCalloc(i64 %6, i64 %7)
%9 = inttoptr i64 %8 to i8*
store i8* %9, i8** %5
%10 = load i8*, i8** %5
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i8*, i8** %5
%14 = call i32 @mexMakeMemoryPersistent(i8* %13)
br label %15
15: ; preds = %12, %2
%16 = load i8*, i8** %5
ret i8* %16
}

LLVM IR (-O2):
define i8* @__wrap_calloc(i64 %0, i64 %1) {
%3 = tail call i64 @mxCalloc(i64 %0, i64 %1)
%4 = inttoptr i64 %3 to i8*
%5 = icmp eq i64 %3, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @mexMakeMemoryPersistent(i8* %4)
br label %8
8: ; preds = %6, %2
ret i8* %4
}
/* Variables and functions */
int ENOTSUP;
int cpuinfo_check(void) { return -ENOTSUP; }


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

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

LLVM IR (-O0):
@ENOTSUP = global i32 0
define i32 @cpuinfo_check() {
%1 = load i32, i32* @ENOTSUP
%2 = sub nsw i32 0, %1
ret i32 %2
}

LLVM IR (-O2):
@ENOTSUP = global i32 0
define i32 @cpuinfo_check() {
%1 = load i32, i32* @ENOTSUP
%2 = sub nsw i32 0, %1
ret i32 %2
}
/* Type definitions */
struct drunkard {
  int dummy;
};

/* Variables and functions */
int drunkard_get_target_y(struct drunkard *);
int drunkard_get_y(struct drunkard *);
int drunkard_get_dy_to_target(struct drunkard *drunk) {
  return drunkard_get_target_y(drunk) - drunkard_get_y(drunk);
}


x86 assembly (clang, -O0):
<drunkard_get_dy_to_target>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <drunkard_get_target_y@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <drunkard_get_y@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drunkard_get_dy_to_target>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <drunkard_get_target_y@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <drunkard_get_y@plt>
sub    %eax,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.drunkard = type { i32 }
define i32 @drunkard_get_dy_to_target(%struct.drunkard* %0) {
%2 = alloca %struct.drunkard*
store %struct.drunkard* %0, %struct.drunkard** %2
%3 = load %struct.drunkard*, %struct.drunkard** %2
%4 = call i32 @drunkard_get_target_y(%struct.drunkard* %3)
%5 = load %struct.drunkard*, %struct.drunkard** %2
%6 = call i32 @drunkard_get_y(%struct.drunkard* %5)
%7 = sub nsw i32 %4, %6
ret i32 %7
}

LLVM IR (-O2):
%struct.drunkard = type { i32 }
define i32 @drunkard_get_dy_to_target(%struct.drunkard* %0) {
%2 = tail call i32 @drunkard_get_target_y(%struct.drunkard* %0)
%3 = tail call i32 @drunkard_get_y(%struct.drunkard* %0)
%4 = sub nsw i32 %2, %3
ret i32 %4
}
void unsigned_char_mul_signed_char_signed_char(unsigned char *LHS,
                                               signed char RHS) {
  (*LHS) *= RHS;
}


x86 assembly (clang, -O0):
<unsigned_char_mul_signed_char_signed_char>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%edx
mov    -0x8(%rbp),%rax
movzbl (%rax),%ecx
imul   %edx,%ecx
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<unsigned_char_mul_signed_char_signed_char>:
mov    (%rdi),%al
mul    %sil
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @unsigned_char_mul_signed_char_signed_char(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = mul nsw i32 %9, %6
%11 = trunc i32 %10 to i8
store i8 %11, i8* %7
ret void
}

LLVM IR (-O2):
define void @unsigned_char_mul_signed_char_signed_char(i8* nocapture %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = mul i8 %3, %1
store i8 %4, i8* %0
ret void
}
void gtk_scrolled_window_set_hadjustment() {}


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

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

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

LLVM IR (-O2):
define void @gtk_scrolled_window_set_hadjustment() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ funcao_x(double);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double x;
  scanf("%lf", &x);
  printf("%.1lf\n", funcao_x(x));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
call   1050 <funcao_x@plt>
mov    %eax,%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
call   1050 <funcao_x@plt>
lea    0xeb3(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [7 x i8] c"%.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%4 = load double, double* %2
%5 = call i32 @funcao_x(double %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [7 x i8] c"%.1lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%4 = load double, double* %1
%5 = call i32 @funcao_x(double %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
long double atan(double);
__attribute__((weak)) long double atanl(long double x) {
  return atan((double)x);
}


x86 assembly (clang, -O0):
<atanl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fstpl  -0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <atan@plt>
fld    %st(0)
fstp   %st(0)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atanl>:
fldt   0x8(%rsp)
fstpl  -0x8(%rsp)
movsd  -0x8(%rsp),%xmm0
jmp    1030 <atan@plt>

LLVM IR (-O0):
define weak x86_fp80 @atanl(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = fptrunc x86_fp80 %3 to double
%5 = call x86_fp80 @atan(double %4)
ret x86_fp80 %5
}

LLVM IR (-O2):
define weak x86_fp80 @atanl(x86_fp80 %0) {
%2 = fptrunc x86_fp80 %0 to double
%3 = tail call x86_fp80 @atan(double %2)
ret x86_fp80 %3
}