xunge/DecIR huggingface dataset:
void rop3_98_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = T | *D;
  stk2 = S & stk3;
  stk1 = *D ^ stk2;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_98_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
or     %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xd(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_98_0_0>:
mov    (%rdi),%al
or     %al,%dl
and    %sil,%dl
xor    %al,%dl
mov    %dl,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_98_0_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8, i8* %6
%11 = zext i8 %10 to i32
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = or i32 %11, %14
%16 = trunc i32 %15 to i8
store i8 %16, i8* %9
%17 = load i8, i8* %5
%18 = zext i8 %17 to i32
%19 = load i8, i8* %9
%20 = zext i8 %19 to i32
%21 = and i32 %18, %20
%22 = trunc i32 %21 to i8
store i8 %22, i8* %8
%23 = load i8*, i8** %4
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = load i8, i8* %8
%27 = zext i8 %26 to i32
%28 = xor i32 %25, %27
%29 = trunc i32 %28 to i8
store i8 %29, i8* %7
%30 = load i8, i8* %7
%31 = load i8*, i8** %4
store i8 %30, i8* %31
ret void
}

LLVM IR (-O2):
define void @rop3_98_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %4, %2
%6 = and i8 %5, %1
%7 = xor i8 %6, %4
store i8 %7, i8* %0
ret void
}
int l1(int a, int b) { return a << b; }


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

x86 assembly (clang, -O2):
<l1>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @l1(i32 %0, i32 %1) {
%3 = shl i32 %0, %1
ret i32 %3
}
void delay_ms(int j) {
  int k_max = clk_get_cpu_rate() / 1000 / 92;
  int k = k_max;
  for (; j > 0; j--) {
    for (k = k_max; k > 0; k--) {
      __asm__("nop");
    }
  }
  return;
}


x86 assembly (clang, -O0):
<delay_ms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <clk_get_cpu_rate@plt>
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    $0x5c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1177 <delay_ms+0x67>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1164 <delay_ms+0x54>
nop
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    114b <delay_ms+0x3b>
jmp    1169 <delay_ms+0x59>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    113b <delay_ms+0x2b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<delay_ms>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <clk_get_cpu_rate@plt>
test   %ebx,%ebx
jle    116b <delay_ms+0x5b>
movslq %eax,%rcx
imul   $0xffffffffb65c6d59,%rcx,%rdx
shr    $0x20,%rdx
add    %edx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x10,%ecx
add    %edx,%ecx
add    $0x1,%ecx
jmp    114a <delay_ms+0x3a>
nopl   (%rax)
lea    -0x1(%rbx),%edx
cmp    $0x1,%ebx
mov    %edx,%ebx
jle    116b <delay_ms+0x5b>
cmp    $0x16760,%eax
jl     1140 <delay_ms+0x30>
mov    %ecx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
nop
add    $0xffffffff,%edx
cmp    $0x1,%edx
jg     1160 <delay_ms+0x50>
jmp    1140 <delay_ms+0x30>
pop    %rbx
ret

LLVM IR (-O0):
define void @delay_ms(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
%5 = call i32 (...) @clk_get_cpu_rate()
%6 = sdiv i32 %5, 1000
%7 = sdiv i32 %6, 92
store i32 %7, i32* %3
%8 = load i32, i32* %3
store i32 %8, i32* %4
br label %9
9: ; preds = %22, %1
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load i32, i32* %3
store i32 %13, i32* %4
br label %14
14: ; preds = %18, %12
%15 = load i32, i32* %4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %14
br label %18
18: ; preds = %17
%19 = load i32, i32* %4
%20 = add nsw i32 %19, -1
store i32 %20, i32* %4
br label %14
21: ; preds = %14
br label %22
22: ; preds = %21
%23 = load i32, i32* %2
%24 = add nsw i32 %23, -1
store i32 %24, i32* %2
br label %9
25: ; preds = %9
ret void
}

LLVM IR (-O2):
define void @delay_ms(i32 %0) {
%2 = tail call i32 (...) @clk_get_cpu_rate()
%3 = sdiv i32 %2, 92000
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %16
5: ; preds = %1
%6 = icmp sgt i32 %2, 91999
br label %7
7: ; preds = %5, %13
%8 = phi i32 [ %0, %5 ], [ %14, %13 ]
br i1 %6, label %9, label %13
9: ; preds = %7, %9
%10 = phi i32 [ %11, %9 ], [ %3, %7 ]
tail call void asm sideeffect "nop", "~{dirflag},~{fpsr},~{flags}"()
%11 = add nsw i32 %10, -1
%12 = icmp sgt i32 %10, 1
br i1 %12, label %9, label %13
13: ; preds = %9, %7
%14 = add nsw i32 %8, -1
%15 = icmp sgt i32 %8, 1
br i1 %15, label %7, label %16
16: ; preds = %13, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ putch(int /*<<< orphan*/);
void putstr(char *s) {
  while (*s != '\0')
    putch(*s++);
}


x86 assembly (clang, -O0):
<putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1148 <putstr+0x38>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <putch@plt>
jmp    111c <putstr+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putstr>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <putstr+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <putch@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <putstr+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @putstr(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = tail call i32 @putch(i32 %7)
%10 = load i8, i8* %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ height;
};
typedef TYPE_1__ XRectangle;

/* Variables and functions */
unsigned short get_XRectangle_height(void *_p) {
  return (unsigned short)((XRectangle *)_p)->height;
}


x86 assembly (clang, -O0):
<get_XRectangle_height>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_XRectangle_height>:
movzwl (%rdi),%eax
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define zeroext i16 @get_XRectangle_height(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i16
ret i16 %7
}

LLVM IR (-O2):
define zeroext i16 @get_XRectangle_height(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i16
ret i16 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
scalar_t__ memcmp(int /*<<< orphan*/ const *, int /*<<< orphan*/ const *, int);
int id_equal(const uint8_t id1[], const uint8_t id2[]) {
  return (memcmp(id1, id2, 20) == 0);
}


x86 assembly (clang, -O0):
<id_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x14,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<id_equal>:
push   %rax
mov    $0x14,%edx
call   1030 <memcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @id_equal(i32* %0, i32* %1) {
%3 = tail call i64 @memcmp(i32* %0, i32* %1, i32 20)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
struct cdaAli {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ cdaCoalesceAll(struct cdaAli *, int /*<<< orphan*/);
void cdaCoalesceFast(struct cdaAli *ca) { cdaCoalesceAll(ca, 0); }


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

x86 assembly (clang, -O2):
<cdaCoalesceFast>:
xor    %esi,%esi
jmp    1030 <cdaCoalesceAll@plt>

LLVM IR (-O0):
%struct.cdaAli = type { i32 }
define void @cdaCoalesceFast(%struct.cdaAli* %0) {
%2 = alloca %struct.cdaAli*
store %struct.cdaAli* %0, %struct.cdaAli** %2
%3 = load %struct.cdaAli*, %struct.cdaAli** %2
%4 = call i32 @cdaCoalesceAll(%struct.cdaAli* %3, i32 0)
ret void
}

LLVM IR (-O2):
%struct.cdaAli = type { i32 }
define void @cdaCoalesceFast(%struct.cdaAli* %0) {
%2 = tail call i32 @cdaCoalesceAll(%struct.cdaAli* %0, i32 0)
ret void
}
/* Variables and functions */
void *malloc(int);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, int);
void *zalloc(int sz) {
  void *tmp = malloc(sz);
  if (tmp)
    memset(tmp, 0, sz);
  return tmp;
}


x86 assembly (clang, -O0):
<zalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1150 <zalloc+0x30>
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zalloc>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     113e <zalloc+0x1e>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i8* @zalloc(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @memset(i8* %2, i32 0, i32 %0)
br label %6
6: ; preds = %4, %1
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void trace(void *data) { printf("%s\n", (char *)data); }


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

x86 assembly (clang, -O2):
<trace>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @trace(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @trace(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
float quartic_io(float, float, float);
float quartic_f_io(float step, float max_steps, float max_val) {
  return quartic_io(step, max_steps, max_val);
}


x86 assembly (clang, -O0):
<quartic_f_io>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1030 <quartic_io@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quartic_f_io>:
jmp    1030 <quartic_io@plt>

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

LLVM IR (-O2):
define float @quartic_f_io(float %0, float %1, float %2) {
%4 = tail call float @quartic_io(float %0, float %1, float %2)
ret float %4
}
/* Type definitions */
struct connection {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ SendX25Exchange(char *);
void GotExchangeList(struct connection *c, char *exch, char *d) {
  SendX25Exchange(exch);
}


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

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

LLVM IR (-O0):
%struct.connection = type { i32 }
define void @GotExchangeList(%struct.connection* %0, i8* %1, i8* %2) {
%4 = alloca %struct.connection*
%5 = alloca i8*
%6 = alloca i8*
store %struct.connection* %0, %struct.connection** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %5
%8 = call i32 @SendX25Exchange(i8* %7)
ret void
}

LLVM IR (-O2):
%struct.connection = type { i32 }
define void @GotExchangeList(%struct.connection* nocapture readnone %0, i8* %1, i8* nocapture readnone %2) {
%4 = tail call i32 @SendX25Exchange(i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, ...);
int M565_f(char *s) {
  debug("M565_f(const char *s) is not yet implemented!\n");
  debug("%s\n", s);
  return 1;
}


x86 assembly (clang, -O0):
<M565_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    -0x8(%rbp),%rsi
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<M565_f>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1030 <debug@plt>
lea    0xf06(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <debug@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [47 x i8] c"M565_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @M565_f(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 1
}

LLVM IR (-O2):
@.str = [47 x i8] c"M565_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @M565_f(i8* %0) {
%2 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ op_write1(int);
void op_enc_push_bc(void) { op_write1(0xc5); }


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

x86 assembly (clang, -O2):
<op_enc_push_bc>:
mov    $0xc5,%edi
jmp    1030 <op_write1@plt>

LLVM IR (-O0):
define void @op_enc_push_bc() {
%1 = call i32 @op_write1(i32 197)
ret void
}

LLVM IR (-O2):
define void @op_enc_push_bc() {
%1 = tail call i32 @op_write1(i32 197)
ret void
}
void gtk_text_buffer_get_iter_at_offset() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_buffer_get_iter_at_offset() {
ret void
}
void glUniform3ui(void) { return; }


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_text_buffer_remove_tag_by_name() {
ret void
}
void handle_XFSZ(int sig) {}


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

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

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

LLVM IR (-O2):
define void @handle_XFSZ(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit_error(int, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
void exit_errno(int line) { exit_error(line, strerror(errno)); }


x86 assembly (clang, -O0):
<exit_errno>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1030 <exit_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exit_errno>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1030 <exit_error@plt>

LLVM IR (-O0):
@errno = global i32 0
define void @exit_errno(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @errno
%5 = call i32 @strerror(i32 %4)
%6 = call i32 @exit_error(i32 %3, i32 %5)
ret void
}

LLVM IR (-O2):
@errno = global i32 0
define void @exit_errno(i32 %0) {
%2 = load i32, i32* @errno
%3 = tail call i32 @strerror(i32 %2)
%4 = tail call i32 @exit_error(i32 %0, i32 %3)
ret void
}
int between(char *x) {
  extern char start[];
  extern char end[];
  return x >= start && x < end;
}


x86 assembly (clang, -O0):
<between>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    0x2ecf(%rip),%rcx
cmp    %rcx,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jb     112f <between+0x2f>
mov    0x2eb3(%rip),%rax
cmp    %rax,-0x8(%rbp)
setb   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<between>:
cmp    0x2ed9(%rip),%rdi
setae  %al
cmp    0x2ec7(%rip),%rdi
setb   %cl
and    %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
@start = external global [0 x i8]
@end = external global [0 x i8]
define i32 @between(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp uge i8* %3, getelementptr inbounds ([0 x i8], [0 x i8]* @start, i64 0, i64 0)
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = icmp ult i8* %6, getelementptr inbounds ([0 x i8], [0 x i8]* @end, i64 0, i64 0)
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
@start = external global [0 x i8]
@end = external global [0 x i8]
define i32 @between(i8* readnone %0) {
%2 = icmp uge i8* %0, getelementptr inbounds ([0 x i8], [0 x i8]* @start, i64 0, i64 0)
%3 = icmp ult i8* %0, getelementptr inbounds ([0 x i8], [0 x i8]* @end, i64 0, i64 0)
%4 = and i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
void _Z13_Jv_DisableGCv(void) {}


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

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

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

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

/* Variables and functions */
int l_unit_raw_div(struct table_col *, struct table_entry *, int, char *);
int l_unit_m(struct table_col *col, struct table_entry *e) {
  return l_unit_raw_div(col, e, 1000000 * 60, "%.0lf");
}


x86 assembly (clang, -O0):
<l_unit_m>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x3938700,%edx
lea    0xecc(%rip),%rcx
call   1030 <l_unit_raw_div@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<l_unit_m>:
lea    0xee9(%rip),%rcx
mov    $0x3938700,%edx
jmp    1030 <l_unit_raw_div@plt>

LLVM IR (-O0):
%struct.table_col = type { i32 }
%struct.table_entry = type { i32 }
@.str = [6 x i8] c"%.0lf\00"
define i32 @l_unit_m(%struct.table_col* %0, %struct.table_entry* %1) {
%3 = alloca %struct.table_col*
%4 = alloca %struct.table_entry*
store %struct.table_col* %0, %struct.table_col** %3
store %struct.table_entry* %1, %struct.table_entry** %4
%5 = load %struct.table_col*, %struct.table_col** %3
%6 = load %struct.table_entry*, %struct.table_entry** %4
%7 = call i32 @l_unit_raw_div(%struct.table_col* %5, %struct.table_entry* %6, i32 60000000, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 %7
}

LLVM IR (-O2):
%struct.table_col = type { i32 }
%struct.table_entry = type { i32 }
@.str = [6 x i8] c"%.0lf\00"
define i32 @l_unit_m(%struct.table_col* %0, %struct.table_entry* %1) {
%3 = tail call i32 @l_unit_raw_div(%struct.table_col* %0, %struct.table_entry* %1, i32 60000000, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 %3
}
char int_to_leds_m$leds$init(void) {
  char result;
  result = leds$leds$init();
  return result;
}


x86 assembly (clang, -O0):
<int_to_leds_m$leds$init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <leds$leds$init@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<int_to_leds_m$leds$init>:
push   %rax
xor    %eax,%eax
call   1030 <leds$leds$init@plt>
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @"int_to_leds_m$leds$init"() {
%1 = alloca i8
%2 = call i32 (...) @"leds$leds$init"()
%3 = trunc i32 %2 to i8
store i8 %3, i8* %1
%4 = load i8, i8* %1
ret i8 %4
}

LLVM IR (-O2):
define signext i8 @"int_to_leds_m$leds$init"() {
%1 = tail call i32 (...) @"leds$leds$init"()
%2 = trunc i32 %1 to i8
ret i8 %2
}
/* Variables and functions */
int /*<<< orphan*/ bar(char *);
void test1(char a, char b, char c, char d, char e, char f, char g, char h) {
  char *p = &a;
  p++;
  bar(p);
}


x86 assembly (clang, -O0):
<test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %r8d,-0x20(%rbp)
mov    %ecx,%eax
mov    -0x20(%rbp),%ecx
mov    %eax,-0x1c(%rbp)
mov    %edx,%eax
mov    -0x1c(%rbp),%edx
mov    %eax,-0x18(%rbp)
mov    %esi,%eax
mov    -0x18(%rbp),%esi
mov    %eax,-0x14(%rbp)
mov    %edi,%r8d
mov    -0x14(%rbp),%edi
mov    %r9b,%al
mov    0x18(%rbp),%r9b
mov    0x10(%rbp),%r9b
mov    %r8b,-0x1(%rbp)
mov    %dil,-0x2(%rbp)
mov    %sil,-0x3(%rbp)
mov    %dl,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
lea    -0x1(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <bar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test1>:
push   %rax
mov    %dil,0x7(%rsp)
lea    0x8(%rsp),%rdi
call   1030 <bar@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @test1(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7) {
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i8
%17 = alloca i8*
store i8 %0, i8* %9
store i8 %1, i8* %10
store i8 %2, i8* %11
store i8 %3, i8* %12
store i8 %4, i8* %13
store i8 %5, i8* %14
store i8 %6, i8* %15
store i8 %7, i8* %16
store i8* %9, i8** %17
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %17
%20 = load i8*, i8** %17
%21 = call i32 @bar(i8* %20)
ret void
}

LLVM IR (-O2):
define void @test1(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7) {
%9 = alloca i8
store i8 %0, i8* %9
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = call i32 @bar(i8* %10)
ret void
}
void kol_btn_define(unsigned x, unsigned y, unsigned w, unsigned h, unsigned d,
                    unsigned c) {
  asm volatile("int $0x40" ::"a"(8), "b"(x * 65536 + w), "c"(y * 65536 + h),
               "d"(d), "S"(c));
}


x86 assembly (clang, -O0):
<kol_btn_define>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0xc(%rbp),%ebx
shl    $0x10,%ebx
add    -0x14(%rbp),%ebx
mov    -0x10(%rbp),%ecx
shl    $0x10,%ecx
add    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%esi
mov    $0x8,%eax
int    $0x40
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<kol_btn_define>:
push   %rbx
shl    $0x10,%edi
lea    (%rdi,%rdx,1),%ebx
shl    $0x10,%esi
add    %esi,%ecx
mov    $0x8,%eax
mov    %r9d,%esi
mov    %r8d,%edx
int    $0x40
pop    %rbx
ret

LLVM IR (-O0):
define void @kol_btn_define(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %7
%14 = mul i32 %13, 65536
%15 = load i32, i32* %9
%16 = add i32 %14, %15
%17 = load i32, i32* %8
%18 = mul i32 %17, 65536
%19 = load i32, i32* %10
%20 = add i32 %18, %19
%21 = load i32, i32* %11
%22 = load i32, i32* %12
ret void
}

LLVM IR (-O2):
define void @kol_btn_define(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = shl i32 %0, 16
%8 = add i32 %7, %2
%9 = shl i32 %1, 16
%10 = add i32 %9, %3
tail call void asm sideeffect "int $$0x40", "{ax},{bx},{cx},{dx},{si},~{dirflag},~{fpsr},~{flags}"(i32 8, i32 %8, i32 %10, i32 %4, i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ tt_tputs(char const *, int);
void tt_putp(const char *string) { tt_tputs(string, 1); }


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

x86 assembly (clang, -O2):
<tt_putp>:
mov    $0x1,%esi
jmp    1030 <tt_tputs@plt>

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

LLVM IR (-O2):
define void @tt_putp(i8* %0) {
%2 = tail call i32 @tt_tputs(i8* %0, i32 1)
ret void
}
int kaprekar(int n) { return -1; }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ wm(struct generator *);
int /*<<< orphan*/ ws(struct generator *, char const *);
void wms(struct generator *g, const char *s) {
  wm(g);
  ws(g, s);
}


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

x86 assembly (clang, -O2):
<wms>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <wm@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <ws@plt>

LLVM IR (-O0):
%struct.generator = type { i32 }
define void @wms(%struct.generator* %0, i8* %1) {
%3 = alloca %struct.generator*
%4 = alloca i8*
store %struct.generator* %0, %struct.generator** %3
store i8* %1, i8** %4
%5 = load %struct.generator*, %struct.generator** %3
%6 = call i32 @wm(%struct.generator* %5)
%7 = load %struct.generator*, %struct.generator** %3
%8 = load i8*, i8** %4
%9 = call i32 @ws(%struct.generator* %7, i8* %8)
ret void
}

LLVM IR (-O2):
%struct.generator = type { i32 }
define void @wms(%struct.generator* %0, i8* %1) {
%3 = tail call i32 @wm(%struct.generator* %0)
%4 = tail call i32 @ws(%struct.generator* %0, i8* %1)
ret void
}
void RTLockValidatorClassCreate(void) {}


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

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

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

LLVM IR (-O2):
define void @RTLockValidatorClassCreate() {
ret void
}
const char *yaml_get_version_string(void) { return "0.1.3"; }


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

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

LLVM IR (-O0):
@.str = [6 x i8] c"0.1.3\00"
define i8* @yaml_get_version_string() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [6 x i8] c"0.1.3\00"
define i8* @yaml_get_version_string() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ get_lexval();
int /*<<< orphan*/ parameter_declaration();
int yyselect();
parameter_list() {
  switch (yyselect()) {
  case 31: {
    while (1) {
      switch (yyselect()) {
      case 127: {
        parameter_declaration();
        get_lexval();
      } break;
      default:
        goto yy4;
      }
    }
  yy4:;
    parameter_declaration();
  } break;
  }
}


x86 assembly (clang, -O0):
<parameter_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <yyselect@plt>
sub    $0x1f,%eax
jne    118b <parameter_list+0x5b>
jmp    114d <parameter_list+0x1d>
jmp    1152 <parameter_list+0x22>
xor    %eax,%eax
call   1030 <yyselect@plt>
sub    $0x7f,%eax
jne    117a <parameter_list+0x4a>
jmp    1167 <parameter_list+0x37>
mov    $0x0,%al
call   1050 <parameter_declaration@plt>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    117f <parameter_list+0x4f>
jmp    1184 <parameter_list+0x54>
jmp    1152 <parameter_list+0x22>
mov    $0x0,%al
call   1050 <parameter_declaration@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parameter_list>:
push   %rax
xor    %eax,%eax
call   1030 <yyselect@plt>
cmp    $0x1f,%eax
jne    1163 <parameter_list+0x33>
nopl   (%rax)
xor    %eax,%eax
call   1030 <yyselect@plt>
cmp    $0x7f,%eax
jne    115c <parameter_list+0x2c>
xor    %eax,%eax
call   1050 <parameter_declaration@plt>
xor    %eax,%eax
call   1040 <get_lexval@plt>
jmp    1140 <parameter_list+0x10>
xor    %eax,%eax
call   1050 <parameter_declaration@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @parameter_list() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %13 [
i32 31, label %3
]
3: ; preds = %0
br label %4
4: ; preds = %3, %10
%5 = call i32 (...) @yyselect()
switch i32 %5, label %9 [
i32 127, label %6
]
6: ; preds = %4
%7 = call i32 (...) @parameter_declaration()
%8 = call i32 (...) @get_lexval()
br label %10
9: ; preds = %4
br label %11
10: ; preds = %6
br label %4
11: ; preds = %9
%12 = call i32 (...) @parameter_declaration()
br label %13
13: ; preds = %0, %11
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
define i32 @parameter_list() {
%1 = tail call i32 (...) @yyselect()
%2 = icmp eq i32 %1, 31
br i1 %2, label %3, label %13
3: ; preds = %0
%4 = tail call i32 (...) @yyselect()
%5 = icmp eq i32 %4, 127
br i1 %5, label %6, label %11
6: ; preds = %3, %6
%7 = tail call i32 (...) @parameter_declaration()
%8 = tail call i32 (...) @get_lexval()
%9 = tail call i32 (...) @yyselect()
%10 = icmp eq i32 %9, 127
br i1 %10, label %6, label %11
11: ; preds = %6, %3
%12 = tail call i32 (...) @parameter_declaration()
br label %13
13: ; preds = %0, %11
ret i32 undef
}
void vec2_copy(float *dst, float *a) {
  dst[0] = a[0];
  dst[1] = a[1];
}


x86 assembly (clang, -O0):
<vec2_copy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec2_copy>:
movss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
movss  %xmm0,0x4(%rdi)
ret

LLVM IR (-O0):
define void @vec2_copy(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %4
%6 = getelementptr inbounds float, float* %5, i64 0
%7 = load float, float* %6
%8 = load float*, float** %3
%9 = getelementptr inbounds float, float* %8, i64 0
store float %7, float* %9
%10 = load float*, float** %4
%11 = getelementptr inbounds float, float* %10, i64 1
%12 = load float, float* %11
%13 = load float*, float** %3
%14 = getelementptr inbounds float, float* %13, i64 1
store float %12, float* %14
ret void
}

LLVM IR (-O2):
define void @vec2_copy(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
store float %3, float* %0
%4 = getelementptr inbounds float, float* %1, i64 1
%5 = load float, float* %4
%6 = getelementptr inbounds float, float* %0, i64 1
store float %5, float* %6
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0xae() {
  Assert_real((isxdigit(174) == 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_isxdigit.c",
              875, ("isxdigit should be 0 for 0xae"));
}


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

x86 assembly (clang, -O2):
<t_isxdigit_0xae>:
push   %rax
mov    $0xae,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x36b,%edx
pop    %rax
jmp    1040 <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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xae\00"
define void @t_isxdigit_0xae() {
%1 = call i64 @isxdigit(i32 174)
%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 875, 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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xae\00"
define void @t_isxdigit_0xae() {
%1 = tail call i64 @isxdigit(i32 174)
%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 875, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t lowerNibble(uint8_t a) {
  static uint8_t b = 0b00001111;
  return a & b;
}


x86 assembly (clang, -O0):
<lowerNibble>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    0x2f10(%rip),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@lowerNibble.b = internal global i32 15
define i32 @lowerNibble(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @lowerNibble.b
%5 = and i32 %3, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @lowerNibble(i32 %0) {
%2 = and i32 %0, 15
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ doMain();
int /*<<< orphan*/ header();
int /*<<< orphan*/ match(char);
int /*<<< orphan*/ matchString(char *);
int /*<<< orphan*/ topDecls();
void prog() {
  matchString("PROGRAM");
  header();
  topDecls();
  doMain();
  match('.');
}


x86 assembly (clang, -O0):
<prog>:
push   %rbp
mov    %rsp,%rbp
lea    0xea5(%rip),%rdi
call   1070 <matchString@plt>
mov    $0x0,%al
call   1030 <header@plt>
mov    $0x0,%al
call   1040 <topDecls@plt>
mov    $0x0,%al
call   1060 <doMain@plt>
mov    $0x2e,%edi
call   1050 <match@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prog>:
push   %rax
lea    0xea8(%rip),%rdi
call   1070 <matchString@plt>
xor    %eax,%eax
call   1030 <header@plt>
xor    %eax,%eax
call   1040 <topDecls@plt>
xor    %eax,%eax
call   1060 <doMain@plt>
mov    $0x2e,%edi
pop    %rax
jmp    1050 <match@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"PROGRAM\00"
define void @prog() {
%1 = call i32 @matchString(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @header()
%3 = call i32 (...) @topDecls()
%4 = call i32 (...) @doMain()
%5 = call i32 @match(i8 signext 46)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"PROGRAM\00"
define void @prog() {
%1 = tail call i32 @matchString(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @header()
%3 = tail call i32 (...) @topDecls()
%4 = tail call i32 (...) @doMain()
%5 = tail call i32 @match(i8 signext 46)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int file_exists(const char *fname) {
  FILE *fp = fopen(fname, "r");
  if (fp) {
    fclose(fp);
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<file_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1160 <file_exists+0x40>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x4(%rbp)
jmp    1167 <file_exists+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_exists>:
push   %rax
lea    0xed8(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     1141 <file_exists+0x21>
mov    %rax,%rdi
call   1030 <fclose@plt>
mov    $0x1,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
define i32 @file_exists(i8* nocapture %0) {
%2 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fclose(i32* %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %7
}
/* Variables and functions */
double cs_time();
double mg_time() { return cs_time(); }


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

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

LLVM IR (-O0):
define double @mg_time() {
%1 = call double (...) @cs_time()
ret double %1
}

LLVM IR (-O2):
define double @mg_time() {
%1 = tail call double (...) @cs_time()
ret double %1
}
/* Type definitions */
typedef int off_t;

/* Variables and functions */
off_t off_t_2_UCHARs(off_t val, unsigned char *p) {
  int i;
  for (i = 0; i < 0x04; i++) {
    p[i] = (unsigned char)(val >> (i * 8) & 0xff);
  }
  return val;
}


x86 assembly (clang, -O0):
<off_t_2_UCHARs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1147 <off_t_2_UCHARs+0x47>
mov    -0x4(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x3,%ecx
sar    %cl,%eax
and    $0xff,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1112 <off_t_2_UCHARs+0x12>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @off_t_2_UCHARs(i32 returned %0, i8* nocapture writeonly %1) {
%3 = trunc i32 %0 to i8
store i8 %3, i8* %1
%4 = lshr i32 %0, 8
%5 = trunc i32 %4 to i8
%6 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %5, i8* %6
%7 = lshr i32 %0, 16
%8 = trunc i32 %7 to i8
%9 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %8, i8* %9
%10 = lshr i32 %0, 24
%11 = trunc i32 %10 to i8
%12 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %11, i8* %12
ret i32 %0
}
/* Variables and functions */
unsigned long long __builtin_HEXAGON_S6_vsplatrbp(unsigned int);
unsigned long long builtin_needs_v62(unsigned Rs) {
  return __builtin_HEXAGON_S6_vsplatrbp(Rs);
}


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

x86 assembly (clang, -O2):
<builtin_needs_v62>:
jmp    1030 <__builtin_HEXAGON_S6_vsplatrbp@plt>

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

LLVM IR (-O2):
define i64 @builtin_needs_v62(i32 %0) {
%2 = tail call i64 @__builtin_HEXAGON_S6_vsplatrbp(i32 %0)
ret i64 %2
}
void s5pc100_default_sdhci1(void) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @s5pc100_default_sdhci1() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Car_Get(int);
int /*<<< orphan*/ Car_GetAxles(int /*<<< orphan*/, int);
int Car_GetAxlesType(int /*<<< orphan*/);
int Car_GetCarAxlesType(int carnum, int i) {
  return Car_GetAxlesType(Car_GetAxles(Car_Get(carnum), i));
}


x86 assembly (clang, -O0):
<Car_GetCarAxlesType>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <Car_Get@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%esi
call   1040 <Car_GetAxles@plt>
mov    %eax,%edi
call   1050 <Car_GetAxlesType@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Car_GetCarAxlesType>:
push   %rbx
mov    %esi,%ebx
call   1030 <Car_Get@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1040 <Car_GetAxles@plt>
mov    %eax,%edi
pop    %rbx
jmp    1050 <Car_GetAxlesType@plt>

LLVM IR (-O0):
define i32 @Car_GetCarAxlesType(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 @Car_Get(i32 %5)
%7 = load i32, i32* %4
%8 = call i32 @Car_GetAxles(i32 %6, i32 %7)
%9 = call i32 @Car_GetAxlesType(i32 %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @Car_GetCarAxlesType(i32 %0, i32 %1) {
%3 = tail call i32 @Car_Get(i32 %0)
%4 = tail call i32 @Car_GetAxles(i32 %3, i32 %1)
%5 = tail call i32 @Car_GetAxlesType(i32 %4)
ret i32 %5
}
void ff_hevc_put_hevc_bi_w_qpel_hv4_10_sse4() {}


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

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

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

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