xunge/DecIR huggingface dataset:
/* Variables and functions */
int c_wait_job_recv();
int /*<<< orphan*/ c_wait_running_job_send();
int c_wait_running_job() {
  c_wait_running_job_send();
  return c_wait_job_recv();
}


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

x86 assembly (clang, -O2):
<c_wait_running_job>:
push   %rax
xor    %eax,%eax
call   1030 <c_wait_running_job_send@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <c_wait_job_recv@plt>

LLVM IR (-O0):
define i32 @c_wait_running_job() {
%1 = call i32 (...) @c_wait_running_job_send()
%2 = call i32 (...) @c_wait_job_recv()
ret i32 %2
}

LLVM IR (-O2):
define i32 @c_wait_running_job() {
%1 = tail call i32 (...) @c_wait_running_job_send()
%2 = tail call i32 (...) @c_wait_job_recv()
ret i32 %2
}
/* Type definitions */
struct t_config_option {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ gui_window_ask_refresh(int);
void config_change_buffers(const void *pointer, void *data,
                           struct t_config_option *option) {
  (void)pointer;
  (void)data;
  (void)option;
  gui_window_ask_refresh(1);
}


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

x86 assembly (clang, -O2):
<config_change_buffers>:
mov    $0x1,%edi
jmp    1030 <gui_window_ask_refresh@plt>

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

LLVM IR (-O2):
%struct.t_config_option = type { i32 }
define void @config_change_buffers(i8* nocapture readnone %0, i8* nocapture readnone %1, %struct.t_config_option* nocapture readnone %2) {
%4 = tail call i32 @gui_window_ask_refresh(i32 1)
ret void
}
int do_267() { return 267; }


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

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

LLVM IR (-O0):
define i32 @do_267() {
ret i32 267
}

LLVM IR (-O2):
define i32 @do_267() {
ret i32 267
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int get_attribute_raw(int /*<<< orphan*/, int /*<<< orphan*/ *, int);
int get_attribute_u16(uint16_t type, uint16_t *value) {
  return get_attribute_raw(type, value, sizeof(uint16_t)) == sizeof(uint16_t);
}


x86 assembly (clang, -O0):
<get_attribute_u16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1030 <get_attribute_raw@plt>
cltq
cmp    $0x4,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_attribute_u16>:
push   %rax
mov    $0x4,%edx
call   1030 <get_attribute_raw@plt>
xor    %ecx,%ecx
cmp    $0x4,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @get_attribute_u16(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32, i32* %3
%6 = load i32*, i32** %4
%7 = call i32 @get_attribute_raw(i32 %5, i32* %6, i32 4)
%8 = sext i32 %7 to i64
%9 = icmp eq i64 %8, 4
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @get_attribute_u16(i32 %0, i32* %1) {
%3 = tail call i32 @get_attribute_raw(i32 %0, i32* %1, i32 4)
%4 = icmp eq i32 %3, 4
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, unsigned int *);
int main() {
  unsigned int idade;
  printf("Qual sua idade? ");
  scanf("%u", &idade);
  printf("Sua idade é %d \n", idade);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Qual sua idade? \00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [18 x i8] c"Sua idade \C3\A9 %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"Qual sua idade? \00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [18 x i8] c"Sua idade \C3\A9 %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ getpass(char *);
scalar_t__ strcmp(int /*<<< orphan*/, char *);
getpassword() { return ((strcmp(getpass("Password: "), "bla") == 0) ? 0 : 21); }


x86 assembly (clang, -O0):
<getpassword>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <getpass@plt>
mov    %eax,%edi
lea    0xed2(%rip),%rsi
call   1030 <strcmp@plt>
mov    %rax,%rdx
mov    $0x15,%eax
xor    %ecx,%ecx
cmp    $0x0,%rdx
cmove  %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getpassword>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <getpass@plt>
lea    0xed7(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0x15,%eax
cmove  %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Password: \00"
@.str.1 = [4 x i8] c"bla\00"
define i32 @getpassword() {
%1 = call i32 @getpass(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i64 @strcmp(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i64
%5 = select i1 %3, i32 0, i32 21
ret i32 %5
}

LLVM IR (-O2):
@.str = [11 x i8] c"Password: \00"
@.str.1 = [4 x i8] c"bla\00"
define i32 @getpassword() {
%1 = tail call i32 @getpass(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 @strcmp(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 0, i32 21
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void html_end() { printf("</body> </html>\n"); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"</body> </html>\0A\00"
define void @html_end() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [16 x i8] c"</body> </html>\00"
define void @html_end() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
ret void
}
int main() {
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  if (0)
    return 1;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
Dumpbkmk() {
  printf("\n\n\n**************  BOOKMARK PROPERTIES  *************\n");
  printf("****************  NOT IMPLEMENTED  ***************\n\n");
}


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

x86 assembly (clang, -O2):
<Dumpbkmk>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@str = [54 x i8] c"\0A\0A\0A************** BOOKMARK PROPERTIES *************\00"
@str.2 = [52 x i8] c"**************** NOT IMPLEMENTED ***************\0A\00"
define i32 @Dumpbkmk() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.2, i64 0, i64 0))
ret i32 undef
}
int test_imm_C7uint8_mem(unsigned char *val) {
  return ((*val) & (0xC7 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_C7uint8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%edx
and    $0xc7,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_C7uint8_mem>:
testb  $0xc7,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_C7uint8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = and i32 %5, 199
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_C7uint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -57
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void gdk_gc_set_rgb_bg_color() {}


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

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

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

LLVM IR (-O2):
define void @gdk_gc_set_rgb_bg_color() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ HplMsp430GeneralIOP__31__IO__set();
void Msp430GpioC__13__HplGeneralIO__set(void) {
  HplMsp430GeneralIOP__31__IO__set();
}


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

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

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

LLVM IR (-O2):
define void @Msp430GpioC__13__HplGeneralIO__set() {
%1 = tail call i32 (...) @HplMsp430GeneralIOP__31__IO__set()
ret void
}
/* Variables and functions */
int mem_compress_open(char *, int /*<<< orphan*/, int *);
int mem_compress_openrw(char *filename, int rwmode, int *hdl) {
  return (mem_compress_open(filename, 0, hdl));
}


x86 assembly (clang, -O0):
<mem_compress_openrw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
xor    %esi,%esi
call   1030 <mem_compress_open@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @mem_compress_openrw(i8* %0, i32 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i8*, i8** %4
%8 = load i32*, i32** %6
%9 = call i32 @mem_compress_open(i8* %7, i32 0, i32* %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @mem_compress_openrw(i8* %0, i32 %1, i32* %2) {
%4 = tail call i32 @mem_compress_open(i8* %0, i32 0, i32* %2)
ret i32 %4
}
int main() {
  printf("hello, world!\n");
  printf(0x8048154);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x8048154,%edi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [14 x i8] c"hello, world!\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))
%2 = tail call i32 (i8*, ...) @printf(i8* inttoptr (i64 134512980 to i8*))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ test0();
void test2(void **ptr) {
  *ptr = NULL;
  if (ptr)
    test0();
}


x86 assembly (clang, -O0):
<test2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x8(%rbp)
je     1139 <test2+0x29>
mov    $0x0,%al
call   1030 <test0@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2>:
movq   $0x0,(%rdi)
xor    %eax,%eax
jmp    1030 <test0@plt>

LLVM IR (-O0):
define void @test2(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
store i8* null, i8** %3
%4 = load i8**, i8*** %2
%5 = icmp ne i8** %4, null
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @test0()
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @test2(i8** nocapture writeonly %0) {
store i8* null, i8** %0
%2 = tail call i32 (...) @test0()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(
      stderr,
      "Usage: pathwalk root-path [-c|-r|-t] [OPTIONS]\n"
      "   -l,--length N          set number of directories to search dflt: "
      "16)\n"
      "   -f,--files N           set number of files to search for (dflt: "
      "10000)\n"
      "   -c,--create            create files and directories\n"
      "   -r,--remove            remove files and directories\n"
      "   -t,--test              run test\n"
      "   -C,--primecache        run one path search before starting timing\n"
      "   -F,--failsearch        arrange for search to be unsuccessful\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [472 x i8] c"Usage: pathwalk root-path [-c|-r|-t] [OPTIONS]\0A -l,--length N set number of directories to search dflt: 16)\0A -f,--files N set number of files to search for (dflt: 10000)\0A -c,--create create files and directories\0A -r,--remove remove files and directories\0A -t,--test run test\0A -C,--primecache run one path search before starting timing\0A -F,--failsearch arrange for search to be unsuccessful\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([472 x i8], [472 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [472 x i8] c"Usage: pathwalk root-path [-c|-r|-t] [OPTIONS]\0A -l,--length N set number of directories to search dflt: 16)\0A -f,--files N set number of files to search for (dflt: 10000)\0A -c,--create create files and directories\0A -r,--remove remove files and directories\0A -t,--test run test\0A -C,--primecache run one path search before starting timing\0A -F,--failsearch arrange for search to be unsuccessful\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([472 x i8], [472 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ interpret();
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stop_the_world_mark_and_sweep();
int main(void) {
  interpret();
  putchar('\n');
  stop_the_world_mark_and_sweep();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <interpret@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <stop_the_world_mark_and_sweep@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @interpret()
%3 = call i32 @putchar(i8 signext 10)
%4 = call i32 (...) @stop_the_world_mark_and_sweep()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @interpret()
%2 = tail call i32 @putchar(i8 signext 10)
%3 = tail call i32 (...) @stop_the_world_mark_and_sweep()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ f();
main() {
  f();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <f@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <f@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @f()
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ reset_io();
int main() {
  reset_io();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @reset_io()
ret i32 0
}
void hypervisor_pin_vcpu(int cpu) {}


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

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

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

LLVM IR (-O2):
define void @hypervisor_pin_vcpu(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void list_bye(char *string) {
  fprintf(stderr, "list_bye: %s\n", string);
  exit(1);
}


x86 assembly (clang, -O0):
<list_bye>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<list_bye>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"list_bye: %s\0A\00"
define void @list_bye(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"list_bye: %s\0A\00"
define void @list_bye(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
unsigned int pipe_occupancy(unsigned int head, unsigned int tail) {
  return head - tail;
}


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

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

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

LLVM IR (-O2):
define i32 @pipe_occupancy(i32 %0, i32 %1) {
%3 = sub i32 %0, %1
ret i32 %3
}
void x_connect(struct sc *sc, unsigned idx) {}


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

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

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

LLVM IR (-O2):
%struct.sc = type opaque
define void @x_connect(%struct.sc* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
unsigned int UARTRegConfigModeEnable(unsigned int, int);
unsigned int UARTAutobaudSpeedGet(unsigned int baseAdd) {
  unsigned int lcrRegValue = 0;
  unsigned int retVal = 0;
  lcrRegValue = UARTRegConfigModeEnable(baseAdd, (0x0080));
  retVal = ((*((volatile unsigned int *)(baseAdd + (0x38)))) & (0x0000001Fu));
  (*((volatile unsigned int *)(baseAdd + (0xC)))) = lcrRegValue;
  return retVal;
}


x86 assembly (clang, -O0):
<UARTAutobaudSpeedGet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x80,%esi
call   1030 <UARTRegConfigModeEnable@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0x38,%eax
mov    %eax,%eax
mov    (%rax),%eax
and    $0x1f,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%ecx
mov    -0x4(%rbp),%eax
add    $0xc,%eax
mov    %eax,%eax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UARTAutobaudSpeedGet>:
push   %rbx
mov    %edi,%ebx
mov    $0x80,%esi
call   1030 <UARTRegConfigModeEnable@plt>
lea    0x38(%rbx),%ecx
mov    (%rcx),%ecx
and    $0x1f,%ecx
add    $0xc,%ebx
mov    %eax,(%rbx)
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @UARTAutobaudSpeedGet(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%5 = load i32, i32* %2
%6 = call i32 @UARTRegConfigModeEnable(i32 %5, i32 128)
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = add i32 %7, 56
%9 = zext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load volatile i32, i32* %10
%12 = and i32 %11, 31
store i32 %12, i32* %4
%13 = load i32, i32* %3
%14 = load i32, i32* %2
%15 = add i32 %14, 12
%16 = zext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
store volatile i32 %13, i32* %17
%18 = load i32, i32* %4
ret i32 %18
}

LLVM IR (-O2):
define i32 @UARTAutobaudSpeedGet(i32 %0) {
%2 = tail call i32 @UARTRegConfigModeEnable(i32 %0, i32 128)
%3 = add i32 %0, 56
%4 = zext i32 %3 to i64
%5 = inttoptr i64 %4 to i32*
%6 = load volatile i32, i32* %5
%7 = and i32 %6, 31
%8 = add i32 %0, 12
%9 = zext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
store volatile i32 %2, i32* %10
ret i32 %7
}
signed int f5(signed int v_a, signed int v_b) {
  signed int v_anda = v_a & 1023;
  signed int v_shlb = v_b << 10;
  signed int v_or = v_anda | v_shlb;
  return v_or;
}


x86 assembly (clang, -O0):
<f5>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0x3ff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
shl    $0xa,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
or     -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f5>:
and    $0x3ff,%edi
shl    $0xa,%esi
lea    (%rsi,%rdi,1),%eax
ret

LLVM IR (-O0):
define i32 @f5(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%8 = load i32, i32* %3
%9 = and i32 %8, 1023
store i32 %9, i32* %5
%10 = load i32, i32* %4
%11 = shl i32 %10, 10
store i32 %11, i32* %6
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = or i32 %12, %13
store i32 %14, i32* %7
%15 = load i32, i32* %7
ret i32 %15
}

LLVM IR (-O2):
define i32 @f5(i32 %0, i32 %1) {
%3 = and i32 %0, 1023
%4 = shl i32 %1, 10
%5 = or i32 %4, %3
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void *realloc(void *, size_t);
void *arakoon_memory_abort_realloc(void *ptr, size_t s) {
  void *ret = NULL;
  ret = realloc(ptr, s);
  if (ret == NULL) {
    abort();
  }
  return ret;
}


x86 assembly (clang, -O0):
<arakoon_memory_abort_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    115b <arakoon_memory_abort_realloc+0x3b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arakoon_memory_abort_realloc>:
push   %rax
call   1040 <realloc@plt>
test   %rax,%rax
je     112d <arakoon_memory_abort_realloc+0xd>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i8* @arakoon_memory_abort_realloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
store i8* null, i8** %5
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @abort()
unreachable
13: ; preds = %2
%14 = load i8*, i8** %5
ret i8* %14
}

LLVM IR (-O2):
define noalias i8* @arakoon_memory_abort_realloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %2
ret i8* %3
}
int trailingZeroes(int n) {
  int x = n / 5;
  int temp = 0;
  do {
    temp += x;
    x = x / 5;
  } while (x != 0);
  return x + temp;
}


x86 assembly (clang, -O0):
<trailingZeroes>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    111c <trailingZeroes+0x1c>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<trailingZeroes>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
lea    (%rcx,%rdx,1),%edi
add    %edi,%eax
add    %edx,%ecx
add    $0x4,%ecx
cmp    $0x8,%ecx
ja     1110 <trailingZeroes+0x10>
ret

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

LLVM IR (-O2):
define i32 @trailingZeroes(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ %0, %1 ], [ %5, %2 ]
%4 = phi i32 [ 0, %1 ], [ %6, %2 ]
%5 = sdiv i32 %3, 5
%6 = add nsw i32 %4, %5
%7 = add nsw i32 %5, 4
%8 = icmp ult i32 %7, 9
br i1 %8, label %9, label %2
9: ; preds = %2
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
void con_hideCursor() { curs_set(0); }


x86 assembly (clang, -O0):
<con_hideCursor>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <curs_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<con_hideCursor>:
xor    %edi,%edi
jmp    1030 <curs_set@plt>

LLVM IR (-O0):
define void @con_hideCursor() {
%1 = call i32 @curs_set(i32 0)
ret void
}

LLVM IR (-O2):
define void @con_hideCursor() {
%1 = tail call i32 @curs_set(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fib(int);
int main() {
  fib(10);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @fib(i32 10)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ listprocess();
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[], char *envp[]) {
  printf("inside ps \n");
  listprocess();
  return 0;
}


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    %rdx,-0x18(%rbp)
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <listprocess@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [11 x i8] c"inside ps \00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (...) @listprocess()
ret i32 0
}
/* Variables and functions */
scalar_t__ es_par(int);
int multiplicar_numero_secreto(int n) {
  int res = -1;
  if (es_par(n))
    res = n * 13;
  return res;
}


x86 assembly (clang, -O0):
<multiplicar_numero_secreto>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <es_par@plt>
cmp    $0x0,%rax
je     113b <multiplicar_numero_secreto+0x2b>
imul   $0xd,-0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<multiplicar_numero_secreto>:
push   %rbx
mov    %edi,%ebx
call   1030 <es_par@plt>
lea    (%rbx,%rbx,2),%ecx
lea    (%rbx,%rcx,4),%ecx
cmp    $0x1,%rax
sbb    %eax,%eax
or     %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @multiplicar_numero_secreto(i32 %0) {
%2 = tail call i64 @es_par(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = mul nsw i32 %0, 13
%5 = select i1 %3, i32 -1, i32 %4
ret i32 %5
}
void swap(double A[], int i, int j) {
  double temp = A[i];
  A[i] = A[j];
  A[j] = temp;
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
movslq %esi,%rax
movsd  (%rdi,%rax,8),%xmm0
movslq %edx,%rcx
movsd  (%rdi,%rcx,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
movsd  %xmm0,(%rdi,%rcx,8)
ret

LLVM IR (-O0):
define void @swap(double* %0, i32 %1, i32 %2) {
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
store double* %0, double** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load double*, double** %4
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds double, double* %8, i64 %10
%12 = load double, double* %11
store double %12, double* %7
%13 = load double*, double** %4
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, double* %13, i64 %15
%17 = load double, double* %16
%18 = load double*, double** %4
%19 = load i32, i32* %5
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, double* %18, i64 %20
store double %17, double* %21
%22 = load double, double* %7
%23 = load double*, double** %4
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, double* %23, i64 %25
store double %22, double* %26
ret void
}

LLVM IR (-O2):
define void @swap(double* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds double, double* %0, i64 %4
%6 = load double, double* %5
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds double, double* %0, i64 %7
%9 = load double, double* %8
store double %9, double* %5
store double %6, double* %8
ret void
}
double jac_chain_nm2_sq(double x) { return x * x; }


x86 assembly (clang, -O0):
<jac_chain_nm2_sq>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<jac_chain_nm2_sq>:
mulsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @jac_chain_nm2_sq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fmul double %3, %4
ret double %5
}

LLVM IR (-O2):
define double @jac_chain_nm2_sq(double %0) {
%2 = fmul double %0, %0
ret double %2
}
/* Variables and functions */
int func(char *cp1, char *cp2, char *cp3, char *cp4) {
  if (cp1)
    return 1;
  if (cp2 == NULL)
    return 2;
  if (NULL != cp3)
    return 3;
  return cp4 != 0 ? 0 : 1;
}


x86 assembly (clang, -O0):
<func>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     112b <func+0x2b>
movl   $0x1,-0x4(%rbp)
jmp    116f <func+0x6f>
cmpq   $0x0,-0x18(%rbp)
jne    1142 <func+0x42>
movl   $0x2,-0x4(%rbp)
jmp    116f <func+0x6f>
xor    %eax,%eax
cmp    -0x20(%rbp),%rax
je     115a <func+0x5a>
movl   $0x3,-0x4(%rbp)
jmp    116f <func+0x6f>
mov    -0x28(%rbp),%rdx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<func>:
mov    $0x1,%eax
test   %rdi,%rdi
je     110b <func+0xb>
ret
test   %rsi,%rsi
je     1123 <func+0x23>
mov    $0x3,%eax
test   %rdx,%rdx
jne    110a <func+0xa>
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
ret
mov    $0x2,%eax
ret

LLVM IR (-O0):
define i32 @func(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
%10 = load i8*, i8** %6
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %13
12: ; preds = %4
store i32 1, i32* %5
br label %26
13: ; preds = %4
%14 = load i8*, i8** %7
%15 = icmp eq i8* %14, null
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 2, i32* %5
br label %26
17: ; preds = %13
%18 = load i8*, i8** %8
%19 = icmp ne i8* null, %18
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 3, i32* %5
br label %26
21: ; preds = %17
%22 = load i8*, i8** %9
%23 = icmp ne i8* %22, null
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 0, i32 1
store i32 %25, i32* %5
br label %26
26: ; preds = %21, %20, %16, %12
%27 = load i32, i32* %5
ret i32 %27
}

LLVM IR (-O2):
define i32 @func(i8* readnone %0, i8* readnone %1, i8* readnone %2, i8* readnone %3) {
%5 = icmp eq i8* %0, null
br i1 %5, label %6, label %13
6: ; preds = %4
%7 = icmp eq i8* %1, null
br i1 %7, label %13, label %8
8: ; preds = %6
%9 = icmp eq i8* %2, null
br i1 %9, label %10, label %13
10: ; preds = %8
%11 = icmp eq i8* %3, null
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %8, %6, %4, %10
%14 = phi i32 [ %12, %10 ], [ 1, %4 ], [ 2, %6 ], [ 3, %8 ]
ret i32 %14
}
/* Type definitions */
typedef scalar_t__ wint_t;

/* Variables and functions */
int isprint(scalar_t__);
int iswprint(wint_t wc) { return ((wc < (wint_t)0x100 ? isprint(wc) : 0)); }


x86 assembly (clang, -O0):
<iswprint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x100,-0x8(%rbp)
jge    113b <iswprint+0x2b>
mov    -0x8(%rbp),%rdi
call   1030 <isprint@plt>
mov    %eax,-0xc(%rbp)
jmp    1145 <iswprint+0x35>
xor    %eax,%eax
mov    %eax,-0xc(%rbp)
jmp    1145 <iswprint+0x35>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswprint>:
cmp    $0xff,%rdi
jg     111e <iswprint+0xe>
jmp    1030 <isprint@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @iswprint(i64 %0) {
%2 = icmp slt i64 %0, 256
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @isprint(i64 %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ 0, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void print_unable_to_generate_huffman_tree() {
  fprintf(stderr, "Unable to generate huffman tree\n");
}


x86 assembly (clang, -O0):
<print_unable_to_generate_huffman_tree>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_unable_to_generate_huffman_tree>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [33 x i8] c"Unable to generate huffman tree\0A\00"
define void @print_unable_to_generate_huffman_tree() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [33 x i8] c"Unable to generate huffman tree\0A\00"
define void @print_unable_to_generate_huffman_tree() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ wiznetRegWriteIP(int /*<<< orphan*/, int,
                                    int /*<<< orphan*/ *);
void wiznetSetSocketDestIP(uint8_t socket, uint8_t *dIP) {
  wiznetRegWriteIP(socket, (0x0000 + 0x000C), dIP);
}


x86 assembly (clang, -O0):
<wiznetSetSocketDestIP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0xc,%esi
call   1030 <wiznetRegWriteIP@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wiznetSetSocketDestIP>:
mov    %rsi,%rdx
mov    $0xc,%esi
jmp    1030 <wiznetRegWriteIP@plt>

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

LLVM IR (-O2):
define void @wiznetSetSocketDestIP(i32 %0, i32* %1) {
%3 = tail call i32 @wiznetRegWriteIP(i32 %0, i32 12, i32* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  int i, j;
  i = 1;
  j = 2;
  printf("i: %d, j: %d\n", i, j);
  i += j;
  j = i - j;
  i -= j;
  ;
  printf("i: %d, j: %d\n", i, j);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
mov    -0x4(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [14 x i8] c"i: %d, j: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 1, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 2, i32 1)
ret i32 0
}
int jam_isalnum(char ch) {
  return (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')) ||
          ((ch >= '0') && (ch <= '9')));
}


x86 assembly (clang, -O0):
<jam_isalnum>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1129 <jam_isalnum+0x29>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5a,%ecx
mov    %al,-0x2(%rbp)
jle    116d <jam_isalnum+0x6d>
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     1148 <jam_isalnum+0x48>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x7a,%ecx
mov    %al,-0x2(%rbp)
jle    116d <jam_isalnum+0x6d>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x3(%rbp)
jl     1167 <jam_isalnum+0x67>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<jam_isalnum>:
mov    %edi,%eax
and    $0xdf,%al
add    $0xbf,%al
cmp    $0x1a,%al
setb   %al
add    $0xd0,%dil
cmp    $0xa,%dil
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @jam_isalnum(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br i1 %9, label %28, label %10
10: ; preds = %6, %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 97
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 122
br i1 %17, label %28, label %18
18: ; preds = %14, %10
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i8, i8* %2
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 57
br label %26
26: ; preds = %22, %18
%27 = phi i1 [ false, %18 ], [ %25, %22 ]
br label %28
28: ; preds = %26, %14, %6
%29 = phi i1 [ true, %14 ], [ true, %6 ], [ %27, %26 ]
%30 = zext i1 %29 to i32
ret i32 %30
}

LLVM IR (-O2):
define i32 @jam_isalnum(i8 signext %0) {
%2 = and i8 %0, -33
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
%5 = add i8 %0, -48
%6 = icmp ult i8 %5, 10
%7 = or i1 %6, %4
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ changeColor(int /*<<< orphan*/);
void resetColor() { changeColor(0); }


x86 assembly (clang, -O0):
<resetColor>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <changeColor@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<resetColor>:
xor    %edi,%edi
jmp    1030 <changeColor@plt>

LLVM IR (-O0):
define void @resetColor() {
%1 = call i32 @changeColor(i32 0)
ret void
}

LLVM IR (-O2):
define void @resetColor() {
%1 = tail call i32 @changeColor(i32 0)
ret void
}