xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int u_char;

/* Variables and functions */
int /*<<< orphan*/ outb(int, int);
void elink_idseq(u_char p) {
  register int i;
  register u_char c;
  c = 0xff;
  for (i = 255; i; i--) {
    outb(0x110, c);
    if (c & 0x80) {
      c <<= 1;
      c ^= p;
    } else
      c <<= 1;
  }
}


x86 assembly (clang, -O0):
<elink_idseq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0xff,-0xc(%rbp)
movl   $0xff,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1184 <elink_idseq+0x74>
mov    -0xc(%rbp),%esi
mov    $0x110,%edi
call   1030 <outb@plt>
mov    -0xc(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1168 <elink_idseq+0x58>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1171 <elink_idseq+0x61>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1176 <elink_idseq+0x66>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <elink_idseq+0x19>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<elink_idseq>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%r14d
mov    $0xff,%ebp
mov    $0xffffff01,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x110,%edi
mov    %ebp,%esi
call   1030 <outb@plt>
movsbl %bpl,%eax
sar    $0x7,%eax
add    %ebp,%ebp
and    %r14d,%eax
xor    %eax,%ebp
inc    %ebx
jne    1130 <elink_idseq+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @elink_idseq(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 255, i32* %4
store i32 255, i32* %3
br label %5
5: ; preds = %24, %1
%6 = load i32, i32* %3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %27
8: ; preds = %5
%9 = load i32, i32* %4
%10 = call i32 @outb(i32 272, i32 %9)
%11 = load i32, i32* %4
%12 = and i32 %11, 128
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = load i32, i32* %4
%16 = shl i32 %15, 1
store i32 %16, i32* %4
%17 = load i32, i32* %2
%18 = load i32, i32* %4
%19 = xor i32 %18, %17
store i32 %19, i32* %4
br label %23
20: ; preds = %8
%21 = load i32, i32* %4
%22 = shl i32 %21, 1
store i32 %22, i32* %4
br label %23
23: ; preds = %20, %14
br label %24
24: ; preds = %23
%25 = load i32, i32* %3
%26 = add nsw i32 %25, -1
store i32 %26, i32* %3
br label %5
27: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @elink_idseq(i32 %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i32 [ 255, %1 ], [ %10, %2 ]
%4 = phi i32 [ 255, %1 ], [ %11, %2 ]
%5 = tail call i32 @outb(i32 272, i32 %3)
%6 = and i32 %3, 128
%7 = icmp eq i32 %6, 0
%8 = shl i32 %3, 1
%9 = select i1 %7, i32 0, i32 %0
%10 = xor i32 %9, %8
%11 = add nsw i32 %4, -1
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %2
13: ; preds = %2
ret void
}
int edge_to_rpm(count)
int count;
{
  int rpm;
  int quot, rem;
  fdiv_func(1, count, &quot, &rem);
  rpm = quot * 458;
  fdiv_func(rem, count, &quot, &rem);
  rpm += quot / 143;
  return (rpm);
}


x86 assembly (clang, -O0):
<edge_to_rpm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x1,%edi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1030 <fdiv_func@plt>
imul   $0x1ca,-0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1030 <fdiv_func@plt>
mov    -0xc(%rbp),%eax
mov    $0x8f,%ecx
cltd
idiv   %ecx
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<edge_to_rpm>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
mov    %rsp,%r14
lea    0x4(%rsp),%r15
mov    $0x1,%edi
mov    %ebx,%esi
mov    %r14,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1030 <fdiv_func@plt>
imul   $0x1ca,(%rsp),%ebp
mov    0x4(%rsp),%edi
mov    %ebx,%esi
mov    %r14,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1030 <fdiv_func@plt>
movslq (%rsp),%rax
imul   $0x3949660b,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @edge_to_rpm(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
%6 = load i32, i32* %2
%7 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @fdiv_func to i32 (i32, i32, i32*, i32*, ...)*)(i32 1, i32 %6, i32* %4, i32* %5)
%8 = load i32, i32* %4
%9 = mul nsw i32 %8, 458
store i32 %9, i32* %3
%10 = load i32, i32* %5
%11 = load i32, i32* %2
%12 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @fdiv_func to i32 (i32, i32, i32*, i32*, ...)*)(i32 %10, i32 %11, i32* %4, i32* %5)
%13 = load i32, i32* %4
%14 = sdiv i32 %13, 143
%15 = load i32, i32* %3
%16 = add nsw i32 %15, %14
store i32 %16, i32* %3
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @edge_to_rpm(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %2 to i8*
%5 = bitcast i32* %3 to i8*
%6 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @fdiv_func to i32 (i32, i32, i32*, i32*, ...)*)(i32 1, i32 %0, i32* %2, i32* %3)
%7 = load i32, i32* %2
%8 = mul nsw i32 %7, 458
%9 = load i32, i32* %3
%10 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @fdiv_func to i32 (i32, i32, i32*, i32*, ...)*)(i32 %9, i32 %0, i32* %2, i32* %3)
%11 = load i32, i32* %2
%12 = sdiv i32 %11, 143
%13 = add nsw i32 %12, %8
ret i32 %13
}
void XPending() {}


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

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

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

LLVM IR (-O2):
define void @XPending() {
ret void
}
/* Variables and functions */
int game_menu();
int /*<<< orphan*/ playGame();
int main() {
  int play = 1;
  while (play != 2) {
    play = game_menu();
    if (play == 1)
      playGame();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1160 <main+0x40>
mov    $0x0,%al
call   1030 <game_menu@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    115b <main+0x3b>
mov    $0x0,%al
call   1040 <playGame@plt>
jmp    1136 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
jmp    1137 <main+0x17>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <playGame@plt>
xor    %eax,%eax
call   1030 <game_menu@plt>
cmp    $0x1,%eax
je     1130 <main+0x10>
cmp    $0x2,%eax
jne    1137 <main+0x17>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %3, %0
%2 = tail call i32 (...) @game_menu()
switch i32 %2, label %3 [
i32 1, label %4
i32 2, label %6
]
3: ; preds = %1, %4
br label %1
4: ; preds = %1
%5 = tail call i32 (...) @playGame()
br label %3
6: ; preds = %1
ret i32 0
}
void _rl_free_match_list(matches) char **matches;
{
  register int i;
  if (matches == 0)
    return;
  for (i = 0; matches[i]; i++)
    free(matches[i]);
  free(matches);
}


x86 assembly (clang, -O0):
<_rl_free_match_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <_rl_free_match_list+0x1c>
jmp    116e <_rl_free_match_list+0x5e>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1165 <_rl_free_match_list+0x55>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <_rl_free_match_list+0x23>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_rl_free_match_list>:
test   %rdi,%rdi
je     1150 <_rl_free_match_list+0x40>
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1141 <_rl_free_match_list+0x31>
lea    0x8(%r14),%rbx
nopl   0x0(%rax,%rax,1)
call   1030 <free@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <_rl_free_match_list+0x20>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @_rl_free_match_list(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %15, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = icmp eq i8* %4, null
br i1 %5, label %13, label %6
6: ; preds = %3, %6
%7 = phi i64 [ %9, %6 ], [ 0, %3 ]
%8 = phi i8* [ %11, %6 ], [ %4, %3 ]
tail call void @free(i8* %8)
%9 = add nuw nsw i64 %7, 1
%10 = getelementptr inbounds i8*, i8** %0, i64 %9
%11 = load i8*, i8** %10
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %6
13: ; preds = %6, %3
%14 = bitcast i8** %0 to i8*
tail call void @free(i8* %14)
br label %15
15: ; preds = %1, %13
ret void
}
/* Variables and functions */
double MTwister_Int32();
double MTwister_Real2(void) { return MTwister_Int32() * (1.0 / 4294967296.0); }


x86 assembly (clang, -O0):
<MTwister_Real2>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <MTwister_Int32@plt>
movsd  0xedd(%rip),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<MTwister_Real2>:
push   %rax
xor    %eax,%eax
call   1030 <MTwister_Int32@plt>
mulsd  0xee0(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @MTwister_Real2() {
%1 = call double (...) @MTwister_Int32()
%2 = fmul double %1, 0x3DF0000000000000
ret double %2
}

LLVM IR (-O2):
define double @MTwister_Real2() {
%1 = tail call double (...) @MTwister_Int32()
%2 = fmul double %1, 0x3DF0000000000000
ret double %2
}
/* Variables and functions */
int INT_MAX;
int opp(int a) {
  if (a == INT_MAX)
    return INT_MAX;
  else
    return -a;
}


x86 assembly (clang, -O0):
<opp>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2ed7(%rip),%rcx
cmp    (%rcx),%eax
jne    112a <opp+0x2a>
mov    0x2ec8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1132 <opp+0x32>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<opp>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%ecx
mov    %edi,%eax
neg    %eax
cmp    %edi,%ecx
cmove  %ecx,%eax
ret

LLVM IR (-O0):
@INT_MAX = global i32 0
define i32 @opp(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* @INT_MAX
%6 = icmp eq i32 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i32, i32* @INT_MAX
store i32 %8, i32* %2
br label %12
9: ; preds = %1
%10 = load i32, i32* %3
%11 = sub nsw i32 0, %10
store i32 %11, i32* %2
br label %12
12: ; preds = %9, %7
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
@INT_MAX = global i32 0
define i32 @opp(i32 %0) {
%2 = load i32, i32* @INT_MAX
%3 = icmp eq i32 %2, %0
%4 = sub nsw i32 0, %0
%5 = select i1 %3, i32 %2, i32 %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int Error() {
  fprintf(stderr, "isc IndexSpecFileName\n");
  exit(0);
}


x86 assembly (clang, -O0):
<Error>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Error>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [23 x i8] c"isc IndexSpecFileName\0A\00"
define i32 @Error() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"isc IndexSpecFileName\0A\00"
define i32 @Error() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}
int equalsPtr(const void *left, const void *right) { return left == right; }


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

x86 assembly (clang, -O2):
<equalsPtr>:
xor    %eax,%eax
cmp    %rsi,%rdi
sete   %al
ret

LLVM IR (-O0):
define i32 @equalsPtr(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 = icmp eq i8* %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @equalsPtr(i8* readnone %0, i8* readnone %1) {
%3 = icmp eq i8* %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
int median(int n) {
  int i = 10;
  while (n % i != n)
    i *= 10;
  return i / 10;
}


x86 assembly (clang, -O0):
<median>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cmp    -0x4(%rbp),%edx
je     112a <median+0x2a>
imul   $0xa,-0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    110e <median+0xe>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<median>:
movslq %edi,%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
mov    $0x1,%ecx
test   %eax,%eax
je     1141 <median+0x41>
mov    $0xa,%esi
nopw   0x0(%rax,%rax,1)
mov    %esi,%ecx
lea    (%rcx,%rcx,1),%eax
lea    (%rax,%rax,4),%esi
mov    %edi,%eax
cltd
idiv   %esi
cmp    %edi,%edx
jne    1130 <median+0x30>
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @median(i32 %0) {
%2 = srem i32 %0, 10
%3 = icmp eq i32 %2, %0
br i1 %3, label %9, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %6, %4 ], [ 10, %1 ]
%6 = mul nuw nsw i32 %5, 10
%7 = srem i32 %0, %6
%8 = icmp eq i32 %7, %0
br i1 %8, label %9, label %4
9: ; preds = %4, %1
%10 = phi i32 [ 1, %1 ], [ %5, %4 ]
ret i32 %10
}
void listShiftLeftAdd(float *list, int len, float new) {
  for (int i = 0; i < len - 1; i++) {
    list[i] = list[i + 1];
  }
  list[len - 1] = new;
}


x86 assembly (clang, -O0):
<listShiftLeftAdd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movss  %xmm0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1155 <listShiftLeftAdd+0x55>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1117 <listShiftLeftAdd+0x17>
movss  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<listShiftLeftAdd>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    -0x1(%rsi),%ebp
cmp    $0x2,%esi
jl     113c <listShiftLeftAdd+0x2c>
lea    0x4(%rbx),%rsi
mov    %ebp,%edx
shl    $0x2,%rdx
mov    %rbx,%rdi
movss  %xmm0,0x4(%rsp)
call   1030 <memmove@plt>
movss  0x4(%rsp),%xmm0
movslq %ebp,%rax
movss  %xmm0,(%rbx,%rax,4)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define void @listShiftLeftAdd(float* nocapture %0, i32 %1, float %2) {
%4 = add i32 %1, -1
%5 = icmp sgt i32 %1, 1
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = bitcast float* %0 to i8*
%8 = getelementptr float, float* %0, i64 1
%9 = bitcast float* %8 to i8*
%10 = zext i32 %4 to i64
%11 = shl nuw nsw i64 %10, 2
br label %12
12: ; preds = %6, %3
%13 = sext i32 %4 to i64
%14 = getelementptr inbounds float, float* %0, i64 %13
store float %2, float* %14
ret void
}
float ffvers(float *version) {
  *version = (float)3.47;
  return (*version);
}


x86 assembly (clang, -O0):
<ffvers>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movss  0xeec(%rip),%xmm0
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffvers>:
movl   $0x405e147b,(%rdi)
movss  0xef2(%rip),%xmm0
ret

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

LLVM IR (-O2):
define float @ffvers(float* nocapture writeonly %0) {
store float 0x400BC28F60000000, float* %0
ret float 0x400BC28F60000000
}
/* Variables and functions */
int /*<<< orphan*/ insertchar(int);
int ch_cmd_asc(int crpt, int cidx, int eidx, const char **s_r) {
  if (crpt < 0)
    crpt = -crpt;
  insertchar(crpt);
  return (1);
}


x86 assembly (clang, -O0):
<ch_cmd_asc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1137 <ch_cmd_asc+0x27>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <insertchar@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ch_cmd_asc>:
push   %rax
mov    %edi,%eax
neg    %eax
cmovns %eax,%edi
call   1030 <insertchar@plt>
mov    $0x1,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @ch_cmd_asc(i32 %0, i32 %1, i32 %2, i8** nocapture readnone %3) {
%5 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
%6 = tail call i32 @insertchar(i32 %5)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0xf6() {
  Assert_real((isodigit(246) == 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_isodigit.c",
              1235, ("isodigit should be 0 for 0xf6"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0xf6>:
push   %rax
mov    $0xf6,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x4d3,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xf6\00"
define void @t_isodigit_0xf6() {
%1 = call i64 @isodigit(i32 246)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1235, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xf6\00"
define void @t_isodigit_0xf6() {
%1 = tail call i64 @isodigit(i32 246)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1235, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void displayTripmeter() { char buffer[6] = ""; }


x86 assembly (clang, -O0):
<displayTripmeter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x6(%rbp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
call   1030 <memset@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @displayTripmeter() {
%1 = alloca [6 x i8]
%2 = bitcast [6 x i8]* %1 to i8*
ret void
}

LLVM IR (-O2):
define void @displayTripmeter() {
ret void
}
/* Variables and functions */
int remove(char const *);
int _file_remove(const char *path) { return remove(path); }


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

x86 assembly (clang, -O2):
<_file_remove>:
jmp    1030 <remove@plt>

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

LLVM IR (-O2):
define i32 @_file_remove(i8* nocapture %0) {
%2 = tail call i32 @remove(i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ IF_fct_2(char);
void IF_modulo(void) { IF_fct_2('%'); }


x86 assembly (clang, -O0):
<IF_modulo>:
push   %rbp
mov    %rsp,%rbp
mov    $0x25,%edi
call   1030 <IF_fct_2@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_modulo>:
mov    $0x25,%edi
jmp    1030 <IF_fct_2@plt>

LLVM IR (-O0):
define void @IF_modulo() {
%1 = call i32 @IF_fct_2(i8 signext 37)
ret void
}

LLVM IR (-O2):
define void @IF_modulo() {
%1 = tail call i32 @IF_fct_2(i8 signext 37)
ret void
}
/* Variables and functions */
void *__coverity_alloc__(int);
int /*<<< orphan*/ __coverity_mark_as_afm_allocated__(void *, char *);
void *H5Aopen_by_name(void *loc_id, const char *obj_name, const char *attr_name,
                      void *aapl_id, void *lapl_id) {
  void *id = __coverity_alloc__(10);
  __coverity_mark_as_afm_allocated__(id, "H5Aclose");
  return id;
}


x86 assembly (clang, -O0):
<H5Aopen_by_name>:
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    %r8,-0x28(%rbp)
mov    $0xa,%edi
call   1040 <__coverity_alloc__@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xeab(%rip),%rsi
call   1030 <__coverity_mark_as_afm_allocated__@plt>
mov    -0x30(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<H5Aopen_by_name>:
push   %rbx
mov    $0xa,%edi
call   1040 <__coverity_alloc__@plt>
mov    %rax,%rbx
lea    0xecb(%rip),%rsi
mov    %rax,%rdi
call   1030 <__coverity_mark_as_afm_allocated__@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"H5Aclose\00"
define i8* @H5Aopen_by_name(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3, i8* nocapture readnone %4) {
%6 = tail call i8* @__coverity_alloc__(i32 10)
%7 = tail call i32 @__coverity_mark_as_afm_allocated__(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
ret i8* %6
}
/* Variables and functions */
scalar_t__ countChr(char *, char);
int isVowel(char ch) {
  char *vovel = "aeiouAEIOU";
  if (countChr(vovel, ch) > 0)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<isVowel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
lea    0xedb(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <countChr@plt>
cmp    $0x0,%rax
jle    114c <isVowel+0x3c>
movl   $0x1,-0x4(%rbp)
jmp    1153 <isVowel+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [11 x i8] c"aeiouAEIOU\00"
define i32 @isVowel(i8 signext %0) {
%2 = tail call i64 @countChr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext %0)
%3 = icmp sgt i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
double RHfromMR(double MRs, double MR) {
  double RH = 100 * MR / MRs;
  return RH;
}


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

x86 assembly (clang, -O2):
<RHfromMR>:
mulsd  0xef8(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @RHfromMR(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %4
%7 = fmul double 1.000000e+02, %6
%8 = load double, double* %3
%9 = fdiv double %7, %8
store double %9, double* %5
%10 = load double, double* %5
ret double %10
}

LLVM IR (-O2):
define double @RHfromMR(double %0, double %1) {
%3 = fmul double %1, 1.000000e+02
%4 = fdiv double %3, %0
ret double %4
}
/* Type definitions */
struct flashrom_flashctx {
  int dummy;
};

/* Variables and functions */
int spi_disable_blockprotect_generic(struct flashrom_flashctx *, int, int, int,
                                     int);
int spi_disable_blockprotect_at25f512b(struct flashrom_flashctx *flash) {
  return spi_disable_blockprotect_generic(flash, 0x04, 1 << 7, 1 << 4, 0xFF);
}


x86 assembly (clang, -O0):
<spi_disable_blockprotect_at25f512b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x80,%edx
mov    $0x10,%ecx
mov    $0xff,%r8d
call   1030 <spi_disable_blockprotect_generic@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spi_disable_blockprotect_at25f512b>:
mov    $0x4,%esi
mov    $0x80,%edx
mov    $0x10,%ecx
mov    $0xff,%r8d
jmp    1030 <spi_disable_blockprotect_generic@plt>

LLVM IR (-O0):
%struct.flashrom_flashctx = type { i32 }
define i32 @spi_disable_blockprotect_at25f512b(%struct.flashrom_flashctx* %0) {
%2 = alloca %struct.flashrom_flashctx*
store %struct.flashrom_flashctx* %0, %struct.flashrom_flashctx** %2
%3 = load %struct.flashrom_flashctx*, %struct.flashrom_flashctx** %2
%4 = call i32 @spi_disable_blockprotect_generic(%struct.flashrom_flashctx* %3, i32 4, i32 128, i32 16, i32 255)
ret i32 %4
}

LLVM IR (-O2):
%struct.flashrom_flashctx = type { i32 }
define i32 @spi_disable_blockprotect_at25f512b(%struct.flashrom_flashctx* %0) {
%2 = tail call i32 @spi_disable_blockprotect_generic(%struct.flashrom_flashctx* %0, i32 4, i32 128, i32 16, i32 255)
ret i32 %2
}
int alarm(s)
unsigned s;
{ return (0); }


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

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

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

LLVM IR (-O2):
define i32 @alarm(i32 %0) {
ret i32 0
}
int fun_coverage_if_eq(int x) {
  if (x == 5) {
    return 8;
  } else {
    return 18;
  }
}


x86 assembly (clang, -O0):
<fun_coverage_if_eq>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jne    111d <fun_coverage_if_eq+0x1d>
movl   $0x8,-0x4(%rbp)
jmp    1124 <fun_coverage_if_eq+0x24>
movl   $0x12,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_coverage_if_eq>:
cmp    $0x5,%edi
mov    $0x8,%ecx
mov    $0x12,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @fun_coverage_if_eq(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 8, i32* %2
br label %8
7: ; preds = %1
store i32 18, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @fun_coverage_if_eq(i32 %0) {
%2 = icmp eq i32 %0, 5
%3 = select i1 %2, i32 8, i32 18
ret i32 %3
}
void m2() {}


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

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

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

LLVM IR (-O2):
define void @m2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void usage(const char *x) {
  fprintf(stderr, "Usage: %s [-v] [-W<word format>] -x|-t <tape>,\n", x);
  fprintf(stderr, "or [-N<name>] -c <tape> <files...>\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
lea    0xed9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeec(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [48 x i8] c"Usage: %s [-v] [-W<word format>] -x|-t <tape>,\0A\00"
@.str.1 = [36 x i8] c"or [-N<name>] -c <tape> <files...>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [48 x i8] c"Usage: %s [-v] [-W<word format>] -x|-t <tape>,\0A\00"
@.str.1 = [36 x i8] c"or [-N<name>] -c <tape> <files...>\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
}
void libx264_init() {}


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

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

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

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

/* Variables and functions */
struct bstree_node *get_right(struct bstree_node *);
struct bstree_node *get_last(struct bstree_node *node) {
  struct bstree_node *right;
  while ((right = get_right(node)))
    node = right;
  return node;
}


x86 assembly (clang, -O0):
<get_last>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <get_right@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1140 <get_last+0x30>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    111c <get_last+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_last>:
push   %rbx
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rax,%rbx
mov    %rax,%rdi
call   1030 <get_right@plt>
test   %rax,%rax
jne    1120 <get_last+0x10>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
%struct.bstree_node = type { i32 }
define %struct.bstree_node* @get_last(%struct.bstree_node* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi %struct.bstree_node* [ %0, %1 ], [ %4, %2 ]
%4 = tail call %struct.bstree_node* @get_right(%struct.bstree_node* %3)
%5 = icmp eq %struct.bstree_node* %4, null
br i1 %5, label %6, label %2
6: ; preds = %2
ret %struct.bstree_node* %3
}
/* Variables and functions */
int f140(int *);
int f141(int *p) { return f140(p); }


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

x86 assembly (clang, -O2):
<f141>:
jmp    1030 <f140@plt>

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

LLVM IR (-O2):
define i32 @f141(i32* %0) {
%2 = tail call i32 @f140(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ silc_core_deinit();
void silc_deinit(void) { silc_core_deinit(); }


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

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

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

LLVM IR (-O2):
define void @silc_deinit() {
%1 = tail call i32 (...) @silc_core_deinit()
ret void
}
void swap(int a, int b) {
  a ^= b;
  b ^= a;
  a ^= b;
}


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

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

LLVM IR (-O0):
define void @swap(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i32, i32* %3
%7 = xor i32 %6, %5
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = xor i32 %9, %8
store i32 %10, i32* %4
%11 = load i32, i32* %4
%12 = load i32, i32* %3
%13 = xor i32 %12, %11
store i32 %13, i32* %3
ret void
}

LLVM IR (-O2):
define void @swap(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
int *new_ip();
int *f(void) {
  int *x = new_ip();
  int *y;
  if (3 > 4) {
    y = x;
  } else {
    free(x);
    y = new_ip();
  }
  return y;
}


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

x86 assembly (clang, -O2):
<f>:
push   %rax
xor    %eax,%eax
call   1040 <new_ip@plt>
mov    %rax,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <new_ip@plt>

LLVM IR (-O0):
define i32* @f() {
%1 = alloca i32*
%2 = alloca i32*
%3 = call i32* (...) @new_ip()
store i32* %3, i32** %1
%4 = load i32*, i32** %1
%5 = call i32 @free(i32* %4)
%6 = call i32* (...) @new_ip()
store i32* %6, i32** %2
%7 = load i32*, i32** %2
ret i32* %7
}

LLVM IR (-O2):
define i32* @f() {
%1 = tail call i32* (...) @new_ip()
%2 = tail call i32 @free(i32* %1)
%3 = tail call i32* (...) @new_ip()
ret i32* %3
}
void gtk_clipboard_set_text() {}


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

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

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

LLVM IR (-O2):
define void @gtk_clipboard_set_text() {
ret void
}
/* Variables and functions */
int byte(int);
unsigned word(int a) { return byte(a) + (byte(a + 1) << 8); }


x86 assembly (clang, -O0):
<word>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <byte@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1,%edi
call   1030 <byte@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
shl    $0x8,%ecx
add    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<word>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
call   1030 <byte@plt>
mov    %eax,%ebp
add    $0x1,%ebx
mov    %ebx,%edi
call   1030 <byte@plt>
shl    $0x8,%eax
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @word(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @byte(i32 %3)
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 1
%7 = call i32 @byte(i32 %6)
%8 = shl i32 %7, 8
%9 = add nsw i32 %4, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @word(i32 %0) {
%2 = tail call i32 @byte(i32 %0)
%3 = add nsw i32 %0, 1
%4 = tail call i32 @byte(i32 %3)
%5 = shl i32 %4, 8
%6 = add nsw i32 %5, %2
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_sra_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test_mm_sra_pi16(__m64 a, __m64 b) { return _mm_sra_pi16(a, b); }


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

x86 assembly (clang, -O2):
<test_mm_sra_pi16>:
jmp    1030 <_mm_sra_pi16@plt>

LLVM IR (-O0):
define i32 @test_mm_sra_pi16(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 @_mm_sra_pi16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_sra_pi16(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_sra_pi16(i32 %0, i32 %1)
ret i32 %3
}
unsigned int f59(unsigned int x, int y __attribute__((unused))) {
  return (x << ((-1) & (8 * sizeof(unsigned int) - 1))) ^ (x >> 1);
}


x86 assembly (clang, -O0):
<f59>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x1f,%eax
mov    -0x4(%rbp),%ecx
shr    $0x1,%ecx
xor    %ecx,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @f59(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 = shl i32 %5, 31
%7 = load i32, i32* %3
%8 = lshr i32 %7, 1
%9 = xor i32 %6, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @f59(i32 %0, i32 %1) {
%3 = tail call i32 @llvm.fshl.i32(i32 %0, i32 %0, i32 31)
ret i32 %3
}
/* Variables and functions */
char getchar();
void limpiarBuffer() {
  char ch = getchar();
  while ((ch != 10) && (ch != -1)) {
    ch = getchar();
  }
}


x86 assembly (clang, -O0):
<limpiarBuffer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     1141 <limpiarBuffer+0x31>
movsbl -0x1(%rbp),%eax
cmp    $0xffffffff,%eax
setne  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
test   $0x1,%al
jne    1151 <limpiarBuffer+0x41>
jmp    1160 <limpiarBuffer+0x50>
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %al,-0x1(%rbp)
jmp    1122 <limpiarBuffer+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<limpiarBuffer>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0xa,%al
je     112f <limpiarBuffer+0x1f>
cmp    $0xff,%al
jne    1120 <limpiarBuffer+0x10>
pop    %rax
ret

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

LLVM IR (-O2):
define void @limpiarBuffer() {
br label %1
1: ; preds = %1, %0
%2 = tail call signext i8 (...) @getchar()
switch i8 %2, label %1 [
i8 -1, label %3
i8 10, label %3
]
3: ; preds = %1, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalpha(int);
void t_isalpha_0xe4() {
  Assert_real((isalpha(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_isalpha.c",
              1145, ("isalpha should be 0 for 0xe4"));
}


x86 assembly (clang, -O0):
<t_isalpha_0xe4>:
push   %rbp
mov    %rsp,%rbp
mov    $0xe4,%edi
call   1030 <isalpha@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_isalpha_0xe4>:
push   %rax
mov    $0xe4,%edi
call   1030 <isalpha@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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xe4\00"
define void @t_isalpha_0xe4() {
%1 = call i64 @isalpha(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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xe4\00"
define void @t_isalpha_0xe4() {
%1 = tail call i64 @isalpha(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
}
void inc_zcache_pers_pageframes(void) {}


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

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

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

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


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

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

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

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