xunge/DecIR huggingface dataset:
int __attribute__((nomips16)) f6(unsigned long long y) {
  return (char)((char)(y >> 33) + 1);
}


x86 assembly (clang, -O0):
<f6>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x21,%rax
movsbl %al,%eax
add    $0x1,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f6>:
shr    $0x9,%rdi
lea    0x1000000(%rdi),%eax
sar    $0x18,%eax
ret

LLVM IR (-O0):
define i32 @f6(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = lshr i64 %3, 33
%5 = trunc i64 %4 to i8
%6 = sext i8 %5 to i32
%7 = add nsw i32 %6, 1
%8 = trunc i32 %7 to i8
%9 = sext i8 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @f6(i64 %0) {
%2 = lshr i64 %0, 9
%3 = trunc i64 %2 to i32
%4 = add i32 %3, 16777216
%5 = ashr i32 %4, 24
ret i32 %5
}
float outQuad(float t, float b, float c, float d) {
  t = t / d;
  return -c * t * (t - 2) + b;
}


x86 assembly (clang, -O0):
<outQuad>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  -0x4(%rbp),%xmm0
movss  -0x4(%rbp),%xmm2
movss  0xeb5(%rip),%xmm1
subss  %xmm1,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<outQuad>:
divss  %xmm3,%xmm0
mulss  %xmm0,%xmm2
addss  0xef0(%rip),%xmm0
mulss  %xmm2,%xmm0
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @outQuad(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %5
%10 = load float, float* %8
%11 = fdiv float %9, %10
store float %11, float* %5
%12 = load float, float* %7
%13 = fneg float %12
%14 = load float, float* %5
%15 = fmul float %13, %14
%16 = load float, float* %5
%17 = fsub float %16, 2.000000e+00
%18 = load float, float* %6
%19 = call float @llvm.fmuladd.f32(float %15, float %17, float %18)
ret float %19
}

LLVM IR (-O2):
define float @outQuad(float %0, float %1, float %2, float %3) {
%5 = fdiv float %0, %3
%6 = fneg float %2
%7 = fmul float %5, %6
%8 = fadd float %5, -2.000000e+00
%9 = tail call float @llvm.fmuladd.f32(float %7, float %8, float %1)
ret float %9
}
/* Variables and functions */
scalar_t__ fabs(double);
scalar_t__ floor(scalar_t__);
int /*<<< orphan*/ sleep(int);
void sleep_(double *s) { sleep((int)floor(fabs(*s) + 0.5)); }


x86 assembly (clang, -O0):
<sleep_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %rax,%xmm0
movsd  0xeaa(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
call   1050 <floor@plt>
mov    %eax,%edi
call   1040 <sleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sleep_>:
push   %rax
movsd  (%rdi),%xmm0
call   1030 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0xeb6(%rip),%xmm0
cvttsd2si %xmm0,%rdi
call   1050 <floor@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <sleep@plt>

LLVM IR (-O0):
define void @sleep_(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = load double, double* %3
%5 = call i64 @fabs(double %4)
%6 = sitofp i64 %5 to double
%7 = fadd double %6, 5.000000e-01
%8 = fptosi double %7 to i64
%9 = call i64 @floor(i64 %8)
%10 = trunc i64 %9 to i32
%11 = call i32 @sleep(i32 %10)
ret void
}

LLVM IR (-O2):
define void @sleep_(double* nocapture %0) {
%2 = load double, double* %0
%3 = tail call i64 @fabs(double %2)
%4 = sitofp i64 %3 to double
%5 = fadd double %4, 5.000000e-01
%6 = fptosi double %5 to i64
%7 = tail call i64 @floor(i64 %6)
%8 = trunc i64 %7 to i32
%9 = tail call i32 @sleep(i32 %8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ endwin();
void cleanup() { endwin(); }


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

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

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

LLVM IR (-O2):
define void @cleanup() {
%1 = tail call i32 (...) @endwin()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void hello_world(int n) {
  for (int i = 0; i < n; i++) {
    puts("Hello, world!");
  }
}


x86 assembly (clang, -O0):
<hello_world>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1148 <hello_world+0x38>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <hello_world+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hello_world>:
push   %r14
push   %rbx
push   %rax
test   %edi,%edi
jle    113d <hello_world+0x2d>
mov    %edi,%ebx
lea    0xedf(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
add    $0xffffffff,%ebx
jne    1130 <hello_world+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Hello, world!\00"
define void @hello_world(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %10, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"Hello, world!\00"
define void @hello_world(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %4, label %3
3: ; preds = %4, %1
ret void
4: ; preds = %1, %4
%5 = phi i32 [ %7, %4 ], [ 0, %1 ]
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%7 = add nuw nsw i32 %5, 1
%8 = icmp eq i32 %7, %0
br i1 %8, label %3, label %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int test(int, int);
int main(int argc, char **argv) {
  int a = 1, b = 2;
  int c = 0;
  c = test(a, b);
  printf("%i, %i, %i\n", a, b, c);
  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)
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1040 <test@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <test@plt>
lea    0xec9(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    %eax,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"%i, %i, %i\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @test(i32 1, i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 %3)
ret i32 0
}
/* Variables and functions */
int bugged(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
           int /*<<< orphan*/, int, int, int, int);
int __attribute__((__no__, __ms_abi__)) isbugged(void) {
  return bugged(0, 0, 0, 0, 1., 1., 1., 1.);
}


x86 assembly (clang, -O0):
<isbugged>:
push   %rbp
mov    %rsp,%rbp
push   %rsi
push   %rdi
sub    $0xb0,%rsp
movaps %xmm15,-0x20(%rbp)
movaps %xmm14,-0x30(%rbp)
movaps %xmm13,-0x40(%rbp)
movaps %xmm12,-0x50(%rbp)
movaps %xmm11,-0x60(%rbp)
movaps %xmm10,-0x70(%rbp)
movaps %xmm9,-0x80(%rbp)
movaps %xmm8,-0x90(%rbp)
ff
movaps %xmm7,-0xa0(%rbp)
movaps %xmm6,-0xb0(%rbp)
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0x1,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <bugged@plt>
movaps -0xb0(%rbp),%xmm6
movaps -0xa0(%rbp),%xmm7
movaps -0x90(%rbp),%xmm8
ff
movaps -0x80(%rbp),%xmm9
movaps -0x70(%rbp),%xmm10
movaps -0x60(%rbp),%xmm11
movaps -0x50(%rbp),%xmm12
movaps -0x40(%rbp),%xmm13
movaps -0x30(%rbp),%xmm14
movaps -0x20(%rbp),%xmm15
add    $0xb0,%rsp
pop    %rdi
pop    %rsi
pop    %rbp
ret

x86 assembly (clang, -O2):
<isbugged>:
push   %rsi
push   %rdi
sub    $0xa8,%rsp
movaps %xmm15,0x90(%rsp)
movaps %xmm14,0x80(%rsp)
movaps %xmm13,0x70(%rsp)
movaps %xmm12,0x60(%rsp)
movaps %xmm11,0x50(%rsp)
movaps %xmm10,0x40(%rsp)
movaps %xmm9,0x30(%rsp)
movaps %xmm8,0x20(%rsp)
movaps %xmm7,0x10(%rsp)
movaps %xmm6,(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
push   $0x1
push   $0x1
call   1030 <bugged@plt>
add    $0x10,%rsp
movaps (%rsp),%xmm6
movaps 0x10(%rsp),%xmm7
movaps 0x20(%rsp),%xmm8
movaps 0x30(%rsp),%xmm9
movaps 0x40(%rsp),%xmm10
movaps 0x50(%rsp),%xmm11
movaps 0x60(%rsp),%xmm12
movaps 0x70(%rsp),%xmm13
movaps 0x80(%rsp),%xmm14
movaps 0x90(%rsp),%xmm15
add    $0xa8,%rsp
pop    %rdi
pop    %rsi
ret

LLVM IR (-O0):
define win64cc i32 @isbugged() {
%1 = call i32 @bugged(i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1)
ret i32 %1
}

LLVM IR (-O2):
define win64cc i32 @isbugged() {
%1 = tail call i32 @bugged(i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1)
ret i32 %1
}
void set_loopback_uart_mask(int value) {
  *((volatile unsigned int *)0xffff001c) = value;
}


x86 assembly (clang, -O0):
<set_loopback_uart_mask>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0xffff001c,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_loopback_uart_mask>:
mov    $0xffff001c,%eax
mov    %edi,(%rax)
ret

LLVM IR (-O0):
define void @set_loopback_uart_mask(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
store volatile i32 %3, i32* inttoptr (i64 4294901788 to i32*)
ret void
}

LLVM IR (-O2):
define void @set_loopback_uart_mask(i32 %0) {
store volatile i32 %0, i32* inttoptr (i64 4294901788 to i32*)
ret void
}
void GetTemperature(double *teltemperature) {}


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

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

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

LLVM IR (-O2):
define void @GetTemperature(double* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char *, int);
void GetSynonymQuery(char *query, char *word, int num_synonyms, int querylen) {
  sprintf(query,
          "select lemma from words where wordid in (select wordid from senses "
          "where synsetid in (select synsetid from senses where wordid in "
          "(select wordid from words where lemma = '%s'))) limit %d",
          word, num_synonyms);
}


x86 assembly (clang, -O0):
<GetSynonymQuery>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xec8(%rip),%rsi
call   1030 <sprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetSynonymQuery>:
mov    %edx,%ecx
mov    %rsi,%rdx
lea    0xee4(%rip),%rsi
jmp    1030 <sprintf@plt>

LLVM IR (-O0):
@.str = [187 x i8] c"select lemma from words where wordid in (select wordid from senses where synsetid in (select synsetid from senses where wordid in (select wordid from words where lemma = '%s'))) limit %d\00"
define void @GetSynonymQuery(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = call i32 @sprintf(i8* %9, i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str, i64 0, i64 0), i8* %10, i32 %11)
ret void
}

LLVM IR (-O2):
@.str = [187 x i8] c"select lemma from words where wordid in (select wordid from senses where synsetid in (select synsetid from senses where wordid in (select wordid from words where lemma = '%s'))) limit %d\00"
define void @GetSynonymQuery(i8* nocapture writeonly %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([187 x i8], [187 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %2)
ret void
}
int test_22(int x) { return (x >> 31) + 1; }


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

x86 assembly (clang, -O2):
<test_22>:
sar    $0x1f,%edi
lea    0x1(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @test_22(i32 %0) {
%2 = ashr i32 %0, 31
%3 = add nsw i32 %2, 1
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
void erreur(char *msg) {
  perror(msg);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<erreur>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <perror@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<erreur>:
push   %rax
call   1030 <perror@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
define void @erreur(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @perror(i8* %3)
%5 = load i32, i32* @EXIT_FAILURE
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define void @erreur(i8* nocapture %0) {
%2 = tail call i32 @perror(i8* %0)
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ *strchr(char *, int);
bool is_vowel(char c) {
  int charAsInt = (int)c;
  return strchr("aeiouAEIOU", charAsInt) != NULL;
}


x86 assembly (clang, -O0):
<is_vowel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed1(%rip),%rdi
call   1030 <strchr@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_vowel>:
push   %rax
mov    %edi,%esi
lea    0xee6(%rip),%rdi
call   1030 <strchr@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"aeiouAEIOU\00"
define i32 @is_vowel(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = tail call i32* @strchr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = icmp ne i32* %3, null
%5 = zext i1 %4 to i32
ret i32 %5
}
int verify_benchmark(int unused) { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @verify_benchmark(i32 %0) {
ret i32 -1
}
/* Type definitions */
struct buffer_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __bforget(struct buffer_head *);
__attribute__((always_)) void bforget(struct buffer_head *bh) {
  if (bh)
    __bforget(bh);
}


x86 assembly (clang, -O0):
<bforget>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <bforget+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <__bforget@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bforget>:
test   %rdi,%rdi
je     111a <bforget+0xa>
jmp    1030 <__bforget@plt>
ret

LLVM IR (-O0):
%struct.buffer_head = type { i32 }
define void @bforget(%struct.buffer_head* %0) {
%2 = alloca %struct.buffer_head*
store %struct.buffer_head* %0, %struct.buffer_head** %2
%3 = load %struct.buffer_head*, %struct.buffer_head** %2
%4 = icmp ne %struct.buffer_head* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load %struct.buffer_head*, %struct.buffer_head** %2
%7 = call i32 @__bforget(%struct.buffer_head* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
%struct.buffer_head = type { i32 }
define void @bforget(%struct.buffer_head* %0) {
%2 = icmp eq %struct.buffer_head* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @__bforget(%struct.buffer_head* %0)
br label %5
5: ; preds = %3, %1
ret void
}
int test_imm_2Fint64_lowword_mem(long long *val) {
  return ((*val) & (0x2F << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_2Fint64_lowword_mem>:
testb  $0x2f,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_2Fint64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 47
%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_2Fint64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 47
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct constructHeader {
  int dummy;
};

/* Variables and functions */
char const *GetConstructNameString(struct constructHeader *);
const char *EnvGetDefinstancesName(void *theEnv, void *theDefinstances) {
  return GetConstructNameString((struct constructHeader *)theDefinstances);
}


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

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

LLVM IR (-O0):
%struct.constructHeader = type { i32 }
define i8* @EnvGetDefinstancesName(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to %struct.constructHeader*
%7 = call i8* @GetConstructNameString(%struct.constructHeader* %6)
ret i8* %7
}

LLVM IR (-O2):
%struct.constructHeader = type { i32 }
define i8* @EnvGetDefinstancesName(i8* nocapture readnone %0, i8* %1) {
%3 = bitcast i8* %1 to %struct.constructHeader*
%4 = tail call i8* @GetConstructNameString(%struct.constructHeader* %3)
ret i8* %4
}
int imx6sx_cpuidle_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @imx6sx_cpuidle_init() {
ret i32 0
}
/* Variables and functions */
int fs_nwrite(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int fs_write(char *path, char *buffer) {
  return fs_nwrite(path, buffer, strlen(buffer));
}


x86 assembly (clang, -O0):
<fs_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <fs_nwrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fs_write>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fs_nwrite@plt>

LLVM IR (-O0):
define i32 @fs_write(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 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @fs_nwrite(i8* %5, i8* %6, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @fs_write(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @fs_nwrite(i8* %0, i8* %1, i32 %3)
ret i32 %4
}
/* Variables and functions */
int getpid();
int snprintf(char *, size_t, char *, int, unsigned long, size_t);
int loghead_build_malloc(char *str, size_t str_size, const void *addr,
                         size_t size) {
  return snprintf(str, str_size, "%d\tmalloc\t0x%08lx\t%zu", getpid(),
                  (unsigned long)addr, size);
}


x86 assembly (clang, -O0):
<loghead_build_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    %eax,%ecx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xe98(%rip),%rdx
call   1040 <snprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loghead_build_malloc>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xebe(%rip),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %eax,%ecx
mov    %r15,%r8
mov    %r14,%r9
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <snprintf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"%d\09malloc\090x%08lx\09%zu\00"
define i32 @loghead_build_malloc(i8* %0, i64 %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i64 %3, i64* %8
%9 = load i8*, i8** %5
%10 = load i64, i64* %6
%11 = call i32 (...) @getpid()
%12 = load i8*, i8** %7
%13 = ptrtoint i8* %12 to i64
%14 = load i64, i64* %8
%15 = call i32 @snprintf(i8* %9, i64 %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %11, i64 %13, i64 %14)
ret i32 %15
}

LLVM IR (-O2):
@.str = [22 x i8] c"%d\09malloc\090x%08lx\09%zu\00"
define i32 @loghead_build_malloc(i8* %0, i64 %1, i8* %2, i64 %3) {
%5 = tail call i32 (...) @getpid()
%6 = ptrtoint i8* %2 to i64
%7 = tail call i32 @snprintf(i8* %0, i64 %1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %5, i64 %6, i64 %3)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) { fprintf(stderr, "Usage: setpin [-u username] [pin]\n"); }


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [35 x i8] c"Usage: setpin [-u username] [pin]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [35 x i8] c"Usage: setpin [-u username] [pin]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
ret void
}
int test_01(int x, int y) { return x == y ? -1 : 0; }


x86 assembly (clang, -O0):
<test_01>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%esi
xor    %eax,%eax
mov    $0xffffffff,%ecx
cmp    %esi,%edx
cmove  %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_01>:
xor    %eax,%eax
cmp    %esi,%edi
sete   %al
neg    %eax
ret

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

LLVM IR (-O2):
define i32 @test_01(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
%4 = sext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ thd_exit(void *);
void pthread_exit(void *value_ptr) { thd_exit(value_ptr); }


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

x86 assembly (clang, -O2):
<pthread_exit>:
jmp    1030 <thd_exit@plt>

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

LLVM IR (-O2):
define void @pthread_exit(i8* %0) {
%2 = tail call i32 @thd_exit(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ record_linux_param_description(char *, char *, char *);
void module_param_desc_rtt0(void) {
  record_linux_param_description("tcp_hybla.c", "rtt0",
                                 "reference rout trip time (ms)");
}


x86 assembly (clang, -O0):
<module_param_desc_rtt0>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeea(%rip),%rsi
lea    0xee8(%rip),%rdx
call   1030 <record_linux_param_description@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<module_param_desc_rtt0>:
lea    0xee9(%rip),%rdi
lea    0xeee(%rip),%rsi
lea    0xeec(%rip),%rdx
jmp    1030 <record_linux_param_description@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"tcp_hybla.c\00"
@.str.1 = [5 x i8] c"rtt0\00"
@.str.2 = [30 x i8] c"reference rout trip time (ms)\00"
define void @module_param_desc_rtt0() {
%1 = call i32 @record_linux_param_description(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"tcp_hybla.c\00"
@.str.1 = [5 x i8] c"rtt0\00"
@.str.2 = [30 x i8] c"reference rout trip time (ms)\00"
define void @module_param_desc_rtt0() {
%1 = tail call i32 @record_linux_param_description(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
size_t rgb24_sz(unsigned width, unsigned height) { return width * height * 3; }


x86 assembly (clang, -O0):
<rgb24_sz>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
imul   $0x3,%eax,%eax
mov    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgb24_sz>:
imul   %esi,%edi
lea    (%rdi,%rdi,2),%eax
ret

LLVM IR (-O0):
define i64 @rgb24_sz(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 = mul i32 %5, %6
%8 = mul i32 %7, 3
%9 = zext i32 %8 to i64
ret i64 %9
}

LLVM IR (-O2):
define i64 @rgb24_sz(i32 %0, i32 %1) {
%3 = mul i32 %0, 3
%4 = mul i32 %3, %1
%5 = zext i32 %4 to i64
ret i64 %5
}
void test14(void) {
  int arr[3][2] = {{2, 3}, {4, 5}, {6, 7}};
  int arr2[4][4] = {0};
  int arr3[2][3];
}


x86 assembly (clang, -O0):
<test14>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0xede(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed8(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1030 <memset@plt>
add    $0x80,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.test14.arr = [3 x [2 x i32]] [[2 x i32] [i32 2, i32 3], [2 x i32] [i32 4, i32 5], [2 x i32] [i32 6, i32 7]]
define void @test14() {
%1 = alloca [3 x [2 x i32]]
%2 = alloca [4 x [4 x i32]]
%3 = alloca [2 x [3 x i32]]
%4 = bitcast [3 x [2 x i32]]* %1 to i8*
%5 = bitcast [4 x [4 x i32]]* %2 to i8*
ret void
}

LLVM IR (-O2):
define void @test14() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ AbsoluteIndexedXX1(int);
int /*<<< orphan*/ INC8(int /*<<< orphan*/);
void OpFEM1X1(void) { INC8(AbsoluteIndexedXX1(3)); }


x86 assembly (clang, -O0):
<OpFEM1X1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1030 <AbsoluteIndexedXX1@plt>
mov    %eax,%edi
call   1040 <INC8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<OpFEM1X1>:
push   %rax
mov    $0x3,%edi
call   1030 <AbsoluteIndexedXX1@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <INC8@plt>

LLVM IR (-O0):
define void @OpFEM1X1() {
%1 = call i32 @AbsoluteIndexedXX1(i32 3)
%2 = call i32 @INC8(i32 %1)
ret void
}

LLVM IR (-O2):
define void @OpFEM1X1() {
%1 = tail call i32 @AbsoluteIndexedXX1(i32 3)
%2 = tail call i32 @INC8(i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ SSL;

/* Variables and functions */
int /*<<< orphan*/ SSL_shutdown(int /*<<< orphan*/ *);
int /*<<< orphan*/ close(int);
void sslClose(SSL *ssl, int sd) {
  SSL_shutdown(ssl);
  close(sd);
}


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

x86 assembly (clang, -O2):
<sslClose>:
push   %rbx
mov    %esi,%ebx
call   1040 <SSL_shutdown@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <close@plt>

LLVM IR (-O0):
define void @sslClose(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 = call i32 @SSL_shutdown(i32* %5)
%7 = load i32, i32* %4
%8 = call i32 @close(i32 %7)
ret void
}

LLVM IR (-O2):
define void @sslClose(i32* %0, i32 %1) {
%3 = tail call i32 @SSL_shutdown(i32* %0)
%4 = tail call i32 @close(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int find_or_insert(int);
void *process1(void *arg) {
  int val = 30;
  int found = find_or_insert(val);
  assert(!found);
  return NULL;
}


x86 assembly (clang, -O0):
<process1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1e,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <find_or_insert@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process1>:
push   %rax
mov    $0x1e,%edi
call   1040 <find_or_insert@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @process1(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i8* %0, i8** %2
store i32 30, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @find_or_insert(i32 %5)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @process1(i8* nocapture readnone %0) {
%2 = tail call i32 @find_or_insert(i32 30)
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isascii(int);
void t_isascii_0xe4() {
  Assert_real((isascii(228) == 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_isascii.c",
              1145, ("isascii should be 0 for 0xe4"));
}


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

x86 assembly (clang, -O2):
<t_isascii_0xe4>:
push   %rax
mov    $0xe4,%edi
call   1030 <isascii@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x479,%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_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0xe4\00"
define void @t_isascii_0xe4() {
%1 = call i64 @isascii(i32 228)
%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 1145, 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_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0xe4\00"
define void @t_isascii_0xe4() {
%1 = tail call i64 @isascii(i32 228)
%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 1145, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRCORE_N16_swap(char *, int, int);
void U_WMRPIE_swap(char *record, int torev) {
  U_WMRCORE_N16_swap(record, 8, torev);
}


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

x86 assembly (clang, -O2):
<U_WMRPIE_swap>:
mov    %esi,%edx
mov    $0x8,%esi
jmp    1030 <U_WMRCORE_N16_swap@plt>

LLVM IR (-O0):
define void @U_WMRPIE_swap(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i32 @U_WMRCORE_N16_swap(i8* %5, i32 8, i32 %6)
ret void
}

LLVM IR (-O2):
define void @U_WMRPIE_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRCORE_N16_swap(i8* %0, i32 8, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sort_merge_int_recursion(int *, int /*<<< orphan*/, int);
void sort_merge_int(int A[], int n) { sort_merge_int_recursion(A, 0, n - 1); }


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

x86 assembly (clang, -O2):
<sort_merge_int>:
lea    -0x1(%rsi),%edx
xor    %esi,%esi
jmp    1030 <sort_merge_int_recursion@plt>

LLVM IR (-O0):
define void @sort_merge_int(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 = sub nsw i32 %6, 1
%8 = call i32 @sort_merge_int_recursion(i32* %5, i32 0, i32 %7)
ret void
}

LLVM IR (-O2):
define void @sort_merge_int(i32* %0, i32 %1) {
%3 = add nsw i32 %1, -1
%4 = tail call i32 @sort_merge_int_recursion(i32* %0, i32 0, i32 %3)
ret void
}
/* Variables and functions */
float tgamma(float);
float tgammaf(float x) { return tgamma(x); }


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

x86 assembly (clang, -O2):
<tgammaf>:
jmp    1030 <tgamma@plt>

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

LLVM IR (-O2):
define float @tgammaf(float %0) {
%2 = tail call float @tgamma(float %0)
ret float %2
}
void read() {}


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

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

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

LLVM IR (-O2):
define void @read() {
ret void
}
void foo332() {}


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

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

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

LLVM IR (-O2):
define void @foo332() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ atomic_noop();
void test_release() {
  { atomic_noop(); }
}


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

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

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

LLVM IR (-O2):
define void @test_release() {
%1 = tail call i32 (...) @atomic_noop()
ret void
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  char *astring;
  char *bstring;
  astring = malloc(200 * sizeof(char *));
  bstring = malloc(200 * sizeof(char *));
  strcpy(astring, "Hello world hello world abracadabra");
  strcpy(bstring, astring);
  puts(bstring);
  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)
mov    $0x640,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0x640,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe93(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x640,%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    $0x640,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
lea    0xeab(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Hello world hello world abracadabra\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i8* @malloc(i32 1600)
store i8* %8, i8** %6
%9 = call i8* @malloc(i32 1600)
store i8* %9, i8** %7
%10 = load i8*, i8** %6
%11 = call i32 @strcpy(i8* %10, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%12 = load i8*, i8** %7
%13 = load i8*, i8** %6
%14 = call i32 @strcpy(i8* %12, i8* %13)
%15 = load i8*, i8** %7
%16 = call i32 @puts(i8* %15)
ret i32 0
}

LLVM IR (-O2):
@.str = [36 x i8] c"Hello world hello world abracadabra\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call dereferenceable_or_null(1600) i8* @malloc(i32 1600)
%4 = tail call dereferenceable_or_null(1600) i8* @malloc(i32 1600)
%5 = tail call i32 @strcpy(i8* %3, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @strcpy(i8* %4, i8* %3)
%7 = tail call i32 @puts(i8* dereferenceable(1) %4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ alarm(unsigned int);
void timeout_begin(unsigned int seconds) { alarm(seconds); }


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

x86 assembly (clang, -O2):
<timeout_begin>:
jmp    1030 <alarm@plt>

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

LLVM IR (-O2):
define void @timeout_begin(i32 %0) {
%2 = tail call i32 @alarm(i32 %0)
ret void
}
void strength_test2(int *data) {
  int k = data[0];
  int i = 0;
  do {
    data[data[2]] = 2;
    i = i + 1;
  } while (i * k < data[1]);
}


x86 assembly (clang, -O0):
<strength_test2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq 0x8(%rcx),%rcx
movl   $0x2,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    0x4(%rcx),%eax
jl     1118 <strength_test2+0x18>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strength_test2>:
mov    (%rdi),%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    %eax,%ecx
movslq 0x8(%rdi),%rdx
movl   $0x2,(%rdi,%rdx,4)
cmp    0x4(%rdi),%ecx
jl     1110 <strength_test2+0x10>
ret

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

LLVM IR (-O2):
define void @strength_test2(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 2
%4 = getelementptr inbounds i32, i32* %0, i64 1
br label %5
5: ; preds = %5, %1
%6 = phi i32 [ 0, %1 ], [ %10, %5 ]
%7 = load i32, i32* %3
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i32, i32* %0, i64 %8
store i32 2, i32* %9
%10 = add nuw nsw i32 %6, 1
%11 = mul nsw i32 %10, %2
%12 = load i32, i32* %4
%13 = icmp slt i32 %11, %12
br i1 %13, label %5, label %14
14: ; preds = %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ I2C_SLAVE;
int ioctl(int, int /*<<< orphan*/, int);
int setSlaveAddress(int i2c_fd, int addr) {
  int ret;
  ret = ioctl(i2c_fd, I2C_SLAVE, addr);
  if (ret < 0)
    return ret;
  return 0;
}


x86 assembly (clang, -O0):
<setSlaveAddress>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
call   1030 <ioctl@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    114a <setSlaveAddress+0x3a>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1151 <setSlaveAddress+0x41>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setSlaveAddress>:
push   %rax
mov    %esi,%edx
mov    0x2ece(%rip),%rax
mov    (%rax),%esi
call   1030 <ioctl@plt>
mov    %eax,%ecx
sar    $0x1f,%ecx
and    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@I2C_SLAVE = global i32 0
define i32 @setSlaveAddress(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 = load i32, i32* @I2C_SLAVE
%9 = load i32, i32* %5
%10 = call i32 @ioctl(i32 %7, i32 %8, i32 %9)
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load i32, i32* %6
store i32 %14, i32* %3
br label %16
15: ; preds = %2
store i32 0, i32* %3
br label %16
16: ; preds = %15, %13
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
@I2C_SLAVE = global i32 0
define i32 @setSlaveAddress(i32 %0, i32 %1) {
%3 = load i32, i32* @I2C_SLAVE
%4 = tail call i32 @ioctl(i32 %0, i32 %3, i32 %1)
%5 = icmp slt i32 %4, 0
%6 = select i1 %5, i32 %4, i32 0
ret i32 %6
}
int __attribute__((no)) nge(int a, int b) { return -(a >= b); }


x86 assembly (clang, -O0):
<nge>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%ecx
xor    %eax,%eax
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nge>:
xor    %eax,%eax
cmp    %esi,%edi
setge  %al
neg    %eax
ret

LLVM IR (-O0):
define i32 @nge(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 = icmp sge i32 %5, %6
%8 = zext i1 %7 to i32
%9 = sub nsw i32 0, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @nge(i32 %0, i32 %1) {
%3 = icmp sge i32 %0, %1
%4 = sext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct b_tonegen {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ setMIDIDrawBar(struct b_tonegen *, int, unsigned char);
void setDrawbar12(void *d, unsigned char v) {
  setMIDIDrawBar((struct b_tonegen *)d, 12, v);
}


x86 assembly (clang, -O0):
<setDrawbar12>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xc,%esi
movzbl -0x9(%rbp),%edx
call   1030 <setMIDIDrawBar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setDrawbar12>:
mov    %esi,%edx
mov    $0xc,%esi
jmp    1030 <setMIDIDrawBar@plt>

LLVM IR (-O0):
%struct.b_tonegen = type { i32 }
define void @setDrawbar12(i8* %0, i8 zeroext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to %struct.b_tonegen*
%7 = load i8, i8* %4
%8 = call i32 @setMIDIDrawBar(%struct.b_tonegen* %6, i32 12, i8 zeroext %7)
ret void
}

LLVM IR (-O2):
%struct.b_tonegen = type { i32 }
define void @setDrawbar12(i8* %0, i8 zeroext %1) {
%3 = bitcast i8* %0 to %struct.b_tonegen*
%4 = tail call i32 @setMIDIDrawBar(%struct.b_tonegen* %3, i32 12, i8 zeroext %1)
ret void
}
void ff_hevc_put_hevc_uni_qpel_h48_8_sse4() {}


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

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

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

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