xunge/DecIR huggingface dataset:
char *get_filename_from_url(char *url) {
  int index = -1;
  int i = 0;
  while (url[i] != '\0') {
    if (url[i] == '/') {
      index = i;
    }
    i++;
  }
  return &url[index + 1];
}


x86 assembly (clang, -O0):
<get_filename_from_url>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1154 <get_filename_from_url+0x54>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2f,%eax
jne    1146 <get_filename_from_url+0x46>
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1116 <get_filename_from_url+0x16>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_filename_from_url>:
mov    $0xffffffff,%ecx
xor    %eax,%eax
jmp    1116 <get_filename_from_url+0x16>
nopl   0x0(%rax)
mov    %eax,%ecx
add    $0x1,%rax
movzbl (%rdi,%rax,1),%edx
cmp    $0x2f,%dl
je     1110 <get_filename_from_url+0x10>
test   %dl,%dl
jne    1112 <get_filename_from_url+0x12>
movslq %ecx,%rax
add    %rdi,%rax
add    $0x1,%rax
ret

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

LLVM IR (-O2):
define i8* @get_filename_from_url(i8* %0) {
br label %2
2: ; preds = %9, %1
%3 = phi i64 [ %11, %9 ], [ 0, %1 ]
%4 = phi i32 [ %10, %9 ], [ -1, %1 ]
%5 = getelementptr inbounds i8, i8* %0, i64 %3
%6 = load i8, i8* %5
switch i8 %6, label %9 [
i8 0, label %12
i8 47, label %7
]
7: ; preds = %2
%8 = trunc i64 %3 to i32
br label %9
9: ; preds = %2, %7
%10 = phi i32 [ %8, %7 ], [ %4, %2 ]
%11 = add nuw i64 %3, 1
br label %2
12: ; preds = %2
%13 = add nsw i32 %4, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %0, i64 %14
ret i8* %15
}
/* Variables and functions */
int /*<<< orphan*/ evdns_nameserver_ip_add(char *);
int /*<<< orphan*/ search_set_from_hostname();
void evdns_resolv_set_defaults(int flags) {
  if (flags & 1)
    search_set_from_hostname();
  if (flags & 2)
    evdns_nameserver_ip_add("127.0.0.1");
}


x86 assembly (clang, -O0):
<evdns_resolv_set_defaults>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1141 <evdns_resolv_set_defaults+0x21>
mov    $0x0,%al
call   1030 <search_set_from_hostname@plt>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     115c <evdns_resolv_set_defaults+0x3c>
lea    0xea9(%rip),%rdi
call   1040 <evdns_nameserver_ip_add@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evdns_resolv_set_defaults>:
push   %rbx
mov    %edi,%ebx
test   $0x1,%bl
je     112f <evdns_resolv_set_defaults+0xf>
xor    %eax,%eax
call   1030 <search_set_from_hostname@plt>
test   $0x2,%bl
jne    1136 <evdns_resolv_set_defaults+0x16>
pop    %rbx
ret
lea    0xec3(%rip),%rdi
pop    %rbx
jmp    1040 <evdns_nameserver_ip_add@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"127.0.0.1\00"
define void @evdns_resolv_set_defaults(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (...) @search_set_from_hostname()
br label %6
6: ; preds = %4, %1
%7 = and i32 %0, 2
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @evdns_nameserver_ip_add(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
ret void
}
/* Variables and functions */
int /*<<< orphan*/ call_and_print(int /*<<< orphan*/ *);
int main() {
  call_and_print(NULL);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <call_and_print@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @call_and_print(i32* null)
ret i32 0
}
void f_e(int i) {}


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

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

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

LLVM IR (-O2):
define void @f_e(i32 %0) {
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  printf("Hello UTSAV\n");
  return EXIT_SUCCESS;
}


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

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

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

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [12 x i8] c"Hello UTSAV\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
/* Type definitions */
typedef void *calloc;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, int const, int, int, void *);
void *debug_calloc(const size_t num, const size_t size, const char *file,
                   const int line) {
  void *ptr = (calloc)(num, size);
  printf("%s:%d: calloc(%d, %d)=%p\n", file, line, (int)num, (int)size, ptr);
  return ptr;
}


x86 assembly (clang, -O0):
<debug_calloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %eax,%r8d
mov    -0x28(%rbp),%r9
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_calloc>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rax
lea    0xee2(%rip),%rdi
mov    %rdx,%rsi
mov    %ecx,%edx
mov    %eax,%ecx
mov    %ebx,%r8d
mov    %rbx,%r9
call   1030 <printf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"%s:%d: calloc(%d, %d)=%p\0A\00"
define i8* @debug_calloc(i64 %0, i64 %1, i8* %2, i32 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
store i64 %0, i64* %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = load i64, i64* %5
%11 = load i64, i64* %6
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %9
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = load i64, i64* %5
%16 = trunc i64 %15 to i32
%17 = load i64, i64* %6
%18 = trunc i64 %17 to i32
%19 = load i8*, i8** %9
%20 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %14, i32 %16, i32 %18, i8* %19)
%21 = load i8*, i8** %9
ret i8* %21
}

LLVM IR (-O2):
@.str = [26 x i8] c"%s:%d: calloc(%d, %d)=%p\0A\00"
define i8* @debug_calloc(i64 %0, i64 %1, i8* %2, i32 %3) {
%5 = inttoptr i64 %1 to i8*
%6 = trunc i64 %0 to i32
%7 = trunc i64 %1 to i32
%8 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %2, i32 %3, i32 %6, i32 %7, i8* %5)
ret i8* %5
}
void i_industrial(struct city *the_city, char *l) {}


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

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

LLVM IR (-O0):
%struct.city = type opaque
define void @i_industrial(%struct.city* %0, i8* %1) {
%3 = alloca %struct.city*
%4 = alloca i8*
store %struct.city* %0, %struct.city** %3
store i8* %1, i8** %4
ret void
}

LLVM IR (-O2):
%struct.city = type opaque
define void @i_industrial(%struct.city* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ KeccakP400_ExtractBytes(void *, unsigned char *,
                                           unsigned int, int);
unsigned char Ket_StateExtractByte(void *state, unsigned int offset) {
  unsigned char data[1];
  KeccakP400_ExtractBytes(state, data, offset, 1);
  return data[0];
}


x86 assembly (clang, -O0):
<Ket_StateExtractByte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xd(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    $0x1,%ecx
call   1030 <KeccakP400_ExtractBytes@plt>
movzbl -0xd(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Ket_StateExtractByte>:
push   %rax
mov    %esi,%edx
lea    0x7(%rsp),%rsi
mov    $0x1,%ecx
call   1030 <KeccakP400_ExtractBytes@plt>
mov    0x7(%rsp),%al
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i8 @Ket_StateExtractByte(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [1 x i8]
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%8 = load i32, i32* %4
%9 = call i32 @KeccakP400_ExtractBytes(i8* %6, i8* %7, i32 %8, i32 1)
%10 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%11 = load i8, i8* %10
ret i8 %11
}

LLVM IR (-O2):
define zeroext i8 @Ket_StateExtractByte(i8* %0, i32 %1) {
%3 = alloca [1 x i8]
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %3, i64 0, i64 0
%5 = call i32 @KeccakP400_ExtractBytes(i8* %0, i8* %4, i32 %1, i32 1)
%6 = load i8, i8* %4
ret i8 %6
}
char *_Locale_numeric_name(const void *__DUMMY_PAR1, char *__DUMMY_PAR) {
  return 0;
}


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

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

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

LLVM IR (-O2):
define noalias i8* @_Locale_numeric_name(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ ReverseN(void *, int);
void Reverse32(void *ptr) { ReverseN(ptr, 4); }


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

x86 assembly (clang, -O2):
<Reverse32>:
mov    $0x4,%esi
jmp    1030 <ReverseN@plt>

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

LLVM IR (-O2):
define void @Reverse32(i8* %0) {
%2 = tail call i32 @ReverseN(i8* %0, i32 4)
ret void
}
/* Variables and functions */
double exp(double);
double pow(double, int);
double e_o2(double o2) {
  if (o2 == 140)
    return 47;
  else {
    double a;
    a = pow(o2 + -106, 2);
    return 100.8 * exp(a / -3745);
  }
}


x86 assembly (clang, -O0):
<e_o2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xec6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    115c <e_o2+0x3c>
jp     115c <e_o2+0x3c>
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11a2 <e_o2+0x82>
movsd  0xeb4(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe8b(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xe6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_o2>:
push   %rax
ucomisd 0xedf(%rip),%xmm0
jne    1137 <e_o2+0x17>
jp     1137 <e_o2+0x17>
movsd  0xecb(%rip),%xmm0
pop    %rax
ret
addsd  0xed1(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
divsd  0xec7(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xec2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @e_o2(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %3
%5 = load double, double* %3
%6 = fcmp oeq double %5, 1.400000e+02
br i1 %6, label %7, label %8
7: ; preds = %1
store double 4.700000e+01, double* %2
br label %16
8: ; preds = %1
%9 = load double, double* %3
%10 = fadd double %9, -1.060000e+02
%11 = call double @pow(double %10, i32 2)
store double %11, double* %4
%12 = load double, double* %4
%13 = fdiv double %12, -3.745000e+03
%14 = call double @exp(double %13)
%15 = fmul double 1.008000e+02, %14
store double %15, double* %2
br label %16
16: ; preds = %8, %7
%17 = load double, double* %2
ret double %17
}

LLVM IR (-O2):
define double @e_o2(double %0) {
%2 = fcmp oeq double %0, 1.400000e+02
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = fadd double %0, -1.060000e+02
%5 = tail call double @pow(double %4, i32 2)
%6 = fdiv double %5, -3.745000e+03
%7 = tail call double @exp(double %6)
%8 = fmul double %7, 1.008000e+02
br label %9
9: ; preds = %1, %3
%10 = phi double [ %8, %3 ], [ 4.700000e+01, %1 ]
ret double %10
}
int init_shm_mallocs() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @init_shm_mallocs() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ BITHLm(int);
void BIT3HLm() { BITHLm(0x08); }


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

x86 assembly (clang, -O2):
<BIT3HLm>:
mov    $0x8,%edi
jmp    1030 <BITHLm@plt>

LLVM IR (-O0):
define void @BIT3HLm() {
%1 = call i32 @BITHLm(i32 8)
ret void
}

LLVM IR (-O2):
define void @BIT3HLm() {
%1 = tail call i32 @BITHLm(i32 8)
ret void
}
void yyerror(const char *err) {
  do {
    log_error(__FUNCTION__, 86, (char *)err);
  } while (0);
}


x86 assembly (clang, -O0):
<yyerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
lea    0xed9(%rip),%rdi
mov    $0x56,%esi
mov    $0x0,%al
call   1030 <log_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yyerror>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
mov    $0x56,%esi
xor    %eax,%eax
jmp    1030 <log_error@plt>

LLVM IR (-O0):
@__FUNCTION__.yyerror = [8 x i8] c"yyerror\00"
define void @yyerror(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = load i8*, i8** %2
%5 = call i32 (i8*, i32, i8*, ...) bitcast (i32 (...)* @log_error to i32 (i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.yyerror, i64 0, i64 0), i32 86, i8* %4)
br label %6
6: ; preds = %3
ret void
}

LLVM IR (-O2):
@__FUNCTION__.yyerror = [8 x i8] c"yyerror\00"
define void @yyerror(i8* %0) {
%2 = tail call i32 (i8*, i32, i8*, ...) bitcast (i32 (...)* @log_error to i32 (i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.yyerror, i64 0, i64 0), i32 86, i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ test2(double, double, double, double);
int test1(double px, double py, double m, double b, double lx, double ly) {
  return (test2(px, py, m, b) == test2(lx, ly, m, b));
}


x86 assembly (clang, -O0):
<test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <test2@plt>
mov    %rax,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <test2@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test1>:
push   %rbx
sub    $0x20,%rsp
movsd  %xmm5,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x8(%rsp)
movsd  %xmm2,(%rsp)
call   1030 <test2@plt>
mov    %rax,%rbx
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
call   1030 <test2@plt>
xor    %ecx,%ecx
cmp    %rax,%rbx
sete   %cl
mov    %ecx,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @test1(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %7
%14 = load double, double* %8
%15 = load double, double* %9
%16 = load double, double* %10
%17 = call i64 @test2(double %13, double %14, double %15, double %16)
%18 = load double, double* %11
%19 = load double, double* %12
%20 = load double, double* %9
%21 = load double, double* %10
%22 = call i64 @test2(double %18, double %19, double %20, double %21)
%23 = icmp eq i64 %17, %22
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @test1(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call i64 @test2(double %0, double %1, double %2, double %3)
%8 = tail call i64 @test2(double %4, double %5, double %2, double %3)
%9 = icmp eq i64 %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}
void rop3_170_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  *D = (*D & (~S)) | (*D & S);
}


x86 assembly (clang, -O0):
<rop3_170_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%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    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @rop3_170_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
ret void
}
void loadKDMConfig() {}


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

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

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

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

/* Variables and functions */
struct my_struct *return_cumbersome_my_struct_ptr();
struct my_struct *use_return_cumbersome_my_struct_ptr() {
  return return_cumbersome_my_struct_ptr();
}


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

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

LLVM IR (-O0):
%struct.my_struct = type { i32 }
define %struct.my_struct* @use_return_cumbersome_my_struct_ptr() {
%1 = call %struct.my_struct* (...) @return_cumbersome_my_struct_ptr()
ret %struct.my_struct* %1
}

LLVM IR (-O2):
%struct.my_struct = type { i32 }
define %struct.my_struct* @use_return_cumbersome_my_struct_ptr() {
%1 = tail call %struct.my_struct* (...) @return_cumbersome_my_struct_ptr()
ret %struct.my_struct* %1
}
/* Type definitions */
typedef size_t uint16_t;

/* Variables and functions */
char *mpw_charactersInClass(char);
size_t strlen(char const *);
const char mpw_characterFromClass_v0(char characterClass, uint16_t seedByte) {
  const char *classCharacters = mpw_charactersInClass(characterClass);
  return classCharacters[seedByte % strlen(classCharacters)];
}


x86 assembly (clang, -O0):
<mpw_characterFromClass_v0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <mpw_charactersInClass@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
xor    %edx,%edx
div    %rcx
mov    -0x20(%rbp),%rax
movsbl (%rax,%rdx,1),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpw_characterFromClass_v0>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
call   1040 <mpw_charactersInClass@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
or     %rbx,%rax
shr    $0x20,%rax
je     114d <mpw_characterFromClass_v0+0x2d>
mov    %rbx,%rax
xor    %edx,%edx
div    %rcx
jmp    1153 <mpw_characterFromClass_v0+0x33>
mov    %ebx,%eax
xor    %edx,%edx
div    %ecx
mov    (%r14,%rdx,1),%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define signext i8 @mpw_characterFromClass_v0(i8 signext %0, i64 %1) {
%3 = alloca i8
%4 = alloca i64
%5 = alloca i8*
store i8 %0, i8* %3
store i64 %1, i64* %4
%6 = load i8, i8* %3
%7 = call i8* @mpw_charactersInClass(i8 signext %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = load i64, i64* %4
%10 = load i8*, i8** %5
%11 = call i64 @strlen(i8* %10)
%12 = urem i64 %9, %11
%13 = getelementptr inbounds i8, i8* %8, i64 %12
%14 = load i8, i8* %13
ret i8 %14
}

LLVM IR (-O2):
define signext i8 @mpw_characterFromClass_v0(i8 signext %0, i64 %1) {
%3 = tail call i8* @mpw_charactersInClass(i8 signext %0)
%4 = tail call i64 @strlen(i8* dereferenceable(1) %3)
%5 = urem i64 %1, %4
%6 = getelementptr inbounds i8, i8* %3, i64 %5
%7 = load i8, i8* %6
ret i8 %7
}
/* Variables and functions */
scalar_t__ unknown();
int test16() { (void)(0 && unknown()); }


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

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

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

LLVM IR (-O2):
define i32 @test16() {
ret i32 undef
}
/* Variables and functions */
scalar_t__ EINTR;
int dup2(int, int);
scalar_t__ errno;
int eiki_dup2(int oldfd, int newfd) {
  int rv;
  while (1) {
    rv = dup2(oldfd, newfd);
    if (!rv) {
      break;
    } else if (errno != EINTR) {
      break;
    }
  }
  return rv;
}


x86 assembly (clang, -O0):
<eiki_dup2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <dup2@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    113b <eiki_dup2+0x2b>
jmp    1164 <eiki_dup2+0x54>
mov    0x2e9e(%rip),%rax
mov    (%rax),%rax
mov    0x2e8c(%rip),%rcx
cmp    (%rcx),%rax
je     115a <eiki_dup2+0x4a>
jmp    1164 <eiki_dup2+0x54>
jmp    115f <eiki_dup2+0x4f>
jmp    111e <eiki_dup2+0xe>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eiki_dup2>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    0x2ebe(%rip),%r14
mov    0x2eaf(%rip),%r15
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %ebx,%esi
call   1030 <dup2@plt>
test   %eax,%eax
je     1145 <eiki_dup2+0x35>
mov    (%r14),%rcx
cmp    (%r15),%rcx
je     1130 <eiki_dup2+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i64 0
@EINTR = global i64 0
define i32 @eiki_dup2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
br label %6
6: ; preds = %2, %19
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = call i32 @dup2(i32 %7, i32 %8)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %6
br label %20
13: ; preds = %6
%14 = load i64, i64* @errno
%15 = load i64, i64* @EINTR
%16 = icmp ne i64 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %13
br label %20
18: ; preds = %13
br label %19
19: ; preds = %18
br label %6
20: ; preds = %17, %12
%21 = load i32, i32* %5
ret i32 %21
}

LLVM IR (-O2):
@errno = global i64 0
@EINTR = global i64 0
define i32 @eiki_dup2(i32 %0, i32 %1) {
br label %3
3: ; preds = %6, %2
%4 = tail call i32 @dup2(i32 %0, i32 %1)
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = load i64, i64* @errno
%8 = load i64, i64* @EINTR
%9 = icmp eq i64 %7, %8
br i1 %9, label %3, label %10
10: ; preds = %6, %3
ret i32 %4
}
unsigned num_digits(unsigned int n) {
  if (n < 10)
    return 1;
  return 1 + num_digits(n / 10);
}


x86 assembly (clang, -O0):
<num_digits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jae    1131 <num_digits+0x21>
movl   $0x1,-0x4(%rbp)
jmp    114a <num_digits+0x3a>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,%edi
call   1030 <num_digits@plt>
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<num_digits>:
mov    $0x1,%eax
cmp    $0xa,%edi
jb     1134 <num_digits+0x34>
mov    $0x1,%eax
mov    $0xcccccccd,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %edi,%edx
imul   %rcx,%rdx
shr    $0x23,%rdx
add    $0x1,%eax
cmp    $0x63,%edi
mov    %edx,%edi
ja     1120 <num_digits+0x20>
ret

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

LLVM IR (-O2):
define i32 @num_digits(i32 %0) {
%2 = icmp ult i32 %0, 10
br i1 %2, label %11, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ %0, %1 ]
%5 = phi i32 [ %7, %3 ], [ 0, %1 ]
%6 = udiv i32 %4, 10
%7 = add i32 %5, 1
%8 = icmp ult i32 %4, 100
br i1 %8, label %9, label %3
9: ; preds = %3
%10 = add i32 %5, 2
br label %11
11: ; preds = %9, %1
%12 = phi i32 [ 1, %1 ], [ %10, %9 ]
ret i32 %12
}
/* Type definitions */
typedef int mode_t;

/* Variables and functions */
int S_IFDIR;
int mknod(char const *, int, long long);
int mkdir(const char *pathname, mode_t mode) {
  return mknod(pathname, mode | S_IFDIR, 0LL);
}


x86 assembly (clang, -O0):
<mkdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    0x2eab(%rip),%rax
or     (%rax),%esi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <mknod@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkdir>:
mov    0x2ec1(%rip),%rax
or     (%rax),%esi
xor    %edx,%edx
jmp    1030 <mknod@plt>

LLVM IR (-O0):
@S_IFDIR = global i32 0
define i32 @mkdir(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = load i32, i32* @S_IFDIR
%8 = or i32 %6, %7
%9 = call i32 @mknod(i8* %5, i32 %8, i64 0)
ret i32 %9
}

LLVM IR (-O2):
@S_IFDIR = global i32 0
define i32 @mkdir(i8* %0, i32 %1) {
%3 = load i32, i32* @S_IFDIR
%4 = or i32 %3, %1
%5 = tail call i32 @mknod(i8* %0, i32 %4, i64 0)
ret i32 %5
}
void BN_mod_lshift1_quick(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_mod_lshift1_quick() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _vClear();
int /*<<< orphan*/ _vWriteFormat(char, int);
void drawFrame1() {
  int x, y;
  _vClear();
  for (y = 0; y < 25; y++) {
    for (x = 0; x < 80; x++) {
      _vWriteFormat(' ', 0x00 | 0x0F);
    }
  }
}


x86 assembly (clang, -O0):
<drawFrame1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <_vClear@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x19,-0x8(%rbp)
jge    1181 <drawFrame1+0x61>
movl   $0x0,-0x4(%rbp)
cmpl   $0x50,-0x4(%rbp)
jge    116e <drawFrame1+0x4e>
mov    $0x20,%edi
mov    $0xf,%esi
call   1030 <_vWriteFormat@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <drawFrame1+0x27>
jmp    1173 <drawFrame1+0x53>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <drawFrame1+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawFrame1>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <_vClear@plt>
nopl   0x0(%rax)
mov    $0x50,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x20,%edi
mov    $0xf,%esi
call   1030 <_vWriteFormat@plt>
add    $0xffffffff,%ebp
jne    1140 <drawFrame1+0x20>
add    $0x1,%ebx
cmp    $0x19,%ebx
jne    1130 <drawFrame1+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @drawFrame1() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @_vClear()
store i32 0, i32* %2
br label %4
4: ; preds = %17, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 25
br i1 %6, label %7, label %20
7: ; preds = %4
store i32 0, i32* %1
br label %8
8: ; preds = %13, %7
%9 = load i32, i32* %1
%10 = icmp slt i32 %9, 80
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i32 @_vWriteFormat(i8 signext 32, i32 15)
br label %13
13: ; preds = %11
%14 = load i32, i32* %1
%15 = add nsw i32 %14, 1
store i32 %15, i32* %1
br label %8
16: ; preds = %8
br label %17
17: ; preds = %16
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %4
20: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @drawFrame1() {
%1 = tail call i32 (...) @_vClear()
br label %2
2: ; preds = %0, %9
%3 = phi i32 [ 0, %0 ], [ %10, %9 ]
br label %4
4: ; preds = %2, %4
%5 = phi i32 [ 0, %2 ], [ %7, %4 ]
%6 = tail call i32 @_vWriteFormat(i8 signext 32, i32 15)
%7 = add nuw nsw i32 %5, 1
%8 = icmp eq i32 %7, 80
br i1 %8, label %9, label %4
9: ; preds = %4
%10 = add nuw nsw i32 %3, 1
%11 = icmp eq i32 %10, 25
br i1 %11, label %12, label %2
12: ; preds = %9
ret void
}
_Noreturn void usage(const char *name, int status) {
  printf(
      "usage: %s [OPTION ...] [FILENAME [ARGUMENT ...]]\n\n  FILENAME is a "
      "Scheme source file, or '-' to read from standard input.\n  OPTION may "
      "be one of the following:\n\n    -L, --lib-path PATHNAME  add PATHNAME "
      "to the library search paths\n    -h, --help               display this "
      "text and exit\n        --version            display version and exit\n",
      name);
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rsi
lea    0xed3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [342 x i8] c"usage: %s [OPTION ...] [FILENAME [ARGUMENT ...]]\0A\0A FILENAME is a Scheme source file, or '-' to read from standard input.\0A OPTION may be one of the following:\0A\0A -L, --lib-path PATHNAME add PATHNAME to the library search paths\0A -h, --help display this text and exit\0A --version display version and exit\0A\00"
define void @usage(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([342 x i8], [342 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* %4
unreachable
}

LLVM IR (-O2):
@.str = [342 x i8] c"usage: %s [OPTION ...] [FILENAME [ARGUMENT ...]]\0A\0A FILENAME is a Scheme source file, or '-' to read from standard input.\0A OPTION may be one of the following:\0A\0A -L, --lib-path PATHNAME add PATHNAME to the library search paths\0A -h, --help display this text and exit\0A --version display version and exit\0A\00"
define void @usage(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([342 x i8], [342 x i8]* @.str, i64 0, i64 0), i8* %0)
tail call void @exit(i32 %1)
unreachable
}
void sk_membar_acquire__after_atomic_conditional_inc() {}


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

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

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

LLVM IR (-O2):
define void @sk_membar_acquire__after_atomic_conditional_inc() {
ret void
}
void _infix_operator_minus_i32_i32(signed long lhs, signed long rhs,
                                   signed long *__rval_1) {
  *__rval_1 = lhs - rhs;
}


x86 assembly (clang, -O0):
<_infix_operator_minus_i32_i32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rcx
sub    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<_infix_operator_minus_i32_i32>:
sub    %rsi,%rdi
mov    %rdi,(%rdx)
ret

LLVM IR (-O0):
define void @_infix_operator_minus_i32_i32(i64 %0, i64 %1, i64* %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64*
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64* %2, i64** %6
%7 = load i64, i64* %4
%8 = load i64, i64* %5
%9 = sub nsw i64 %7, %8
%10 = load i64*, i64** %6
store i64 %9, i64* %10
ret void
}

LLVM IR (-O2):
define void @_infix_operator_minus_i32_i32(i64 %0, i64 %1, i64* nocapture writeonly %2) {
%4 = sub nsw i64 %0, %1
store i64 %4, i64* %2
ret void
}
int TEN_popc(unsigned char b) {
  int i, result = 0;
  for (i = 0; i < 8; i++) {
    if (b & 0x1)
      result++;
    b >>= 1;
  }
  return result;
}


x86 assembly (clang, -O0):
<TEN_popc>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    1153 <TEN_popc+0x53>
movzbl -0x1(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     113b <TEN_popc+0x3b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x1,%eax
mov    %al,-0x1(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1118 <TEN_popc+0x18>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEN_popc>:
mov    %edi,%eax
and    $0x1,%al
mov    %edi,%ecx
shr    %cl
and    $0x1,%cl
add    %al,%cl
mov    %edi,%eax
shr    $0x2,%al
and    $0x1,%al
add    %cl,%al
mov    %edi,%ecx
shr    $0x3,%cl
and    $0x1,%cl
add    %al,%cl
mov    %edi,%eax
shr    $0x4,%al
and    $0x1,%al
add    %cl,%al
mov    %edi,%ecx
shr    $0x5,%cl
and    $0x1,%cl
add    %al,%cl
mov    %edi,%eax
shr    $0x6,%al
and    $0x1,%al
add    %cl,%al
movzbl %al,%ecx
shr    $0x7,%dil
movzbl %dil,%eax
add    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @TEN_popc(i8 zeroext %0) {
%2 = and i8 %0, 1
%3 = lshr i8 %0, 1
%4 = and i8 %3, 1
%5 = add nuw nsw i8 %2, %4
%6 = lshr i8 %0, 2
%7 = and i8 %6, 1
%8 = add nuw nsw i8 %5, %7
%9 = lshr i8 %0, 3
%10 = and i8 %9, 1
%11 = add nuw nsw i8 %8, %10
%12 = lshr i8 %0, 4
%13 = and i8 %12, 1
%14 = add nuw nsw i8 %11, %13
%15 = lshr i8 %0, 5
%16 = and i8 %15, 1
%17 = add nuw nsw i8 %14, %16
%18 = lshr i8 %0, 6
%19 = and i8 %18, 1
%20 = add nuw nsw i8 %17, %19
%21 = zext i8 %20 to i32
%22 = lshr i8 %0, 7
%23 = zext i8 %22 to i32
%24 = add nuw nsw i32 %21, %23
ret i32 %24
}
/* Variables and functions */
int /*<<< orphan*/ poll_the_windows();
void poll_the_devices() { poll_the_windows(); }


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

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

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

LLVM IR (-O2):
define void @poll_the_devices() {
%1 = tail call i32 (...) @poll_the_windows()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TEST_ASSERT(int);
int access_violation();
void exception(void) { TEST_ASSERT(access_violation() == 1); }


x86 assembly (clang, -O0):
<exception>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <access_violation@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <TEST_ASSERT@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<exception>:
push   %rax
xor    %eax,%eax
call   1030 <access_violation@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
pop    %rax
jmp    1040 <TEST_ASSERT@plt>

LLVM IR (-O0):
define void @exception() {
%1 = call i32 (...) @access_violation()
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = call i32 @TEST_ASSERT(i32 %3)
ret void
}

LLVM IR (-O2):
define void @exception() {
%1 = tail call i32 (...) @access_violation()
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = tail call i32 @TEST_ASSERT(i32 %3)
ret void
}
/* Variables and functions */
int rand();
int generateDecision() {
  int randomDigit;
  randomDigit = (rand() % 5);
  return randomDigit;
}


x86 assembly (clang, -O0):
<generateDecision>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generateDecision>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @generateDecision() {
%1 = alloca i32
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 5
store i32 %3, i32* %1
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
define i32 @generateDecision() {
%1 = tail call i32 (...) @rand()
%2 = srem i32 %1, 5
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
__attribute__((constructor)) void init_func(void) {
  printf("init_func with default priority\n");
}


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

x86 assembly (clang, -O2):
<init_func>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"init_func with default priority\0A\00"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @init_func, i8* null }]
define void @init_func() {
%1 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @init_func, i8* null }]
@str = [32 x i8] c"init_func with default priority\00"
define void @init_func() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
ret void
}
adrreg0reg1_set(r0, r1, x0, x1, p0, p1) int r0, r1;
int *p0, *p1;
{ (p0[10000000]) = r1; }


x86 assembly (clang, -O0):
<adrreg0reg1_set>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x2625a00(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adrreg0reg1_set>:
mov    %esi,0x2625a00(%r8)
ret

LLVM IR (-O0):
define i32 @adrreg0reg1_set(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*
%13 = alloca i32*
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32* %4, i32** %12
store i32* %5, i32** %13
%14 = load i32, i32* %9
%15 = load i32*, i32** %12
%16 = getelementptr inbounds i32, i32* %15, i64 10000000
store i32 %14, i32* %16
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @adrreg0reg1_set(i32 %0, i32 %1, i32 %2, i32 %3, i32* nocapture writeonly %4, i32* nocapture readnone %5) {
%7 = getelementptr inbounds i32, i32* %4, i64 10000000
store i32 %1, i32* %7
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int add(int ii) {
  ii++;
  printf("ii = %d\n", ii);
}


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

x86 assembly (clang, -O2):
<add>:
lea    0x1(%rdi),%esi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"ii = %d\0A\00"
define i32 @add(i32 %0) {
%2 = add nsw i32 %0, 1
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
scalar_t__ strstr(char *, char *);
int main() {
  char s0[] = "dysfunctionl";
  char s1[] = "fun";
  if (strstr(s0, s1)) {
    puts("I found the fun in dysfunctionl!");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x11(%rbp)
mov    0xec8(%rip),%eax
mov    %eax,-0x9(%rbp)
mov    0xec3(%rip),%al
mov    %al,-0x5(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x15(%rbp)
lea    -0x11(%rbp),%rdi
lea    -0x15(%rbp),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1178 <main+0x58>
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x6c6e6f6974636e,%rax
mov    %rax,0xd(%rsp)
movabs $0x74636e7566737964,%rax
6e 63 74
mov    %rax,0x8(%rsp)
movl   $0x6e7566,0x4(%rsp)
lea    0x8(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     116a <main+0x4a>
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.s0 = [13 x i8] c"dysfunctionl\00"
@__const.main.s1 = [4 x i8] c"fun\00"
@.str = [33 x i8] c"I found the fun in dysfunctionl!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [13 x i8]
%3 = alloca [4 x i8]
store i32 0, i32* %1
%4 = bitcast [13 x i8]* %2 to i8*
%5 = bitcast [4 x i8]* %3 to i8*
%6 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%8 = call i64 @strstr(i8* %6, i8* %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %0
ret i32 0
}

LLVM IR (-O2):
@__const.main.s0 = [13 x i8] c"dysfunctionl\00"
@.str = [33 x i8] c"I found the fun in dysfunctionl!\00"
define i32 @main() {
%1 = alloca [13 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
store i32 7239014, i32* %2
%5 = call i64 @strstr(i8* %3, i8* %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
ret i32 0
}