xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ geteuid();
int /*<<< orphan*/ ltr_int_log_message(char *);
int /*<<< orphan*/ printf(char *);
void ltr_int_check_root() {
  if (geteuid() == 0) {
    ltr_int_log_message("Linuxtrack components aren't supposed running with "
                        "root privileges!\n");
    printf("Linuxtrack components aren't supposed running with root "
           "privileges!\n");
    exit(0);
  }
}


x86 assembly (clang, -O0):
<ltr_int_check_root>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <geteuid@plt>
cmp    $0x0,%rax
jne    1174 <ltr_int_check_root+0x34>
lea    0xea4(%rip),%rdi
call   1030 <ltr_int_log_message@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ltr_int_check_root>:
push   %rax
xor    %eax,%eax
call   1050 <geteuid@plt>
test   %rax,%rax
je     114f <ltr_int_check_root+0xf>
pop    %rax
ret
lea    0xeaa(%rip),%rdi
call   1040 <ltr_int_log_message@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"Linuxtrack components aren't supposed running with root privileges!\0A\00"
define void @ltr_int_check_root() {
%1 = call i64 (...) @geteuid()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = call i32 @ltr_int_log_message(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @exit(i32 0)
unreachable
7: ; preds = %0
ret void
}

LLVM IR (-O2):
@.str = [69 x i8] c"Linuxtrack components aren't supposed running with root privileges!\0A\00"
@str = [68 x i8] c"Linuxtrack components aren't supposed running with root privileges!\00"
define void @ltr_int_check_root() {
%1 = tail call i64 (...) @geteuid()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i32 @ltr_int_log_message(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 0)
unreachable
7: ; preds = %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ analyze_cards();
int /*<<< orphan*/ print_result();
int /*<<< orphan*/ read_cards();
int main(void) {
  for (;;) {
    read_cards();
    analyze_cards();
    print_result();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <read_cards@plt>
mov    $0x0,%al
call   1050 <analyze_cards@plt>
mov    $0x0,%al
call   1040 <print_result@plt>
jmp    113f <main+0xf>

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <read_cards@plt>
xor    %eax,%eax
call   1050 <analyze_cards@plt>
xor    %eax,%eax
call   1040 <print_result@plt>
jmp    1140 <main+0x10>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %2, %0
%3 = call i32 (...) @read_cards()
%4 = call i32 (...) @analyze_cards()
%5 = call i32 (...) @print_result()
br label %2
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 (...) @read_cards()
%3 = tail call i32 (...) @analyze_cards()
%4 = tail call i32 (...) @print_result()
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ IniAdj_OFILM();
int /*<<< orphan*/ IniClk_OFILM();
int /*<<< orphan*/ IniCmd_OFILM();
int /*<<< orphan*/ IniDgy_OFILM();
int /*<<< orphan*/ IniFil_OFILM();
int /*<<< orphan*/ IniGyr_OFILM();
int /*<<< orphan*/ IniIop_OFILM();
int /*<<< orphan*/ IniMon_OFILM();
int /*<<< orphan*/ IniSrv_OFILM();
void IniSet_OFILM(void) {
  ;
  IniCmd_OFILM();
  ;
  IniClk_OFILM();
  ;
  IniIop_OFILM();
  ;
  IniDgy_OFILM();
  ;
  IniMon_OFILM();
  ;
  IniSrv_OFILM();
  ;
  IniGyr_OFILM();
  ;
  IniFil_OFILM();
  ;
  IniAdj_OFILM();
}


x86 assembly (clang, -O0):
<IniSet_OFILM>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <IniCmd_OFILM@plt>
mov    $0x0,%al
call   1060 <IniClk_OFILM@plt>
mov    $0x0,%al
call   10a0 <IniIop_OFILM@plt>
mov    $0x0,%al
call   1030 <IniDgy_OFILM@plt>
mov    $0x0,%al
call   10b0 <IniMon_OFILM@plt>
mov    $0x0,%al
call   1080 <IniSrv_OFILM@plt>
mov    $0x0,%al
call   1050 <IniGyr_OFILM@plt>
mov    $0x0,%al
call   1090 <IniFil_OFILM@plt>
mov    $0x0,%al
call   1040 <IniAdj_OFILM@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IniSet_OFILM>:
push   %rax
xor    %eax,%eax
call   1070 <IniCmd_OFILM@plt>
xor    %eax,%eax
call   1060 <IniClk_OFILM@plt>
xor    %eax,%eax
call   10a0 <IniIop_OFILM@plt>
xor    %eax,%eax
call   1030 <IniDgy_OFILM@plt>
xor    %eax,%eax
call   10b0 <IniMon_OFILM@plt>
xor    %eax,%eax
call   1080 <IniSrv_OFILM@plt>
xor    %eax,%eax
call   1050 <IniGyr_OFILM@plt>
xor    %eax,%eax
call   1090 <IniFil_OFILM@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <IniAdj_OFILM@plt>

LLVM IR (-O0):
define void @IniSet_OFILM() {
%1 = call i32 (...) @IniCmd_OFILM()
%2 = call i32 (...) @IniClk_OFILM()
%3 = call i32 (...) @IniIop_OFILM()
%4 = call i32 (...) @IniDgy_OFILM()
%5 = call i32 (...) @IniMon_OFILM()
%6 = call i32 (...) @IniSrv_OFILM()
%7 = call i32 (...) @IniGyr_OFILM()
%8 = call i32 (...) @IniFil_OFILM()
%9 = call i32 (...) @IniAdj_OFILM()
ret void
}

LLVM IR (-O2):
define void @IniSet_OFILM() {
%1 = tail call i32 (...) @IniCmd_OFILM()
%2 = tail call i32 (...) @IniClk_OFILM()
%3 = tail call i32 (...) @IniIop_OFILM()
%4 = tail call i32 (...) @IniDgy_OFILM()
%5 = tail call i32 (...) @IniMon_OFILM()
%6 = tail call i32 (...) @IniSrv_OFILM()
%7 = tail call i32 (...) @IniGyr_OFILM()
%8 = tail call i32 (...) @IniFil_OFILM()
%9 = tail call i32 (...) @IniAdj_OFILM()
ret void
}
int _glfwPlatformGetNumberOfProcessors(void) {
  int n;
  n = 1;
  return n;
}


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

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

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

LLVM IR (-O2):
define i32 @_glfwPlatformGetNumberOfProcessors() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, ...);
int M380_f(char *s) {
  debug("M380_f(const char *s) is not yet implemented!\n");
  debug("%s\n", s);
  return 1;
}


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

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

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

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


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

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

LLVM IR (-O0):
@.str = [46 x i8] c"NOT IMPLEMENTED:pa_memblockq_peek_fixed_size\0A\00"
define i32 @pa_memblockq_peek_fixed_size() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [45 x i8] c"NOT IMPLEMENTED:pa_memblockq_peek_fixed_size\00"
define i32 @pa_memblockq_peek_fixed_size() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  puts("OK");
  return 0;
}


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 <puts@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 = [3 x i8] c"OK\00"
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 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"OK\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void os_trace_api_void(unsigned id) {}


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

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

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

LLVM IR (-O2):
define void @os_trace_api_void(i32 %0) {
ret void
}
void no_daemonize(char *pidfile) {}


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

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

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

LLVM IR (-O2):
define void @no_daemonize(i8* nocapture %0) {
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char *, char *);
int first_number_check(char *number) {
  if (strcmp(number, "978") == 0 || strcmp(number, "979") == 0) {
    return 1;
  } else
    return 0;
}


x86 assembly (clang, -O0):
<first_number_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1150 <first_number_check+0x40>
mov    -0x10(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    115c <first_number_check+0x4c>
movl   $0x1,-0x4(%rbp)
jmp    1163 <first_number_check+0x53>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<first_number_check>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1141 <first_number_check+0x31>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"978\00"
@.str.1 = [4 x i8] c"979\00"
define i32 @first_number_check(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
long double ffoo3(float x) { return x; }


x86 assembly (clang, -O0):
<ffoo3>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
flds   -0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffoo3>:
movss  %xmm0,-0x4(%rsp)
flds   -0x4(%rsp)
ret

LLVM IR (-O0):
define x86_fp80 @ffoo3(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to x86_fp80
ret x86_fp80 %4
}

LLVM IR (-O2):
define x86_fp80 @ffoo3(float %0) {
%2 = fpext float %0 to x86_fp80
ret x86_fp80 %2
}
/* Variables and functions */
char **generateParenthesis(int, int *);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  int n;
  char **res = generateParenthesis(3, &n);
  while (n-- > 0)
    printf("%s\n", res[n]);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3,%edi
lea    -0x8(%rbp),%rsi
call   1040 <generateParenthesis@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
jle    1172 <main+0x52>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    1141 <main+0x21>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0x4(%rsp),%rsi
mov    $0x3,%edi
call   1040 <generateParenthesis@plt>
mov    %rax,%rbx
mov    0x4(%rsp),%ecx
lea    -0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
test   %ecx,%ecx
jle    116d <main+0x4d>
lea    0xeb4(%rip),%r14
nopl   0x0(%rax)
mov    %eax,%eax
mov    (%rbx,%rax,8),%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%ecx
lea    -0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
test   %ecx,%ecx
jg     1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i8** @generateParenthesis(i32 3, i32* %1)
%4 = load i32, i32* %1
%5 = add nsw i32 %4, -1
store i32 %5, i32* %1
%6 = icmp sgt i32 %4, 0
br i1 %6, label %7, label %16
7: ; preds = %0, %7
%8 = phi i32 [ %14, %7 ], [ %5, %0 ]
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds i8*, i8** %3, i64 %9
%11 = load i8*, i8** %10
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
%13 = load i32, i32* %1
%14 = add nsw i32 %13, -1
store i32 %14, i32* %1
%15 = icmp sgt i32 %13, 0
br i1 %15, label %7, label %16
16: ; preds = %7, %0
ret i32 0
}
/* Variables and functions */
int cg_write(char const *, char *, char *);
int cg_enter_current_thread(const char *cgroup) {
  return cg_write(cgroup, "cgroup.threads", "0");
}


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

x86 assembly (clang, -O2):
<cg_enter_current_thread>:
lea    0xee9(%rip),%rsi
lea    0xef1(%rip),%rdx
jmp    1030 <cg_write@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"cgroup.threads\00"
@.str.1 = [2 x i8] c"0\00"
define i32 @cg_enter_current_thread(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @cg_write(i8* %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
@.str = [15 x i8] c"cgroup.threads\00"
@.str.1 = [2 x i8] c"0\00"
define i32 @cg_enter_current_thread(i8* %0) {
%2 = tail call i32 @cg_write(i8* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern int _my_pe(void) { printf("\nOpenSHMEM Analyzer\n"); }


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

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

LLVM IR (-O0):
@.str = [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00"
define i32 @_my_pe() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [20 x i8] c"\0AOpenSHMEM Analyzer\00"
define i32 @_my_pe() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
void InterpolateRow_NEON() {}


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

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

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

LLVM IR (-O2):
define void @InterpolateRow_NEON() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test(int);
int main(void) { test(11); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb,%edi
call   1030 <test@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @test(i32 11)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test(i32 11)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ M_Menu_AddressBook_f();
void AddressBookFunc(void *self) { M_Menu_AddressBook_f(); }


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

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

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

LLVM IR (-O2):
define void @AddressBookFunc(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @M_Menu_AddressBook_f()
ret void
}
void *mem_cache_alloc(void *cache) { return 0; }


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

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

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

LLVM IR (-O2):
define noalias i8* @mem_cache_alloc(i8* nocapture readnone %0) {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ PinSetMain(int);
int main(int argc, char **argv) {
  int a;
  for (a = 0; a < 8; a++) {
    PinSetMain(0);
    PinSetMain(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    1156 <main+0x46>
xor    %edi,%edi
call   1030 <PinSetMain@plt>
mov    $0x1,%edi
call   1030 <PinSetMain@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @PinSetMain(i32 0)
%4 = tail call i32 @PinSetMain(i32 1)
%5 = tail call i32 @PinSetMain(i32 0)
%6 = tail call i32 @PinSetMain(i32 1)
%7 = tail call i32 @PinSetMain(i32 0)
%8 = tail call i32 @PinSetMain(i32 1)
%9 = tail call i32 @PinSetMain(i32 0)
%10 = tail call i32 @PinSetMain(i32 1)
%11 = tail call i32 @PinSetMain(i32 0)
%12 = tail call i32 @PinSetMain(i32 1)
%13 = tail call i32 @PinSetMain(i32 0)
%14 = tail call i32 @PinSetMain(i32 1)
%15 = tail call i32 @PinSetMain(i32 0)
%16 = tail call i32 @PinSetMain(i32 1)
%17 = tail call i32 @PinSetMain(i32 0)
%18 = tail call i32 @PinSetMain(i32 1)
ret i32 0
}
/* Variables and functions */
int _ctype_lookup(int);
int isalpha(int c) { return _ctype_lookup(c) & (0x01 | 0x02); }


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

x86 assembly (clang, -O2):
<isalpha>:
push   %rax
call   1030 <_ctype_lookup@plt>
and    $0x3,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @isalpha(i32 %0) {
%2 = tail call i32 @_ctype_lookup(i32 %0)
%3 = and i32 %2, 3
ret i32 %3
}
/* Type definitions */
struct rbtree_node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct rbtree_node *);
void rbtree_free_node(struct rbtree_node *node) {
  ;
  free(node);
}


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

x86 assembly (clang, -O2):
<rbtree_free_node>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.rbtree_node = type { i32 }
define void @rbtree_free_node(%struct.rbtree_node* nocapture %0) {
%2 = tail call i32 @free(%struct.rbtree_node* %0)
ret void
}
/* Variables and functions */
int DoSetFileLoaderOutputVariables(int, char const *, int, char const *);
int SetFileLoaderOperationOutputVariables(int runningInUserFunction,
                                          const char *fileNameOrPath,
                                          int numWavesLoaded,
                                          const char *waveNames) {
  return DoSetFileLoaderOutputVariables(runningInUserFunction, fileNameOrPath,
                                        numWavesLoaded, waveNames);
}


x86 assembly (clang, -O0):
<SetFileLoaderOperationOutputVariables>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
call   1030 <DoSetFileLoaderOutputVariables@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SetFileLoaderOperationOutputVariables>:
jmp    1030 <DoSetFileLoaderOutputVariables@plt>

LLVM IR (-O0):
define i32 @SetFileLoaderOperationOutputVariables(i32 %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i32, i32* %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = load i8*, i8** %8
%13 = call i32 @DoSetFileLoaderOutputVariables(i32 %9, i8* %10, i32 %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @SetFileLoaderOperationOutputVariables(i32 %0, i8* %1, i32 %2, i8* %3) {
%5 = tail call i32 @DoSetFileLoaderOutputVariables(i32 %0, i8* %1, i32 %2, i8* %3)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ isdigit(char const);
int isnumeric(const char *s) {
  int i;
  i = 0;
  while (s[i] != 0) {
    if (!isdigit(s[i]))
      return 0;
    i++;
  }
  return 1;
}


x86 assembly (clang, -O0):
<isnumeric>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     116c <isnumeric+0x5c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
jne    115e <isnumeric+0x4e>
movl   $0x0,-0x4(%rbp)
jmp    1173 <isnumeric+0x63>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1123 <isnumeric+0x13>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnumeric>:
push   %rbp
push   %rbx
push   %rax
mov    (%rdi),%al
mov    $0x1,%ebp
test   %al,%al
je     114b <isnumeric+0x3b>
mov    %rdi,%rbx
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
je     1149 <isnumeric+0x39>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <isnumeric+0x20>
jmp    114b <isnumeric+0x3b>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @isnumeric(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
br label %5
5: ; preds = %22, %1
%6 = load i8*, i8** %3
%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 %25
13: ; preds = %5
%14 = load i8*, i8** %3
%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 = call i32 @isdigit(i8 signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %13
store i32 0, i32* %2
br label %26
22: ; preds = %13
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %5
25: ; preds = %5
store i32 1, i32* %2
br label %26
26: ; preds = %25, %21
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
define i32 @isnumeric(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %8
4: ; preds = %8
%5 = getelementptr inbounds i8, i8* %0, i64 %13
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %14, label %8
8: ; preds = %1, %4
%9 = phi i64 [ %13, %4 ], [ 0, %1 ]
%10 = phi i8 [ %6, %4 ], [ %2, %1 ]
%11 = tail call i32 @isdigit(i8 signext %10)
%12 = icmp eq i32 %11, 0
%13 = add nuw i64 %9, 1
br i1 %12, label %14, label %4
14: ; preds = %8, %4, %1
%15 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %8 ]
ret i32 %15
}
/* Variables and functions */
int *malloc(int);
int *mj_new_array(int numElements) {
  int *arr = malloc((numElements + 1) * sizeof(int));
  int i;
  arr[0] = numElements;
  arr++;
  for (i = 0; i < numElements; i++) {
    arr[i] = 0;
  }
  return arr;
}


x86 assembly (clang, -O0):
<mj_new_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1177 <mj_new_array+0x67>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114e <mj_new_array+0x3e>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mj_new_array>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%r14d
lea    0x4(,%r14,4),%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %r14d,(%rax)
add    $0x4,%rbx
test   %r14d,%r14d
jle    1154 <mj_new_array+0x34>
mov    %r14d,%edx
shl    $0x2,%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define noalias i32* @mj_new_array(i32 %0) {
%2 = shl i32 %0, 2
%3 = add i32 %2, 4
%4 = tail call i32* @malloc(i32 %3)
store i32 %0, i32* %4
%5 = getelementptr i32, i32* %4, i64 1
%6 = icmp sgt i32 %0, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = bitcast i32* %5 to i8*
%9 = zext i32 %0 to i64
%10 = shl nuw nsw i64 %9, 2
br label %11
11: ; preds = %7, %1
ret i32* %5
}
/* Variables and functions */
int /*<<< orphan*/ PrintErrorCode();
int dxl_read_word(int, int);
int getGoalPos(int Id) {
  int Pos;
  Pos = dxl_read_word(Id, 30);
  PrintErrorCode();
  return Pos;
}


x86 assembly (clang, -O0):
<getGoalPos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1e,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <PrintErrorCode@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getGoalPos>:
push   %rbx
mov    $0x1e,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <PrintErrorCode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @getGoalPos(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @dxl_read_word(i32 %4, i32 30)
store i32 %5, i32* %3
%6 = call i32 (...) @PrintErrorCode()
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @getGoalPos(i32 %0) {
%2 = tail call i32 @dxl_read_word(i32 %0, i32 30)
%3 = tail call i32 (...) @PrintErrorCode()
ret i32 %2
}
/* Type definitions */
struct Buffer {
  int dummy;
};

/* Variables and functions */
size_t buffer_move_logic(struct Buffer *, void *, size_t, int);
size_t buffer_move_next(void *buf, void *data, size_t length) {
  struct Buffer *buffer = buf;
  return buffer_move_logic(buffer, data, length, 1);
}


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

x86 assembly (clang, -O2):
<buffer_move_next>:
mov    $0x1,%ecx
jmp    1030 <buffer_move_logic@plt>

LLVM IR (-O0):
%struct.Buffer = type { i32 }
define i64 @buffer_move_next(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca %struct.Buffer*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to %struct.Buffer*
store %struct.Buffer* %9, %struct.Buffer** %7
%10 = load %struct.Buffer*, %struct.Buffer** %7
%11 = load i8*, i8** %5
%12 = load i64, i64* %6
%13 = call i64 @buffer_move_logic(%struct.Buffer* %10, i8* %11, i64 %12, i32 1)
ret i64 %13
}

LLVM IR (-O2):
%struct.Buffer = type { i32 }
define i64 @buffer_move_next(i8* %0, i8* %1, i64 %2) {
%4 = bitcast i8* %0 to %struct.Buffer*
%5 = tail call i64 @buffer_move_logic(%struct.Buffer* %4, i8* %1, i64 %2, i32 1)
ret i64 %5
}
fun() { return 1; }


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

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

LLVM IR (-O0):
define i32 @fun() {
ret i32 1
}

LLVM IR (-O2):
define i32 @fun() {
ret i32 1
}
int js_ast_parse(struct js_lexer_t *lex, struct js_ast_t *ast) {}


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

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

LLVM IR (-O0):
%struct.js_lexer_t = type opaque
%struct.js_ast_t = type opaque
define i32 @js_ast_parse(%struct.js_lexer_t* %0, %struct.js_ast_t* %1) {
%3 = alloca i32
%4 = alloca %struct.js_lexer_t*
%5 = alloca %struct.js_ast_t*
store %struct.js_lexer_t* %0, %struct.js_lexer_t** %4
store %struct.js_ast_t* %1, %struct.js_ast_t** %5
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
%struct.js_lexer_t = type opaque
%struct.js_ast_t = type opaque
define i32 @js_ast_parse(%struct.js_lexer_t* nocapture readnone %0, %struct.js_ast_t* nocapture readnone %1) {
ret i32 undef
}
void XkbGetIndicatorState() {}


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

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

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

LLVM IR (-O2):
define void @XkbGetIndicatorState() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ caddr_t;

/* Variables and functions */
caddr_t sbrk(int incr) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @sbrk(i32 %0) {
ret i32 0
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int checkfail(const char *buf) {
  return strcmp(buf, "%%FAIL\n") == 0 ||
         strcmp(buf, "%%FAIL IGNORE MSG\n") == 0;
}


x86 assembly (clang, -O0):
<checkfail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     1158 <checkfail+0x48>
mov    -0x8(%rbp),%rdi
lea    0xebf(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkfail>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1141 <checkfail+0x31>
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%%FAIL\0A\00"
@.str.1 = [19 x i8] c"%%FAIL IGNORE MSG\0A\00"
define i32 @checkfail(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
@.str = [8 x i8] c"%%FAIL\0A\00"
@.str.1 = [19 x i8] c"%%FAIL IGNORE MSG\0A\00"
define i32 @checkfail(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ milog_init(char const *);
void mi2log_init(const char *name) { milog_init(name); }


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

x86 assembly (clang, -O2):
<mi2log_init>:
jmp    1030 <milog_init@plt>

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

LLVM IR (-O2):
define void @mi2log_init(i8* %0) {
%2 = tail call i32 @milog_init(i8* %0)
ret void
}
/* Variables and functions */
int get_response(char *);
int /*<<< orphan*/ set_crmode();
int /*<<< orphan*/ tty_mode(int);
int main(int argc, char *argv[]) {
  tty_mode(0);
  set_crmode();
  int response = get_response("Do you want another transaction");
  tty_mode(1);
  return response;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %edi,%edi
call   1050 <tty_mode@plt>
mov    $0x0,%al
call   1040 <set_crmode@plt>
lea    0xea5(%rip),%rdi
call   1030 <get_response@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%edi
call   1050 <tty_mode@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
call   1050 <tty_mode@plt>
xor    %eax,%eax
call   1040 <set_crmode@plt>
lea    0xeba(%rip),%rdi
call   1030 <get_response@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1050 <tty_mode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"Do you want another transaction\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @tty_mode(i32 0)
%8 = call i32 (...) @set_crmode()
%9 = call i32 @get_response(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
store i32 %9, i32* %6
%10 = call i32 @tty_mode(i32 1)
%11 = load i32, i32* %6
ret i32 %11
}

LLVM IR (-O2):
@.str = [32 x i8] c"Do you want another transaction\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @tty_mode(i32 0)
%4 = tail call i32 (...) @set_crmode()
%5 = tail call i32 @get_response(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @tty_mode(i32 1)
ret i32 %5
}
/* Variables and functions */
double ___jn(int /*<<< orphan*/, double *);
double j0(double x) { return ___jn(0, &x); }


x86 assembly (clang, -O0):
<j0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
xor    %edi,%edi
lea    -0x8(%rbp),%rsi
call   1030 <___jn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<j0>:
push   %rax
movsd  %xmm0,(%rsp)
mov    %rsp,%rsi
xor    %edi,%edi
call   1030 <___jn@plt>
pop    %rax
ret

LLVM IR (-O0):
define double @j0(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double @___jn(i32 0, double* %2)
ret double %3
}

LLVM IR (-O2):
define double @j0(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double @___jn(i32 0, double* %2)
ret double %3
}
/* Type definitions */
struct emission {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ c_wrapper(struct emission *, int);
int cur_dens_SC(struct emission *pass) {
  c_wrapper(pass, 5);
  return 0;
}


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

x86 assembly (clang, -O2):
<cur_dens_SC>:
push   %rax
mov    $0x5,%esi
call   1030 <c_wrapper@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.emission = type { i32 }
define i32 @cur_dens_SC(%struct.emission* %0) {
%2 = alloca %struct.emission*
store %struct.emission* %0, %struct.emission** %2
%3 = load %struct.emission*, %struct.emission** %2
%4 = call i32 @c_wrapper(%struct.emission* %3, i32 5)
ret i32 0
}

LLVM IR (-O2):
%struct.emission = type { i32 }
define i32 @cur_dens_SC(%struct.emission* %0) {
%2 = tail call i32 @c_wrapper(%struct.emission* %0, i32 5)
ret i32 0
}
void i2d_OCSP_SERVICELOC(void) {}


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

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

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

LLVM IR (-O2):
define void @i2d_OCSP_SERVICELOC() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ reader1(int /*<<< orphan*/);
int /*<<< orphan*/ reader2(int /*<<< orphan*/);
int /*<<< orphan*/ reader3(int /*<<< orphan*/);
int /*<<< orphan*/ reader4(int /*<<< orphan*/);
int /*<<< orphan*/ reader5(int /*<<< orphan*/);
int /*<<< orphan*/ writer(int /*<<< orphan*/);
int main() {
__CPROVER_ASYNC_1:
  writer(0);
__CPROVER_ASYNC_2:
  reader1(0);
__CPROVER_ASYNC_3:
  reader2(0);
__CPROVER_ASYNC_4:
  reader3(0);
__CPROVER_ASYNC_5:
  reader4(0);
__CPROVER_ASYNC_6:
  reader5(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1060 <writer@plt>
xor    %edi,%edi
call   1030 <reader1@plt>
xor    %edi,%edi
call   1080 <reader2@plt>
xor    %edi,%edi
call   1040 <reader3@plt>
xor    %edi,%edi
call   1070 <reader4@plt>
xor    %edi,%edi
call   1050 <reader5@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1060 <writer@plt>
xor    %edi,%edi
call   1030 <reader1@plt>
xor    %edi,%edi
call   1080 <reader2@plt>
xor    %edi,%edi
call   1040 <reader3@plt>
xor    %edi,%edi
call   1070 <reader4@plt>
xor    %edi,%edi
call   1050 <reader5@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 @writer(i32 0)
br label %4
4: ; preds = %2
%5 = call i32 @reader1(i32 0)
br label %6
6: ; preds = %4
%7 = call i32 @reader2(i32 0)
br label %8
8: ; preds = %6
%9 = call i32 @reader3(i32 0)
br label %10
10: ; preds = %8
%11 = call i32 @reader4(i32 0)
br label %12
12: ; preds = %10
%13 = call i32 @reader5(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @writer(i32 0)
%2 = tail call i32 @reader1(i32 0)
%3 = tail call i32 @reader2(i32 0)
%4 = tail call i32 @reader3(i32 0)
%5 = tail call i32 @reader4(i32 0)
%6 = tail call i32 @reader5(i32 0)
ret i32 0
}
/* Variables and functions */
int rand();
int main(int argc, char **argv) {
  int x, y;
  int r = rand();
  if (!(r < 0)) {
    y = rand();
    x = 42;
  } else {
    rand();
    y = rand();
    x = 7;
  }
  return x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     1150 <main+0x40>
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,-0x18(%rbp)
movl   $0x2a,-0x14(%rbp)
jmp    1168 <main+0x58>
mov    $0x0,%al
call   1030 <rand@plt>
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,-0x18(%rbp)
movl   $0x7,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <rand@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <rand@plt>
mov    $0x2a,%eax
test   %ebx,%ebx
js     112c <main+0x1c>
pop    %rbx
ret
xor    %eax,%eax
call   1030 <rand@plt>
mov    $0x7,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @rand()
%4 = icmp slt i32 %3, 0
%5 = tail call i32 (...) @rand()
br i1 %4, label %6, label %8
6: ; preds = %2
%7 = tail call i32 (...) @rand()
br label %8
8: ; preds = %2, %6
%9 = phi i32 [ 7, %6 ], [ 42, %2 ]
ret i32 %9
}