xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ die(int, char *);
void *realloc(void *, size_t);
void *erealloc(void *p, size_t size) {
  if (!(p = realloc(p, size)))
    die(1, "realloc:");
  return p;
}


x86 assembly (clang, -O0):
<erealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <realloc@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    115c <erealloc+0x3c>
mov    $0x1,%edi
lea    0xea9(%rip),%rsi
call   1040 <die@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erealloc>:
push   %rbx
call   1030 <realloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113f <erealloc+0x1f>
lea    0xecb(%rip),%rsi
mov    $0x1,%edi
call   1040 <die@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"realloc:\00"
define noalias i8* @erealloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @die(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ messaggi(int);
int /*<<< orphan*/ stampa_quaterne(int *);
int stampa_quaterna_se_idonea(int quaterna[], int prodotto_quaterna,
                              int media_elementi_vettore) {
  int esito = 0;
  if (prodotto_quaterna < media_elementi_vettore) {
    messaggi(4);
    stampa_quaterne(quaterna);
    esito = 1;
  }
  return (esito);
}


x86 assembly (clang, -O0):
<stampa_quaterna_se_idonea>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    115f <stampa_quaterna_se_idonea+0x3f>
mov    $0x4,%edi
call   1030 <messaggi@plt>
mov    -0x8(%rbp),%rdi
call   1040 <stampa_quaterne@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stampa_quaterna_se_idonea>:
xor    %eax,%eax
cmp    %edx,%esi
jge    1142 <stampa_quaterna_se_idonea+0x22>
push   %rbx
mov    %rdi,%rbx
mov    $0x4,%edi
call   1030 <messaggi@plt>
mov    %rbx,%rdi
call   1040 <stampa_quaterne@plt>
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @stampa_quaterna_se_idonea(i32* %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %1, %2
br i1 %4, label %5, label %8
5: ; preds = %3
%6 = tail call i32 @messaggi(i32 4)
%7 = tail call i32 @stampa_quaterne(i32* %0)
br label %8
8: ; preds = %5, %3
%9 = phi i32 [ 1, %5 ], [ 0, %3 ]
ret i32 %9
}
int dname_is_parent(char *name) {
  return name[0] == '.' && name[1] == '.' && name[2] == '\0';
}


x86 assembly (clang, -O0):
<dname_is_parent>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2e,%ecx
mov    %al,-0x9(%rbp)
jne    1144 <dname_is_parent+0x44>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%ecx
xor    %eax,%eax
cmp    $0x2e,%ecx
mov    %al,-0x9(%rbp)
jne    1144 <dname_is_parent+0x44>
mov    -0x8(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x0,%eax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<dname_is_parent>:
xor    %eax,%eax
cmpb   $0x2e,(%rdi)
jne    1116 <dname_is_parent+0x16>
cmpb   $0x2e,0x1(%rdi)
jne    1116 <dname_is_parent+0x16>
xor    %eax,%eax
cmpb   $0x0,0x2(%rdi)
sete   %al
ret

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

LLVM IR (-O2):
define i32 @dname_is_parent(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 46
br i1 %3, label %4, label %13
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 46
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = getelementptr inbounds i8, i8* %0, i64 2
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %8, %4, %1
%14 = phi i32 [ 0, %4 ], [ 0, %1 ], [ %12, %8 ]
ret i32 %14
}
/* Variables and functions */
int mat4d_invert_new(double *, double *);
int mat4d_invert(double matrix[16]) { return mat4d_invert_new(matrix, matrix); }


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

x86 assembly (clang, -O2):
<mat4d_invert>:
mov    %rdi,%rsi
jmp    1030 <mat4d_invert_new@plt>

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

LLVM IR (-O2):
define i32 @mat4d_invert(double* %0) {
%2 = tail call i32 @mat4d_invert_new(double* %0, double* %0)
ret i32 %2
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
scalar_t__ singles2halfp(int *, float *, int);
uint16_t fd_ieee754_float_to_uint16(float value) {
  uint16_t iv;
  if (singles2halfp(&iv, &value, 1)) {
    iv = 0x7c00;
  }
  return iv;
}


x86 assembly (clang, -O0):
<fd_ieee754_float_to_uint16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x1,%edx
call   1030 <singles2halfp@plt>
cmp    $0x0,%rax
je     1140 <fd_ieee754_float_to_uint16+0x30>
movl   $0x7c00,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fd_ieee754_float_to_uint16>:
push   %rax
movss  %xmm0,0x4(%rsp)
mov    %rsp,%rdi
lea    0x4(%rsp),%rsi
mov    $0x1,%edx
call   1030 <singles2halfp@plt>
mov    %rax,%rcx
mov    $0x7c00,%eax
test   %rcx,%rcx
jne    1139 <fd_ieee754_float_to_uint16+0x29>
mov    (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @fd_ieee754_float_to_uint16(float %0) {
%2 = alloca float
%3 = alloca i32
store float %0, float* %2
%4 = call i64 @singles2halfp(i32* %3, float* %2, i32 1)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 31744, i32* %3
br label %7
7: ; preds = %6, %1
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @fd_ieee754_float_to_uint16(float %0) {
%2 = alloca float
%3 = alloca i32
store float %0, float* %2
%4 = bitcast i32* %3 to i8*
%5 = call i64 @singles2halfp(i32* %3, float* %2, i32 1)
%6 = icmp eq i64 %5, 0
%7 = load i32, i32* %3
%8 = select i1 %6, i32 %7, i32 31744
ret i32 %8
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef size_t uint32_t;

/* Variables and functions */
scalar_t__ zigbee_doChecksum(scalar_t__ *, int);
void zigbee_appendChecksum(uint8_t *buffer, uint32_t *sizeFrame) {
  buffer[*sizeFrame] =
      zigbee_doChecksum(&buffer[(3)], &buffer[*sizeFrame] - &buffer[(3)]);
  (*sizeFrame)++;
}


x86 assembly (clang, -O0):
<zigbee_appendChecksum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x18,%rdi
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x8(%rbp),%rcx
add    $0x18,%rcx
sub    %rcx,%rax
sar    $0x3,%rax
mov    %eax,%esi
call   1030 <zigbee_doChecksum@plt>
mov    %rax,%rdx
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zigbee_appendChecksum>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
add    $0x18,%rdi
mov    (%rsi),%esi
add    $0xfffffffd,%esi
call   1030 <zigbee_doChecksum@plt>
mov    (%rbx),%rcx
mov    %rax,(%r14,%rcx,8)
addq   $0x1,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @zigbee_appendChecksum(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 = getelementptr inbounds i64, i64* %5, i64 3
%7 = load i64*, i64** %3
%8 = load i64*, i64** %4
%9 = load i64, i64* %8
%10 = getelementptr inbounds i64, i64* %7, i64 %9
%11 = load i64*, i64** %3
%12 = getelementptr inbounds i64, i64* %11, i64 3
%13 = ptrtoint i64* %10 to i64
%14 = ptrtoint i64* %12 to i64
%15 = sub i64 %13, %14
%16 = sdiv exact i64 %15, 8
%17 = trunc i64 %16 to i32
%18 = call i64 @zigbee_doChecksum(i64* %6, i32 %17)
%19 = load i64*, i64** %3
%20 = load i64*, i64** %4
%21 = load i64, i64* %20
%22 = getelementptr inbounds i64, i64* %19, i64 %21
store i64 %18, i64* %22
%23 = load i64*, i64** %4
%24 = load i64, i64* %23
%25 = add i64 %24, 1
store i64 %25, i64* %23
ret void
}

LLVM IR (-O2):
define void @zigbee_appendChecksum(i64* %0, i64* nocapture %1) {
%3 = getelementptr inbounds i64, i64* %0, i64 3
%4 = load i64, i64* %1
%5 = trunc i64 %4 to i32
%6 = add i32 %5, -3
%7 = tail call i64 @zigbee_doChecksum(i64* %3, i32 %6)
%8 = load i64, i64* %1
%9 = getelementptr inbounds i64, i64* %0, i64 %8
store i64 %7, i64* %9
%10 = load i64, i64* %1
%11 = add i64 %10, 1
store i64 %11, i64* %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
int usage(int rc) {
  FILE *out = (rc == 0) ? stdout : stderr;
  fprintf(out, "Usage: vzfsync {-s|-d} [-n] file [file ...]\n"
               "       -s, --sync		do fsync()\n"
               "       -d, --datasync		do fdatasync()\n"
               "       -n, --dontneed		do fadvise(DONTNEED)\n");
  return rc;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1138 <usage+0x28>
mov    0x2eac(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1146 <usage+0x36>
mov    0x2ea1(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xea7(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    1120 <usage+0x10>
mov    0x2eba(%rip),%rax
jmp    1127 <usage+0x17>
mov    0x2eb9(%rip),%rax
mov    (%rax),%rcx
lea    0xecf(%rip),%rdi
mov    $0x9c,%esi
mov    $0x1,%edx
call   1030 <fwrite@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32* null
@stderr = global i32* null
@.str = [157 x i8] c"Usage: vzfsync {-s|-d} [-n] file [file ...]\0A -s, --sync\09\09do fsync()\0A -d, --datasync\09\09do fdatasync()\0A -n, --dontneed\09\09do fadvise(DONTNEED)\0A\00"
define i32 @usage(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32*, i32** @stdout
br label %10
8: ; preds = %1
%9 = load i32*, i32** @stderr
br label %10
10: ; preds = %8, %6
%11 = phi i32* [ %7, %6 ], [ %9, %8 ]
store i32* %11, i32** %3
%12 = load i32*, i32** %3
%13 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@stdout = global i32* null
@stderr = global i32* null
@.str = [157 x i8] c"Usage: vzfsync {-s|-d} [-n] file [file ...]\0A -s, --sync\09\09do fsync()\0A -d, --datasync\09\09do fdatasync()\0A -n, --dontneed\09\09do fadvise(DONTNEED)\0A\00"
define i32 @usage(i32 returned %0) {
%2 = icmp eq i32 %0, 0
%3 = load i32*, i32** @stdout
%4 = load i32*, i32** @stderr
%5 = select i1 %2, i32* %3, i32* %4
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i64 156, i64 1, i32* %5)
ret i32 %0
}
/* Variables and functions */
unsigned long INT_MAX;
int /*<<< orphan*/ abort();
int main() {
  unsigned long count = 8;
  if (count > INT_MAX)
    abort();
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x8,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2eb6(%rip),%rcx
cmp    (%rcx),%rax
jbe    1142 <main+0x32>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
cmpq   $0x7,(%rax)
jbe    1122 <main+0x12>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@INT_MAX = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
store i64 8, i64* %2
%3 = load i64, i64* %2
%4 = load i64, i64* @INT_MAX
%5 = icmp ugt i64 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
@INT_MAX = global i64 0
define i32 @main() {
%1 = load i64, i64* @INT_MAX
%2 = icmp ult i64 %1, 8
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
ret i32 0
}
int filename_is_absolute(char *name) { return (name[0] == '/'); }


x86 assembly (clang, -O0):
<filename_is_absolute>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<filename_is_absolute>:
xor    %eax,%eax
cmpb   $0x2f,(%rdi)
sete   %al
ret

LLVM IR (-O0):
define i32 @filename_is_absolute(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 47
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @filename_is_absolute(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 47
%4 = zext i1 %3 to i32
ret i32 %4
}
int command_away(void *data, struct t_gui_buffer *buffer, int argc, char **argv,
                 char **argv_eol) {
  (void)data;
  (void)buffer;
  (void)argc;
  (void)argv;
  (void)argv_eol;
  return 0;
}


x86 assembly (clang, -O0):
<command_away>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.t_gui_buffer = type opaque
define i32 @command_away(i8* %0, %struct.t_gui_buffer* %1, i32 %2, i8** %3, i8** %4) {
%6 = alloca i8*
%7 = alloca %struct.t_gui_buffer*
%8 = alloca i32
%9 = alloca i8**
%10 = alloca i8**
store i8* %0, i8** %6
store %struct.t_gui_buffer* %1, %struct.t_gui_buffer** %7
store i32 %2, i32* %8
store i8** %3, i8*** %9
store i8** %4, i8*** %10
%11 = load i8*, i8** %6
%12 = load %struct.t_gui_buffer*, %struct.t_gui_buffer** %7
%13 = load i32, i32* %8
%14 = load i8**, i8*** %9
%15 = load i8**, i8*** %10
ret i32 0
}

LLVM IR (-O2):
%struct.t_gui_buffer = type opaque
define i32 @command_away(i8* nocapture readnone %0, %struct.t_gui_buffer* nocapture readnone %1, i32 %2, i8** nocapture readnone %3, i8** nocapture readnone %4) {
ret i32 0
}
void RTAvlrUIntPtrRemove(void) {}


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

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

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

LLVM IR (-O2):
define void @RTAvlrUIntPtrRemove() {
ret void
}
void rewriteClientCommandArgument(void) {
  _serverPanic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/"
               "heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c",
               116, "Function '%s' is disabled.", __func__);
}


x86 assembly (clang, -O0):
<rewriteClientCommandArgument>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x74,%esi
lea    0xf79(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    $0x0,%al
call   1030 <_serverPanic@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rewriteClientCommandArgument>:
lea    0xee9(%rip),%rdi
lea    0xf82(%rip),%rdx
lea    0xf96(%rip),%rcx
mov    $0x74,%esi
xor    %eax,%eax
jmp    1030 <_serverPanic@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.rewriteClientCommandArgument = [29 x i8] c"rewriteClientCommandArgument\00"
define void @rewriteClientCommandArgument() {
%1 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @__func__.rewriteClientCommandArgument, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.rewriteClientCommandArgument = [29 x i8] c"rewriteClientCommandArgument\00"
define void @rewriteClientCommandArgument() {
%1 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @__func__.rewriteClientCommandArgument, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_ranging();
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts("pkg uwb-dw1000 + uwb-core test application");
  init_ranging();
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <init_ranging@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <init_ranging@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [43 x i8] c"pkg uwb-dw1000 + uwb-core test application\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @init_ranging()
ret i32 1
}

LLVM IR (-O2):
@.str = [43 x i8] c"pkg uwb-dw1000 + uwb-core test application\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @init_ranging()
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ SPI_RP_EnableRxInt();
int /*<<< orphan*/ SPI_RP_EnableTxInt();
void SPI_RP_EnableInt(void) {
  SPI_RP_EnableRxInt();
  SPI_RP_EnableTxInt();
}


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

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

LLVM IR (-O0):
define void @SPI_RP_EnableInt() {
%1 = call i32 (...) @SPI_RP_EnableRxInt()
%2 = call i32 (...) @SPI_RP_EnableTxInt()
ret void
}

LLVM IR (-O2):
define void @SPI_RP_EnableInt() {
%1 = tail call i32 (...) @SPI_RP_EnableRxInt()
%2 = tail call i32 (...) @SPI_RP_EnableTxInt()
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int sweep_set_dobldobl_target(int n, double *c) {
  int fail, ptos[2];
  ptos[0] = 1;
  ptos[1] = 1;
  fail = _ada_use_c2phc4c(618, ptos, &n, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<sweep_set_dobldobl_target>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x18(%rbp)
lea    -0x1c(%rbp),%rsi
mov    -0x10(%rbp),%rcx
mov    $0x26a,%edi
lea    -0x4(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sweep_set_dobldobl_target>:
sub    $0x18,%rsp
mov    %rsi,%rcx
mov    %edi,0xc(%rsp)
movabs $0x100000001,%rax
mov    %rax,0x10(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    $0x26a,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @sweep_set_dobldobl_target(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca i32
%6 = alloca [2 x i32]
store i32 %0, i32* %3
store double* %1, double** %4
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
store i32 1, i32* %7
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
store i32 1, i32* %8
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%10 = load double*, double** %4
%11 = call i32 @_ada_use_c2phc4c(i32 618, i32* %9, i32* %3, double* %10, i32 0)
store i32 %11, i32* %5
%12 = load i32, i32* %5
ret i32 %12
}

LLVM IR (-O2):
define i32 @sweep_set_dobldobl_target(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca [2 x i32]
store i32 %0, i32* %3
%5 = bitcast [2 x i32]* %4 to i8*
%6 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
store i32 1, i32* %6
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
store i32 1, i32* %7
%8 = call i32 @_ada_use_c2phc4c(i32 618, i32* %6, i32* %3, double* %1, i32 0)
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void hello_world() { printf("Hello world!\n\n"); }


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

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

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

LLVM IR (-O2):
@str = [14 x i8] c"Hello world!\0A\00"
define void @hello_world() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret void
}
int main() {
  int *s[10] = {0};
  int(*p)[10] = 0;
  int array[3][4] = {0};
  int(*p1)[4] = array;
  p1[2][3] = 40;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1030 <memset@plt>
movq   $0x0,-0x68(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
lea    -0xa0(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
movl   $0x28,0x2c(%rax)
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32*]
%3 = alloca [10 x i32]*
%4 = alloca [3 x [4 x i32]]
%5 = alloca [4 x i32]*
store i32 0, i32* %1
%6 = bitcast [10 x i32*]* %2 to i8*
store [10 x i32]* null, [10 x i32]** %3
%7 = bitcast [3 x [4 x i32]]* %4 to i8*
%8 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %4, i64 0, i64 0
store [4 x i32]* %8, [4 x i32]** %5
%9 = load [4 x i32]*, [4 x i32]** %5
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 2
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 3
store i32 40, i32* %11
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, char *);
int main(void) {
  printf("addr: 0x%x -- %s\n", (((0xE0200000) + ((0) << 5))), "gpa0con");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0xe0200000,%esi
lea    0xee0(%rip),%rdx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [18 x i8] c"addr: 0x%x -- %s\0A\00"
@.str.1 = [8 x i8] c"gpa0con\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 -534773760, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"addr: 0x%x -- %s\0A\00"
@.str.1 = [8 x i8] c"gpa0con\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 -534773760, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ DrawArc(double, int /*<<< orphan*/, int);
int /*<<< orphan*/ MovePen(double, double);
void DrawCenteredCircle(double x, double y, double r) {
  MovePen(x + r, y);
  DrawArc(r, 0, 360);
}


x86 assembly (clang, -O0):
<DrawCenteredCircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1040 <MovePen@plt>
movsd  -0x18(%rbp),%xmm0
xor    %edi,%edi
mov    $0x168,%esi
call   1030 <DrawArc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawCenteredCircle>:
push   %rax
movsd  %xmm2,(%rsp)
addsd  %xmm2,%xmm0
call   1040 <MovePen@plt>
movsd  (%rsp),%xmm0
xor    %edi,%edi
mov    $0x168,%esi
pop    %rax
jmp    1030 <DrawArc@plt>

LLVM IR (-O0):
define void @DrawCenteredCircle(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* %4
%8 = load double, double* %6
%9 = fadd double %7, %8
%10 = load double, double* %5
%11 = call i32 @MovePen(double %9, double %10)
%12 = load double, double* %6
%13 = call i32 @DrawArc(double %12, i32 0, i32 360)
ret void
}

LLVM IR (-O2):
define void @DrawCenteredCircle(double %0, double %1, double %2) {
%4 = fadd double %0, %2
%5 = tail call i32 @MovePen(double %4, double %1)
%6 = tail call i32 @DrawArc(double %2, i32 0, i32 360)
ret void
}
int fun620() { return 620; }


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

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

LLVM IR (-O0):
define i32 @fun620() {
ret i32 620
}

LLVM IR (-O2):
define i32 @fun620() {
ret i32 620
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0x18() {
  Assert_real((isdigit(24) == 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",
              125, ("isdigit should be 0 for 0x18"));
}


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

x86 assembly (clang, -O2):
<t_isdigit_0x18>:
push   %rax
mov    $0x18,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x7d,%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 0x18\00"
define void @t_isdigit_0x18() {
%1 = call i64 @isdigit(i32 24)
%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 125, 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 0x18\00"
define void @t_isdigit_0x18() {
%1 = tail call i64 @isdigit(i32 24)
%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 125, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int main(int ac, const char *av[]) {
  if (ac < 2)
    return 0;
  printf("%lu\n", strlen(av[1]));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    114c <main+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    116e <main+0x4e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,%esi
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jl     1141 <main+0x21>
push   %rax
mov    0x8(%rsi),%rdi
call   1030 <strlen@plt>
lea    0xeca(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%lu\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strlen(i8* %6)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %2, %4
ret i32 0
}
void __errno(int num) {}


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

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

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

LLVM IR (-O2):
define void @__errno(i32 %0) {
ret void
}
/* Variables and functions */
int iis_s3c2410_hw_init();
int iis_hw_init(void) { return iis_s3c2410_hw_init(); }


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

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

LLVM IR (-O0):
define i32 @iis_hw_init() {
%1 = call i32 (...) @iis_s3c2410_hw_init()
ret i32 %1
}

LLVM IR (-O2):
define i32 @iis_hw_init() {
%1 = tail call i32 (...) @iis_s3c2410_hw_init()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ pause();
void *start1(void *arg) {
  pause();
  assert(0);
}


x86 assembly (clang, -O0):
<start1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <pause@plt>
xor    %edi,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start1>:
push   %rax
xor    %eax,%eax
call   1040 <pause@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <assert@plt>

LLVM IR (-O0):
define i8* @start1(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i32 (...) @pause()
%5 = call i32 @assert(i32 0)
%6 = load i8*, i8** %2
ret i8* %6
}

LLVM IR (-O2):
define noalias i8* @start1(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @pause()
%3 = tail call i32 @assert(i32 0)
ret i8* undef
}
int lsb(int x) { return x + 2; }


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

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

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

LLVM IR (-O2):
define i32 @lsb(i32 %0) {
%2 = add nsw i32 %0, 2
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isgraph(int);
void t_isgraph_0x4e() {
  Assert_real((isgraph(78)),
              "/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_isgraph.c",
              395, ("isgraph should be 1 for N"));
}


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

x86 assembly (clang, -O2):
<t_isgraph_0x4e>:
push   %rax
mov    $0x4e,%edi
call   1040 <isgraph@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x18b,%edx
pop    %rax
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_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for N\00"
define void @t_isgraph_0x4e() {
%1 = call i32 @isgraph(i32 78)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 395, 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_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for N\00"
define void @t_isgraph_0x4e() {
%1 = tail call i32 @isgraph(i32 78)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 395, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bar(float);
int /*<<< orphan*/ bar8(int, int, int, int, int, int, int, int);
int /*<<< orphan*/ bazi(int, int);
int /*<<< orphan*/ bazu(int, int);
void foo(int i) {
  bar(256);
  bar(6.66f);
  bar8(-1, -2, -3, -4, -5, -6, -7, -8);
  bazu(i, i);
  bazi(0x8, 0x80000000);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movss  0xeb1(%rip),%xmm0
call   1040 <bar@plt>
movss  0xea0(%rip),%xmm0
call   1040 <bar@plt>
mov    $0xffffffff,%edi
mov    $0xfffffffe,%esi
mov    $0xfffffffd,%edx
mov    $0xfffffffc,%ecx
mov    $0xfffffffb,%r8d
mov    $0xfffffffa,%r9d
movl   $0xfffffff9,(%rsp)
movl   $0xfffffff8,0x8(%rsp)
ff
call   1030 <bar8@plt>
mov    -0x4(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1050 <bazu@plt>
mov    $0x8,%edi
mov    $0x80000000,%esi
call   1060 <bazi@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rbx
mov    %edi,%ebx
movss  0xeb5(%rip),%xmm0
call   1040 <bar@plt>
movss  0xeac(%rip),%xmm0
call   1040 <bar@plt>
mov    $0xffffffff,%edi
mov    $0xfffffffe,%esi
mov    $0xfffffffd,%edx
mov    $0xfffffffc,%ecx
mov    $0xfffffffb,%r8d
mov    $0xfffffffa,%r9d
push   $0xfffffffffffffff8
push   $0xfffffffffffffff9
call   1030 <bar8@plt>
add    $0x10,%rsp
mov    %ebx,%edi
mov    %ebx,%esi
call   1050 <bazu@plt>
mov    $0x8,%edi
mov    $0x80000000,%esi
pop    %rbx
jmp    1060 <bazi@plt>

LLVM IR (-O0):
define void @foo(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @bar(float 2.560000e+02)
%4 = call i32 @bar(float 0x401AA3D700000000)
%5 = call i32 @bar8(i32 -1, i32 -2, i32 -3, i32 -4, i32 -5, i32 -6, i32 -7, i32 -8)
%6 = load i32, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @bazu(i32 %6, i32 %7)
%9 = call i32 @bazi(i32 8, i32 -2147483648)
ret void
}

LLVM IR (-O2):
define void @foo(i32 %0) {
%2 = tail call i32 @bar(float 2.560000e+02)
%3 = tail call i32 @bar(float 0x401AA3D700000000)
%4 = tail call i32 @bar8(i32 -1, i32 -2, i32 -3, i32 -4, i32 -5, i32 -6, i32 -7, i32 -8)
%5 = tail call i32 @bazu(i32 %0, i32 %0)
%6 = tail call i32 @bazi(i32 8, i32 -2147483648)
ret void
}
/* Variables and functions */
scalar_t__ get_next_input_from_fuzzer();
double map2check_non_det_double() {
  return (double)get_next_input_from_fuzzer();
}


x86 assembly (clang, -O0):
<map2check_non_det_double>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <get_next_input_from_fuzzer@plt>
cvtsi2sd %rax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<map2check_non_det_double>:
push   %rax
xor    %eax,%eax
call   1030 <get_next_input_from_fuzzer@plt>
cvtsi2sd %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @map2check_non_det_double() {
%1 = call i64 (...) @get_next_input_from_fuzzer()
%2 = sitofp i64 %1 to double
ret double %2
}

LLVM IR (-O2):
define double @map2check_non_det_double() {
%1 = tail call i64 (...) @get_next_input_from_fuzzer()
%2 = sitofp i64 %1 to double
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void tiledOptions() {
  printf("\t-t<0..255>\treorganize data as metatiles of <0..255>x<0..255> "
         "bytes\n");
}


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

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

LLVM IR (-O0):
@.str = [69 x i8] c"\09-t<0..255>\09reorganize data as metatiles of <0..255>x<0..255> bytes\0A\00"
define void @tiledOptions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [68 x i8] c"\09-t<0..255>\09reorganize data as metatiles of <0..255>x<0..255> bytes\00"
define void @tiledOptions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned int rbtree_hash_mem(unsigned char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
unsigned int rbtree_hash_string(const char *s) {
  return rbtree_hash_mem((const unsigned char *)s, strlen(s));
}


x86 assembly (clang, -O0):
<rbtree_hash_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%esi
call   1040 <rbtree_hash_mem@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rbtree_hash_string>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1040 <rbtree_hash_mem@plt>

LLVM IR (-O0):
define i32 @rbtree_hash_string(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @rbtree_hash_mem(i8* %3, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
define i32 @rbtree_hash_string(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @rbtree_hash_mem(i8* %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
float pow(float, double);
float _log_meter(float power, double lower_db, double upper_db,
                 double non_linearity) {
  return (power < lower_db
              ? 0.0
              : pow((power - lower_db) / (upper_db - lower_db), non_linearity));
}


x86 assembly (clang, -O0):
<_log_meter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1151 <_log_meter+0x41>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1184 <_log_meter+0x74>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  -0x20(%rbp),%xmm1
call   1030 <pow@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_log_meter>:
cvtss2sd %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    111e <_log_meter+0xe>
xorps  %xmm0,%xmm0
ret
subsd  %xmm1,%xmm0
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm3,%xmm1
jmp    1030 <pow@plt>

LLVM IR (-O0):
define float @_log_meter(float %0, double %1, double %2, double %3) {
%5 = alloca float
%6 = alloca double
%7 = alloca double
%8 = alloca double
store float %0, float* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load float, float* %5
%10 = fpext float %9 to double
%11 = load double, double* %6
%12 = fcmp olt double %10, %11
br i1 %12, label %13, label %14
13: ; preds = %4
br label %27
14: ; preds = %4
%15 = load float, float* %5
%16 = fpext float %15 to double
%17 = load double, double* %6
%18 = fsub double %16, %17
%19 = load double, double* %7
%20 = load double, double* %6
%21 = fsub double %19, %20
%22 = fdiv double %18, %21
%23 = fptrunc double %22 to float
%24 = load double, double* %8
%25 = call float @pow(float %23, double %24)
%26 = fpext float %25 to double
br label %27
27: ; preds = %14, %13
%28 = phi double [ 0.000000e+00, %13 ], [ %26, %14 ]
%29 = fptrunc double %28 to float
ret float %29
}

LLVM IR (-O2):
define float @_log_meter(float %0, double %1, double %2, double %3) {
%5 = fpext float %0 to double
%6 = fcmp olt double %5, %1
br i1 %6, label %13, label %7
7: ; preds = %4
%8 = fsub double %5, %1
%9 = fsub double %2, %1
%10 = fdiv double %8, %9
%11 = fptrunc double %10 to float
%12 = tail call float @pow(float %11, double %3)
br label %13
13: ; preds = %4, %7
%14 = phi float [ %12, %7 ], [ 0.000000e+00, %4 ]
ret float %14
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ _CANBaseValid(int);
void CANDisable(uint32_t ui32Base) {
  ASSERT(_CANBaseValid(ui32Base));
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) |= 0x00000001;
}


x86 assembly (clang, -O0):
<CANDisable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_CANBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
mov    -0x4(%rbp),%eax
add    $0x0,%eax
cltq
mov    (%rax),%ecx
or     $0x1,%ecx
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CANDisable>:
push   %rbx
mov    %edi,%ebx
call   1030 <_CANBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
movslq %ebx,%rax
orl    $0x1,(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define void @CANDisable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_CANBaseValid(i32 %3)
%5 = call i32 @ASSERT(i32 %4)
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 0
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load volatile i32, i32* %9
%11 = or i32 %10, 1
store volatile i32 %11, i32* %9
ret void
}

LLVM IR (-O2):
define void @CANDisable(i32 %0) {
%2 = tail call i32 @_CANBaseValid(i32 %0)
%3 = tail call i32 @ASSERT(i32 %2)
%4 = sext i32 %0 to i64
%5 = inttoptr i64 %4 to i32*
%6 = load volatile i32, i32* %5
%7 = or i32 %6, 1
store volatile i32 %7, i32* %5
ret void
}
/* Variables and functions */
int atoi(char *);
int convert_string_to_int(char buf[]) {
  int num;
  num = atoi(buf);
  return num;
}


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

x86 assembly (clang, -O2):
<convert_string_to_int>:
jmp    1030 <atoi@plt>

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

LLVM IR (-O2):
define i32 @convert_string_to_int(i8* nocapture %0) {
%2 = tail call i32 @atoi(i8* %0)
ret i32 %2
}