xunge/DecIR huggingface dataset:
void fixrow(unsigned short *sptr, int n) {
  while (n--) {
    sptr++;
  }
}


x86 assembly (clang, -O0):
<fixrow>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     1130 <fixrow+0x30>
mov    -0x8(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x8(%rbp)
jmp    110b <fixrow+0xb>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @fixrow(i16* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
unsigned char toupper(unsigned char);
char *strupr(char *s) {
  unsigned char *ucs = (unsigned char *)s;
  for (; *ucs != '\0'; ucs++) {
    *ucs = toupper(*ucs);
  }
  return s;
}


x86 assembly (clang, -O0):
<strupr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x0,%eax
je     1159 <strupr+0x49>
mov    -0x10(%rbp),%rax
movzbl (%rax),%edi
call   1030 <toupper@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <strupr+0x14>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strupr>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%al
test   %al,%al
je     1146 <strupr+0x36>
lea    0x1(%r14),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl %al,%edi
call   1030 <toupper@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <strupr+0x20>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @strupr(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call zeroext i8 @toupper(i8 zeroext %5)
store i8 %7, i8* %6
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret i8* %0
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int vasprintf(char **, char const *, int /*<<< orphan*/);
int octave_vasprintf_wrapper(char **buf, const char *fmt, va_list args) {
  return vasprintf(buf, fmt, args);
}


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

x86 assembly (clang, -O2):
<octave_vasprintf_wrapper>:
jmp    1030 <vasprintf@plt>

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

LLVM IR (-O2):
define i32 @octave_vasprintf_wrapper(i8** %0, i8* %1, i32 %2) {
%4 = tail call i32 @vasprintf(i8** %0, i8* %1, i32 %2)
ret i32 %4
}
void NullDottedLine(struct ADrawTag *ctx __attribute__((unused)),
                    unsigned int x1 __attribute__((unused)),
                    unsigned int y1 __attribute__((unused)),
                    unsigned int x2 __attribute__((unused)),
                    unsigned int y2 __attribute__((unused))) {}


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

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

LLVM IR (-O0):
%struct.ADrawTag = type opaque
define void @NullDottedLine(%struct.ADrawTag* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca %struct.ADrawTag*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %struct.ADrawTag* %0, %struct.ADrawTag** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
ret void
}

LLVM IR (-O2):
%struct.ADrawTag = type opaque
define void @NullDottedLine(%struct.ADrawTag* nocapture %0, i32 %1, i32 %2, i32 %3, i32 %4) {
ret void
}
int mswin_majorver() { return (2); }


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

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

LLVM IR (-O0):
define i32 @mswin_majorver() {
ret i32 2
}

LLVM IR (-O2):
define i32 @mswin_majorver() {
ret i32 2
}
void onConnect(int fd, char *ip, int port, char *path, char *cookies) {
  return;
}


x86 assembly (clang, -O0):
<onConnect>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @onConnect(i32 %0, i8* %1, i32 %2, i8* %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
store i32 %0, i32* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i8* %4, i8** %10
ret void
}

LLVM IR (-O2):
define void @onConnect(i32 %0, i8* nocapture %1, i32 %2, i8* nocapture %3, i8* nocapture %4) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int transform_decimal(int);
void print_hex(int number) {
  if (number <= 0) {
    return;
  }
  print_hex(number / 16);
  printf("%c", transform_decimal(number % 16));
}


x86 assembly (clang, -O0):
<print_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jg     114a <print_hex+0x1a>
jmp    117c <print_hex+0x4c>
mov    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1050 <print_hex@plt>
mov    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <transform_decimal@plt>
mov    %eax,%esi
lea    0xe89(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex>:
test   %edi,%edi
jle    1158 <print_hex+0x28>
push   %rbx
mov    %edi,%ebx
shr    $0x4,%edi
call   1050 <print_hex@plt>
and    $0xf,%ebx
mov    %ebx,%edi
call   1030 <transform_decimal@plt>
lea    0xeb0(%rip),%rdi
mov    %eax,%esi
pop    %rbx
jmp    1040 <printf@plt>
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define void @print_hex(i32 %0) {
%2 = icmp slt i32 %0, 1
br i1 %2, label %3, label %4
3: ; preds = %1, %4
ret void
4: ; preds = %1
%5 = lshr i32 %0, 4
tail call void @print_hex(i32 %5)
%6 = and i32 %0, 15
%7 = tail call i32 @transform_decimal(i32 %6)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %3
}
double eval_A(int i, int j) {
  int d = (((i + j) * (i + j + 1)) >> 1) + i + 1;
  return 1.0 / (double)d;
}


x86 assembly (clang, -O0):
<eval_A>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
add    -0x8(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
sar    $0x1,%eax
add    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xecb(%rip),%xmm0
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<eval_A>:
lea    (%rsi,%rdi,1),%eax
lea    (%rsi,%rdi,1),%ecx
add    $0x1,%ecx
imul   %eax,%ecx
sar    %ecx
lea    (%rdi,%rcx,1),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xee0(%rip),%xmm0
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @eval_A(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = add nsw i32 %6, %7
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
%12 = add nsw i32 %11, 1
%13 = mul nsw i32 %8, %12
%14 = ashr i32 %13, 1
%15 = load i32, i32* %3
%16 = add nsw i32 %14, %15
%17 = add nsw i32 %16, 1
store i32 %17, i32* %5
%18 = load i32, i32* %5
%19 = sitofp i32 %18 to double
%20 = fdiv double 1.000000e+00, %19
ret double %20
}

LLVM IR (-O2):
define double @eval_A(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
%4 = add nsw i32 %3, 1
%5 = mul nsw i32 %4, %3
%6 = ashr i32 %5, 1
%7 = add i32 %0, 1
%8 = add i32 %7, %6
%9 = sitofp i32 %8 to double
%10 = fdiv double 1.000000e+00, %9
ret double %10
}
/* Variables and functions */
scalar_t__ hypotl(long double, long double);
int /*<<< orphan*/ link_failure_hypotl();
void test_hypotl(long double ld1, long double ld2) {
  if (hypotl(ld1, ld2) != hypotl(ld1, ld2))
    link_failure_hypotl();
}


x86 assembly (clang, -O0):
<test_hypotl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <hypotl@plt>
mov    %rax,-0x28(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <hypotl@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
cmp    %rcx,%rax
je     1175 <test_hypotl+0x55>
mov    $0x0,%al
call   1040 <link_failure_hypotl@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_hypotl>:
push   %rbx
sub    $0x40,%rsp
fldt   0x50(%rsp)
fld    %st(0)
fstpt  0x34(%rsp)
fldt   0x60(%rsp)
fld    %st(0)
fstpt  0x28(%rsp)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1030 <hypotl@plt>
mov    %rax,%rbx
fldt   0x28(%rsp)
fstpt  0x10(%rsp)
fldt   0x34(%rsp)
fstpt  (%rsp)
call   1030 <hypotl@plt>
cmp    %rax,%rbx
jne    1167 <test_hypotl+0x47>
add    $0x40,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
jmp    1040 <link_failure_hypotl@plt>

LLVM IR (-O0):
define void @test_hypotl(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%5 = load x86_fp80, x86_fp80* %3
%6 = load x86_fp80, x86_fp80* %4
%7 = call i64 @hypotl(x86_fp80 %5, x86_fp80 %6)
%8 = load x86_fp80, x86_fp80* %3
%9 = load x86_fp80, x86_fp80* %4
%10 = call i64 @hypotl(x86_fp80 %8, x86_fp80 %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_hypotl()
br label %14
14: ; preds = %12, %2
ret void
}

LLVM IR (-O2):
define void @test_hypotl(x86_fp80 %0, x86_fp80 %1) {
%3 = tail call i64 @hypotl(x86_fp80 %0, x86_fp80 %1)
%4 = tail call i64 @hypotl(x86_fp80 %0, x86_fp80 %1)
%5 = icmp eq i64 %3, %4
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (...) @link_failure_hypotl()
br label %8
8: ; preds = %6, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TLS_HandshakeHeader(int, int, int /*<<< orphan*/);
void TLS_ServerHelloDone(int sock) { TLS_HandshakeHeader(sock, 14, 0); }


x86 assembly (clang, -O0):
<TLS_ServerHelloDone>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xe,%esi
xor    %edx,%edx
call   1030 <TLS_HandshakeHeader@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TLS_ServerHelloDone>:
mov    $0xe,%esi
xor    %edx,%edx
jmp    1030 <TLS_HandshakeHeader@plt>

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

LLVM IR (-O2):
define void @TLS_ServerHelloDone(i32 %0) {
%2 = tail call i32 @TLS_HandshakeHeader(i32 %0, i32 14, i32 0)
ret void
}
int ti_div_start(double const *options) {
  (void)options;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @ti_div_start(double* nocapture readnone %0) {
ret i32 0
}
float roomy_t_faustpower2_f(float value) { return (value * value); }


x86 assembly (clang, -O0):
<roomy_t_faustpower2_f>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<roomy_t_faustpower2_f>:
mulss  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @roomy_t_faustpower2_f(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = load float, float* %2
%5 = fmul float %3, %4
ret float %5
}

LLVM IR (-O2):
define float @roomy_t_faustpower2_f(float %0) {
%2 = fmul float %0, %0
ret float %2
}
void foo433() {}


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

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

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

LLVM IR (-O2):
define void @foo433() {
ret void
}
int minus(int x, int y) {
  if (x != 0)
    if (y != 0) {
      int z = x - y;
      if (z != 0)
        return 1;
    }
  return 0;
}


x86 assembly (clang, -O0):
<minus>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1147 <minus+0x47>
cmpl   $0x0,-0xc(%rbp)
je     1142 <minus+0x42>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     113d <minus+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    114e <minus+0x4e>
jmp    1142 <minus+0x42>
jmp    1147 <minus+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<minus>:
test   %edi,%edi
setne  %al
test   %esi,%esi
setne  %cl
and    %al,%cl
cmp    %esi,%edi
setne  %al
and    %cl,%al
movzbl %al,%eax
ret

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

LLVM IR (-O2):
define i32 @minus(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
%4 = icmp eq i32 %1, 0
%5 = or i1 %3, %4
%6 = icmp eq i32 %0, %1
%7 = or i1 %6, %5
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
ret i32 %9
}
int main(void) {
  if (g(3, 1337) != 1337)
    abrt("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/AlissonLinhares/NativeKit/refs/heads/4.9.0/"
         "cross/gcc/gcc/testsuite/gcc.dg/pr33676.c",
         __FUNCTION__);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3,%edi
mov    $0x539,%esi
mov    $0x0,%al
call   1040 <g@plt>
cmp    $0x539,%eax
je     1160 <main+0x40>
lea    0xeae(%rip),%rdi
lea    0xf55(%rip),%rsi
mov    $0x0,%al
call   1030 <abrt@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3,%edi
mov    $0x539,%esi
xor    %eax,%eax
call   1040 <g@plt>
cmp    $0x539,%eax
je     114e <main+0x2e>
lea    0xec0(%rip),%rdi
lea    0xf67(%rip),%rsi
xor    %eax,%eax
call   1030 <abrt@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [174 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlissonLinhares/NativeKit/refs/heads/4.9.0/cross/gcc/gcc/testsuite/gcc.dg/pr33676.c\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, i32, ...) bitcast (i32 (...)* @g to i32 (i32, i32, ...)*)(i32 3, i32 1337)
%3 = icmp ne i32 %2, 1337
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @abrt to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
ret i32 0
}

LLVM IR (-O2):
@.str = [174 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlissonLinhares/NativeKit/refs/heads/4.9.0/cross/gcc/gcc/testsuite/gcc.dg/pr33676.c\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
define i32 @main() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @g to i32 (i32, i32, ...)*)(i32 3, i32 1337)
%2 = icmp eq i32 %1, 1337
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @abrt to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
ret i32 0
}
/* Variables and functions */
scalar_t__ get1dqt();
int get2();
void get_dqt(int kind) {
  int length;
  length = get2() - 2;
  while (length > 0)
    length -= get1dqt();
}


x86 assembly (clang, -O0):
<get_dqt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <get2@plt>
sub    $0x2,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    115b <get_dqt+0x3b>
mov    $0x0,%al
call   1040 <get1dqt@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1138 <get_dqt+0x18>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_dqt>:
push   %rbx
xor    %eax,%eax
call   1030 <get2@plt>
cmp    $0x3,%eax
jl     114d <get_dqt+0x2d>
mov    %eax,%ebx
add    $0xfffffffe,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <get1dqt@plt>
sub    %eax,%ebx
test   %ebx,%ebx
jg     1140 <get_dqt+0x20>
pop    %rbx
ret

LLVM IR (-O0):
define void @get_dqt(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 (...) @get2()
%5 = sub nsw i32 %4, 2
store i32 %5, i32* %3
br label %6
6: ; preds = %9, %1
%7 = load i32, i32* %3
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %6
%10 = call i64 (...) @get1dqt()
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = sub nsw i64 %12, %10
%14 = trunc i64 %13 to i32
store i32 %14, i32* %3
br label %6
15: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @get_dqt(i32 %0) {
%2 = tail call i32 (...) @get2()
%3 = icmp sgt i32 %2, 2
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = add nsw i32 %2, -2
br label %6
6: ; preds = %4, %6
%7 = phi i32 [ %10, %6 ], [ %5, %4 ]
%8 = tail call i64 (...) @get1dqt()
%9 = trunc i64 %8 to i32
%10 = sub i32 %7, %9
%11 = icmp sgt i32 %10, 0
br i1 %11, label %6, label %12
12: ; preds = %6, %1
ret void
}
/* Type definitions */
struct Node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free_node(struct Node *);
int /*<<< orphan*/ generate_code(struct Node *);
void make_codeSegment(struct Node *tree) {
  generate_code(tree);
  free_node(tree);
}


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

x86 assembly (clang, -O2):
<make_codeSegment>:
push   %rbx
mov    %rdi,%rbx
call   1030 <generate_code@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <free_node@plt>

LLVM IR (-O0):
%struct.Node = type { i32 }
define void @make_codeSegment(%struct.Node* %0) {
%2 = alloca %struct.Node*
store %struct.Node* %0, %struct.Node** %2
%3 = load %struct.Node*, %struct.Node** %2
%4 = call i32 @generate_code(%struct.Node* %3)
%5 = load %struct.Node*, %struct.Node** %2
%6 = call i32 @free_node(%struct.Node* %5)
ret void
}

LLVM IR (-O2):
%struct.Node = type { i32 }
define void @make_codeSegment(%struct.Node* %0) {
%2 = tail call i32 @generate_code(%struct.Node* %0)
%3 = tail call i32 @free_node(%struct.Node* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ keys;

/* Variables and functions */
int getkey();
char key_lookup() {
  const static char keycodes[] = {'M', 'U', 'D', 'L', 'R', 'X'};
  const static int keys[] = {
      0, 1, 2, 3, 4,
  };
  int key;
  int i;
  key = getkey();
  for (i = 0; ((i < (sizeof(keys) / sizeof(int))) && (key != keys[i])); i++)
    ;
  return keycodes[i];
}


x86 assembly (clang, -O0):
<key_lookup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <getkey@plt>
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rcx
xor    %eax,%eax
cmp    $0x5,%rcx
mov    %al,-0x9(%rbp)
jae    1153 <key_lookup+0x43>
mov    -0x4(%rbp),%eax
movslq -0x8(%rbp),%rdx
lea    0xec6(%rip),%rcx
cmp    (%rcx,%rdx,4),%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1163 <key_lookup+0x53>
jmp    1176 <key_lookup+0x66>
jmp    1168 <key_lookup+0x58>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <key_lookup+0x19>
movslq -0x8(%rbp),%rcx
lea    0xe7f(%rip),%rax
movsbl (%rax,%rcx,1),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<key_lookup>:
push   %rax
xor    %eax,%eax
call   1030 <getkey@plt>
cmp    $0x5,%eax
mov    $0x5,%ecx
cmovb  %eax,%ecx
lea    0xed6(%rip),%rax
mov    (%rcx,%rax,1),%al
pop    %rcx
ret

LLVM IR (-O0):
@key_lookup.keycodes = internal constant [6 x i8] c"MUDLRX"
@key_lookup.keys = internal constant [5 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4]
define signext i8 @key_lookup() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @getkey()
store i32 %3, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %18, %0
%5 = load i32, i32* %2
%6 = sext i32 %5 to i64
%7 = icmp ult i64 %6, 5
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], [5 x i32]* @key_lookup.keys, i64 0, i64 %11
%13 = load i32, i32* %12
%14 = icmp ne i32 %9, %13
br label %15
15: ; preds = %8, %4
%16 = phi i1 [ false, %4 ], [ %14, %8 ]
br i1 %16, label %17, label %21
17: ; preds = %15
br label %18
18: ; preds = %17
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
br label %4
21: ; preds = %15
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x i8], [6 x i8]* @key_lookup.keycodes, i64 0, i64 %23
%25 = load i8, i8* %24
ret i8 %25
}

LLVM IR (-O2):
@key_lookup.keycodes = internal unnamed_addr constant [6 x i8] c"MUDLRX"
define signext i8 @key_lookup() {
%1 = tail call i32 (...) @getkey()
%2 = icmp ult i32 %1, 5
%3 = select i1 %2, i32 %1, i32 5
%4 = zext i32 %3 to i64
%5 = getelementptr inbounds [6 x i8], [6 x i8]* @key_lookup.keycodes, i64 0, i64 %4
%6 = load i8, i8* %5
ret i8 %6
}
int LZ4_versionNumber(void) { return (1 * 100 * 100 + 3 * 100 + 0); }


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

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

LLVM IR (-O0):
define i32 @LZ4_versionNumber() {
ret i32 10300
}

LLVM IR (-O2):
define i32 @LZ4_versionNumber() {
ret i32 10300
}
/* Variables and functions */
int /*<<< orphan*/ UCHAR_MAX;
unsigned int __sw_hweight8(unsigned int);
int /*<<< orphan*/ gen___sw_hweight8(unsigned int, unsigned int);
int /*<<< orphan*/ limit2_u32(unsigned int *, int /*<<< orphan*/,
                              int /*<<< orphan*/);
unsigned int mksym_u32();
int test_2() {
  unsigned int w;
  unsigned int res;
  w = mksym_u32();
  limit2_u32(&w, 0, UCHAR_MAX);
  res = 0;
  res = __sw_hweight8(w);
  gen___sw_hweight8(w, res);
  return 0;
}


x86 assembly (clang, -O0):
<test_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <mksym_u32@plt>
mov    %eax,-0x4(%rbp)
mov    0x2e97(%rip),%rax
mov    (%rax),%edx
lea    -0x4(%rbp),%rdi
xor    %esi,%esi
call   1030 <limit2_u32@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <__sw_hweight8@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <gen___sw_hweight8@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_2>:
push   %rax
xor    %eax,%eax
call   1050 <mksym_u32@plt>
mov    %eax,0x4(%rsp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rdi
xor    %esi,%esi
call   1030 <limit2_u32@plt>
mov    0x4(%rsp),%edi
call   1040 <__sw_hweight8@plt>
mov    0x4(%rsp),%edi
mov    %eax,%esi
call   1060 <gen___sw_hweight8@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@UCHAR_MAX = global i32 0
define i32 @test_2() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @mksym_u32()
store i32 %3, i32* %1
%4 = load i32, i32* @UCHAR_MAX
%5 = call i32 @limit2_u32(i32* %1, i32 0, i32 %4)
store i32 0, i32* %2
%6 = load i32, i32* %1
%7 = call i32 @__sw_hweight8(i32 %6)
store i32 %7, i32* %2
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = call i32 @gen___sw_hweight8(i32 %8, i32 %9)
ret i32 0
}

LLVM IR (-O2):
@UCHAR_MAX = global i32 0
define i32 @test_2() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (...) @mksym_u32()
store i32 %3, i32* %1
%4 = load i32, i32* @UCHAR_MAX
%5 = call i32 @limit2_u32(i32* %1, i32 0, i32 %4)
%6 = load i32, i32* %1
%7 = call i32 @__sw_hweight8(i32 %6)
%8 = load i32, i32* %1
%9 = call i32 @gen___sw_hweight8(i32 %8, i32 %7)
ret i32 0
}
/* Variables and functions */
void *mem_alloc(int, size_t, char *);
void *mem_alloc_pgalign(size_t size, char *str) {
  return mem_alloc((4096), size, str);
}


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

x86 assembly (clang, -O2):
<mem_alloc_pgalign>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x1000,%edi
jmp    1030 <mem_alloc@plt>

LLVM IR (-O0):
define i8* @mem_alloc_pgalign(i64 %0, i8* %1) {
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
store i8* %1, i8** %4
%5 = load i64, i64* %3
%6 = load i8*, i8** %4
%7 = call i8* @mem_alloc(i32 4096, i64 %5, i8* %6)
ret i8* %7
}

LLVM IR (-O2):
define i8* @mem_alloc_pgalign(i64 %0, i8* %1) {
%3 = tail call i8* @mem_alloc(i32 4096, i64 %0, i8* %1)
ret i8* %3
}
/* Variables and functions */
char *erealloc(int /*<<< orphan*/ *, size_t);
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
char *estrdup(const char *str, size_t len) {
  char *s;
  s = erealloc(NULL, len + 1);
  if (len > 0)
    memcpy(s, str, len);
  s[len] = '\0';
  return s;
}


x86 assembly (clang, -O0):
<estrdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
add    $0x1,%rsi
xor    %eax,%eax
mov    %eax,%edi
call   1030 <erealloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jbe    1161 <estrdup+0x41>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<estrdup>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
add    $0x1,%rsi
xor    %edi,%edi
call   1030 <erealloc@plt>
mov    %rax,%r15
test   %rbx,%rbx
je     114c <estrdup+0x2c>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <memcpy@plt>
movb   $0x0,(%r15,%rbx,1)
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @estrdup(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = add i64 %6, 1
%8 = call i8* @erealloc(i32* null, i64 %7)
store i8* %8, i8** %5
%9 = load i64, i64* %4
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i8*, i8** %5
%13 = load i8*, i8** %3
%14 = load i64, i64* %4
%15 = call i32 @memcpy(i8* %12, i8* %13, i64 %14)
br label %16
16: ; preds = %11, %2
%17 = load i8*, i8** %5
%18 = load i64, i64* %4
%19 = getelementptr inbounds i8, i8* %17, i64 %18
store i8 0, i8* %19
%20 = load i8*, i8** %5
ret i8* %20
}

LLVM IR (-O2):
define i8* @estrdup(i8* %0, i64 %1) {
%3 = add i64 %1, 1
%4 = tail call i8* @erealloc(i32* null, i64 %3)
%5 = icmp eq i64 %1, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @memcpy(i8* %4, i8* %0, i64 %1)
br label %8
8: ; preds = %6, %2
%9 = getelementptr inbounds i8, i8* %4, i64 %1
store i8 0, i8* %9
ret i8* %4
}
long cdflib_fifmod(long a, long b) { return (a % b); }


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

x86 assembly (clang, -O2):
<cdflib_fifmod>:
mov    %rdi,%rax
mov    %rdi,%rcx
or     %rsi,%rcx
shr    $0x20,%rcx
je     1118 <cdflib_fifmod+0x18>
cqto
idiv   %rsi
mov    %rdx,%rax
ret
xor    %edx,%edx
div    %esi
mov    %edx,%eax
ret

LLVM IR (-O0):
define i64 @cdflib_fifmod(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 = srem i64 %5, %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @cdflib_fifmod(i64 %0, i64 %1) {
%3 = srem i64 %0, %1
ret i64 %3
}
int generateTID(void) {
  static int globalTID = 0;
  return ++globalTID;
}


x86 assembly (clang, -O0):
<generateTID>:
push   %rbp
mov    %rsp,%rbp
mov    0x2f1a(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2f11(%rip)
pop    %rbp
ret

x86 assembly (clang, -O2):
<generateTID>:
mov    0x2f1e(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2f15(%rip)
ret

LLVM IR (-O0):
@generateTID.globalTID = internal global i32 0
define i32 @generateTID() {
%1 = load i32, i32* @generateTID.globalTID
%2 = add nsw i32 %1, 1
store i32 %2, i32* @generateTID.globalTID
ret i32 %2
}

LLVM IR (-O2):
@generateTID.globalTID = internal unnamed_addr global i32 0
define i32 @generateTID() {
%1 = load i32, i32* @generateTID.globalTID
%2 = add nsw i32 %1, 1
store i32 %2, i32* @generateTID.globalTID
ret i32 %2
}
char *strcpy(char *dst, const char *src) {
  int i = 0;
  do {
    dst[i] = src[i];
    i++;
  } while (src[i]);
  return dst;
}


x86 assembly (clang, -O0):
<strcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
jne    1113 <strcpy+0x13>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcpy>:
mov    %rdi,%rax
mov    (%rsi),%cl
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
mov    %cl,(%rax,%rdx,1)
movzbl 0x1(%rsi,%rdx,1),%ecx
add    $0x1,%rdx
test   %cl,%cl
jne    1110 <strcpy+0x10>
ret

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

LLVM IR (-O2):
define i8* @strcpy(i8* returned writeonly %0, i8* nocapture %1) {
%3 = load i8, i8* %1
br label %4
4: ; preds = %4, %2
%5 = phi i8 [ %10, %4 ], [ %3, %2 ]
%6 = phi i64 [ %8, %4 ], [ 0, %2 ]
%7 = getelementptr inbounds i8, i8* %0, i64 %6
store i8 %5, i8* %7
%8 = add nuw nsw i64 %6, 1
%9 = getelementptr inbounds i8, i8* %1, i64 %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4
ret i8* %0
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t bswap32(uint32_t x) {
  return ((x & 0xFF) << 24) | ((x & 0xFF00) << 8) | ((x & 0xFF0000) >> 8) |
         ((x & 0xFF000000) >> 24);
}


x86 assembly (clang, -O0):
<bswap32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
shl    $0x18,%eax
mov    -0x4(%rbp),%ecx
and    $0xff00,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
and    $0xff0000,%ecx
sar    $0x8,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
and    $0xff000000,%ecx
shr    $0x18,%ecx
or     %ecx,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @bswap32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 255
%5 = shl i32 %4, 24
%6 = load i32, i32* %2
%7 = and i32 %6, 65280
%8 = shl i32 %7, 8
%9 = or i32 %5, %8
%10 = load i32, i32* %2
%11 = and i32 %10, 16711680
%12 = ashr i32 %11, 8
%13 = or i32 %9, %12
%14 = load i32, i32* %2
%15 = and i32 %14, -16777216
%16 = lshr i32 %15, 24
%17 = or i32 %13, %16
ret i32 %17
}

LLVM IR (-O2):
define i32 @bswap32(i32 %0) {
%2 = tail call i32 @llvm.bswap.i32(i32 %0)
ret i32 %2
}
void xdrbhdrsub() { return; }


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @i2d_X509_ALGORS() {
ret void
}
/* Type definitions */
struct YsGLSL3DRenderer {
  int dummy;
};

/* Variables and functions */
struct YsGLSL3DRenderer *YsGLSLCreateVariColorPerVtxShading3DRenderer();
struct YsGLSL3DRenderer *
YsGLSLCreateVariColorPerVtxShadingWithTexCoord3DRenderer(void) {
  return YsGLSLCreateVariColorPerVtxShading3DRenderer();
}


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

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

LLVM IR (-O0):
%struct.YsGLSL3DRenderer = type { i32 }
define %struct.YsGLSL3DRenderer* @YsGLSLCreateVariColorPerVtxShadingWithTexCoord3DRenderer() {
%1 = call %struct.YsGLSL3DRenderer* (...) @YsGLSLCreateVariColorPerVtxShading3DRenderer()
ret %struct.YsGLSL3DRenderer* %1
}

LLVM IR (-O2):
%struct.YsGLSL3DRenderer = type { i32 }
define %struct.YsGLSL3DRenderer* @YsGLSLCreateVariColorPerVtxShadingWithTexCoord3DRenderer() {
%1 = tail call %struct.YsGLSL3DRenderer* (...) @YsGLSLCreateVariColorPerVtxShading3DRenderer()
ret %struct.YsGLSL3DRenderer* %1
}
void check_logfs_je_dynsb(void) { ; }


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

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

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

LLVM IR (-O2):
define void @check_logfs_je_dynsb() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Keypad_setCode(int, char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ strcpy(char *, char *);
void test_keypad() {
  char code[64] = "";
  strcpy(code, "1234");
  Keypad_setCode(4, code);
  sleep(45);
}


x86 assembly (clang, -O0):
<test_keypad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
lea    -0x40(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x40(%rbp),%rsi
mov    $0x4,%edi
call   1050 <Keypad_setCode@plt>
mov    $0x2d,%edi
call   1060 <sleep@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_keypad>:
push   %rbx
sub    $0x40,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0xeae(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    $0x4,%edi
mov    %rbx,%rsi
call   1040 <Keypad_setCode@plt>
mov    $0x2d,%edi
call   1050 <sleep@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"1234\00"
define void @test_keypad() {
%1 = alloca [64 x i8]
%2 = bitcast [64 x i8]* %1 to i8*
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%4 = call i32 @strcpy(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%6 = call i32 @Keypad_setCode(i32 4, i8* %5)
%7 = call i32 @sleep(i32 45)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"1234\00"
define void @test_keypad() {
%1 = alloca [64 x i8]
%2 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @Keypad_setCode(i32 4, i8* %2)
%5 = call i32 @sleep(i32 45)
ret void
}
int gui_color_get_number() { return 15; }


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

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

LLVM IR (-O0):
define i32 @gui_color_get_number() {
ret i32 15
}

LLVM IR (-O2):
define i32 @gui_color_get_number() {
ret i32 15
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ REG_UART_BASE(scalar_t__);
__attribute__((always_)) __attribute__((flatten)) uint32_t
UART_AUTOBAUD(uint32_t i) {
  return (REG_UART_BASE(i) + 0x18);
}


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

x86 assembly (clang, -O2):
<UART_AUTOBAUD>:
push   %rax
call   1030 <REG_UART_BASE@plt>
add    $0x18,%rax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @UART_AUTOBAUD(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @REG_UART_BASE(i64 %3)
%5 = add nsw i64 %4, 24
ret i64 %5
}

LLVM IR (-O2):
define i64 @UART_AUTOBAUD(i64 %0) {
%2 = tail call i64 @REG_UART_BASE(i64 %0)
%3 = add nsw i64 %2, 24
ret i64 %3
}
/* Variables and functions */
int sr_compare_u32(char *, char *);
__attribute__((hot)) int sr_cmpu32_raw(char *a, int asz __attribute__((unused)),
                                       char *b, int bsz __attribute__((unused)),
                                       void *arg __attribute__((unused))) {
  return sr_compare_u32(a, b);
}


x86 assembly (clang, -O0):
<sr_cmpu32_raw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <sr_compare_u32@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sr_cmpu32_raw>:
mov    %rdx,%rsi
jmp    1030 <sr_compare_u32@plt>
nopl   0x0(%rax,%rax,1)

LLVM IR (-O0):
define i32 @sr_cmpu32_raw(i8* %0, i32 %1, i8* %2, i32 %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = load i8*, i8** %6
%12 = load i8*, i8** %8
%13 = call i32 @sr_compare_u32(i8* %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @sr_cmpu32_raw(i8* %0, i32 %1, i8* %2, i32 %3, i8* nocapture readnone %4) {
%6 = tail call i32 @sr_compare_u32(i8* %0, i8* %2)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ freelist_init();
void benchmarkSetupEach() { freelist_init(); }


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

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

LLVM IR (-O0):
define void @benchmarkSetupEach() {
%1 = call i32 (...) @freelist_init()
ret void
}

LLVM IR (-O2):
define void @benchmarkSetupEach() {
%1 = tail call i32 (...) @freelist_init()
ret void
}
void g_get_real_name() {}


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

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

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

LLVM IR (-O2):
define void @g_get_real_name() {
ret void
}
/* Variables and functions */
int cobs_encode_file(char const *, char const *);
int /*<<< orphan*/ print_usage();
int main(int argc, char const *argv[]) {
  if (argc != 3)
    print_usage();
  else {
    int result = cobs_encode_file(argv[1], argv[2]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     114c <main+0x2c>
mov    $0x0,%al
call   1040 <print_usage@plt>
jmp    1164 <main+0x44>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1030 <cobs_encode_file@plt>
mov    %eax,-0x14(%rbp)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x3,%edi
jne    1135 <main+0x15>
mov    0x8(%rsi),%rdi
mov    0x10(%rsi),%rsi
call   1030 <cobs_encode_file@plt>
jmp    113c <main+0x1c>
xor    %eax,%eax
call   1040 <print_usage@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (...) @print_usage()
br label %12
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8*, i8** %1, i64 2
%10 = load i8*, i8** %9
%11 = tail call i32 @cobs_encode_file(i8* %8, i8* %10)
br label %12
12: ; preds = %6, %4
ret i32 0
}
void foo095(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo095(i32 %0) {
ret void
}
int funcb() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @funcb() {
ret i32 0
}
/* Variables and functions */
int genrand_int32();
long int genrand_int31(void) { return (long)(genrand_int32() >> 1); }


x86 assembly (clang, -O0):
<genrand_int31>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <genrand_int32@plt>
sar    $0x1,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<genrand_int31>:
push   %rax
xor    %eax,%eax
call   1030 <genrand_int32@plt>
sar    %eax
cltq
pop    %rcx
ret

LLVM IR (-O0):
define i64 @genrand_int31() {
%1 = call i32 (...) @genrand_int32()
%2 = ashr i32 %1, 1
%3 = sext i32 %2 to i64
ret i64 %3
}

LLVM IR (-O2):
define i64 @genrand_int31() {
%1 = tail call i32 (...) @genrand_int32()
%2 = ashr i32 %1, 1
%3 = sext i32 %2 to i64
ret i64 %3
}
/* Variables and functions */
char *malloc(size_t);
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
int strlen(char const *);
char *strdup(const char *str) {
  char *dup;
  size_t length = strlen(str) + 1;
  if ((dup = malloc(length)) == NULL) {
    memcpy(dup, str, length);
  }
  return dup;
}


x86 assembly (clang, -O0):
<strdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1176 <strdup+0x46>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strdup>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <strlen@plt>
add    $0x1,%eax
movslq %eax,%r15
mov    %r15,%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1160 <strdup+0x30>
xor    %edi,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1040 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @strdup(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = add nsw i32 %6, 1
%8 = sext i32 %7 to i64
store i64 %8, i64* %4
%9 = load i64, i64* %4
%10 = call i8* @malloc(i64 %9)
store i8* %10, i8** %3
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %17
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = load i8*, i8** %2
%15 = load i64, i64* %4
%16 = call i32 @memcpy(i8* %13, i8* %14, i64 %15)
br label %17
17: ; preds = %12, %1
%18 = load i8*, i8** %3
ret i8* %18
}

LLVM IR (-O2):
define noalias i8* @strdup(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = sext i32 %3 to i64
%5 = tail call i8* @malloc(i64 %4)
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call i32 @memcpy(i8* null, i8* %0, i64 %4)
br label %9
9: ; preds = %7, %1
ret i8* %5
}