xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void lib_mav(int v0, int v1) { printf("mav  %d  %d \n", v0, v1); }


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

x86 assembly (clang, -O2):
<lib_mav>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"mav %d %d \0A\00"
define void @lib_mav(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 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"mav %d %d \0A\00"
define void @lib_mav(i32 %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write_vtkFile(char const *, unsigned int, int *, double *,
                                 int *, int, int *);
void writeVtkOutput(double *collideField, const int *const flagField,
                    const char *filename, unsigned int t, int *length,
                    int *origin, int *my_pos, int my_rank) {
  write_vtkFile(filename, t, length, collideField, my_pos, my_rank, origin);
}


x86 assembly (clang, -O0):
<writeVtkOutput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x18(%rbp),%r9d
mov    -0x30(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <write_vtkFile@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeVtkOutput>:
push   %rax
mov    %r8,%r10
mov    %rdi,%rax
mov    0x10(%rsp),%r8
mov    0x18(%rsp),%r11d
mov    %r9,(%rsp)
mov    %rdx,%rdi
mov    %ecx,%esi
mov    %r10,%rdx
mov    %rax,%rcx
mov    %r11d,%r9d
call   1030 <write_vtkFile@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @writeVtkOutput(double* %0, i32* %1, i8* %2, i32 %3, i32* %4, i32* %5, i32* %6, i32 %7) {
%9 = alloca double*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
store double* %0, double** %9
store i32* %1, i32** %10
store i8* %2, i8** %11
store i32 %3, i32* %12
store i32* %4, i32** %13
store i32* %5, i32** %14
store i32* %6, i32** %15
store i32 %7, i32* %16
%17 = load i8*, i8** %11
%18 = load i32, i32* %12
%19 = load i32*, i32** %13
%20 = load double*, double** %9
%21 = load i32*, i32** %15
%22 = load i32, i32* %16
%23 = load i32*, i32** %14
%24 = call i32 @write_vtkFile(i8* %17, i32 %18, i32* %19, double* %20, i32* %21, i32 %22, i32* %23)
ret void
}

LLVM IR (-O2):
define void @writeVtkOutput(double* %0, i32* nocapture readnone %1, i8* %2, i32 %3, i32* %4, i32* %5, i32* %6, i32 %7) {
%9 = tail call i32 @write_vtkFile(i8* %2, i32 %3, i32* %4, double* %0, i32* %6, i32 %7, i32* %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void list_xfintiy_supported_models() {
  printf("Supported Comcast/Xfinity targets:\n"
         "SSID pattern: HOME-XXXX, HOME-XXXX-2.4, HOME-XXXX-5\n"
         "[+] dpc3939\n"
         "[+] dpc3941\n"
         "[+] tg1682g\n");
}


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

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

LLVM IR (-O0):
@.str = [124 x i8] c"Supported Comcast/Xfinity targets:\0ASSID pattern: HOME-XXXX, HOME-XXXX-2.4, HOME-XXXX-5\0A[+] dpc3939\0A[+] dpc3941\0A[+] tg1682g\0A\00"
define void @list_xfintiy_supported_models() {
%1 = call i32 @printf(i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [123 x i8] c"Supported Comcast/Xfinity targets:\0ASSID pattern: HOME-XXXX, HOME-XXXX-2.4, HOME-XXXX-5\0A[+] dpc3939\0A[+] dpc3941\0A[+] tg1682g\00"
define void @list_xfintiy_supported_models() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([123 x i8], [123 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void xt_par0(char *control_sequence) { printf("%s", control_sequence); }


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

x86 assembly (clang, -O2):
<xt_par0>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define void @xt_par0(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ die(char *, char const *, void *);
int open(char const *, int /*<<< orphan*/);
int checkopen(const char *name) {
  int fd = open(name, O_RDWR);
  if (fd < 0)
    die("Can't open ", name, ((void *)-1));
  else
    return fd;
}


x86 assembly (clang, -O0):
<checkopen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
call   1030 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1167 <checkopen+0x47>
mov    -0x10(%rbp),%rsi
lea    0xeaa(%rip),%rdi
mov    $0xffffffffffffffff,%rdx
call   1040 <die@plt>
jmp    116d <checkopen+0x4d>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkopen>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
call   1030 <open@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    1150 <checkopen+0x30>
lea    0xebf(%rip),%rdi
mov    %rbx,%rsi
mov    $0xffffffffffffffff,%rdx
call   1040 <die@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@O_RDWR = global i32 0
@.str = [12 x i8] c"Can't open \00"
define i32 @checkopen(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = load i32, i32* @O_RDWR
%7 = call i32 @open(i8* %5, i32 %6)
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = call i32 @die(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %11, i8* inttoptr (i64 -1 to i8*))
br label %15
13: ; preds = %1
%14 = load i32, i32* %4
store i32 %14, i32* %2
br label %15
15: ; preds = %13, %10
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
@O_RDWR = global i32 0
@.str = [12 x i8] c"Can't open \00"
define i32 @checkopen(i8* %0) {
%2 = load i32, i32* @O_RDWR
%3 = tail call i32 @open(i8* %0, i32 %2)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @die(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0, i8* inttoptr (i64 -1 to i8*))
br label %7
7: ; preds = %1, %5
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void txt_trackstart() { printf("Track start\n"); }


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

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

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

LLVM IR (-O2):
@str = [12 x i8] c"Track start\00"
define void @txt_trackstart() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret void
}
int isspace(int c) {
  return (c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r' ||
                  c == ' '
              ? 1
              : 0);
}


x86 assembly (clang, -O0):
<isspace>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xa,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xb,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xc,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
mov    $0x1,%al
cmpl   $0xd,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     115c <isspace+0x5c>
cmpl   $0x20,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isspace>:
lea    -0x9(%rdi),%eax
cmp    $0x5,%eax
setb   %al
cmp    $0x20,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @isspace(i32 %0) {
%2 = add i32 %0, -9
%3 = icmp ult i32 %2, 5
%4 = icmp eq i32 %0, 32
%5 = or i1 %4, %3
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
void apps() {
  printf("<><><><><><><><><><><><><>\n");
  system("ls repository/ -1");
}


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

x86 assembly (clang, -O2):
<apps>:
push   %rax
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
pop    %rax
jmp    1040 <system@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"<><><><><><><><><><><><><>\0A\00"
@.str.1 = [18 x i8] c"ls repository/ -1\00"
define void @apps() {
%1 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c"ls repository/ -1\00"
@str = [27 x i8] c"<><><><><><><><><><><><><>\00"
define void @apps() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned char ds1337_bcd_to_dec(unsigned char, int);
unsigned char ds1337_read_register(int);
unsigned char ds1337_get_hour() {
  unsigned char reg, hour;
  reg = ds1337_read_register(0x02);
  if (reg & 0x40) {
    hour = ds1337_bcd_to_dec(reg, 1);
  } else {
    hour = ds1337_bcd_to_dec(reg, 2);
  }
  return hour;
}


x86 assembly (clang, -O0):
<ds1337_get_hour>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x2,%edi
call   1040 <ds1337_read_register@plt>
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     115b <ds1337_get_hour+0x3b>
mov    $0x1,%esi
movzbl -0x1(%rbp),%edi
call   1030 <ds1337_bcd_to_dec@plt>
mov    %al,-0x2(%rbp)
jmp    116c <ds1337_get_hour+0x4c>
mov    $0x2,%esi
movzbl -0x1(%rbp),%edi
call   1030 <ds1337_bcd_to_dec@plt>
mov    %al,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ds1337_get_hour>:
push   %rax
mov    $0x2,%edi
call   1040 <ds1337_read_register@plt>
movzbl %al,%edi
and    $0x40,%al
cmp    $0x1,%al
mov    $0x1,%esi
adc    $0x0,%esi
pop    %rax
jmp    1030 <ds1337_bcd_to_dec@plt>

LLVM IR (-O0):
define zeroext i8 @ds1337_get_hour() {
%1 = alloca i8
%2 = alloca i8
%3 = call zeroext i8 @ds1337_read_register(i32 2)
store i8 %3, i8* %1
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = and i32 %5, 64
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i8, i8* %1
%10 = call zeroext i8 @ds1337_bcd_to_dec(i8 zeroext %9, i32 1)
store i8 %10, i8* %2
br label %14
11: ; preds = %0
%12 = load i8, i8* %1
%13 = call zeroext i8 @ds1337_bcd_to_dec(i8 zeroext %12, i32 2)
store i8 %13, i8* %2
br label %14
14: ; preds = %11, %8
%15 = load i8, i8* %2
ret i8 %15
}

LLVM IR (-O2):
define zeroext i8 @ds1337_get_hour() {
%1 = tail call zeroext i8 @ds1337_read_register(i32 2)
%2 = and i8 %1, 64
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 2, i32 1
%5 = tail call zeroext i8 @ds1337_bcd_to_dec(i8 zeroext %1, i32 %4)
ret i8 %5
}
/* Variables and functions */
int /*<<< orphan*/ Gets(char *);
int getbuf() {
  char buf[32];
  Gets(buf);
  return 1;
}


x86 assembly (clang, -O0):
<getbuf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x20(%rbp),%rdi
call   1030 <Gets@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getbuf>:
sub    $0x28,%rsp
mov    %rsp,%rdi
call   1030 <Gets@plt>
mov    $0x1,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @getbuf() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = call i32 @Gets(i8* %2)
ret i32 1
}

LLVM IR (-O2):
define i32 @getbuf() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = call i32 @Gets(i8* %2)
ret i32 1
}
void setsecuritylevel(newlevel) int newlevel;
{}


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

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

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

LLVM IR (-O2):
define void @setsecuritylevel(i32 %0) {
ret void
}
/* Variables and functions */
int mystery();
int libcall_null_pointer(int uno, void *dos) {
  if (dos == NULL) {
    return 5;
  } else {
    return mystery() * uno;
  }
}


x86 assembly (clang, -O0):
<libcall_null_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1136 <libcall_null_pointer+0x26>
movl   $0x5,-0x4(%rbp)
jmp    1144 <libcall_null_pointer+0x34>
mov    $0x0,%al
call   1030 <mystery@plt>
imul   -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<libcall_null_pointer>:
test   %rsi,%rsi
je     1124 <libcall_null_pointer+0x14>
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <mystery@plt>
imul   %ebx,%eax
pop    %rbx
ret
mov    $0x5,%eax
ret

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

LLVM IR (-O2):
define i32 @libcall_null_pointer(i32 %0, i8* readnone %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 (...) @mystery()
%6 = mul nsw i32 %5, %0
br label %7
7: ; preds = %2, %4
%8 = phi i32 [ %6, %4 ], [ 5, %2 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ _nsntrace_cleanup_ns();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void _nsntrace_cleanup_ns_signal_callback() {
  _nsntrace_cleanup_ns();
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<_nsntrace_cleanup_ns_signal_callback>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <_nsntrace_cleanup_ns@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<_nsntrace_cleanup_ns_signal_callback>:
push   %rax
xor    %eax,%eax
call   1030 <_nsntrace_cleanup_ns@plt>
mov    0x2eb1(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define void @_nsntrace_cleanup_ns_signal_callback() {
%1 = call i32 (...) @_nsntrace_cleanup_ns()
%2 = load i32, i32* @EXIT_SUCCESS
%3 = call i32 @exit(i32 %2)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define void @_nsntrace_cleanup_ns_signal_callback() {
%1 = tail call i32 (...) @_nsntrace_cleanup_ns()
%2 = load i32, i32* @EXIT_SUCCESS
%3 = tail call i32 @exit(i32 %2)
unreachable
}
/* Type definitions */
typedef scalar_t__ wchar_t;

/* Variables and functions */
size_t ft_strlenw(const wchar_t *str) {
  size_t length;
  length = 0;
  while (*str) {
    str++;
    length++;
  }
  return (length);
}


x86 assembly (clang, -O0):
<ft_strlenw>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     113b <ft_strlenw+0x3b>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <ft_strlenw+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_strlenw>:
cmpq   $0x0,(%rdi)
je     1120 <ft_strlenw+0x20>
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
lea    0x1(%rcx),%rax
cmpq   $0x0,0x8(%rdi,%rcx,8)
mov    %rax,%rcx
jne    1110 <ft_strlenw+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i64 @ft_strlenw(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = icmp eq i64 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ 0, %1 ]
%6 = phi i64* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i64, i64* %6, i64 1
%8 = add i64 %5, 1
%9 = load i64, i64* %7
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i64 [ 0, %1 ], [ %8, %4 ]
ret i64 %12
}
int exported_func(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @exported_func() {
ret i32 1
}
/* Variables and functions */
unsigned int setMax(unsigned int, int);
unsigned int setMin(unsigned int, int);
unsigned int setMinMax(unsigned int e, int i, int j) {
  e = setMax(e, i);
  e = setMin(e, j);
  return e;
}


x86 assembly (clang, -O0):
<setMinMax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <setMax@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <setMin@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setMinMax>:
push   %rbx
mov    %edx,%ebx
call   1040 <setMax@plt>
mov    %eax,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <setMin@plt>

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

LLVM IR (-O2):
define i32 @setMinMax(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @setMax(i32 %0, i32 %1)
%5 = tail call i32 @setMin(i32 %4, i32 %2)
ret i32 %5
}
/* Type definitions */
typedef unsigned long u_int32_t;

/* Variables and functions */
int test_bit_u32(int nr, const u_int32_t *addr) {
  return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0;
}


x86 assembly (clang, -O0):
<test_bit_u32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1f,%eax
mov    %eax,%eax
mov    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rbp),%edx
sar    $0x5,%edx
movslq %edx,%rdx
and    (%rcx,%rdx,8),%rax
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_bit_u32>:
mov    %edi,%eax
sar    $0x5,%eax
cltq
mov    (%rsi,%rax,8),%ecx
xor    %eax,%eax
bt     %edi,%ecx
setb   %al
ret

LLVM IR (-O0):
define i32 @test_bit_u32(i32 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64*
store i32 %0, i32* %3
store i64* %1, i64** %4
%5 = load i32, i32* %3
%6 = and i32 %5, 31
%7 = zext i32 %6 to i64
%8 = shl i64 1, %7
%9 = load i64*, i64** %4
%10 = load i32, i32* %3
%11 = ashr i32 %10, 5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i64, i64* %9, i64 %12
%14 = load i64, i64* %13
%15 = and i64 %8, %14
%16 = icmp ne i64 %15, 0
%17 = zext i1 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @test_bit_u32(i32 %0, i64* nocapture %1) {
%3 = and i32 %0, 31
%4 = zext i32 %3 to i64
%5 = shl nuw nsw i64 1, %4
%6 = ashr i32 %0, 5
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i64, i64* %1, i64 %7
%9 = load i64, i64* %8
%10 = and i64 %9, %5
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}
void g_DUMMY_menu_destroy_buttonbar2_children(int win_id) { win_id = win_id; }


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

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

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

LLVM IR (-O2):
define void @g_DUMMY_menu_destroy_buttonbar2_children(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mat3f_from_mat4f(float *, float const *);
int /*<<< orphan*/ quatf_from_mat3f(float *, float *);
void quatf_from_mat4f(float quat[4], const float matrix[16]) {
  float tmpMat[9];
  mat3f_from_mat4f(tmpMat, matrix);
  quatf_from_mat3f(quat, tmpMat);
}


x86 assembly (clang, -O0):
<quatf_from_mat4f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <mat3f_from_mat4f@plt>
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <quatf_from_mat3f@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quatf_from_mat4f>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%rbx
mov    %rsp,%r14
mov    %r14,%rdi
call   1040 <mat3f_from_mat4f@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <quatf_from_mat3f@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @quatf_from_mat4f(float* %0, float* %1) {
%3 = alloca [9 x float]
%4 = bitcast [9 x float]* %3 to i8*
%5 = getelementptr inbounds [9 x float], [9 x float]* %3, i64 0, i64 0
%6 = call i32 @mat3f_from_mat4f(float* %5, float* %1)
%7 = call i32 @quatf_from_mat3f(float* %0, float* %5)
ret void
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ strncpy(char *, char const *, int);
char *substrn(const char *key, int from, int len) {
  char *res = malloc((len + 1) * sizeof(char));
  strncpy(res, &key[from], len);
  res[len] = '\0';
  return res;
}


x86 assembly (clang, -O0):
<substrn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
movslq -0xc(%rbp),%rax
add    %rax,%rsi
mov    -0x10(%rbp),%edx
call   1030 <strncpy@plt>
mov    -0x18(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<substrn>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%r15d
mov    %rdi,%r14
lea    0x1(%rbx),%edi
call   1040 <malloc@plt>
mov    %rax,%rbp
movslq %r15d,%rsi
add    %r14,%rsi
mov    %rax,%rdi
mov    %ebx,%edx
call   1030 <strncpy@plt>
movslq %ebx,%rax
movb   $0x0,0x0(%rbp,%rax,1)
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @substrn(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
%9 = add nsw i32 %8, 1
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 1
%12 = trunc i64 %11 to i32
%13 = call i8* @malloc(i32 %12)
store i8* %13, i8** %7
%14 = load i8*, i8** %7
%15 = load i8*, i8** %4
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %15, i64 %17
%19 = load i32, i32* %6
%20 = call i32 @strncpy(i8* %14, i8* %18, i32 %19)
%21 = load i8*, i8** %7
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
store i8 0, i8* %24
%25 = load i8*, i8** %7
ret i8* %25
}

LLVM IR (-O2):
define i8* @substrn(i8* %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, 1
%5 = tail call i8* @malloc(i32 %4)
%6 = sext i32 %1 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = tail call i32 @strncpy(i8* %5, i8* %7, i32 %2)
%9 = sext i32 %2 to i64
%10 = getelementptr inbounds i8, i8* %5, i64 %9
store i8 0, i8* %10
ret i8* %5
}
int inject_mce() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @inject_mce() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern void shmem_double_sum_to_all(double *target, double *source, int nreduce,
                                    int PE_start, int logPE_stride, int PE_size,
                                    double *pWrk, long *pSync) {
  printf("\nOpenSHMEM Analyzer\n");
}


x86 assembly (clang, -O0):
<shmem_double_sum_to_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00"
define void @shmem_double_sum_to_all(double* %0, double* %1, i32 %2, i32 %3, i32 %4, i32 %5, double* %6, i64* %7) {
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca double*
%16 = alloca i64*
store double* %0, double** %9
store double* %1, double** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store double* %6, double** %15
store i64* %7, i64** %16
%17 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [20 x i8] c"\0AOpenSHMEM Analyzer\00"
define void @shmem_double_sum_to_all(double* nocapture readnone %0, double* nocapture readnone %1, i32 %2, i32 %3, i32 %4, i32 %5, double* nocapture readnone %6, i64* nocapture readnone %7) {
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret void
}
err(c) char c[];
{
  register j;
  printf("cannot %s\n", c);
  unl();
}


x86 assembly (clang, -O0):
<err>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <unl@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<err>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <unl@plt>

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

LLVM IR (-O2):
@.str = [11 x i8] c"cannot %s\0A\00"
define i32 @err(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 (...) @unl()
ret i32 undef
}
/* Variables and functions */
scalar_t__ valid_number_character(char const);
int strtod_buffer_size(const char *s) {
  const char *p = s;
  while (valid_number_character(*p))
    p++;
  return (int)(p - s);
}


x86 assembly (clang, -O0):
<strtod_buffer_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <valid_number_character@plt>
cmp    $0x0,%rax
je     114b <strtod_buffer_size+0x3b>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <strtod_buffer_size+0x14>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strtod_buffer_size>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0xffffffff,%ebp
nopl   0x0(%rax,%rax,1)
movsbl (%rbx),%edi
call   1030 <valid_number_character@plt>
add    $0x1,%rbx
add    $0x1,%ebp
test   %rax,%rax
jne    1120 <strtod_buffer_size+0x10>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @strtod_buffer_size(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
store i8* %4, i8** %3
br label %5
5: ; preds = %10, %1
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = call i64 @valid_number_character(i8 signext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %3
br label %5
13: ; preds = %5
%14 = load i8*, i8** %3
%15 = load i8*, i8** %2
%16 = ptrtoint i8* %14 to i64
%17 = ptrtoint i8* %15 to i64
%18 = sub i64 %16, %17
%19 = trunc i64 %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @strtod_buffer_size(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @valid_number_character(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = ptrtoint i8* %3 to i64
%10 = ptrtoint i8* %0 to i64
%11 = sub i64 %9, %10
%12 = trunc i64 %11 to i32
ret i32 %12
}
/* Variables and functions */
int rand();
int geraNumeroRandom() { return rand(); }


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

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

LLVM IR (-O0):
define i32 @geraNumeroRandom() {
%1 = call i32 (...) @rand()
ret i32 %1
}

LLVM IR (-O2):
define i32 @geraNumeroRandom() {
%1 = tail call i32 (...) @rand()
ret i32 %1
}
/* Variables and functions */
int rb_genrand_int32();
double rb_genrand_real(void) {
  unsigned long a = rb_genrand_int32() >> 5, b = rb_genrand_int32() >> 6;
  return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
}


x86 assembly (clang, -O0):
<rb_genrand_real>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xor    %eax,%eax
mov    %al,-0x11(%rbp)
call   1030 <rb_genrand_int32@plt>
mov    %eax,%ecx
mov    -0x11(%rbp),%al
sar    $0x5,%ecx
movslq %ecx,%rcx
mov    %rcx,-0x8(%rbp)
call   1030 <rb_genrand_int32@plt>
sar    $0x6,%eax
cltq
mov    %rax,-0x10(%rbp)
movaps 0xeca(%rip),%xmm3
movq   -0x8(%rbp),%xmm0
punpckldq %xmm3,%xmm0
movapd 0xec9(%rip),%xmm2
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x10(%rbp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe82(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe6a(%rip),%xmm1
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rb_genrand_real>:
push   %rbx
xor    %eax,%eax
call   1030 <rb_genrand_int32@plt>
sar    $0x5,%eax
movslq %eax,%rbx
xor    %eax,%eax
call   1030 <rb_genrand_int32@plt>
sar    $0x6,%eax
cltq
movq   %rbx,%xmm1
movdqa 0xec9(%rip),%xmm2
punpckldq %xmm2,%xmm1
movapd 0xecd(%rip),%xmm3
subpd  %xmm3,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movq   %rax,%xmm1
punpckldq %xmm2,%xmm1
subpd  %xmm3,%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
mulsd  0xeb0(%rip),%xmm0
addsd  %xmm1,%xmm2
addsd  %xmm2,%xmm0
mulsd  0xea8(%rip),%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @rb_genrand_real() {
%1 = alloca i64
%2 = alloca i64
%3 = call i32 (...) @rb_genrand_int32()
%4 = ashr i32 %3, 5
%5 = sext i32 %4 to i64
store i64 %5, i64* %1
%6 = call i32 (...) @rb_genrand_int32()
%7 = ashr i32 %6, 6
%8 = sext i32 %7 to i64
store i64 %8, i64* %2
%9 = load i64, i64* %1
%10 = uitofp i64 %9 to double
%11 = load i64, i64* %2
%12 = uitofp i64 %11 to double
%13 = call double @llvm.fmuladd.f64(double %10, double 0x4190000000000000, double %12)
%14 = fmul double %13, 0x3CA0000000000000
ret double %14
}

LLVM IR (-O2):
define double @rb_genrand_real() {
%1 = tail call i32 (...) @rb_genrand_int32()
%2 = ashr i32 %1, 5
%3 = sext i32 %2 to i64
%4 = tail call i32 (...) @rb_genrand_int32()
%5 = ashr i32 %4, 6
%6 = sext i32 %5 to i64
%7 = uitofp i64 %3 to double
%8 = uitofp i64 %6 to double
%9 = tail call double @llvm.fmuladd.f64(double %7, double 0x4190000000000000, double %8)
%10 = fmul double %9, 0x3CA0000000000000
ret double %10
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ perrordie(char *);
void safe_fclose(FILE *f) {
  if (fclose(f) != 0)
    perrordie("fclose");
}


x86 assembly (clang, -O0):
<safe_fclose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
cmp    $0x0,%rax
je     114b <safe_fclose+0x2b>
lea    0xeba(%rip),%rdi
call   1040 <perrordie@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_fclose>:
push   %rax
call   1030 <fclose@plt>
test   %rax,%rax
je     1138 <safe_fclose+0x18>
lea    0xece(%rip),%rdi
pop    %rax
jmp    1040 <perrordie@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"fclose\00"
define void @safe_fclose(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i64 @fclose(i32* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @perrordie(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"fclose\00"
define void @safe_fclose(i32* nocapture %0) {
%2 = tail call i64 @fclose(i32* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @perrordie(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("X\n");
  close(-11);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
mov    $0xfffffff5,%edi
call   1040 <close@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    $0xfffffff5,%edi
call   1040 <close@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [2 x i8] c"X\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @close(i32 -11)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ EEPROMClearSectorMask();
void EEPROMIntClear(unsigned long ulIntFlags) {
  (*((volatile unsigned long *)(0x400FD014))) = 0x00000004;
  if ((((*((volatile unsigned long *)(0x400FE000))) &
        (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00050000)) &&
      (((*((volatile unsigned long *)(0x400FE000))) &
        (0x0000FF00 | 0x000000FF)) == (0x00000000 | 0x00000000))) {
    EEPROMClearSectorMask();
  }
}


x86 assembly (clang, -O0):
<EEPROMIntClear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x400fd014,%eax
movq   $0x4,(%rax)
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10050000,%rax
jne    1161 <EEPROMIntClear+0x51>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0xffff,%rax
cmp    $0x0,%rax
jne    1161 <EEPROMIntClear+0x51>
mov    $0x0,%al
call   1030 <EEPROMClearSectorMask@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EEPROMIntClear>:
movq   $0x4,0x400fd014
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    113d <EEPROMIntClear+0x2d>
mov    0x400fe000,%rax
40
test   %ax,%ax
je     113e <EEPROMIntClear+0x2e>
ret
xor    %eax,%eax
jmp    1030 <EEPROMClearSectorMask@plt>

LLVM IR (-O0):
define void @EEPROMIntClear(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
store volatile i64 4, i64* inttoptr (i64 1074778132 to i64*)
%3 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%4 = and i64 %3, 1895759872
%5 = icmp eq i64 %4, 268763136
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%8 = and i64 %7, 65535
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 (...) @EEPROMClearSectorMask()
br label %12
12: ; preds = %10, %6, %1
ret void
}

LLVM IR (-O2):
define void @EEPROMIntClear(i64 %0) {
store volatile i64 4, i64* inttoptr (i64 1074778132 to i64*)
%2 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%3 = and i64 %2, 1895759872
%4 = icmp eq i64 %3, 268763136
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%7 = and i64 %6, 65535
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = tail call i32 (...) @EEPROMClearSectorMask()
br label %11
11: ; preds = %9, %5, %1
ret void
}
int gpio_is_valid(int number) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @gpio_is_valid(i32 %0) {
ret i32 0
}
void logOutput(char *FormatStr, ...) { return; }


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

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

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

LLVM IR (-O2):
define void @logOutput(i8* nocapture %0, ...) {
ret void
}
void DeInitCCLib(void) {}


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

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

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

LLVM IR (-O2):
define void @DeInitCCLib() {
ret void
}
void rte_prefetch_non_temporal(const volatile void *p) {
  __asm__ volatile("prefetchnta %[p]" : : [p] "m"(*(const volatile char *)p));
}


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

x86 assembly (clang, -O2):
<rte_prefetch_non_temporal>:
prefetchnta (%rdi)
ret

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

LLVM IR (-O2):
define void @rte_prefetch_non_temporal(i8* %0) {
tail call void asm sideeffect "prefetchnta $0", "*m,~{dirflag},~{fpsr},~{flags}"(i8* elementtype(i8) %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char *, int);
void f3(char *source) {
  char *destination = 0;
  destination = destination + 0;
  memcpy(destination, source, 10);
}


x86 assembly (clang, -O0):
<f3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0xa,%edx
call   1030 <memcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f3>:
mov    %rdi,%rsi
xor    %edi,%edi
mov    $0xa,%edx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @f3(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* null, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 0
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = load i8*, i8** %2
%8 = call i32 @memcpy(i8* %6, i8* %7, i32 10)
ret void
}

LLVM IR (-O2):
define void @f3(i8* %0) {
%2 = tail call i32 @memcpy(i8* null, i8* %0, i32 10)
ret void
}
void delay() {
  __asm__ __volatile__("nop\n"
                       "nop\n"
                       "nop\n"
                       "nop\n" ::
                           :);
  return;
}


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

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

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

LLVM IR (-O2):
define void @delay() {
tail call void asm sideeffect "nop\0Anop\0Anop\0Anop\0A", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
hoc_win_normal_cursor() {}


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

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

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

LLVM IR (-O2):
define i32 @hoc_win_normal_cursor() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ core3_swap(char *, int);
void U_EMRSETMAPMODE_swap(char *record, int torev) {
  core3_swap(record, torev);
}


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

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

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

LLVM IR (-O2):
define void @U_EMRSETMAPMODE_swap(i8* %0, i32 %1) {
%3 = tail call i32 @core3_swap(i8* %0, i32 %1)
ret void
}
void _irq_keyboard(void) {
  extern void kjvm_handle_kdb();
  kjvm_handle_kdb();
}


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

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

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

LLVM IR (-O2):
define void @_irq_keyboard() {
tail call void (...) @kjvm_handle_kdb()
ret void
}
/* Variables and functions */
scalar_t__ ENOSYS;
scalar_t__ errno;
int powercap_sysfs_control_type_exists(char *);
int powercap_rapl_control_is_supported(void) {
  int ret = powercap_sysfs_control_type_exists("intel-rapl");
  return ret ? (errno == ENOSYS ? 0 : ret) : 1;
}


x86 assembly (clang, -O0):
<powercap_rapl_control_is_supported>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <powercap_sysfs_control_type_exists@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1166 <powercap_rapl_control_is_supported+0x56>
mov    0x2ea0(%rip),%rax
mov    (%rax),%rax
mov    0x2ea6(%rip),%rcx
cmp    (%rcx),%rax
jne    1155 <powercap_rapl_control_is_supported+0x45>
xor    %eax,%eax
mov    %eax,-0x8(%rbp)
jmp    115b <powercap_rapl_control_is_supported+0x4b>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1173 <powercap_rapl_control_is_supported+0x63>
mov    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1173 <powercap_rapl_control_is_supported+0x63>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<powercap_rapl_control_is_supported>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <powercap_sysfs_control_type_exists@plt>
mov    0x2eb4(%rip),%rcx
mov    (%rcx),%rcx
mov    0x2eba(%rip),%rdx
xor    %esi,%esi
cmp    (%rdx),%rcx
cmovne %eax,%esi
test   %eax,%eax
mov    $0x1,%eax
cmovne %esi,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"intel-rapl\00"
@errno = global i64 0
@ENOSYS = global i64 0
define i32 @powercap_rapl_control_is_supported() {
%1 = alloca i32
%2 = call i32 @powercap_sysfs_control_type_exists(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %14
5: ; preds = %0
%6 = load i64, i64* @errno
%7 = load i64, i64* @ENOSYS
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %5
br label %12
10: ; preds = %5
%11 = load i32, i32* %1
br label %12
12: ; preds = %10, %9
%13 = phi i32 [ 0, %9 ], [ %11, %10 ]
br label %15
14: ; preds = %0
br label %15
15: ; preds = %14, %12
%16 = phi i32 [ %13, %12 ], [ 1, %14 ]
ret i32 %16
}

LLVM IR (-O2):
@.str = [11 x i8] c"intel-rapl\00"
@errno = global i64 0
@ENOSYS = global i64 0
define i32 @powercap_rapl_control_is_supported() {
%1 = tail call i32 @powercap_sysfs_control_type_exists(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
%3 = load i64, i64* @errno
%4 = load i64, i64* @ENOSYS
%5 = icmp eq i64 %3, %4
%6 = select i1 %5, i32 0, i32 %1
%7 = select i1 %2, i32 1, i32 %6
ret i32 %7
}