xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ cubeByReference(int *);
int /*<<< orphan*/ printf(char *, int);
void fig07_07() {
  int number = 5;
  printf("The original value of number is %d", number);
  cubeByReference(&number);
  printf("\nThe new value of number is %d\n", number);
}


x86 assembly (clang, -O0):
<fig07_07>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x5,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
lea    -0x4(%rbp),%rdi
call   1030 <cubeByReference@plt>
mov    -0x4(%rbp),%esi
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fig07_07>:
push   %rax
movl   $0x5,0x4(%rsp)
lea    0xed0(%rip),%rdi
mov    $0x5,%esi
call   1040 <printf@plt>
lea    0x4(%rsp),%rdi
call   1030 <cubeByReference@plt>
mov    0x4(%rsp),%esi
lea    0xed4(%rip),%rdi
call   1040 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [35 x i8] c"The original value of number is %d\00"
@.str.1 = [32 x i8] c"\0AThe new value of number is %d\0A\00"
define void @fig07_07() {
%1 = alloca i32
store i32 5, i32* %1
%2 = load i32, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @cubeByReference(i32* %1)
%5 = load i32, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"The original value of number is %d\00"
@.str.1 = [32 x i8] c"\0AThe new value of number is %d\0A\00"
define void @fig07_07() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 5, i32* %1
%3 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 5)
%4 = call i32 @cubeByReference(i32* %1)
%5 = load i32, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}
/* Variables and functions */
int inb(int);
int serial_getc(void) {
  int status;
  int ch;
  do {
    status = inb((0x3f8) + 0x05);
  } while ((status & 1) == 0);
  ch = inb((0x3f8) + 0x00);
  ch &= 0x7f;
  if (ch == 0x7f) {
    ch = 0x08;
  }
  return ch;
}


x86 assembly (clang, -O0):
<serial_getc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3fd,%edi
call   1030 <inb@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1118 <serial_getc+0x8>
mov    $0x3f8,%edi
call   1030 <inb@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x7f,-0x8(%rbp)
jne    115b <serial_getc+0x4b>
movl   $0x8,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_getc>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x3fd,%edi
call   1030 <inb@plt>
test   $0x1,%al
je     1120 <serial_getc+0x10>
mov    $0x3f8,%edi
call   1030 <inb@plt>
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x8,%ecx
cmove  %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @serial_getc() {
%1 = alloca i32
%2 = alloca i32
br label %3
3: ; preds = %5, %0
%4 = call i32 @inb(i32 1021)
store i32 %4, i32* %1
br label %5
5: ; preds = %3
%6 = load i32, i32* %1
%7 = and i32 %6, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %3, label %9
9: ; preds = %5
%10 = call i32 @inb(i32 1016)
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = and i32 %11, 127
store i32 %12, i32* %2
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 127
br i1 %14, label %15, label %16
15: ; preds = %9
store i32 8, i32* %2
br label %16
16: ; preds = %15, %9
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
define i32 @serial_getc() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 @inb(i32 1021)
%3 = and i32 %2, 1
%4 = icmp eq i32 %3, 0
br i1 %4, label %1, label %5
5: ; preds = %1
%6 = tail call i32 @inb(i32 1016)
%7 = and i32 %6, 127
%8 = icmp eq i32 %7, 127
%9 = select i1 %8, i32 8, i32 %7
ret i32 %9
}
/* Variables and functions */
unsigned char *whirlpool_buffer(unsigned char *, unsigned char const *, size_t);
unsigned char *hash_buffer_whirlpool(unsigned char *out,
                                     const unsigned char *in, size_t in_len) {
  return whirlpool_buffer(out, in, in_len);
}


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

x86 assembly (clang, -O2):
<hash_buffer_whirlpool>:
jmp    1030 <whirlpool_buffer@plt>

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

LLVM IR (-O2):
define i8* @hash_buffer_whirlpool(i8* %0, i8* %1, i64 %2) {
%4 = tail call i8* @whirlpool_buffer(i8* %0, i8* %1, i64 %2)
ret i8* %4
}
/* Variables and functions */
char *skip(char const *);
const char *pskip(const char *in) {
  const char *p = skip(in);
  return (*p == '<') ? p : in;
}


x86 assembly (clang, -O0):
<pskip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <skip@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3c,%eax
jne    1146 <pskip+0x36>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    114e <pskip+0x3e>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pskip>:
push   %rbx
mov    %rdi,%rbx
call   1030 <skip@plt>
cmpb   $0x3c,(%rax)
cmovne %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @pskip(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @skip(i8* %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 60
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i8*, i8** %3
br label %14
12: ; preds = %1
%13 = load i8*, i8** %2
br label %14
14: ; preds = %12, %10
%15 = phi i8* [ %11, %10 ], [ %13, %12 ]
ret i8* %15
}

LLVM IR (-O2):
define i8* @pskip(i8* %0) {
%2 = tail call i8* @skip(i8* %0)
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 60
%5 = select i1 %4, i8* %2, i8* %0
ret i8* %5
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *, int /*<<< orphan*/);
int write_standard_target_system(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(12, a, b, c, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<write_standard_target_system>:
mov    $0xc,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc@plt>

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

LLVM IR (-O2):
define i32 @write_standard_target_system() {
%1 = tail call i32 @_ada_use_c2phc(i32 12, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int putc(int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int outc(int c) { return putc(c, stderr); }


x86 assembly (clang, -O0):
<outc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
call   1030 <putc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outc>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
jmp    1030 <putc@plt>

LLVM IR (-O0):
@stderr = global i32 0
define i32 @outc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @stderr
%5 = call i32 @putc(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@stderr = global i32 0
define i32 @outc(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @putc(i32 %0, i32 %2)
ret i32 %3
}
void *func1(void) {
  return "aaaaa"
         L"bbbbb";
}


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

x86 assembly (clang, -O2):
<func1>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [11 x i32] [i32 97, i32 97, i32 97, i32 97, i32 97, i32 98, i32 98, i32 98, i32 98, i32 98, i32 0]
define i8* @func1() {
ret i8* bitcast ([11 x i32]* @.str to i8*)
}

LLVM IR (-O2):
@.str = [11 x i32] [i32 97, i32 97, i32 97, i32 97, i32 97, i32 98, i32 98, i32 98, i32 98, i32 98, i32 0]
define i8* @func1() {
ret i8* bitcast ([11 x i32]* @.str to i8*)
}
double foof(double a) { return __builtin_pow(a, 0.75f); }


x86 assembly (clang, -O0):
<foof>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
call   1030 <pow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foof>:
movsd  0xee8(%rip),%xmm1
jmp    1030 <pow@plt>

LLVM IR (-O0):
define double @foof(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @pow(double %3, double 7.500000e-01)
ret double %4
}

LLVM IR (-O2):
define double @foof(double %0) {
%2 = tail call double @pow(double %0, double 7.500000e-01)
ret double %2
}
/* Variables and functions */
char *malloc(unsigned long);
int /*<<< orphan*/ mgetchar();
char *mgetbytes(unsigned long len) {
  char *ret = malloc(len);
  char *p = ret;
  while (len--)
    *p++ = mgetchar();
  return ret;
}


x86 assembly (clang, -O0):
<mgetbytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x8(%rbp)
cmp    $0x0,%rax
je     1179 <mgetbytes+0x59>
mov    $0x0,%al
call   1030 <mgetchar@plt>
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
jmp    1141 <mgetbytes+0x21>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mgetbytes>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%r15
test   %r14,%r14
je     1154 <mgetbytes+0x34>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <mgetchar@plt>
mov    %al,(%r15,%rbx,1)
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1140 <mgetbytes+0x20>
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define noalias i8* @mgetbytes(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i64 %0, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %10, %4 ], [ %2, %1 ]
%6 = phi i64 [ %7, %4 ], [ %0, %1 ]
%7 = add i64 %6, -1
%8 = tail call i32 (...) @mgetchar()
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, i8* %5, i64 1
store i8 %9, i8* %5
%11 = icmp eq i64 %7, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ test_buffer();
int main(int argc, char *argv[]) {
  test_buffer();
  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)
mov    $0x0,%al
call   1030 <test_buffer@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <test_buffer@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**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @test_buffer()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_buffer()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ strncmp(char const *, char *, int);
int is_url(const char *str) {
  return !strncmp(str, "http://", sizeof("http://") - 1) ||
         !strncmp(str, "ftp://", sizeof("ftp://") - 1);
}


x86 assembly (clang, -O0):
<is_url>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     1161 <is_url+0x51>
mov    -0x8(%rbp),%rdi
lea    0xebc(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_url>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1148 <is_url+0x38>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"http://\00"
@.str.1 = [7 x i8] c"ftp://\00"
define i32 @is_url(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strncmp(i8* %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7)
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 @strncmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br label %11
11: ; preds = %6, %1
%12 = phi i1 [ true, %1 ], [ %10, %6 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
@.str = [8 x i8] c"http://\00"
@.str.1 = [7 x i8] c"ftp://\00"
define i32 @is_url(i8* %0) {
%2 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7)
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ assertTrue(char *, int);
double ***init(int, int);
void test_init() {
  double ***w = init(5, 4);
  assertTrue("w != NULL", w != NULL);
  ;
  assertTrue("w[0][2] == 0", w[0][2] == 0);
  ;
}


x86 assembly (clang, -O0):
<test_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x5,%edi
mov    $0x4,%esi
call   1040 <init@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeb1(%rip),%rdi
call   1030 <assertTrue@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
cmpq   $0x0,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe9b(%rip),%rdi
call   1030 <assertTrue@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_init>:
push   %rbx
mov    $0x5,%edi
mov    $0x4,%esi
call   1040 <init@plt>
mov    %rax,%rbx
xor    %esi,%esi
test   %rax,%rax
setne  %sil
lea    0xebd(%rip),%rdi
call   1030 <assertTrue@plt>
mov    (%rbx),%rax
xor    %esi,%esi
cmpq   $0x0,0x10(%rax)
sete   %sil
lea    0xead(%rip),%rdi
pop    %rbx
jmp    1030 <assertTrue@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"w != NULL\00"
@.str.1 = [13 x i8] c"w[0][2] == 0\00"
define void @test_init() {
%1 = alloca double***
%2 = call double*** @init(i32 5, i32 4)
store double*** %2, double**** %1
%3 = load double***, double**** %1
%4 = icmp ne double*** %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assertTrue(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load double***, double**** %1
%8 = getelementptr inbounds double**, double*** %7, i64 0
%9 = load double**, double*** %8
%10 = getelementptr inbounds double*, double** %9, i64 2
%11 = load double*, double** %10
%12 = icmp eq double* %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @assertTrue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %13)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"w != NULL\00"
@.str.1 = [13 x i8] c"w[0][2] == 0\00"
define void @test_init() {
%1 = tail call double*** @init(i32 5, i32 4)
%2 = icmp ne double*** %1, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assertTrue(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load double**, double*** %1
%6 = getelementptr inbounds double*, double** %5, i64 2
%7 = load double*, double** %6
%8 = icmp eq double* %7, null
%9 = zext i1 %8 to i32
%10 = tail call i32 @assertTrue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %9)
ret void
}
void cycles_end(unsigned *hi, unsigned *lo) {
  asm volatile("RDTSCP\n\t"
               "mov %%edx, %0\n\t"
               "mov %%eax, %1\n\t"
               "CPUID\n\t"
               : "=r"(*hi), "=r"(*lo)::"%rax", "%rbx", "%rcx", "%rdx");
}


x86 assembly (clang, -O0):
<cycles_end>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
rdtscp
mov    %edx,%esi
mov    %eax,%edi
cpuid
mov    %edi,-0x24(%rbp)
mov    -0x30(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %esi,(%rdx)
mov    %ecx,(%rax)
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<cycles_end>:
push   %rbx
rdtscp
mov    %edx,%r8d
mov    %eax,%r9d
cpuid
mov    %r8d,(%rdi)
mov    %r9d,(%rsi)
pop    %rbx
ret

LLVM IR (-O0):
define void @cycles_end(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %3
%6 = load i32*, i32** %4
%7 = call { i32, i32 } asm sideeffect "RDTSCP\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09CPUID\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"()
%8 = extractvalue { i32, i32 } %7, 0
%9 = extractvalue { i32, i32 } %7, 1
store i32 %8, i32* %5
store i32 %9, i32* %6
ret void
}

LLVM IR (-O2):
define void @cycles_end(i32* nocapture writeonly %0, i32* nocapture writeonly %1) {
%3 = tail call { i32, i32 } asm sideeffect "RDTSCP\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09CPUID\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"()
%4 = extractvalue { i32, i32 } %3, 0
%5 = extractvalue { i32, i32 } %3, 1
store i32 %4, i32* %0
store i32 %5, i32* %1
ret void
}
void i810_delete_i2c_busses(struct i810fb_par *par) {}


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

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

LLVM IR (-O0):
%struct.i810fb_par = type opaque
define void @i810_delete_i2c_busses(%struct.i810fb_par* %0) {
%2 = alloca %struct.i810fb_par*
store %struct.i810fb_par* %0, %struct.i810fb_par** %2
ret void
}

LLVM IR (-O2):
%struct.i810fb_par = type opaque
define void @i810_delete_i2c_busses(%struct.i810fb_par* nocapture %0) {
ret void
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
int msgu_uint32_cmp(const void *a, const void *b) {
  const uint32_t *ia = a;
  const uint32_t *ib = b;
  return (*ia < *ib) ? -1 : (*ia > *ib);
}


x86 assembly (clang, -O0):
<msgu_uint32_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%rax
jge    113d <msgu_uint32_cmp+0x3d>
mov    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1156 <msgu_uint32_cmp+0x56>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%rax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<msgu_uint32_cmp>:
mov    (%rdi),%rax
xor    %ecx,%ecx
cmp    (%rsi),%rax
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @msgu_uint32_cmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = bitcast i8* %1 to i64*
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp slt i64 %5, %6
%8 = icmp sgt i64 %5, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
int test_imm_11int64_midword_reg(long long val) {
  return ((val >> 16) & (0x11 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_11int64_midword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
sar    $0x10,%rdx
and    $0x11,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_11int64_midword_reg>:
test   $0x110000,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_11int64_midword_reg(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = ashr i64 %3, 16
%5 = and i64 %4, 17
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_11int64_midword_reg(i64 %0) {
%2 = and i64 %0, 1114112
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
scalar_t__ config_get_loption(char const *, long);
int config_get_ioption(const char *key, int err_return) {
  return (int)config_get_loption(key, (long)err_return);
}


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

x86 assembly (clang, -O2):
<config_get_ioption>:
movslq %esi,%rsi
jmp    1030 <config_get_loption@plt>

LLVM IR (-O0):
define i32 @config_get_ioption(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = call i64 @config_get_loption(i8* %5, i64 %7)
%9 = trunc i64 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @config_get_ioption(i8* %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = tail call i64 @config_get_loption(i8* %0, i64 %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int gethostname(char *, size_t);
int /*<<< orphan*/ reduceLen64(char *, int /*<<< orphan*/ *);
int sbpGethostname64(char *name, uint64_t *namelen) {
  size_t i, len = (size_t)(*namelen);
  int res = gethostname(name, len);
  reduceLen64(name, namelen);
  return res;
}


x86 assembly (clang, -O0):
<sbpGethostname64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <gethostname@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <reduceLen64@plt>
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sbpGethostname64>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
movslq (%rsi),%rsi
call   1040 <gethostname@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <reduceLen64@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @sbpGethostname64(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i32
store i8* %0, i8** %3
store i32* %1, i32** %4
%8 = load i32*, i32** %4
%9 = load i32, i32* %8
%10 = sext i32 %9 to i64
store i64 %10, i64* %6
%11 = load i8*, i8** %3
%12 = load i64, i64* %6
%13 = call i32 @gethostname(i8* %11, i64 %12)
store i32 %13, i32* %7
%14 = load i8*, i8** %3
%15 = load i32*, i32** %4
%16 = call i32 @reduceLen64(i8* %14, i32* %15)
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @sbpGethostname64(i8* %0, i32* %1) {
%3 = load i32, i32* %1
%4 = sext i32 %3 to i64
%5 = tail call i32 @gethostname(i8* %0, i64 %4)
%6 = tail call i32 @reduceLen64(i8* %0, i32* %1)
ret i32 %5
}
double SKPascalToBar(double x) { return x / 1e5; }


x86 assembly (clang, -O0):
<SKPascalToBar>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeea(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<SKPascalToBar>:
divsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @SKPascalToBar(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fdiv double %3, 1.000000e+05
ret double %4
}

LLVM IR (-O2):
define double @SKPascalToBar(double %0) {
%2 = fdiv double %0, 1.000000e+05
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ global_die(int);
int /*<<< orphan*/ log_9_(int /*<<< orphan*/, int, char *, int, char const *,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/);
void die_usage(const char *x) {
  log_9_(0, 1,
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/"
         "tinyssh/die.c",
         7, x, 0, 0, 0, 0, 0, 0, 0, 0);
  global_die(100);
}


x86 assembly (clang, -O0):
<die_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%r8
xor    %r9d,%r9d
mov    $0x1,%esi
lea    0xec1(%rip),%rdx
mov    $0x7,%ecx
mov    %r9d,%edi
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x30(%rsp)
call   1030 <log_9_@plt>
mov    $0x64,%edi
call   1040 <global_die@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<die_usage>:
push   %rax
mov    %rdi,%r8
sub    $0x8,%rsp
lea    0xed1(%rip),%rdx
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x7,%ecx
xor    %r9d,%r9d
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1030 <log_9_@plt>
add    $0x40,%rsp
mov    $0x64,%edi
pop    %rax
jmp    1040 <global_die@plt>

LLVM IR (-O0):
@.str = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh/die.c\00"
define void @die_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @log_9_(i32 0, i32 1, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 7, i8* %3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%5 = call i32 @global_die(i32 100)
ret void
}

LLVM IR (-O2):
@.str = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh/die.c\00"
define void @die_usage(i8* %0) {
%2 = tail call i32 @log_9_(i32 0, i32 1, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 7, i8* %0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%3 = tail call i32 @global_die(i32 100)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ system(char *);
int x14_setup() {
  char cmd[256];
  sprintf(cmd,
          "iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags "
          "SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d",
          1);
  system(cmd);
  return 0;
}


x86 assembly (clang, -O0):
<x14_setup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
lea    -0x100(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x14_setup>:
push   %rbx
sub    $0x100,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x14_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = call i32 @system(i8* %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x14_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = call i32 @system(i8* %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0xe7() {
  Assert_real((isalnum(231) == 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_isalnum.c",
              1160, ("isalnum should be 0 for 0xe7"));
}


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

x86 assembly (clang, -O2):
<t_isalnum_0xe7>:
push   %rax
mov    $0xe7,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x488,%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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xe7\00"
define void @t_isalnum_0xe7() {
%1 = call i64 @isalnum(i32 231)
%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 1160, 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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xe7\00"
define void @t_isalnum_0xe7() {
%1 = tail call i64 @isalnum(i32 231)
%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 1160, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void ScaleRowDown38_2_Box_Any_SSSE3() {}


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

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

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

LLVM IR (-O2):
define void @ScaleRowDown38_2_Box_Any_SSSE3() {
ret void
}
/* Variables and functions */
int isatty(int);
int main(void) { return isatty(1); }


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

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%edi
jmp    1030 <isatty@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @isatty(i32 1)
ret i32 %1
}
/* Type definitions */
typedef char *__m128i;

/* Variables and functions */
char *_mm_madd_epi16(char *, char *);
__m128i __attribute__((no, unused)) test(__m128i s1, __m128i s2) {
  __asm("" : "+v"(s1), "+v"(s2));
  return _mm_madd_epi16(s1, s2);
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%rax
movq   %rcx,%xmm0
movq   %rax,%xmm1
movq   %xmm1,%rax
movq   %xmm0,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <_mm_madd_epi16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
movq   %rdi,%xmm0
movq   %rsi,%xmm1
movq   %xmm0,%rdi
movq   %xmm1,%rsi
jmp    1030 <_mm_madd_epi16@plt>

LLVM IR (-O0):
define i8* @test(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call { i8*, i8* } asm "", "=v,=v,0,1,~{dirflag},~{fpsr},~{flags}"(i8* %5, i8* %6)
%8 = extractvalue { i8*, i8* } %7, 0
%9 = extractvalue { i8*, i8* } %7, 1
store i8* %8, i8** %3
store i8* %9, i8** %4
%10 = load i8*, i8** %3
%11 = load i8*, i8** %4
%12 = call i8* @_mm_madd_epi16(i8* %10, i8* %11)
ret i8* %12
}

LLVM IR (-O2):
define i8* @test(i8* %0, i8* %1) {
%3 = tail call { i8*, i8* } asm "", "=v,=v,0,1,~{dirflag},~{fpsr},~{flags}"(i8* %0, i8* %1)
%4 = extractvalue { i8*, i8* } %3, 0
%5 = extractvalue { i8*, i8* } %3, 1
%6 = tail call i8* @_mm_madd_epi16(i8* %4, i8* %5)
ret i8* %6
}
int f1(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @f1() {
ret i32 1
}
/* Variables and functions */
int asm_issyslinux();
int issyslinux(void) { return asm_issyslinux(); }


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

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

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

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


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

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

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

LLVM IR (-O2):
define i32 @paperinit() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i = 0;
  int a = 0;
  int b = 0;
  int c = 0;
  printf("%d", i);
  int d = 0;
  int e = 0;
  int f;
  int g;
  int h;
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sgen(char *, char *, char *);
void cgldga(char *s) { sgen("%s\tax,offset %s", "mov", s); }


x86 assembly (clang, -O0):
<cgldga>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
lea    0xed9(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1030 <sgen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cgldga>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeef(%rip),%rsi
jmp    1030 <sgen@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"%s\09ax,offset %s\00"
@.str.1 = [4 x i8] c"mov\00"
define void @cgldga(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @sgen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"%s\09ax,offset %s\00"
@.str.1 = [4 x i8] c"mov\00"
define void @cgldga(i8* %0) {
%2 = tail call i32 @sgen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void Free(void *p) { free(p); }


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

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

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

LLVM IR (-O2):
define void @Free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ __cmpdf2(long, long);
int __ledf2(long long a1, long long a2) {
  return __cmpdf2((long)a1, (long)a2) > 0;
}


x86 assembly (clang, -O0):
<__ledf2>:
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 <__cmpdf2@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ledf2>:
push   %rax
call   1030 <__cmpdf2@plt>
xor    %ecx,%ecx
test   %rax,%rax
setg   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @__ledf2(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 = call i64 @__cmpdf2(i64 %5, i64 %6)
%8 = icmp sgt i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @__ledf2(i64 %0, i64 %1) {
%3 = tail call i64 @__cmpdf2(i64 %0, i64 %1)
%4 = icmp sgt i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
void gtk_combo_box_entry_get_text_column() {}


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

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

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

LLVM IR (-O2):
define void @gtk_combo_box_entry_get_text_column() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ m4f_fill_rotx_m4fo(float, float *);
int /*<<< orphan*/ m4f_mul_m4fo(float *, float const *, float *);
void rotatex_v4fo(float rx, const float *v, float *result) {
  float rm[16];
  m4f_fill_rotx_m4fo(rx, rm);
  m4f_mul_m4fo(rm, v, result);
}


x86 assembly (clang, -O0):
<rotatex_v4fo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
lea    -0x60(%rbp),%rdi
call   1030 <m4f_fill_rotx_m4fo@plt>
lea    -0x60(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <m4f_mul_m4fo@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotatex_v4fo>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsp,%r15
mov    %r15,%rdi
call   1030 <m4f_fill_rotx_m4fo@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1040 <m4f_mul_m4fo@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @rotatex_v4fo(float %0, float* %1, float* %2) {
%4 = alloca [16 x float]
%5 = bitcast [16 x float]* %4 to i8*
%6 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 0
%7 = call i32 @m4f_fill_rotx_m4fo(float %0, float* %6)
%8 = call i32 @m4f_mul_m4fo(float* %6, float* %1, float* %2)
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ xalloc_die();
void *xmalloc(size_t size) {
  void *m;
  m = malloc(size);
  if (m == NULL)
    xalloc_die();
  return m;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114b <xmalloc+0x2b>
mov    $0x0,%al
call   1030 <xalloc_die@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1135 <xmalloc+0x15>
xor    %eax,%eax
call   1030 <xalloc_die@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @xmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @xalloc_die()
br label %10
10: ; preds = %8, %1
%11 = load i8*, i8** %3
ret i8* %11
}

LLVM IR (-O2):
define noalias i8* @xmalloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @xalloc_die()
br label %6
6: ; preds = %4, %1
ret i8* %2
}
void glDrawElementsIndirect(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glDrawElementsIndirect() {
ret void
}
/* Variables and functions */
long long bclr_ll(long long *, long long *);
long long intr_wrap_520(long long p1, long long p2) {
  return bclr_ll(&p1, &p2);
}


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

x86 assembly (clang, -O2):
<intr_wrap_520>:
sub    $0x18,%rsp
mov    %rdi,0x10(%rsp)
mov    %rsi,0x8(%rsp)
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <bclr_ll@plt>
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define i64 @intr_wrap_520(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = call i64 @bclr_ll(i64* %3, i64* %4)
ret i64 %5
}
void INT_Excep_ELC_ELSR18I(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_ELC_ELSR18I() {
ret void
}
void use_buffer(char *buf) {
  while (*buf)
    buf++;
}


x86 assembly (clang, -O0):
<use_buffer>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1126 <use_buffer+0x26>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <use_buffer+0x8>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @use_buffer(i8* nocapture %0) {
ret void
}
/* Variables and functions */
void *malloc(unsigned int);
int /*<<< orphan*/ memThrow(int);
void *Sys_MemAllocate(unsigned bytes) {
  void *ret = malloc(bytes);
  memThrow(0 == ret);
  return ret;
}


x86 assembly (clang, -O0):
<Sys_MemAllocate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <memThrow@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sys_MemAllocate>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1030 <memThrow@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @Sys_MemAllocate(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i8* @malloc(i32 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* null, %6
%8 = zext i1 %7 to i32
%9 = call i32 @memThrow(i32 %8)
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
define noalias i8* @Sys_MemAllocate(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
%3 = icmp eq i8* %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @memThrow(i32 %4)
ret i8* %2
}