xunge/DecIR huggingface dataset:
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x, i, n;
  x = __VERIFIER_nondet_int();
  i = __VERIFIER_nondet_int();
  n = __VERIFIER_nondet_int();
  while (x < n) {
    i = i + 1;
    x = x + 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1160 <main+0x50>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113d <main+0x2d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ print_log(char *);
void print_logs(int argc, char *argv[]) {
  int suite_idx = 2;
  while (suite_idx < argc) {
    print_log(argv[suite_idx]);
    suite_idx++;
  }
}


x86 assembly (clang, -O0):
<print_logs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1151 <print_logs+0x41>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <print_log@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <print_logs+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_logs>:
push   %r15
push   %r14
push   %rbx
cmp    $0x3,%edi
jl     1142 <print_logs+0x32>
mov    %rsi,%r14
mov    %edi,%r15d
mov    $0x2,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14,%rbx,8),%rdi
call   1030 <print_log@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <print_logs+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @print_logs(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 2
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 2, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @print_log(i8* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
int indexScalarTable(int ns, int q, int c) { return c * ns + q; }


x86 assembly (clang, -O0):
<indexScalarTable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<indexScalarTable>:
imul   %edx,%edi
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @indexScalarTable(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* %6
%8 = load i32, i32* %4
%9 = mul nsw i32 %7, %8
%10 = load i32, i32* %5
%11 = add nsw i32 %9, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @indexScalarTable(i32 %0, i32 %1, i32 %2) {
%4 = mul nsw i32 %2, %0
%5 = add nsw i32 %4, %1
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ overflow();
int main(void) {
  overflow();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @overflow()
ret i32 0
}
void mp_svg_backend_free(void *mp) { return; }


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

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

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

LLVM IR (-O2):
define void @mp_svg_backend_free(i8* nocapture %0) {
ret void
}
/* Type definitions */
struct darr {
  int dummy;
};

/* Variables and functions */
void const *darr_end(struct darr *);
const void *darr_end_const(const struct darr *d) {
  return darr_end((struct darr *)d);
}


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

x86 assembly (clang, -O2):
<darr_end_const>:
jmp    1030 <darr_end@plt>

LLVM IR (-O0):
%struct.darr = type { i32 }
define i8* @darr_end_const(%struct.darr* %0) {
%2 = alloca %struct.darr*
store %struct.darr* %0, %struct.darr** %2
%3 = load %struct.darr*, %struct.darr** %2
%4 = call i8* @darr_end(%struct.darr* %3)
ret i8* %4
}

LLVM IR (-O2):
%struct.darr = type { i32 }
define i8* @darr_end_const(%struct.darr* %0) {
%2 = tail call i8* @darr_end(%struct.darr* %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ Clear_Screen();
int /*<<< orphan*/ Display_Cursor();
int /*<<< orphan*/ Move_Cursor(int, int);
int /*<<< orphan*/ end();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void out_p(int signal) {
  end();
  Clear_Screen();
  Move_Cursor(1, 1);
  Display_Cursor();
  exit(0);
}


x86 assembly (clang, -O0):
<out_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1040 <end@plt>
mov    $0x0,%al
call   1060 <Clear_Screen@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <Move_Cursor@plt>
mov    $0x0,%al
call   1050 <Display_Cursor@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<out_p>:
push   %rax
xor    %eax,%eax
call   1040 <end@plt>
xor    %eax,%eax
call   1060 <Clear_Screen@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <Move_Cursor@plt>
xor    %eax,%eax
call   1050 <Display_Cursor@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
define void @out_p(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @end()
%4 = call i32 (...) @Clear_Screen()
%5 = call i32 @Move_Cursor(i32 1, i32 1)
%6 = call i32 (...) @Display_Cursor()
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @out_p(i32 %0) {
%2 = tail call i32 (...) @end()
%3 = tail call i32 (...) @Clear_Screen()
%4 = tail call i32 @Move_Cursor(i32 1, i32 1)
%5 = tail call i32 (...) @Display_Cursor()
%6 = tail call i32 @exit(i32 0)
unreachable
}
void vl_lock_state() {}


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

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

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

LLVM IR (-O2):
define void @vl_lock_state() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main() {
  float num = 1.23678;
  printf("num=%f\n", num);
  printf("num=%.2f\n", num);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [8 x i8] c"num=%f\0A\00"
@.str.1 = [10 x i8] c"num=%.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float 0x3FF3C9D9E0000000, float* %2
%3 = load float, float* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), float %3)
%5 = load float, float* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"num=%f\0A\00"
@.str.1 = [10 x i8] c"num=%.2f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), float 0x3FF3C9D9E0000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float 0x3FF3C9D9E0000000)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
char *getprogname();
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(
      stderr, "usage: %s [-46dn] [-l login] [-p port]%s [login@]host command\n",
      getprogname(), "");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xea8(%rip),%rsi
lea    0xedf(%rip),%rcx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ea8(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xeb8(%rip),%rsi
lea    0xeef(%rip),%rcx
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [63 x i8] c"usage: %s [-46dn] [-l login] [-p port]%s [login@]host command\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @getprogname()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [63 x i8] c"usage: %s [-46dn] [-l login] [-p port]%s [login@]host command\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @getprogname()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ MUSIC_Continue();
void MUS_ResumeSong(int handle) { MUSIC_Continue(); }


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

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

LLVM IR (-O0):
define void @MUS_ResumeSong(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @MUSIC_Continue()
ret void
}

LLVM IR (-O2):
define void @MUS_ResumeSong(i32 %0) {
%2 = tail call i32 (...) @MUSIC_Continue()
ret void
}
void free_list(char **list) {
  char **cp;
  if (list == 0)
    return;
  for (cp = list; *cp; cp++)
    free(*cp);
  free(list);
}


x86 assembly (clang, -O0):
<free_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <free_list+0x1c>
jmp    1168 <free_list+0x58>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     115f <free_list+0x4f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1134 <free_list+0x24>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @free_list(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = icmp eq i8* %4, null
br i1 %5, label %12, label %6
6: ; preds = %3, %6
%7 = phi i8* [ %10, %6 ], [ %4, %3 ]
%8 = phi i8** [ %9, %6 ], [ %0, %3 ]
tail call void @free(i8* %7)
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %6
12: ; preds = %6, %3
%13 = bitcast i8** %0 to i8*
tail call void @free(i8* %13)
br label %14
14: ; preds = %1, %12
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fclose(int /*<<< orphan*/ *);
int kws_fclose(FILE **stream) {
  FILE *f = *stream;
  *stream = NULL;
  return f ? fclose(f) : 0;
}


x86 assembly (clang, -O0):
<kws_fclose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x10(%rbp)
je     114e <kws_fclose+0x3e>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    %eax,-0x14(%rbp)
jmp    1158 <kws_fclose+0x48>
xor    %eax,%eax
mov    %eax,-0x14(%rbp)
jmp    1158 <kws_fclose+0x48>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kws_fclose>:
mov    %rdi,%rax
mov    (%rdi),%rdi
movq   $0x0,(%rax)
test   %rdi,%rdi
je     1127 <kws_fclose+0x17>
jmp    1030 <fclose@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @kws_fclose(i32** nocapture %0) {
%2 = load i32*, i32** %0
store i32* null, i32** %0
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fclose(i32* %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ 0, %1 ]
ret i32 %7
}
void UAPP_ParseRxMsg(void) {}


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

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

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

LLVM IR (-O2):
define void @UAPP_ParseRxMsg() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void __attribute__((noreturn)) show_usage(int ret) {
  fprintf(stderr,
          "Usage: environ [-c|-q|-s|-h] [-p PREFIX] [-i include0,include1,...] "
          "[-u unset0,unset1,...] [-f filename] [command [arg]...]\n");
  exit(ret);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<show_usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [125 x i8] c"Usage: environ [-c|-q|-s|-h] [-p PREFIX] [-i include0,include1,...] [-u unset0,unset1,...] [-f filename] [command [arg]...]\0A\00"
define void @show_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* %2
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [125 x i8] c"Usage: environ [-c|-q|-s|-h] [-p PREFIX] [-i include0,include1,...] [-u unset0,unset1,...] [-f filename] [command [arg]...]\0A\00"
define void @show_usage(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @exit(i32 %0)
unreachable
}
int ll_merge_requests_fn(struct request_queue *q, struct request *req,
                         struct request *next) {
  int a;
  return a;
}


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

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

LLVM IR (-O0):
%struct.request_queue = type opaque
%struct.request = type opaque
define i32 @ll_merge_requests_fn(%struct.request_queue* %0, %struct.request* %1, %struct.request* %2) {
%4 = alloca %struct.request_queue*
%5 = alloca %struct.request*
%6 = alloca %struct.request*
%7 = alloca i32
store %struct.request_queue* %0, %struct.request_queue** %4
store %struct.request* %1, %struct.request** %5
store %struct.request* %2, %struct.request** %6
%8 = load i32, i32* %7
ret i32 %8
}

LLVM IR (-O2):
%struct.request_queue = type opaque
%struct.request = type opaque
define i32 @ll_merge_requests_fn(%struct.request_queue* nocapture readnone %0, %struct.request* nocapture readnone %1, %struct.request* nocapture readnone %2) {
ret i32 undef
}
float LerpAngle(float a2, float a1, float frac) {
  if (a1 - a2 > 180)
    a1 -= 360;
  if (a1 - a2 < -180)
    a1 += 360;
  return a2 + frac * (a1 - a2);
}


x86 assembly (clang, -O0):
<LerpAngle>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0x4(%rbp),%xmm0
movss  0xedb(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1144 <LerpAngle+0x44>
movss  -0x8(%rbp),%xmm0
movss  0xec9(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm1
subss  -0x4(%rbp),%xmm1
movss  0xeb2(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    1171 <LerpAngle+0x71>
movss  0xe9d(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
subss  -0x4(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<LerpAngle>:
movaps %xmm1,%xmm3
subss  %xmm0,%xmm3
movss  0xef1(%rip),%xmm4
addss  %xmm1,%xmm4
movss  0xee9(%rip),%xmm5
cmpltss %xmm3,%xmm5
andps  %xmm5,%xmm4
andnps %xmm1,%xmm5
orps   %xmm4,%xmm5
movaps %xmm5,%xmm1
subss  %xmm0,%xmm1
movaps %xmm5,%xmm3
addss  0xecd(%rip),%xmm3
cmpltss 0xec8(%rip),%xmm1
andps  %xmm1,%xmm3
andnps %xmm5,%xmm1
orps   %xmm3,%xmm1
subss  %xmm0,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @LerpAngle(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %5
%8 = load float, float* %4
%9 = fsub float %7, %8
%10 = fcmp ogt float %9, 1.800000e+02
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load float, float* %5
%13 = fsub float %12, 3.600000e+02
store float %13, float* %5
br label %14
14: ; preds = %11, %3
%15 = load float, float* %5
%16 = load float, float* %4
%17 = fsub float %15, %16
%18 = fcmp olt float %17, -1.800000e+02
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load float, float* %5
%21 = fadd float %20, 3.600000e+02
store float %21, float* %5
br label %22
22: ; preds = %19, %14
%23 = load float, float* %4
%24 = load float, float* %6
%25 = load float, float* %5
%26 = load float, float* %4
%27 = fsub float %25, %26
%28 = call float @llvm.fmuladd.f32(float %24, float %27, float %23)
ret float %28
}

LLVM IR (-O2):
define float @LerpAngle(float %0, float %1, float %2) {
%4 = fsub float %1, %0
%5 = fcmp ogt float %4, 1.800000e+02
%6 = fadd float %1, -3.600000e+02
%7 = select i1 %5, float %6, float %1
%8 = fsub float %7, %0
%9 = fcmp olt float %8, -1.800000e+02
%10 = fadd float %7, 3.600000e+02
%11 = select i1 %9, float %10, float %7
%12 = fsub float %11, %0
%13 = tail call float @llvm.fmuladd.f32(float %2, float %12, float %0)
ret float %13
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void c64_set_freq_vic(uint32_t hz) {}


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

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

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

LLVM IR (-O2):
define void @c64_set_freq_vic(i32 %0) {
ret void
}
/* Variables and functions */
int get_mdterm();
void md_get_size(int *x0, int *y0, int *width, int *height) {
  switch (get_mdterm()) {}
}


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

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

LLVM IR (-O0):
define void @md_get_size(i32* %0, i32* %1, i32* %2, i32* %3) {
%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
store i32* %3, i32** %8
%9 = call i32 (...) @get_mdterm()
switch i32 %9, label %10 [
]
10: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @md_get_size(i32* nocapture readnone %0, i32* nocapture readnone %1, i32* nocapture readnone %2, i32* nocapture readnone %3) {
%5 = tail call i32 (...) @get_mdterm()
ret void
}
int do_306() { return 306; }


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

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

LLVM IR (-O0):
define i32 @do_306() {
ret i32 306
}

LLVM IR (-O2):
define i32 @do_306() {
ret i32 306
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
void err_output(const char *fmt, va_list ap) { return; }


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

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

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

LLVM IR (-O2):
define void @err_output(i8* nocapture %0, i32 %1) {
ret void
}
const char *__attribute__((weak)) __attribute__((short_call))
__attribute__((no)) weak_s1(void) {
  return "weak_s1";
}


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"weak_s1\00"
define weak i8* @weak_s1() {
ret i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t fibo(uint32_t x) {
  if (x <= 2)
    return 1;
  else
    return fibo(x - 1) + fibo(x - 2);
}


x86 assembly (clang, -O0):
<fibo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jg     1131 <fibo+0x21>
movl   $0x1,-0x4(%rbp)
jmp    1154 <fibo+0x44>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <fibo@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibo@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibo>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%ebp
cmp    $0x3,%edi
jl     1145 <fibo+0x35>
mov    %edi,%ebx
add    $0x2,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x3(%rbx),%edi
call   1030 <fibo@plt>
add    %eax,%ebp
add    $0xfffffffe,%ebx
cmp    $0x4,%ebx
ja     1130 <fibo+0x20>
add    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibo(i32 %0) {
%2 = icmp slt i32 %0, 3
br i1 %2, label %13, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ %0, %1 ]
%5 = phi i32 [ %9, %3 ], [ 0, %1 ]
%6 = add nsw i32 %4, -1
%7 = tail call i32 @fibo(i32 %6)
%8 = add nsw i32 %4, -2
%9 = add nsw i32 %7, %5
%10 = icmp ult i32 %4, 5
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = add i32 %9, 1
br label %13
13: ; preds = %11, %1
%14 = phi i32 [ 1, %1 ], [ %12, %11 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ _os_platform_do_something_else();
void do_something_else() { _os_platform_do_something_else(); }


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

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

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

LLVM IR (-O2):
define void @do_something_else() {
%1 = tail call i32 (...) @_os_platform_do_something_else()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
char *malloc(scalar_t__);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
char *charadd(char *s1, char *s2) {
  char *result = malloc(strlen(s1) + strlen(s2) + 1);
  if (result == NULL)
    exit(1);
  strcpy(result, s1);
  strcat(result, s2);
  return result;
}


x86 assembly (clang, -O0):
<charadd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
add    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    119f <charadd+0x4f>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<charadd>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
call   1040 <strlen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    (%rbx,%rax,1),%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
test   %rax,%rax
je     119f <charadd+0x4f>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <strcat@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
define i8* @charadd(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = call i64 @strlen(i8* %6)
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i8* @malloc(i64 %11)
store i8* %12, i8** %5
%13 = load i8*, i8** %5
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = load i8*, i8** %5
%19 = load i8*, i8** %3
%20 = call i32 @strcpy(i8* %18, i8* %19)
%21 = load i8*, i8** %5
%22 = load i8*, i8** %4
%23 = call i32 @strcat(i8* %21, i8* %22)
%24 = load i8*, i8** %5
ret i8* %24
}

LLVM IR (-O2):
define i8* @charadd(i8* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%5 = add i64 %3, 1
%6 = add i64 %5, %4
%7 = tail call i8* @malloc(i64 %6)
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = tail call i32 @strcpy(i8* %7, i8* %0)
%13 = tail call i32 @strcat(i8* %7, i8* %1)
ret i8* %7
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int uint16_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  uint16_t i = 1;
  uint8_t *x = (uint8_t *)&i;
  if (*x)
    printf("Little Endian\n");
  else
    printf("Big Endian\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     114d <main+0x3d>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
jmp    1159 <main+0x49>
lea    0xebb(%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 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Little Endian\0A\00"
@.str.1 = [12 x i8] c"Big Endian\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64*
store i32 0, i32* %1
store i32 1, i32* %2
%4 = bitcast i32* %2 to i64*
store i64* %4, i64** %3
%5 = load i64*, i64** %3
%6 = load i64, i64* %5
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %12
10: ; preds = %0
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
ret i32 0
}

LLVM IR (-O2):
@str = [14 x i8] c"Little Endian\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int isnScramble(char *, char *, int);
int strlen(char *);
bool isScramble1(char *s1, char *s2) {
  int len = strlen(s1);
  return isnScramble(s1, s2, len);
}


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

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

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

LLVM IR (-O2):
define i32 @isScramble1(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @isnScramble(i8* %0, i8* %1, i32 %3)
ret i32 %4
}
int Base64_DecodeSize(int StrSize) { return ((StrSize + 3) >> 2) * 3; }


x86 assembly (clang, -O0):
<Base64_DecodeSize>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x3,%eax
sar    $0x2,%eax
imul   $0x3,%eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Base64_DecodeSize>:
add    $0x3,%edi
sar    $0x2,%edi
lea    (%rdi,%rdi,2),%eax
ret

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

LLVM IR (-O2):
define i32 @Base64_DecodeSize(i32 %0) {
%2 = add nsw i32 %0, 3
%3 = ashr i32 %2, 2
%4 = mul nsw i32 %3, 3
ret i32 %4
}
int hungarian_imax(int a, int b) { return (a < b) ? b : a; }


x86 assembly (clang, -O0):
<hungarian_imax>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1121 <hungarian_imax+0x21>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <hungarian_imax+0x27>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hungarian_imax>:
mov    %edi,%eax
cmp    %esi,%edi
cmovl  %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @hungarian_imax(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %1, i32 %0
ret i32 %4
}
void av_opt_show2() {}


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

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

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

LLVM IR (-O2):
define void @av_opt_show2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int const, int const, int);
void one(const int a, const int b) {
  int c = (a * a) + (b * b);
  printf("%d^2 + %d^2 = %d\n", a, b, c);
}


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

x86 assembly (clang, -O2):
<one>:
mov    %esi,%edx
mov    %edi,%eax
imul   %edi,%eax
mov    %esi,%ecx
imul   %esi,%ecx
add    %eax,%ecx
lea    0xedb(%rip),%rax
mov    %edi,%esi
mov    %rax,%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [18 x i8] c"%d^2 + %d^2 = %d\0A\00"
define void @one(i32 %0, i32 %1) {
%3 = mul nsw i32 %0, %0
%4 = mul nsw i32 %1, %1
%5 = add nuw nsw i32 %4, %3
%6 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %5)
ret void
}
/* Type definitions */
struct sockaddr_in {
  int dummy;
};
struct sockaddr {
  int dummy;
};

/* Variables and functions */
int accept(int, struct sockaddr *, int *);
int /*<<< orphan*/ perror(char *);
int tcpsock_accept(int sfd) {
  struct sockaddr_in addr;
  int cli_len = sizeof addr;
  int nsfd;
  nsfd = accept(sfd, (struct sockaddr *)&addr, &cli_len);
  if (nsfd < 0) {
    perror("accept() ");
    return -1;
  }
  return nsfd;
}


x86 assembly (clang, -O0):
<tcpsock_accept>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x4,-0x14(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
call   1040 <accept@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    1167 <tcpsock_accept+0x47>
lea    0xeaa(%rip),%rdi
call   1030 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    116d <tcpsock_accept+0x4d>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcpsock_accept>:
sub    $0x18,%rsp
movl   $0x4,0xc(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1040 <accept@plt>
test   %eax,%eax
js     1144 <tcpsock_accept+0x24>
add    $0x18,%rsp
ret
lea    0xeb5(%rip),%rdi
call   1030 <perror@plt>
mov    $0xffffffff,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [10 x i8] c"accept() \00"
define i32 @tcpsock_accept(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 4, i32* %5
%7 = load i32, i32* %3
%8 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%9 = call i32 @accept(i32 %7, %struct.sockaddr* %8, i32* %5)
store i32 %9, i32* %6
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %2
br label %16
14: ; preds = %1
%15 = load i32, i32* %6
store i32 %15, i32* %2
br label %16
16: ; preds = %14, %12
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [10 x i8] c"accept() \00"
define i32 @tcpsock_accept(i32 %0) {
%2 = alloca %struct.sockaddr_in
%3 = alloca i32
%4 = bitcast %struct.sockaddr_in* %2 to i8*
%5 = bitcast i32* %3 to i8*
store i32 4, i32* %3
%6 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%7 = call i32 @accept(i32 %0, %struct.sockaddr* %6, i32* %3)
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %1, %9
%12 = phi i32 [ -1, %9 ], [ %7, %1 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ ipl_eckd();
int /*<<< orphan*/ ipl_iso_el_torito();
int /*<<< orphan*/ sclp_print(char *);
int /*<<< orphan*/ virtio_assume_eckd();
int virtio_get_block_size();
void zipl_load_vscsi(void) {
  if (virtio_get_block_size() == 2048) {
    ipl_iso_el_torito();
  }
  sclp_print("Using guessed DASD geometry.\n");
  virtio_assume_eckd();
  ipl_eckd();
}


x86 assembly (clang, -O0):
<zipl_load_vscsi>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <virtio_get_block_size@plt>
cmp    $0x800,%eax
jne    116d <zipl_load_vscsi+0x1d>
mov    $0x0,%al
call   1040 <ipl_iso_el_torito@plt>
lea    0xe8c(%rip),%rdi
call   1070 <sclp_print@plt>
mov    $0x0,%al
call   1060 <virtio_assume_eckd@plt>
mov    $0x0,%al
call   1050 <ipl_eckd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<zipl_load_vscsi>:
push   %rax
xor    %eax,%eax
call   1030 <virtio_get_block_size@plt>
cmp    $0x800,%eax
jne    1166 <zipl_load_vscsi+0x16>
xor    %eax,%eax
call   1040 <ipl_iso_el_torito@plt>
lea    0xe93(%rip),%rdi
call   1070 <sclp_print@plt>
xor    %eax,%eax
call   1060 <virtio_assume_eckd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <ipl_eckd@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Using guessed DASD geometry.\0A\00"
define void @zipl_load_vscsi() {
%1 = call i32 (...) @virtio_get_block_size()
%2 = icmp eq i32 %1, 2048
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @ipl_iso_el_torito()
br label %5
5: ; preds = %3, %0
%6 = call i32 @sclp_print(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @virtio_assume_eckd()
%8 = call i32 (...) @ipl_eckd()
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Using guessed DASD geometry.\0A\00"
define void @zipl_load_vscsi() {
%1 = tail call i32 (...) @virtio_get_block_size()
%2 = icmp eq i32 %1, 2048
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @ipl_iso_el_torito()
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @sclp_print(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (...) @virtio_assume_eckd()
%8 = tail call i32 (...) @ipl_eckd()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bgYellow(char *);
int /*<<< orphan*/ printColor(int /*<<< orphan*/);
void cmBgYellow(char *str) { printColor(bgYellow(str)); }


x86 assembly (clang, -O0):
<cmBgYellow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <bgYellow@plt>
mov    %eax,%edi
call   1030 <printColor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmBgYellow>:
push   %rax
call   1040 <bgYellow@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <printColor@plt>

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

LLVM IR (-O2):
define void @cmBgYellow(i8* %0) {
%2 = tail call i32 @bgYellow(i8* %0)
%3 = tail call i32 @printColor(i32 %2)
ret void
}
void dummy_clearviewport(void) { ; }


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

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

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

LLVM IR (-O2):
define void @dummy_clearviewport() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void turnMin() {
  system("echo  1400000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle");
  system("echo  1400000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle");
  system("echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable");
  system("echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable");
}


x86 assembly (clang, -O0):
<turnMin>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <system@plt>
lea    0xf11(%rip),%rdi
call   1030 <system@plt>
lea    0xf3d(%rip),%rdi
call   1030 <system@plt>
lea    0xf5e(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<turnMin>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <system@plt>
lea    0xf14(%rip),%rdi
call   1030 <system@plt>
lea    0xf40(%rip),%rdi
call   1030 <system@plt>
lea    0xf61(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"echo 1400000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle\00"
@.str.1 = [56 x i8] c"echo 1400000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle\00"
@.str.2 = [45 x i8] c"echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable\00"
@.str.3 = [45 x i8] c"echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable\00"
define void @turnMin() {
%1 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [56 x i8] c"echo 1400000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle\00"
@.str.1 = [56 x i8] c"echo 1400000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle\00"
@.str.2 = [45 x i8] c"echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable\00"
@.str.3 = [45 x i8] c"echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable\00"
define void @turnMin() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ core3_swap(char *, int);
void U_EMRSELECTCLIPPATH_swap(char *record, int torev) {
  core3_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_EMRSELECTCLIPPATH_swap>:
jmp    1030 <core3_swap@plt>

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

LLVM IR (-O2):
define void @U_EMRSELECTCLIPPATH_swap(i8* %0, i32 %1) {
%3 = tail call i32 @core3_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128GeneralIOPinP__8__IO__clr();
void CC2420TransmitP__CSN__clr(void) { HplAtm128GeneralIOPinP__8__IO__clr(); }


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

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

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

LLVM IR (-O2):
define void @CC2420TransmitP__CSN__clr() {
%1 = tail call i32 (...) @HplAtm128GeneralIOPinP__8__IO__clr()
ret void
}