xunge/DecIR huggingface dataset:
/* Variables and functions */
int *malloc(int);
int /*<<< orphan*/ myfoo(int *);
void mallocEscapeMalloc() {
  int *p = malloc(12);
  myfoo(p);
  p = malloc(12);
}


x86 assembly (clang, -O0):
<mallocEscapeMalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xc,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <myfoo@plt>
mov    $0xc,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mallocEscapeMalloc>:
push   %rax
mov    $0xc,%edi
call   1040 <malloc@plt>
mov    %rax,%rdi
call   1030 <myfoo@plt>
mov    $0xc,%edi
pop    %rax
jmp    1040 <malloc@plt>

LLVM IR (-O0):
define void @mallocEscapeMalloc() {
%1 = alloca i32*
%2 = call i32* @malloc(i32 12)
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = call i32 @myfoo(i32* %3)
%5 = call i32* @malloc(i32 12)
store i32* %5, i32** %1
ret void
}

LLVM IR (-O2):
define void @mallocEscapeMalloc() {
%1 = tail call i32* @malloc(i32 12)
%2 = tail call i32 @myfoo(i32* %1)
%3 = tail call i32* @malloc(i32 12)
ret void
}
char *langRomTypeNoWind() { return "NoWind USB"; }


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

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

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

LLVM IR (-O2):
@.str = [11 x i8] c"NoWind USB\00"
define i8* @langRomTypeNoWind() {
ret i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
}
extern unsigned long native_save_fl(void) {
  unsigned long flags;
  asm volatile("# __raw_save_flags\n\t"
               "pushf ; pop %0"
               : "=rm"(flags)
               :
               : "memory");
  return flags;
}


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

x86 assembly (clang, -O2):
<native_save_fl>:
pushf
pop    -0x8(%rsp)
mov    -0x8(%rsp),%rax
ret

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

LLVM IR (-O2):
define i64 @native_save_fl() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = load i64, i64* %1
ret i64 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
void logline(FILE *f, int i) {
  if (f != 0) {
    fprintf(f, "LINE %d\n", i);
    fflush(f);
  }
}


x86 assembly (clang, -O0):
<logline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1156 <logline+0x36>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xeb8(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logline>:
test   %rdi,%rdi
je     1140 <logline+0x20>
push   %rbx
mov    %esi,%edx
mov    %rdi,%rbx
lea    0xece(%rip),%rsi
call   1030 <fprintf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <fflush@plt>
ret

LLVM IR (-O0):
@.str = [9 x i8] c"LINE %d\0A\00"
define void @logline(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 = icmp ne i32* %5, null
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32*, i32** %3
%9 = load i32, i32* %4
%10 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = load i32*, i32** %3
%12 = call i32 @fflush(i32* %11)
br label %13
13: ; preds = %7, %2
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"LINE %d\0A\00"
define void @logline(i32* %0, i32 %1) {
%3 = icmp eq i32* %0, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %1)
%6 = tail call i32 @fflush(i32* %0)
br label %7
7: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ find_c2_axes();
int /*<<< orphan*/ find_center_of_something();
int /*<<< orphan*/ find_higher_axes();
int /*<<< orphan*/ find_improper_axes();
int /*<<< orphan*/ find_infinity_axis();
int /*<<< orphan*/ find_inversion_centers();
int /*<<< orphan*/ find_planes();
void find_symmetry_elements(void) {
  find_center_of_something();
  find_inversion_centers();
  find_planes();
  find_infinity_axis();
  find_c2_axes();
  find_higher_axes();
  find_improper_axes();
}


x86 assembly (clang, -O0):
<find_symmetry_elements>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <find_center_of_something@plt>
mov    $0x0,%al
call   1060 <find_inversion_centers@plt>
mov    $0x0,%al
call   1080 <find_planes@plt>
mov    $0x0,%al
call   1090 <find_infinity_axis@plt>
mov    $0x0,%al
call   1070 <find_c2_axes@plt>
mov    $0x0,%al
call   1040 <find_higher_axes@plt>
mov    $0x0,%al
call   1030 <find_improper_axes@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_symmetry_elements>:
push   %rax
xor    %eax,%eax
call   1050 <find_center_of_something@plt>
xor    %eax,%eax
call   1060 <find_inversion_centers@plt>
xor    %eax,%eax
call   1080 <find_planes@plt>
xor    %eax,%eax
call   1090 <find_infinity_axis@plt>
xor    %eax,%eax
call   1070 <find_c2_axes@plt>
xor    %eax,%eax
call   1040 <find_higher_axes@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <find_improper_axes@plt>

LLVM IR (-O0):
define void @find_symmetry_elements() {
%1 = call i32 (...) @find_center_of_something()
%2 = call i32 (...) @find_inversion_centers()
%3 = call i32 (...) @find_planes()
%4 = call i32 (...) @find_infinity_axis()
%5 = call i32 (...) @find_c2_axes()
%6 = call i32 (...) @find_higher_axes()
%7 = call i32 (...) @find_improper_axes()
ret void
}

LLVM IR (-O2):
define void @find_symmetry_elements() {
%1 = tail call i32 (...) @find_center_of_something()
%2 = tail call i32 (...) @find_inversion_centers()
%3 = tail call i32 (...) @find_planes()
%4 = tail call i32 (...) @find_infinity_axis()
%5 = tail call i32 (...) @find_c2_axes()
%6 = tail call i32 (...) @find_higher_axes()
%7 = tail call i32 (...) @find_improper_axes()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ syscall_read(int /*<<< orphan*/, char *, int);
int getc_raw(void) {
  char c;
  syscall_read(0, &c, 1);
  return c;
}


x86 assembly (clang, -O0):
<getc_raw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
lea    -0x1(%rbp),%rsi
mov    $0x1,%edx
call   1030 <syscall_read@plt>
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getc_raw>:
push   %rax
lea    0x7(%rsp),%rsi
xor    %edi,%edi
mov    $0x1,%edx
call   1030 <syscall_read@plt>
movsbl 0x7(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @getc_raw() {
%1 = alloca i8
%2 = call i32 @syscall_read(i32 0, i8* %1, i32 1)
%3 = load i8, i8* %1
%4 = sext i8 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @getc_raw() {
%1 = alloca i8
%2 = call i32 @syscall_read(i32 0, i8* %1, i32 1)
%3 = load i8, i8* %1
%4 = sext i8 %3 to i32
ret i32 %4
}
/* Variables and functions */
scalar_t__ isdigit(char);
char tolower(char);
int hex2num(char c) {
  if (isdigit(c))
    return c - '0';
  else {
    char d = tolower(c);
    if (d >= 'a' && d <= 'f')
      return d - 'a' + 10;
    return 0;
  }
}


x86 assembly (clang, -O0):
<hex2num>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1150 <hex2num+0x30>
movsbl -0x5(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x4(%rbp)
jmp    118f <hex2num+0x6f>
movsbl -0x5(%rbp),%edi
call   1040 <tolower@plt>
mov    %al,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
cmp    $0x61,%eax
jl     1188 <hex2num+0x68>
movsbl -0x6(%rbp),%eax
cmp    $0x66,%eax
jg     1188 <hex2num+0x68>
movsbl -0x6(%rbp),%eax
sub    $0x61,%eax
add    $0xa,%eax
mov    %eax,-0x4(%rbp)
jmp    118f <hex2num+0x6f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hex2num>:
push   %rbx
mov    %edi,%ebx
call   1030 <isdigit@plt>
test   %rax,%rax
je     1135 <hex2num+0x15>
movsbl %bl,%eax
add    $0xffffffd0,%eax
pop    %rbx
ret
movsbl %bl,%edi
call   1040 <tolower@plt>
mov    %eax,%ecx
movsbl %al,%edx
add    $0x9f,%cl
add    $0xffffffa9,%edx
xor    %eax,%eax
cmp    $0x6,%cl
cmovb  %edx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @hex2num(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
%5 = load i8, i8* %3
%6 = call i64 @isdigit(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i8, i8* %3
%10 = sext i8 %9 to i32
%11 = sub nsw i32 %10, 48
store i32 %11, i32* %2
br label %28
12: ; preds = %1
%13 = load i8, i8* %3
%14 = call signext i8 @tolower(i8 signext %13)
store i8 %14, i8* %4
%15 = load i8, i8* %4
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 97
br i1 %17, label %18, label %27
18: ; preds = %12
%19 = load i8, i8* %4
%20 = sext i8 %19 to i32
%21 = icmp sle i32 %20, 102
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i8, i8* %4
%24 = sext i8 %23 to i32
%25 = sub nsw i32 %24, 97
%26 = add nsw i32 %25, 10
store i32 %26, i32* %2
br label %28
27: ; preds = %18, %12
store i32 0, i32* %2
br label %28
28: ; preds = %27, %22, %8
%29 = load i32, i32* %2
ret i32 %29
}

LLVM IR (-O2):
define i32 @hex2num(i8 signext %0) {
%2 = tail call i64 @isdigit(i8 signext %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = sext i8 %0 to i32
%6 = add nsw i32 %5, -48
br label %14
7: ; preds = %1
%8 = tail call signext i8 @tolower(i8 signext %0)
%9 = add i8 %8, -97
%10 = icmp ult i8 %9, 6
%11 = sext i8 %8 to i32
%12 = add nsw i32 %11, -87
%13 = select i1 %10, i32 %12, i32 0
br label %14
14: ; preds = %7, %4
%15 = phi i32 [ %6, %4 ], [ %13, %7 ]
ret i32 %15
}
/* Variables and functions */
scalar_t__ gets(char *);
int /*<<< orphan*/ hash(char *);
int /*<<< orphan*/ hashinit();
int /*<<< orphan*/ printf(char *, int, int /*<<< orphan*/);
main() {
  char word[30];
  hashinit();
  while (gets(word)) {
    printf("%.*lo\n", (27 + 2) / 3, hash(word));
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <hashinit@plt>
lea    -0x30(%rbp),%rdi
call   1060 <gets@plt>
cmp    $0x0,%rax
je     118a <main+0x4a>
lea    -0x30(%rbp),%rdi
call   1040 <hash@plt>
mov    %eax,%edx
lea    0xe85(%rip),%rdi
mov    $0x9,%esi
call   1050 <printf@plt>
jmp    1156 <main+0x16>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
xor    %eax,%eax
call   1030 <hashinit@plt>
mov    %rsp,%rdi
call   1060 <gets@plt>
test   %rax,%rax
je     1194 <main+0x54>
mov    %rsp,%rbx
lea    0xe9b(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   1040 <hash@plt>
mov    %r14,%rdi
mov    $0x9,%esi
mov    %eax,%edx
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <gets@plt>
test   %rax,%rax
jne    1170 <main+0x30>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%.*lo\0A\00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @hashinit()
%4 = call i64 @gets(i8* %2)
%5 = icmp eq i64 %4, 0
br i1 %5, label %11, label %6
6: ; preds = %0, %6
%7 = call i32 @hash(i8* %2)
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 9, i32 %7)
%9 = call i64 @gets(i8* %2)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %6
11: ; preds = %6, %0
ret i32 0
}
/* Variables and functions */
int check_directory_access(char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("Please enter target directory");
    return 1;
  }
  return check_directory_access(argv[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1158 <main+0x38>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1168 <main+0x48>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <check_directory_access@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x2,%edi
jne    1130 <main+0x10>
mov    0x8(%rsi),%rdi
pop    %rax
jmp    1040 <check_directory_access@plt>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"Please enter target directory\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %15
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i32 @check_directory_access(i8* %13)
store i32 %14, i32* %3
br label %15
15: ; preds = %10, %8
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
@.str = [30 x i8] c"Please enter target directory\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %10
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @check_directory_access(i8* %8)
br label %10
10: ; preds = %6, %4
%11 = phi i32 [ 1, %4 ], [ %9, %6 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ VIM_HIF_SetReg8(int, unsigned char);
void VIM_IPP_SetEffectUVThreshold(unsigned char bU_up, unsigned char bU_down,
                                  unsigned char bV_up, unsigned char bV_down) {
  VIM_HIF_SetReg8((0x1c00 + 0x054), bU_up);
  VIM_HIF_SetReg8((0x1c00 + 0x055), bU_down);
  VIM_HIF_SetReg8((0x1c00 + 0x056), bV_up);
  VIM_HIF_SetReg8((0x1c00 + 0x057), bV_down);
}


x86 assembly (clang, -O0):
<VIM_IPP_SetEffectUVThreshold>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %sil,%dl
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %dl,-0x2(%rbp)
mov    %cl,-0x3(%rbp)
mov    %al,-0x4(%rbp)
mov    $0x1c54,%edi
movzbl -0x1(%rbp),%esi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c55,%edi
movzbl -0x2(%rbp),%esi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c56,%edi
movzbl -0x3(%rbp),%esi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c57,%edi
movzbl -0x4(%rbp),%esi
call   1030 <VIM_HIF_SetReg8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VIM_IPP_SetEffectUVThreshold>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
mov    %edi,%esi
mov    $0x1c54,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c55,%edi
mov    %ebx,%esi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c56,%edi
mov    %ebp,%esi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x1c57,%edi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <VIM_HIF_SetReg8@plt>

LLVM IR (-O0):
define void @VIM_IPP_SetEffectUVThreshold(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3) {
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8 %0, i8* %5
store i8 %1, i8* %6
store i8 %2, i8* %7
store i8 %3, i8* %8
%9 = load i8, i8* %5
%10 = call i32 @VIM_HIF_SetReg8(i32 7252, i8 zeroext %9)
%11 = load i8, i8* %6
%12 = call i32 @VIM_HIF_SetReg8(i32 7253, i8 zeroext %11)
%13 = load i8, i8* %7
%14 = call i32 @VIM_HIF_SetReg8(i32 7254, i8 zeroext %13)
%15 = load i8, i8* %8
%16 = call i32 @VIM_HIF_SetReg8(i32 7255, i8 zeroext %15)
ret void
}

LLVM IR (-O2):
define void @VIM_IPP_SetEffectUVThreshold(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3) {
%5 = tail call i32 @VIM_HIF_SetReg8(i32 7252, i8 zeroext %0)
%6 = tail call i32 @VIM_HIF_SetReg8(i32 7253, i8 zeroext %1)
%7 = tail call i32 @VIM_HIF_SetReg8(i32 7254, i8 zeroext %2)
%8 = tail call i32 @VIM_HIF_SetReg8(i32 7255, i8 zeroext %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bar(int, int, int /*<<< orphan*/);
int baz() {
  int i, j;
#pragma omp parallel for ordered(2)
  for (i = 0; i < 100; ++i)
    for (j = 0; j < 100; ++j) {
#pragma omp ordered depend(sink : i - 1, j - 3)
      bar(i, j, 0);
#pragma omp ordered depend(source)
    }
}


x86 assembly (clang, -O0):
<baz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1168 <baz+0x58>
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    1155 <baz+0x45>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
xor    %edx,%edx
call   1030 <bar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1130 <baz+0x20>
jmp    115a <baz+0x4a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    111f <baz+0xf>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<baz>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%edi
mov    %ebp,%esi
xor    %edx,%edx
call   1030 <bar@plt>
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1130 <baz+0x20>
add    $0x1,%ebx
cmp    $0x64,%ebx
jne    1120 <baz+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @baz() {
br label %1
1: ; preds = %0, %8
%2 = phi i32 [ 0, %0 ], [ %9, %8 ]
br label %3
3: ; preds = %1, %3
%4 = phi i32 [ 0, %1 ], [ %6, %3 ]
%5 = tail call i32 @bar(i32 %2, i32 %4, i32 0)
%6 = add nuw nsw i32 %4, 1
%7 = icmp eq i32 %6, 100
br i1 %7, label %8, label %3
8: ; preds = %3
%9 = add nuw nsw i32 %2, 1
%10 = icmp eq i32 %9, 100
br i1 %10, label %11, label %1
11: ; preds = %8
ret i32 undef
}
int init_memcopysuite(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @init_memcopysuite() {
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int y_root;
};
typedef TYPE_1__ XPointerMovedEvent;

/* Variables and functions */
void set_XPointerMovedEvent_y_root(void *_p, int _v) {
  ((XPointerMovedEvent *)_p)->y_root = (int)_v;
}


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

x86 assembly (clang, -O2):
<set_XPointerMovedEvent_y_root>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XPointerMovedEvent_y_root(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XPointerMovedEvent_y_root(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ odbc_init();
int /*<<< orphan*/ odbcaux_init();
void pi_init(void) {
  odbc_init();
  odbcaux_init();
}


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

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

LLVM IR (-O0):
define void @pi_init() {
%1 = call i32 (...) @odbc_init()
%2 = call i32 (...) @odbcaux_init()
ret void
}

LLVM IR (-O2):
define void @pi_init() {
%1 = tail call i32 (...) @odbc_init()
%2 = tail call i32 (...) @odbcaux_init()
ret void
}
void c_pomp_flush_exit_(struct ompregdescr *r) { (void)0; }


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

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

LLVM IR (-O0):
%struct.ompregdescr = type opaque
define void @c_pomp_flush_exit_(%struct.ompregdescr* %0) {
%2 = alloca %struct.ompregdescr*
store %struct.ompregdescr* %0, %struct.ompregdescr** %2
ret void
}

LLVM IR (-O2):
%struct.ompregdescr = type opaque
define void @c_pomp_flush_exit_(%struct.ompregdescr* nocapture %0) {
ret void
}
_Complex double test_csinh(_Complex double x) { return __builtin_csinh(x); }


x86 assembly (clang, -O0):
<test_csinh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  %xmm1,-0x30(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
call   1030 <csinh@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_csinh>:
jmp    1030 <csinh@plt>

LLVM IR (-O0):
define { double, double } @test_csinh(double %0, double %1) {
%3 = alloca { double, double }
%4 = alloca { double, double }
%5 = alloca { double, double }
%6 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 0
store double %0, double* %6
%7 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 1
store double %1, double* %7
%8 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 0
%9 = load double, double* %8
%10 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 1
%11 = load double, double* %10
%12 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%13 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
store double %9, double* %12
store double %11, double* %13
%14 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%15 = load double, double* %14
%16 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
%17 = load double, double* %16
%18 = call { double, double } @csinh(double %15, double %17)
%19 = extractvalue { double, double } %18, 0
%20 = extractvalue { double, double } %18, 1
%21 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%22 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
store double %19, double* %21
store double %20, double* %22
%23 = load { double, double }, { double, double }* %3
ret { double, double } %23
}

LLVM IR (-O2):
define { double, double } @test_csinh(double %0, double %1) {
%3 = tail call { double, double } @csinh(double %0, double %1)
ret { double, double } %3
}
void _infix_operator_div_u8_u8(unsigned char lhs, unsigned char rhs,
                               unsigned char *__rval_1) {
  *__rval_1 = lhs / rhs;
}


x86 assembly (clang, -O0):
<_infix_operator_div_u8_u8>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    %rdx,-0x10(%rbp)
movzbl -0x1(%rbp),%eax
movzbl -0x2(%rbp),%ecx
cltd
idiv   %ecx
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<_infix_operator_div_u8_u8>:
movzbl %dil,%eax
div    %sil
mov    %al,(%rdx)
ret

LLVM IR (-O0):
define void @_infix_operator_div_u8_u8(i8 zeroext %0, i8 zeroext %1, i8* %2) {
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8*
store i8 %0, i8* %4
store i8 %1, i8* %5
store i8* %2, i8** %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = sdiv i32 %8, %10
%12 = trunc i32 %11 to i8
%13 = load i8*, i8** %6
store i8 %12, i8* %13
ret void
}

LLVM IR (-O2):
define void @_infix_operator_div_u8_u8(i8 zeroext %0, i8 zeroext %1, i8* nocapture writeonly %2) {
%4 = udiv i8 %0, %1
store i8 %4, i8* %2
ret void
}
/* Variables and functions */
const char *tok_close(char *buf, unsigned *cur, unsigned max) {
  unsigned i = *cur;
  if (i < max) {
    buf[i] = 0;
    (*cur)++;
    return buf;
  }
  return NULL;
}


x86 assembly (clang, -O0):
<tok_close>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    1147 <tok_close+0x47>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    114f <tok_close+0x4f>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tok_close>:
mov    (%rsi),%ecx
cmp    %edx,%ecx
jae    1111 <tok_close+0x11>
mov    %rdi,%rax
movb   $0x0,(%rdi,%rcx,1)
addl   $0x1,(%rsi)
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i8* @tok_close(i8* writeonly %0, i32* nocapture %1, i32 %2) {
%4 = load i32, i32* %1
%5 = icmp ult i32 %4, %2
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = zext i32 %4 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 %7
store i8 0, i8* %8
%9 = load i32, i32* %1
%10 = add i32 %9, 1
store i32 %10, i32* %1
br label %11
11: ; preds = %3, %6
%12 = phi i8* [ %0, %6 ], [ null, %3 ]
ret i8* %12
}
void foo188() {}


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

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

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

LLVM IR (-O2):
define void @foo188() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ask_exit();
int /*<<< orphan*/ calc_angle(int, int);
int /*<<< orphan*/ get_input(int *, int *);
int /*<<< orphan*/ print_result(int, int, int /*<<< orphan*/);
void run_program() {
  while (1) {
    int hour, min;
    get_input(&hour, &min);
    print_result(hour, min, calc_angle(hour, min));
    ask_exit();
  }
}


x86 assembly (clang, -O0):
<run_program>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <get_input@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <calc_angle@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    %eax,%edx
call   1030 <print_result@plt>
mov    $0x0,%al
call   1050 <ask_exit@plt>
jmp    1148 <run_program+0x8>

x86 assembly (clang, -O2):
<run_program>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0x4(%rsp),%r14
mov    %rsp,%r15
nop
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <get_input@plt>
mov    0x4(%rsp),%ebp
mov    (%rsp),%ebx
mov    %ebp,%edi
mov    %ebx,%esi
call   1040 <calc_angle@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <print_result@plt>
xor    %eax,%eax
call   1050 <ask_exit@plt>
jmp    1150 <run_program+0x10>

LLVM IR (-O0):
define void @run_program() {
%1 = alloca i32
%2 = alloca i32
br label %3
3: ; preds = %0, %3
%4 = call i32 @get_input(i32* %1, i32* %2)
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = call i32 @calc_angle(i32 %7, i32 %8)
%10 = call i32 @print_result(i32 %5, i32 %6, i32 %9)
%11 = call i32 (...) @ask_exit()
br label %3
}

LLVM IR (-O2):
define void @run_program() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
br label %5
5: ; preds = %0, %5
%6 = call i32 @get_input(i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = call i32 @calc_angle(i32 %7, i32 %8)
%10 = call i32 @print_result(i32 %7, i32 %8, i32 %9)
%11 = call i32 (...) @ask_exit()
br label %5
}
/* Variables and functions */
int DaysSince1600(int, int, int);
int DayOfWeek(int d, int m, int y) { return (DaysSince1600(d, m, y) + 5) % 7; }


x86 assembly (clang, -O0):
<DayOfWeek>:
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
mov    -0xc(%rbp),%edx
call   1030 <DaysSince1600@plt>
add    $0x5,%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DayOfWeek>:
push   %rax
call   1030 <DaysSince1600@plt>
mov    %eax,%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
imul   $0xffffffff92492493,%rcx,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
add    $0x5,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x0(,%rcx,8),%edx
sub    %edx,%ecx
add    %ecx,%eax
add    $0x5,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @DayOfWeek(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @DaysSince1600(i32 %0, i32 %1, i32 %2)
%5 = add nsw i32 %4, 5
%6 = srem i32 %5, 7
ret i32 %6
}
extern unsigned char inportb(unsigned short _port) {
  unsigned char rv;
  __asm__ __volatile__("inb %1, %0" : "=a"(rv) : "dN"(_port));
  return rv;
}


x86 assembly (clang, -O0):
<inportb>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%dx
in     (%dx),%al
mov    %al,-0x3(%rbp)
movzbl -0x3(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inportb>:
mov    %edi,%edx
in     (%dx),%al
ret

LLVM IR (-O0):
define zeroext i8 @inportb(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i8
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = call i8 asm sideeffect "inb $1, $0", "={ax},{dx}N,~{dirflag},~{fpsr},~{flags}"(i16 %4)
store i8 %5, i8* %3
%6 = load i8, i8* %3
ret i8 %6
}

LLVM IR (-O2):
define zeroext i8 @inportb(i16 zeroext %0) {
%2 = tail call i8 asm sideeffect "inb $1, $0", "={ax},{dx}N,~{dirflag},~{fpsr},~{flags}"(i16 %0)
ret i8 %2
}
/* Variables and functions */
int checker_read_unsigned_long_long(int, char const *, int,
                                    unsigned long long *);
int checker_read_team_unsigned_long_long(const char *name, int eof_error_flag,
                                         unsigned long long *p_val) {
  return checker_read_unsigned_long_long(1, name, eof_error_flag, p_val);
}


x86 assembly (clang, -O0):
<checker_read_team_unsigned_long_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    $0x1,%edi
call   1030 <checker_read_unsigned_long_long@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checker_read_team_unsigned_long_long>:
mov    %rdx,%rcx
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0x1,%edi
jmp    1030 <checker_read_unsigned_long_long@plt>

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

LLVM IR (-O2):
define i32 @checker_read_team_unsigned_long_long(i8* %0, i32 %1, i64* %2) {
%4 = tail call i32 @checker_read_unsigned_long_long(i32 1, i8* %0, i32 %1, i64* %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
void ft_putchar(char c) {
  (void)write(0x01, &c, 0x01);
  return;
}


x86 assembly (clang, -O0):
<ft_putchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0x1,%edx
lea    -0x1(%rbp),%rsi
mov    %edx,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putchar>:
push   %rax
mov    %dil,0x7(%rsp)
lea    0x7(%rsp),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1030 <write@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @ft_putchar(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 @write(i32 1, i8* %2, i32 1)
ret void
}

LLVM IR (-O2):
define void @ft_putchar(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 @write(i32 1, i8* %2, i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIGPIPE;
int /*<<< orphan*/ signal(int /*<<< orphan*/, void (*)(int));
void sigpipe(int sig) {
  sig = sig;
  signal(SIGPIPE, sigpipe);
}


x86 assembly (clang, -O0):
<sigpipe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
mov    0x2eb7(%rip),%rsi
call   1030 <signal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigpipe>:
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
mov    0x2ec8(%rip),%rsi
jmp    1030 <signal@plt>

LLVM IR (-O0):
@SIGPIPE = global i32 0
define void @sigpipe(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
store i32 %3, i32* %2
%4 = load i32, i32* @SIGPIPE
%5 = call i32 @signal(i32 %4, void (i32)* @sigpipe)
ret void
}

LLVM IR (-O2):
@SIGPIPE = global i32 0
define void @sigpipe(i32 %0) {
%2 = load i32, i32* @SIGPIPE
%3 = tail call i32 @signal(i32 %2, void (i32)* @sigpipe)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void mapreducer() { printf("Map reducer called"); }


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

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

LLVM IR (-O0):
@.str = [19 x i8] c"Map reducer called\00"
define void @mapreducer() {
%1 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"Map reducer called\00"
define void @mapreducer() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ WRITETEST(char *);
void EraseScrToCur() { WRITETEST("\033[1J"); }


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

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

LLVM IR (-O0):
@.str = [5 x i8] c"\1B[1J\00"
define void @EraseScrToCur() {
%1 = call i32 @WRITETEST(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"\1B[1J\00"
define void @EraseScrToCur() {
%1 = tail call i32 @WRITETEST(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}
const char *target_option_extract(const char *arg) {
  if (arg[0] != '-')
    return 0;
  if (arg[1] == '-')
    return arg + 2;
  else
    return arg + 1;
}


x86 assembly (clang, -O0):
<target_option_extract>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     1125 <target_option_extract+0x25>
movq   $0x0,-0x8(%rbp)
jmp    1153 <target_option_extract+0x53>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2d,%eax
jne    1147 <target_option_extract+0x47>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x8(%rbp)
jmp    1153 <target_option_extract+0x53>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_option_extract>:
cmpb   $0x2d,(%rdi)
jne    1116 <target_option_extract+0x16>
lea    0x1(%rdi),%rax
lea    0x2(%rdi),%rcx
cmpb   $0x2d,0x1(%rdi)
cmove  %rcx,%rax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i8* @target_option_extract(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 45
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 45
%8 = getelementptr inbounds i8, i8* %0, i64 2
%9 = select i1 %7, i8* %8, i8* %5
br label %10
10: ; preds = %4, %1
%11 = phi i8* [ null, %1 ], [ %9, %4 ]
ret i8* %11
}
vdrscl() {}


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

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

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

LLVM IR (-O2):
define i32 @vdrscl() {
ret i32 undef
}
unsigned int get_cpu_debug(void) { return 0x00; }


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

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

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

LLVM IR (-O2):
define i32 @get_cpu_debug() {
ret i32 0
}
/* Type definitions */
struct wgetfile {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ ftell(int /*<<< orphan*/ *);
int wget_remove(struct wgetfile *);
int wget_remove_if_empty(struct wgetfile *finfo, FILE *f) {
  if (ftell(f) > 0)
    return 0;
  return wget_remove(finfo);
}


x86 assembly (clang, -O0):
<wget_remove_if_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <ftell@plt>
cmp    $0x0,%rax
jle    114f <wget_remove_if_empty+0x2f>
movl   $0x0,-0x4(%rbp)
jmp    115b <wget_remove_if_empty+0x3b>
mov    -0x10(%rbp),%rdi
call   1030 <wget_remove@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wget_remove_if_empty>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1040 <ftell@plt>
test   %rax,%rax
jle    1135 <wget_remove_if_empty+0x15>
xor    %eax,%eax
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <wget_remove@plt>

LLVM IR (-O0):
%struct.wgetfile = type { i32 }
define i32 @wget_remove_if_empty(%struct.wgetfile* %0, i32* %1) {
%3 = alloca i32
%4 = alloca %struct.wgetfile*
%5 = alloca i32*
store %struct.wgetfile* %0, %struct.wgetfile** %4
store i32* %1, i32** %5
%6 = load i32*, i32** %5
%7 = call i64 @ftell(i32* %6)
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, i32* %3
br label %13
10: ; preds = %2
%11 = load %struct.wgetfile*, %struct.wgetfile** %4
%12 = call i32 @wget_remove(%struct.wgetfile* %11)
store i32 %12, i32* %3
br label %13
13: ; preds = %10, %9
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
%struct.wgetfile = type { i32 }
define i32 @wget_remove_if_empty(%struct.wgetfile* %0, i32* nocapture %1) {
%3 = tail call i64 @ftell(i32* %1)
%4 = icmp sgt i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @wget_remove(%struct.wgetfile* %0)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ 0, %2 ]
ret i32 %8
}
int seq_utils_is_step_active(int step, int motion_start, int motion_len,
                             int num_steps) {
  if (((step - motion_start) & (num_steps - 1)) < motion_len) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<seq_utils_is_step_active>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    -0x10(%rbp),%eax
jge    1133 <seq_utils_is_step_active+0x33>
movl   $0x1,-0x4(%rbp)
jmp    113a <seq_utils_is_step_active+0x3a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq_utils_is_step_active>:
sub    %esi,%edi
add    $0xffffffff,%ecx
and    %edi,%ecx
xor    %eax,%eax
cmp    %edx,%ecx
setl   %al
ret

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

LLVM IR (-O2):
define i32 @seq_utils_is_step_active(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = sub nsw i32 %0, %1
%6 = add nsw i32 %3, -1
%7 = and i32 %6, %5
%8 = icmp slt i32 %7, %2
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ w;

/* Variables and functions */
scalar_t__ size_ispow2(size_t const);
size_t size_nextpow2(const size_t x) {
  size_t w;
  w = 1;
  w = w << (sizeof(w) * 8 - 1);
  if (size_ispow2(x) != 0) {
    return x;
  }
  while ((w & x) == 0) {
    w = w >> 1;
  }
  w = w << 1;
  return w;
}


x86 assembly (clang, -O0):
<size_nextpow2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x3f,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <size_ispow2@plt>
cmp    $0x0,%rax
je     1150 <size_nextpow2+0x40>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    118c <size_nextpow2+0x7c>
jmp    1155 <size_nextpow2+0x45>
mov    -0x18(%rbp),%rax
and    -0x10(%rbp),%rax
cmp    $0x0,%rax
jne    1178 <size_nextpow2+0x68>
mov    -0x18(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1155 <size_nextpow2+0x45>
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<size_nextpow2>:
push   %rbx
mov    %rdi,%rbx
call   1030 <size_ispow2@plt>
test   %rax,%rax
jne    1141 <size_nextpow2+0x31>
movabs $0x8000000000000000,%rcx
nopl   0x0(%rax,%rax,1)
mov    %rcx,%rax
shr    %rcx
test   %rbx,%rax
je     1130 <size_nextpow2+0x20>
add    %rax,%rax
mov    %rax,%rbx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @size_nextpow2(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 1, i64* %4
%5 = load i64, i64* %4
%6 = shl i64 %5, 63
store i64 %6, i64* %4
%7 = load i64, i64* %3
%8 = call i64 @size_ispow2(i64 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i64, i64* %3
store i64 %11, i64* %2
br label %25
12: ; preds = %1
br label %13
13: ; preds = %18, %12
%14 = load i64, i64* %4
%15 = load i64, i64* %3
%16 = and i64 %14, %15
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i64, i64* %4
%20 = lshr i64 %19, 1
store i64 %20, i64* %4
br label %13
21: ; preds = %13
%22 = load i64, i64* %4
%23 = shl i64 %22, 1
store i64 %23, i64* %4
%24 = load i64, i64* %4
store i64 %24, i64* %2
br label %25
25: ; preds = %21, %10
%26 = load i64, i64* %2
ret i64 %26
}

LLVM IR (-O2):
define i64 @size_nextpow2(i64 %0) {
%2 = tail call i64 @size_ispow2(i64 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ -9223372036854775808, %1 ]
%6 = and i64 %5, %0
%7 = icmp eq i64 %6, 0
%8 = lshr i64 %5, 1
br i1 %7, label %4, label %9
9: ; preds = %4
%10 = shl i64 %5, 1
br label %11
11: ; preds = %1, %9
%12 = phi i64 [ %10, %9 ], [ %0, %1 ]
ret i64 %12
}