xunge/DecIR huggingface dataset:
/* Variables and functions */
double arcsin(double);
double aoffsin(double n, int offset) {
  return arcsin(n) + 2 * 3.14159265358979323846 * offset;
}


x86 assembly (clang, -O0):
<aoffsin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <arcsin@plt>
movaps %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xec6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aoffsin>:
push   %rbx
mov    %edi,%ebx
call   1030 <arcsin@plt>
cvtsi2sd %ebx,%xmm1
mulsd  0xedc(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @aoffsin(double %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
store double %0, double* %3
store i32 %1, i32* %4
%5 = load double, double* %3
%6 = call double @arcsin(double %5)
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to double
%9 = call double @llvm.fmuladd.f64(double 0x401921FB54442D18, double %8, double %6)
ret double %9
}

LLVM IR (-O2):
define double @aoffsin(double %0, i32 %1) {
%3 = tail call double @arcsin(double %0)
%4 = sitofp i32 %1 to double
%5 = tail call double @llvm.fmuladd.f64(double %4, double 0x401921FB54442D18, double %3)
ret double %5
}
int f(int a, int b, int c) {
  int d = a & 0x1;
  if (d == 1)
    return b;
  return c;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    112b <f+0x2b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1131 <f+0x31>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
mov    %esi,%eax
test   $0x1,%dil
cmove  %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @f(i32 %0, i32 %1, i32 %2) {
%4 = and i32 %0, 1
%5 = icmp eq i32 %4, 0
%6 = select i1 %5, i32 %2, i32 %1
ret i32 %6
}
int test() {
  int i = 2;
  { int i = 3; }
  if (i == 2)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
movl   $0x2,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1128 <test+0x28>
movl   $0x0,-0x4(%rbp)
jmp    112f <test+0x2f>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @test() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128Timer0AsyncP__Compare__start();
void Atm128AlarmAsyncP__0__Compare__start(void) {
  HplAtm128Timer0AsyncP__Compare__start();
}


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

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

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

LLVM IR (-O2):
define void @Atm128AlarmAsyncP__0__Compare__start() {
%1 = tail call i32 (...) @HplAtm128Timer0AsyncP__Compare__start()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int SomeAction() {
  printf("some action\n");
  return 1;
}


x86 assembly (clang, -O0):
<SomeAction>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SomeAction>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"some action\0A\00"
define i32 @SomeAction() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@str = [12 x i8] c"some action\00"
define i32 @SomeAction() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ TH_SYN;
void *append_tcp(void *, unsigned short, unsigned short, int /*<<< orphan*/,
                 int /*<<< orphan*/, int /*<<< orphan*/);
void *append_tcp_syn(void *buf, unsigned short srcport, unsigned short dstport,
                     uint32_t isn) {
  return append_tcp(buf, srcport, dstport, TH_SYN, isn, 0);
}


x86 assembly (clang, -O0):
<append_tcp_syn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dx,%ax
mov    %si,%dx
mov    %rdi,-0x8(%rbp)
mov    %dx,-0xa(%rbp)
mov    %ax,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xa(%rbp),%dx
mov    -0xc(%rbp),%ax
mov    0x2ea8(%rip),%rcx
mov    (%rcx),%ecx
mov    -0x10(%rbp),%r8d
xor    %r9d,%r9d
movzwl %dx,%esi
movzwl %ax,%edx
call   1030 <append_tcp@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<append_tcp_syn>:
mov    %ecx,%r8d
mov    0x2ece(%rip),%rax
mov    (%rax),%ecx
xor    %r9d,%r9d
jmp    1030 <append_tcp@plt>

LLVM IR (-O0):
@TH_SYN = global i32 0
define i8* @append_tcp_syn(i8* %0, i16 zeroext %1, i16 zeroext %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i16
%7 = alloca i16
%8 = alloca i32
store i8* %0, i8** %5
store i16 %1, i16* %6
store i16 %2, i16* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i16, i16* %6
%11 = load i16, i16* %7
%12 = load i32, i32* @TH_SYN
%13 = load i32, i32* %8
%14 = call i8* @append_tcp(i8* %9, i16 zeroext %10, i16 zeroext %11, i32 %12, i32 %13, i32 0)
ret i8* %14
}

LLVM IR (-O2):
@TH_SYN = global i32 0
define i8* @append_tcp_syn(i8* %0, i16 zeroext %1, i16 zeroext %2, i32 %3) {
%5 = load i32, i32* @TH_SYN
%6 = tail call i8* @append_tcp(i8* %0, i16 zeroext %1, i16 zeroext %2, i32 %5, i32 %3, i32 0)
ret i8* %6
}
/* Type definitions */
struct clk {
  int dummy;
};

/* Variables and functions */
long clk_round_rate(struct clk *clk, unsigned long rate) { return 0; }


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

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

LLVM IR (-O0):
%struct.clk = type { i32 }
define i64 @clk_round_rate(%struct.clk* %0, i64 %1) {
%3 = alloca %struct.clk*
%4 = alloca i64
store %struct.clk* %0, %struct.clk** %3
store i64 %1, i64* %4
ret i64 0
}

LLVM IR (-O2):
%struct.clk = type { i32 }
define i64 @clk_round_rate(%struct.clk* nocapture readnone %0, i64 %1) {
ret i64 0
}
int test_12(unsigned char x, int y, int z) { return ((x << 3) & -111) == 0; }


x86 assembly (clang, -O0):
<test_12>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x3,%eax
and    $0xffffff91,%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_12>:
xor    %eax,%eax
test   $0xf2,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @test_12(i8 zeroext %0, i32 %1, i32 %2) {
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = shl i32 %8, 3
%10 = and i32 %9, -111
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @test_12(i8 zeroext %0, i32 %1, i32 %2) {
%4 = and i8 %0, -14
%5 = icmp eq i8 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ copy_fd(int, int);
int /*<<< orphan*/ fchdir(int);
int open(char *, int /*<<< orphan*/);
int recv_fd(int);
int /*<<< orphan*/ write(int, char *, int);
int main() {
  char *dirname = ".\0";
  write(6, dirname, 2);
  int dir = recv_fd(6);
  fchdir(dir);
  int flag = open("../../../../../../../home/jail1/flag.txt", O_RDONLY);
  copy_fd(flag, 5);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x6,%edi
mov    $0x2,%edx
call   1030 <write@plt>
mov    $0x6,%edi
call   1040 <recv_fd@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <fchdir@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%esi
lea    0xe61(%rip),%rdi
call   1060 <open@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x5,%esi
call   1070 <copy_fd@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rsi
mov    $0x6,%edi
mov    $0x2,%edx
call   1030 <write@plt>
mov    $0x6,%edi
call   1040 <recv_fd@plt>
mov    %eax,%edi
call   1050 <fchdir@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%esi
lea    0xe7b(%rip),%rdi
call   1060 <open@plt>
mov    %eax,%edi
mov    $0x5,%esi
call   1070 <copy_fd@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c".\00\00"
@.str.1 = [41 x i8] c"../../../../../../../home/jail1/flag.txt\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @write(i32 6, i8* %5, i32 2)
%7 = call i32 @recv_fd(i32 6)
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = call i32 @fchdir(i32 %8)
%10 = load i32, i32* @O_RDONLY
%11 = call i32 @open(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %10)
store i32 %11, i32* %4
%12 = load i32, i32* %4
%13 = call i32 @copy_fd(i32 %12, i32 5)
ret i32 1
}

LLVM IR (-O2):
@.str = [3 x i8] c".\00\00"
@.str.1 = [41 x i8] c"../../../../../../../home/jail1/flag.txt\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = tail call i32 @write(i32 6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%2 = tail call i32 @recv_fd(i32 6)
%3 = tail call i32 @fchdir(i32 %2)
%4 = load i32, i32* @O_RDONLY
%5 = tail call i32 @open(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = tail call i32 @copy_fd(i32 %5, i32 5)
ret i32 1
}
/* Variables and functions */
scalar_t__ strlen(char const *);
int strncmp(char const *, char const *, scalar_t__);
int je_matched_32(const char *ptr, const char *str) {
  int ret = strncmp(ptr, str, strlen(str) - 1);
  return !ret;
}


x86 assembly (clang, -O0):
<je_matched_32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    %rax,%rdx
sub    $0x1,%rdx
call   1030 <strncmp@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<je_matched_32>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
lea    -0x1(%rax),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @je_matched_32(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = sub nsw i64 %9, 1
%11 = call i32 @strncmp(i8* %6, i8* %7, i64 %10)
store i32 %11, i32* %5
%12 = load i32, i32* %5
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
%15 = zext i1 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @je_matched_32(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = add nsw i64 %3, -1
%5 = tail call i32 @strncmp(i8* %0, i8* %1, i64 %4)
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int PAPI_assign_eventset_component(int, int);
void papif_assign_eventset_component_(int *EventSet, int *cidx, int *check) {
  *check = PAPI_assign_eventset_component(*EventSet, *cidx);
}


x86 assembly (clang, -O0):
<papif_assign_eventset_component_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1030 <PAPI_assign_eventset_component@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<papif_assign_eventset_component_>:
push   %rbx
mov    %rdx,%rbx
mov    (%rdi),%edi
mov    (%rsi),%esi
call   1030 <PAPI_assign_eventset_component@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @papif_assign_eventset_component_(i32* nocapture %0, i32* nocapture %1, i32* nocapture writeonly %2) {
%4 = load i32, i32* %0
%5 = load i32, i32* %1
%6 = tail call i32 @PAPI_assign_eventset_component(i32 %4, i32 %5)
store i32 %6, i32* %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clearPID();
void stabilisationSetPIDgains(double inP, double inI, double inD) {
  clearPID();
}


x86 assembly (clang, -O0):
<stabilisationSetPIDgains>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    $0x0,%al
call   1030 <clearPID@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @stabilisationSetPIDgains(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = call i32 (...) @clearPID()
ret void
}

LLVM IR (-O2):
define void @stabilisationSetPIDgains(double %0, double %1, double %2) {
%4 = tail call i32 (...) @clearPID()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ eq(float, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *, float);
void print_number_0(const char *str, float number) {
  if (!eq(number, 0)) {
    printf("%s: %g, ", str, number);
  }
}


x86 assembly (clang, -O0):
<print_number_0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
xor    %edi,%edi
call   1040 <eq@plt>
cmp    $0x0,%eax
jne    115b <print_number_0+0x3b>
mov    -0x8(%rbp),%rsi
movss  -0xc(%rbp),%xmm0
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_number_0>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movss  %xmm0,0xc(%rsp)
xor    %edi,%edi
call   1040 <eq@plt>
test   %eax,%eax
je     113f <print_number_0+0x1f>
add    $0x10,%rsp
pop    %rbx
ret
lea    0xeba(%rip),%rdi
mov    %rbx,%rsi
movss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"%s: %g, \00"
define void @print_number_0(i8* %0, float %1) {
%3 = tail call i32 @eq(float %1, i32 0)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %0, float %1)
br label %7
7: ; preds = %5, %2
ret void
}
void rop3_101_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = ~T;
  stk2 = S | stk3;
  stk1 = *D ^ stk2;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_101_1_1>:
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
xor    $0xffffffff,%eax
mov    %al,-0xd(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_101_1_1>:
mov    %edx,%eax
not    %al
or     %sil,%al
mov    (%rdi),%cl
xor    %cl,%al
or     %sil,%dl
xor    %al,%cl
and    %dl,%cl
xor    %al,%cl
mov    %cl,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_101_1_1(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 = xor i32 %11, -1
%13 = trunc i32 %12 to i8
store i8 %13, i8* %9
%14 = load i8, i8* %5
%15 = zext i8 %14 to i32
%16 = load i8, i8* %9
%17 = zext i8 %16 to i32
%18 = or i32 %15, %17
%19 = trunc i32 %18 to i8
store i8 %19, i8* %8
%20 = load i8*, i8** %4
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = load i8, i8* %8
%24 = zext i8 %23 to i32
%25 = xor i32 %22, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %7
%27 = load i8, i8* %7
%28 = zext i8 %27 to i32
%29 = load i8, i8* %5
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = and i32 %28, %31
%33 = load i8, i8* %6
%34 = zext i8 %33 to i32
%35 = xor i32 %34, -1
%36 = and i32 %32, %35
%37 = load i8*, i8** %4
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = load i8, i8* %5
%41 = zext i8 %40 to i32
%42 = and i32 %39, %41
%43 = or i32 %36, %42
%44 = load i8*, i8** %4
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = load i8, i8* %6
%48 = zext i8 %47 to i32
%49 = and i32 %46, %48
%50 = or i32 %43, %49
%51 = trunc i32 %50 to i8
%52 = load i8*, i8** %4
store i8 %51, i8* %52
ret void
}

LLVM IR (-O2):
define void @rop3_101_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %2, -1
%5 = or i8 %4, %1
%6 = load i8, i8* %0
%7 = xor i8 %6, %5
%8 = or i8 %2, %1
%9 = xor i8 %8, -1
%10 = and i8 %7, %9
%11 = and i8 %6, %8
%12 = or i8 %11, %10
store i8 %12, i8* %0
ret void
}
/* Variables and functions */
scalar_t__ rint(float);
long int lrintf(float x) { return (int)(rint(x)); }


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

x86 assembly (clang, -O2):
<lrintf>:
push   %rax
call   1030 <rint@plt>
cltq
pop    %rcx
ret

LLVM IR (-O0):
define i64 @lrintf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i64 @rint(float %3)
%5 = trunc i64 %4 to i32
%6 = sext i32 %5 to i64
ret i64 %6
}

LLVM IR (-O2):
define i64 @lrintf(float %0) {
%2 = tail call i64 @rint(float %0)
%3 = shl i64 %2, 32
%4 = ashr exact i64 %3, 32
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ rint(double);
int /*<<< orphan*/ rintf(float);
int /*<<< orphan*/ rintl(long double);
void uninitvar_rint(void) {
  float f;
  (void)rintf(f);
  double d;
  (void)rint(d);
  long double ld;
  (void)rintl(ld);
}


x86 assembly (clang, -O0):
<uninitvar_rint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  -0x4(%rbp),%xmm0
call   1050 <rintf@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <rint@plt>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1040 <rintl@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_rint>:
sub    $0x18,%rsp
call   1050 <rintf@plt>
call   1030 <rint@plt>
call   1040 <rintl@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @uninitvar_rint() {
%1 = alloca float
%2 = alloca double
%3 = alloca x86_fp80
%4 = load float, float* %1
%5 = call i32 @rintf(float %4)
%6 = load double, double* %2
%7 = call i32 @rint(double %6)
%8 = load x86_fp80, x86_fp80* %3
%9 = call i32 @rintl(x86_fp80 %8)
ret void
}

LLVM IR (-O2):
define void @uninitvar_rint() {
%1 = tail call i32 @rintf(float undef)
%2 = tail call i32 @rint(double undef)
%3 = tail call i32 @rintl(x86_fp80 undef)
ret void
}
int getGoldScore(int gold) { return gold; }


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

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

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

LLVM IR (-O2):
define i32 @getGoldScore(i32 returned %0) {
ret i32 %0
}
void *create_lock(void) { return (void *)1; }


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

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

LLVM IR (-O0):
define i8* @create_lock() {
ret i8* inttoptr (i64 1 to i8*)
}

LLVM IR (-O2):
define i8* @create_lock() {
ret i8* inttoptr (i64 1 to i8*)
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef void const *b;
typedef void *a;

/* Variables and functions */
int /*<<< orphan*/ cpy7(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int cpy8(void *, void const *);
void cpy15(void *a, const void *b) {
  cpy8(a, b), cpy7((uint8_t *)a + 8, (uint8_t *)b + 8);
}


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

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

LLVM IR (-O0):
define void @cpy15(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i32 @cpy8(i8* %5, i8* %6)
%8 = load i8*, i8** %3
%9 = bitcast i8* %8 to i32*
%10 = getelementptr inbounds i32, i32* %9, i64 8
%11 = load i8*, i8** %4
%12 = bitcast i8* %11 to i32*
%13 = getelementptr inbounds i32, i32* %12, i64 8
%14 = call i32 @cpy7(i32* %10, i32* %13)
ret void
}

LLVM IR (-O2):
define void @cpy15(i8* %0, i8* %1) {
%3 = tail call i32 @cpy8(i8* %0, i8* %1)
%4 = getelementptr inbounds i8, i8* %0, i64 32
%5 = bitcast i8* %4 to i32*
%6 = getelementptr inbounds i8, i8* %1, i64 32
%7 = bitcast i8* %6 to i32*
%8 = tail call i32 @cpy7(i32* %5, i32* %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) { printf("Hello, dude!"); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [13 x i8] c"Hello, dude!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"Hello, dude!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ _makespace(char **, int);
int /*<<< orphan*/ _strcatchar(char *, char);
void xstrcatchar(char **str, char c) {
  _makespace(str, 1);
  _strcatchar(*str, c);
}


x86 assembly (clang, -O0):
<xstrcatchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
call   1040 <_makespace@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
movsbl -0x9(%rbp),%esi
call   1030 <_strcatchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xstrcatchar>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x1,%esi
call   1040 <_makespace@plt>
mov    (%rbx),%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <_strcatchar@plt>

LLVM IR (-O0):
define void @xstrcatchar(i8** %0, i8 signext %1) {
%3 = alloca i8**
%4 = alloca i8
store i8** %0, i8*** %3
store i8 %1, i8* %4
%5 = load i8**, i8*** %3
%6 = call i32 @_makespace(i8** %5, i32 1)
%7 = load i8**, i8*** %3
%8 = load i8*, i8** %7
%9 = load i8, i8* %4
%10 = call i32 @_strcatchar(i8* %8, i8 signext %9)
ret void
}

LLVM IR (-O2):
define void @xstrcatchar(i8** %0, i8 signext %1) {
%3 = tail call i32 @_makespace(i8** %0, i32 1)
%4 = load i8*, i8** %0
%5 = tail call i32 @_strcatchar(i8* %4, i8 signext %1)
ret void
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
char *str_copy(const char *str) {
  int bytes = (strlen(str) + 1) * sizeof(char);
  char *copy = malloc(bytes);
  strcpy(copy, str);
  return copy;
}


x86 assembly (clang, -O0):
<str_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_copy>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @str_copy(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = add nsw i32 %6, 1
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 1
%10 = trunc i64 %9 to i32
store i32 %10, i32* %3
%11 = load i32, i32* %3
%12 = call i8* @malloc(i32 %11)
store i8* %12, i8** %4
%13 = load i8*, i8** %4
%14 = load i8*, i8** %2
%15 = call i32 @strcpy(i8* %13, i8* %14)
%16 = load i8*, i8** %4
ret i8* %16
}

LLVM IR (-O2):
define i8* @str_copy(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = tail call i8* @malloc(i32 %3)
%5 = tail call i32 @strcpy(i8* %4, i8* %0)
ret i8* %4
}
/* Variables and functions */
int EOF;
int getc(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
void lexer_skip_comment_line(void) {
  for (;;) {
    int c = getc(stdin);
    if (c == '\n' || c == EOF)
      return;
  }
}


x86 assembly (clang, -O0):
<lexer_skip_comment_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
call   1030 <getc@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
je     1145 <lexer_skip_comment_line+0x35>
mov    -0x4(%rbp),%eax
mov    0x2ea3(%rip),%rcx
cmp    (%rcx),%eax
jne    114b <lexer_skip_comment_line+0x3b>
add    $0x10,%rsp
pop    %rbp
ret
jmp    1118 <lexer_skip_comment_line+0x8>

x86 assembly (clang, -O2):
<lexer_skip_comment_line>:
push   %r14
push   %rbx
push   %rax
mov    0x2ecd(%rip),%r14
mov    0x2ebe(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r14),%edi
call   1030 <getc@plt>
cmp    $0xa,%eax
je     1141 <lexer_skip_comment_line+0x31>
cmp    (%rbx),%eax
jne    1130 <lexer_skip_comment_line+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stdin = global i32 0
@EOF = global i32 0
define void @lexer_skip_comment_line() {
%1 = alloca i32
br label %2
2: ; preds = %12, %0
%3 = load i32, i32* @stdin
%4 = call i32 @getc(i32 %3)
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = icmp eq i32 %5, 10
br i1 %6, label %11, label %7
7: ; preds = %2
%8 = load i32, i32* %1
%9 = load i32, i32* @EOF
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %7, %2
ret void
12: ; preds = %7
br label %2
}

LLVM IR (-O2):
@stdin = global i32 0
@EOF = global i32 0
define void @lexer_skip_comment_line() {
br label %1
1: ; preds = %1, %0
%2 = load i32, i32* @stdin
%3 = tail call i32 @getc(i32 %2)
%4 = icmp ne i32 %3, 10
%5 = load i32, i32* @EOF
%6 = icmp ne i32 %3, %5
%7 = select i1 %4, i1 %6, i1 false
br i1 %7, label %1, label %8
8: ; preds = %1
ret void
}
void u8g_10MicroDelay(void) {}


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

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

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

LLVM IR (-O2):
define void @u8g_10MicroDelay() {
ret void
}
/* Variables and functions */
scalar_t__ p(int *);
int f(int *q) {
  if (p(q) && *q)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <p@plt>
cmp    $0x0,%rax
je     1148 <f+0x38>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
je     1148 <f+0x38>
movl   $0x1,-0x4(%rbp)
jmp    114f <f+0x3f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rbx
mov    %rdi,%rbx
call   1030 <p@plt>
test   %rax,%rax
je     112a <f+0x1a>
mov    $0x1,%eax
cmpl   $0x0,(%rbx)
je     112a <f+0x1a>
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @f(i32* %0) {
%2 = tail call i64 @p(i32* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* %0
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %4, %1
br label %8
8: ; preds = %4, %7
%9 = phi i32 [ 0, %7 ], [ 1, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char);
void ft_putstr(char *str) {
  while (*str) {
    ft_putchar(*str);
    str++;
  }
}


x86 assembly (clang, -O0):
<ft_putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1146 <ft_putstr+0x36>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <ft_putchar@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <ft_putstr+0xc>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @ft_putstr(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call i32 @ft_putchar(i8 signext %5)
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret void
}
int builtin_true(int argc, char *argv[]) { return 0; }


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

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

LLVM IR (-O0):
define i32 @builtin_true(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
ret i32 0
}

LLVM IR (-O2):
define i32 @builtin_true(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
unsigned _put_short(uint8_t *out, uint16_t val) {
  memcpy(out, &val, 2);
  return 2;
}


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

x86 assembly (clang, -O2):
<_put_short>:
push   %rax
mov    %esi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x2,%edx
call   1030 <memcpy@plt>
mov    $0x2,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @_put_short(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 @memcpy(i32* %5, i32* %4, i32 2)
ret i32 2
}

LLVM IR (-O2):
define i32 @_put_short(i32* %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = call i32 @memcpy(i32* %0, i32* %3, i32 2)
ret i32 2
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
bool pes_validate_pts(const uint8_t *p_pes) {
  return ((p_pes[9] & 0xe1) == 0x21) && (p_pes[11] & 0x1) && (p_pes[13] & 0x1);
}


x86 assembly (clang, -O0):
<pes_validate_pts>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%ecx
and    $0xe1,%ecx
xor    %eax,%eax
cmp    $0x21,%ecx
mov    %al,-0x9(%rbp)
jne    114e <pes_validate_pts+0x4e>
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%ecx
and    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     114e <pes_validate_pts+0x4e>
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%eax
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pes_validate_pts>:
mov    $0xe1,%ecx
and    0x24(%rdi),%ecx
xor    %eax,%eax
cmp    $0x21,%ecx
jne    111b <pes_validate_pts+0x1b>
testb  $0x1,0x2c(%rdi)
je     111b <pes_validate_pts+0x1b>
mov    0x34(%rdi),%eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @pes_validate_pts(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 9
%5 = load i32, i32* %4
%6 = and i32 %5, 225
%7 = icmp eq i32 %6, 33
br i1 %7, label %8, label %20
8: ; preds = %1
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 11
%11 = load i32, i32* %10
%12 = and i32 %11, 1
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = load i32*, i32** %2
%16 = getelementptr inbounds i32, i32* %15, i64 13
%17 = load i32, i32* %16
%18 = and i32 %17, 1
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %14, %8, %1
%21 = phi i1 [ false, %8 ], [ false, %1 ], [ %19, %14 ]
%22 = zext i1 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
define i32 @pes_validate_pts(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 9
%3 = load i32, i32* %2
%4 = and i32 %3, 225
%5 = icmp eq i32 %4, 33
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = getelementptr inbounds i32, i32* %0, i64 11
%8 = load i32, i32* %7
%9 = and i32 %8, 1
%10 = icmp eq i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %6
%12 = getelementptr inbounds i32, i32* %0, i64 13
%13 = load i32, i32* %12
%14 = and i32 %13, 1
br label %15
15: ; preds = %11, %6, %1
%16 = phi i32 [ 0, %6 ], [ 0, %1 ], [ %14, %11 ]
ret i32 %16
}
const char *getPrivilegeParametersPlatform(void) { return "no"; }


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"no\00"
define i8* @getPrivilegeParametersPlatform() {
ret i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, unsigned int);
int /*<<< orphan*/ *stderr;
void _Assert(char *strFile, unsigned uLine) {
  fflush(NULL);
  fprintf(stderr, "\nAssertion failed: %s, line %u\n", strFile, uLine);
  fflush(stderr);
  abort();
}


x86 assembly (clang, -O0):
<_Assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <fflush@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%rdi
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
lea    0xea0(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%rdi
call   1050 <fflush@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<_Assert>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %edi,%edi
call   1050 <fflush@plt>
mov    0x2e99(%rip),%r14
mov    (%r14),%rdi
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdx
mov    %ebp,%ecx
call   1040 <fprintf@plt>
mov    (%r14),%rdi
call   1050 <fflush@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32* null
@.str = [32 x i8] c"\0AAssertion failed: %s, line %u\0A\00"
define void @_Assert(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @fflush(i32* null)
%6 = load i32*, i32** @stderr
%7 = load i8*, i8** %3
%8 = load i32, i32* %4
%9 = call i32 @fprintf(i32* %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %8)
%10 = load i32*, i32** @stderr
%11 = call i32 @fflush(i32* %10)
%12 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32* null
@.str = [32 x i8] c"\0AAssertion failed: %s, line %u\0A\00"
define void @_Assert(i8* %0, i32 %1) {
%3 = tail call i32 @fflush(i32* null)
%4 = load i32*, i32** @stderr
%5 = tail call i32 @fprintf(i32* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1)
%6 = load i32*, i32** @stderr
%7 = tail call i32 @fflush(i32* %6)
%8 = tail call i32 (...) @abort()
unreachable
}
int bracket(char l, char r) {
  return (l == '(' && r == ')') || (l == '[' && r == ']');
}


x86 assembly (clang, -O0):
<bracket>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x28,%eax
jne    112f <bracket+0x2f>
movsbl -0x2(%rbp),%ecx
mov    $0x1,%al
cmp    $0x29,%ecx
mov    %al,-0x3(%rbp)
je     1154 <bracket+0x54>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x4(%rbp)
jne    114e <bracket+0x4e>
movsbl -0x2(%rbp),%eax
cmp    $0x5d,%eax
sete   %al
mov    %al,-0x4(%rbp)
mov    -0x4(%rbp),%al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bracket>:
mov    %edi,%eax
xor    $0x28,%al
mov    %esi,%ecx
xor    $0x29,%cl
or     %al,%cl
sete   %al
xor    $0x5b,%dil
xor    $0x5d,%sil
or     %dil,%sil
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @bracket(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 40
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i8, i8* %4
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 41
br i1 %11, label %22, label %12
12: ; preds = %8, %2
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 91
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load i8, i8* %4
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 93
br label %20
20: ; preds = %16, %12
%21 = phi i1 [ false, %12 ], [ %19, %16 ]
br label %22
22: ; preds = %20, %8
%23 = phi i1 [ true, %8 ], [ %21, %20 ]
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @bracket(i8 signext %0, i8 signext %1) {
%3 = icmp eq i8 %0, 40
%4 = icmp eq i8 %1, 41
%5 = and i1 %3, %4
%6 = icmp eq i8 %0, 91
%7 = icmp eq i8 %1, 93
%8 = and i1 %6, %7
%9 = or i1 %5, %8
%10 = zext i1 %9 to i32
ret i32 %10
}
/* Variables and functions */
char *date(char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ printf(char *, ...);
void consoleWarning(const char *text) {
  char *time = date("%H:%M:%S");
  printf("\033[01;33m");
  printf("[%s] %s", time, text);
  printf("\033[0m\n");
  free(time);
}


x86 assembly (clang, -O0):
<consoleWarning>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
call   1050 <date@plt>
mov    %rax,-0x10(%rbp)
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<consoleWarning>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xeb2(%rip),%rdi
call   1060 <date@plt>
mov    %rax,%rbx
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea7(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9b(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"%H:%M:%S\00"
@.str.1 = [9 x i8] c"\1B[01;33m\00"
@.str.2 = [8 x i8] c"[%s] %s\00"
@.str.3 = [6 x i8] c"\1B[0m\0A\00"
define void @consoleWarning(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = call i8* @date(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8* %4, i8** %3
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%6 = load i8*, i8** %3
%7 = load i8*, i8** %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%10 = load i8*, i8** %3
%11 = call i32 @free(i8* %10)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"%H:%M:%S\00"
@.str.1 = [9 x i8] c"\1B[01;33m\00"
@.str.2 = [8 x i8] c"[%s] %s\00"
@str = [5 x i8] c"\1B[0m\00"
define void @consoleWarning(i8* %0) {
%2 = tail call i8* @date(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %2, i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @free(i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void keyCanvasCB(unsigned char key, int x, int y) {
  if (key == 'q' || key == 'Q')
    exit(0);
}


x86 assembly (clang, -O0):
<keyCanvasCB>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x71,%eax
je     113e <keyCanvasCB+0x2e>
movzbl -0x1(%rbp),%eax
cmp    $0x51,%eax
jne    1145 <keyCanvasCB+0x35>
xor    %edi,%edi
call   1030 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<keyCanvasCB>:
and    $0xdf,%dil
cmp    $0x51,%dil
je     111b <keyCanvasCB+0xb>
ret
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @keyCanvasCB(i8 zeroext %0, i32 %1, i32 %2) {
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = icmp eq i32 %8, 113
br i1 %9, label %14, label %10
10: ; preds = %3
%11 = load i8, i8* %4
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 81
br i1 %13, label %14, label %16
14: ; preds = %10, %3
%15 = call i32 @exit(i32 0)
unreachable
16: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @keyCanvasCB(i8 zeroext %0, i32 %1, i32 %2) {
%4 = and i8 %0, -33
%5 = icmp eq i8 %4, 81
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %3
ret void
}
void gtk_about_dialog_get_authors() {}


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

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

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

LLVM IR (-O2):
define void @gtk_about_dialog_get_authors() {
ret void
}
/* Variables and functions */
int euler_problem_79();
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("%d\n", euler_problem_79());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <euler_problem_79@plt>
mov    %eax,%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @euler_problem_79()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}