xunge/DecIR huggingface dataset:
int node_dy(int down, int up, int *output) {
  *output = ((down) - (up));
  return 1;
}


x86 assembly (clang, -O0):
<node_dy>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
sub    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<node_dy>:
sub    %esi,%edi
mov    %edi,(%rdx)
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @node_dy(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 = sub nsw i32 %7, %8
%10 = load i32*, i32** %6
store i32 %9, i32* %10
ret i32 1
}

LLVM IR (-O2):
define i32 @node_dy(i32 %0, i32 %1, i32* nocapture writeonly %2) {
%4 = sub nsw i32 %0, %1
store i32 %4, i32* %2
ret i32 1
}
int strindexC(char *s, char sep) {
  int i;
  for (i = 0; s[i] != '\0'; i++) {
    if (s[i] == sep)
      return i;
  }
  return -1;
}


x86 assembly (clang, -O0):
<strindexC>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1160 <strindexC+0x60>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    114d <strindexC+0x4d>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1167 <strindexC+0x67>
jmp    1152 <strindexC+0x52>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1115 <strindexC+0x15>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strindexC>:
mov    (%rdi),%dl
mov    $0xffffffff,%eax
test   %dl,%dl
je     1122 <strindexC+0x22>
xor    %ecx,%ecx
nopl   (%rax)
cmp    %sil,%dl
je     1123 <strindexC+0x23>
movzbl 0x1(%rdi,%rcx,1),%edx
add    $0x1,%rcx
test   %dl,%dl
jne    1110 <strindexC+0x10>
ret
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @strindexC(i8* nocapture %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %9
%6 = phi i64 [ %10, %9 ], [ 0, %2 ]
%7 = phi i8 [ %12, %9 ], [ %3, %2 ]
%8 = icmp eq i8 %7, %1
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = add nuw i64 %6, 1
%11 = getelementptr inbounds i8, i8* %0, i64 %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %16, label %5
14: ; preds = %5
%15 = trunc i64 %6 to i32
br label %16
16: ; preds = %9, %14, %2
%17 = phi i32 [ -1, %2 ], [ %15, %14 ], [ -1, %9 ]
ret i32 %17
}
/* Type definitions */
struct iovec {
  int dummy;
};

/* Variables and functions */
scalar_t__ EINTR;
scalar_t__ errno;
int writev(int, struct iovec const *, int);
int send_all(int sock, const struct iovec *iov, int iovcnt) {
  int ret;
  do {
    ret = writev(sock, iov, iovcnt);
  } while (ret == -1 && errno == EINTR);
  return ret;
}


x86 assembly (clang, -O0):
<send_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <writev@plt>
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x18(%rbp)
mov    %al,-0x19(%rbp)
jne    115d <send_all+0x4d>
mov    0x2e96(%rip),%rax
mov    (%rax),%rax
mov    0x2e84(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1122 <send_all+0x12>
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_all>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x2eb9(%rip),%r15
mov    0x2eaa(%rip),%r12
xchg   %ax,%ax
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1030 <writev@plt>
cmp    $0xffffffff,%eax
jne    114b <send_all+0x3b>
mov    (%r12),%rcx
cmp    %rcx,(%r15)
je     1130 <send_all+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.iovec = type { i32 }
@errno = global i64 0
@EINTR = global i64 0
define i32 @send_all(i32 %0, %struct.iovec* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.iovec*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store %struct.iovec* %1, %struct.iovec** %5
store i32 %2, i32* %6
br label %8
8: ; preds = %20, %3
%9 = load i32, i32* %4
%10 = load %struct.iovec*, %struct.iovec** %5
%11 = load i32, i32* %6
%12 = call i32 @writev(i32 %9, %struct.iovec* %10, i32 %11)
store i32 %12, i32* %7
br label %13
13: ; preds = %8
%14 = load i32, i32* %7
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i64, i64* @errno
%18 = load i64, i64* @EINTR
%19 = icmp eq i64 %17, %18
br label %20
20: ; preds = %16, %13
%21 = phi i1 [ false, %13 ], [ %19, %16 ]
br i1 %21, label %8, label %22
22: ; preds = %20
%23 = load i32, i32* %7
ret i32 %23
}

LLVM IR (-O2):
%struct.iovec = type { i32 }
@errno = global i64 0
@EINTR = global i64 0
define i32 @send_all(i32 %0, %struct.iovec* %1, i32 %2) {
br label %4
4: ; preds = %4, %3
%5 = tail call i32 @writev(i32 %0, %struct.iovec* %1, i32 %2)
%6 = icmp eq i32 %5, -1
%7 = load i64, i64* @errno
%8 = load i64, i64* @EINTR
%9 = icmp eq i64 %7, %8
%10 = select i1 %6, i1 %9, i1 false
br i1 %10, label %4, label %11
11: ; preds = %4
ret i32 %5
}
/* Variables and functions */
void *s2(size_t);
void *s3(size_t n) { return s2(n); }


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

x86 assembly (clang, -O2):
<s3>:
jmp    1030 <s2@plt>

LLVM IR (-O0):
define i8* @s3(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i8* @s2(i64 %3)
ret i8* %4
}

LLVM IR (-O2):
define i8* @s3(i64 %0) {
%2 = tail call i8* @s2(i64 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ clear_io_bit(int, int);
void TOSH_CLR_PW7_PIN() { clear_io_bit(0x40, 7); }


x86 assembly (clang, -O0):
<TOSH_CLR_PW7_PIN>:
push   %rbp
mov    %rsp,%rbp
mov    $0x40,%edi
mov    $0x7,%esi
call   1030 <clear_io_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TOSH_CLR_PW7_PIN>:
mov    $0x40,%edi
mov    $0x7,%esi
jmp    1030 <clear_io_bit@plt>

LLVM IR (-O0):
define void @TOSH_CLR_PW7_PIN() {
%1 = call i32 @clear_io_bit(i32 64, i32 7)
ret void
}

LLVM IR (-O2):
define void @TOSH_CLR_PW7_PIN() {
%1 = tail call i32 @clear_io_bit(i32 64, i32 7)
ret void
}
/* Variables and functions */
void Reserved_Handler22(void) {
  while (1)
    ;
}


x86 assembly (clang, -O0):
<Reserved_Handler22>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <Reserved_Handler22+0x9>
jmp    1109 <Reserved_Handler22+0x9>

x86 assembly (clang, -O2):
<Reserved_Handler22>:
jmp    1100 <Reserved_Handler22>

LLVM IR (-O0):
define void @Reserved_Handler22() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @Reserved_Handler22() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ dlclose(void *);
void close(void *handle) { dlclose(handle); }


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

x86 assembly (clang, -O2):
<close>:
jmp    1030 <dlclose@plt>

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

LLVM IR (-O2):
define void @close(i8* %0) {
%2 = tail call i32 @dlclose(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  printf("%d\n", argc);
  return 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)
mov    -0x8(%rbp),%esi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    %edi,%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\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 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 1
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
ret i32 1
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *, int /*<<< orphan*/);
int write_standard_target_Laurent_system(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(762, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<write_standard_target_Laurent_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x2fa,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_standard_target_Laurent_system>:
mov    $0x2fa,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc@plt>

LLVM IR (-O0):
define i32 @write_standard_target_Laurent_system() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = load double*, double** %4
%8 = call i32 @_ada_use_c2phc(i32 762, i32* %5, i32* %6, double* %7, i32 0)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @write_standard_target_Laurent_system() {
%1 = tail call i32 @_ada_use_c2phc(i32 762, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void error(char *msg) {
  printf("Failed to start Java\nPlease visit www.java.com and install "
         "Java\nError:%s\n",
         msg);
  exit(0);
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<error>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [74 x i8] c"Failed to start Java\0APlease visit www.java.com and install Java\0AError:%s\0A\00"
define void @error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [74 x i8] c"Failed to start Java\0APlease visit www.java.com and install Java\0AError:%s\0A\00"
define void @error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int d, h, m, l;
  scanf("%d", &d);
  h = d / 100;
  m = d / 10 % 10;
  l = d % 10;
  printf("%d%d%d\n", l, m, h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movslq 0x4(%rsp),%rsi
imul   $0x51eb851f,%rsi,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x25,%rcx
add    %eax,%ecx
imul   $0x66666667,%rsi,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rax
add    %edx,%eax
cltq
imul   $0x66666667,%rax,%rdx
mov    %rdx,%rdi
shr    $0x3f,%rdi
sar    $0x22,%rdx
add    %edi,%edx
add    %edx,%edx
lea    (%rdx,%rdx,4),%edi
mov    %eax,%edx
sub    %edi,%edx
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"%d%d%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = sdiv i32 %4, 100
%6 = sdiv i32 %4, 10
%7 = srem i32 %6, 10
%8 = srem i32 %4, 10
%9 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %7, i32 %5)
ret i32 0
}
/* Type definitions */
struct stat {
  int st_mode;
};
struct dirent {
  int dummy;
};

/* Variables and functions */
int S_IFDIR;
int _dir_only(const struct dirent *d, const struct stat *s) {
  return s->st_mode & S_IFDIR ? 1 : 0;
}


x86 assembly (clang, -O0):
<_dir_only>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    0x2ebf(%rip),%rax
and    (%rax),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_dir_only>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%ecx
xor    %eax,%eax
test   %ecx,(%rsi)
setne  %al
ret

LLVM IR (-O0):
%struct.dirent = type { i32 }
%struct.stat = type { i32 }
@S_IFDIR = global i32 0
define i32 @_dir_only(%struct.dirent* %0, %struct.stat* %1) {
%3 = alloca %struct.dirent*
%4 = alloca %struct.stat*
store %struct.dirent* %0, %struct.dirent** %3
store %struct.stat* %1, %struct.stat** %4
%5 = load %struct.stat*, %struct.stat** %4
%6 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 0
%7 = load i32, i32* %6
%8 = load i32, i32* @S_IFDIR
%9 = and i32 %7, %8
%10 = icmp ne i32 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 1, i32 0
ret i32 %12
}

LLVM IR (-O2):
%struct.dirent = type { i32 }
%struct.stat = type { i32 }
@S_IFDIR = global i32 0
define i32 @_dir_only(%struct.dirent* nocapture readnone %0, %struct.stat* nocapture %1) {
%3 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%4 = load i32, i32* %3
%5 = load i32, i32* @S_IFDIR
%6 = and i32 %5, %4
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Type definitions */
typedef scalar_t__ int32_t;

/* Variables and functions */
int vec_i32_desc_compare(const void *p1, const void *p2) {
  const int32_t *pp1 = (const int32_t *)p1;
  const int32_t *pp2 = (const int32_t *)p2;
  if (*pp1 > *pp2)
    return -1;
  if (*pp1 < *pp2)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<vec_i32_desc_compare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%rax
jle    113c <vec_i32_desc_compare+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1163 <vec_i32_desc_compare+0x63>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%rax
jge    115c <vec_i32_desc_compare+0x5c>
movl   $0x1,-0x4(%rbp)
jmp    1163 <vec_i32_desc_compare+0x63>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec_i32_desc_compare>:
mov    (%rdi),%rax
xor    %ecx,%ecx
cmp    (%rsi),%rax
setl   %cl
mov    $0xffffffff,%eax
cmovle %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @vec_i32_desc_compare(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = bitcast i8* %1 to i64*
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp sgt i64 %5, %6
%8 = icmp slt i64 %5, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ assert(char *);
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ write(int, char *, scalar_t__);
int handle_client_msg(int fd, char *buf) {
  assert(buf);
  printf("recv buf is :%s\n", buf);
  write(fd, buf, strlen(buf) + 1);
  return 0;
}


x86 assembly (clang, -O0):
<handle_client_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <assert@plt>
mov    -0x10(%rbp),%rsi
lea    0xe9d(%rip),%rdi
call   1050 <printf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1030 <write@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_client_msg>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rsi,%rdi
call   1060 <assert@plt>
lea    0xea9(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <write@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"recv buf is :%s\0A\00"
define i32 @handle_client_msg(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 @assert(i8* %5)
%7 = load i8*, i8** %4
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* %3
%10 = load i8*, i8** %4
%11 = load i8*, i8** %4
%12 = call i64 @strlen(i8* %11)
%13 = add nsw i64 %12, 1
%14 = call i32 @write(i32 %9, i8* %10, i64 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"recv buf is :%s\0A\00"
define i32 @handle_client_msg(i32 %0, i8* %1) {
%3 = tail call i32 @assert(i8* %1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %1)
%5 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%6 = add nsw i64 %5, 1
%7 = tail call i32 @write(i32 %0, i8* %1, i64 %6)
ret i32 0
}
void XGetWMColormapWindows() {}


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

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

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

LLVM IR (-O2):
define void @XGetWMColormapWindows() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mintaka_app_begin();
void mintaka_app_begin_() { mintaka_app_begin(); }


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

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

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

LLVM IR (-O2):
define void @mintaka_app_begin_() {
%1 = tail call i32 (...) @mintaka_app_begin()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ STshowAll();
void STinspect() { STshowAll(); }


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

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

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

LLVM IR (-O2):
define void @STinspect() {
%1 = tail call i32 (...) @STshowAll()
ret void
}
void BotSpeedBonus(int clientNum) {}


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

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

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

LLVM IR (-O2):
define void @BotSpeedBonus(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int write_srecord(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                  int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/ *);
int init_srec(FILE *f) { return write_srecord(f, 0, 2, 0, '0', NULL); }


x86 assembly (clang, -O0):
<init_srec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %ecx,%ecx
mov    $0x2,%edx
mov    $0x30,%r8d
xor    %eax,%eax
mov    %eax,%r9d
mov    %ecx,%esi
call   1030 <write_srecord@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_srec>:
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
mov    $0x30,%r8d
xor    %r9d,%r9d
jmp    1030 <write_srecord@plt>

LLVM IR (-O0):
define i32 @init_srec(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @write_srecord(i32* %3, i32 0, i32 2, i32 0, i32 48, i32* null)
ret i32 %4
}

LLVM IR (-O2):
define i32 @init_srec(i32* %0) {
%2 = tail call i32 @write_srecord(i32* %0, i32 0, i32 2, i32 0, i32 48, i32* null)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ hash_bits(int /*<<< orphan*/ *, char const *,
                             int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
void hash_string(uint32_t *hash, const char *str) {
  hash_bits(hash, str, strlen(str));
}


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

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

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

LLVM IR (-O2):
define void @hash_string(i32* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @hash_bits(i32* %0, i8* %1, i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ log_logf(int, char *);
int /*<<< orphan*/ system(char *);
int git_is_repo(void) {
  log_logf(2, "Checking if the current directory is a valid git repo...\n");
  return !system("git status > /dev/null 2>&1");
}


x86 assembly (clang, -O0):
<git_is_repo>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
lea    0xed0(%rip),%rsi
call   1030 <log_logf@plt>
lea    0xefe(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<git_is_repo>:
push   %rax
lea    0xed8(%rip),%rsi
mov    $0x2,%edi
call   1030 <log_logf@plt>
lea    0xf01(%rip),%rdi
call   1040 <system@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [58 x i8] c"Checking if the current directory is a valid git repo...\0A\00"
@.str.1 = [28 x i8] c"git status > /dev/null 2>&1\00"
define i32 @git_is_repo() {
%1 = call i32 @log_logf(i32 2, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp ne i32 %2, 0
%4 = xor i1 %3, true
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
@.str = [58 x i8] c"Checking if the current directory is a valid git repo...\0A\00"
@.str.1 = [28 x i8] c"git status > /dev/null 2>&1\00"
define i32 @git_is_repo() {
%1 = tail call i32 @log_logf(i32 2, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
char *langRomTypeKonami() { return "Konami"; }


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

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

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

LLVM IR (-O2):
@.str = [7 x i8] c"Konami\00"
define i8* @langRomTypeKonami() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ write_int(char *, int);
void set_brightness(int brightness) {
  write_int("/sys/class/backlight/acpi_video0/brightness", brightness);
}


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

x86 assembly (clang, -O2):
<set_brightness>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <write_int@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"/sys/class/backlight/acpi_video0/brightness\00"
define void @set_brightness(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @write_int(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"/sys/class/backlight/acpi_video0/brightness\00"
define void @set_brightness(i32 %0) {
%2 = tail call i32 @write_int(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
float fmax(float _a, float _b) { return _a > _b ? _a : _b; }


x86 assembly (clang, -O0):
<fmax>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    112c <fmax+0x2c>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1136 <fmax+0x36>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmax>:
maxss  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define float @fmax(float %0, float %1) {
%3 = fcmp ogt float %0, %1
%4 = select i1 %3, float %0, float %1
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ nc_init();
void ui_init() { nc_init(); }


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

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

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

LLVM IR (-O2):
define void @ui_init() {
%1 = tail call i32 (...) @nc_init()
ret void
}
void __attribute__((warning("curl_easy_setopt expects a private data pointer "
                            "as argument for this option")))
__attribute__((unused)) __attribute__((no))
_curl_easy_setopt_err_cb_data(void) {
  __asm__("");
}


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

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

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

LLVM IR (-O2):
define void @_curl_easy_setopt_err_cb_data() {
tail call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
void d2i_X509_CRL(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_X509_CRL() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIGKILL;
int getpid();
int /*<<< orphan*/ kill(int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void handler(int sig) {
  printf("handling...");
  kill(getpid(), SIGKILL);
  printf("process %i was killed\n", getpid());
}


x86 assembly (clang, -O0):
<handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
call   1050 <kill@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handler>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    0x2e93(%rip),%rcx
mov    (%rcx),%esi
mov    %eax,%edi
call   1050 <kill@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xea8(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"handling...\00"
@SIGKILL = global i32 0
@.str.1 = [23 x i8] c"process %i was killed\0A\00"
define void @handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @getpid()
%5 = load i32, i32* @SIGKILL
%6 = call i32 @kill(i32 %4, i32 %5)
%7 = call i32 (...) @getpid()
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"handling...\00"
@SIGKILL = global i32 0
@.str.1 = [23 x i8] c"process %i was killed\0A\00"
define void @handler(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @getpid()
%4 = load i32, i32* @SIGKILL
%5 = tail call i32 @kill(i32 %3, i32 %4)
%6 = tail call i32 (...) @getpid()
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret void
}
/* Variables and functions */
char *strrchr(char *, int);
char *g_basename(char *input) {
  char *b_ptr = strrchr(input, 0x2F);
  if (!b_ptr) {
    return input;
  }
  return b_ptr + 1;
}


x86 assembly (clang, -O0):
<g_basename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1146 <g_basename+0x36>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1152 <g_basename+0x42>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g_basename>:
push   %rbx
mov    %rdi,%rbx
mov    $0x2f,%esi
call   1030 <strrchr@plt>
lea    0x1(%rax),%rcx
test   %rax,%rax
cmove  %rbx,%rcx
mov    %rcx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @g_basename(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i32 47)
%3 = icmp eq i8* %2, null
%4 = getelementptr inbounds i8, i8* %2, i64 1
%5 = select i1 %3, i8* %0, i8* %4
ret i8* %5
}
int are_not_same_size(file1, file2)
char *file1, *file2;
{}


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

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

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

LLVM IR (-O2):
define i32 @are_not_same_size(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ LC_CTYPE;
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
void g_init(const char *app_name) { setlocale(LC_CTYPE, ""); }


x86 assembly (clang, -O0):
<g_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1030 <setlocale@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@LC_CTYPE = global i32 0
@.str = [1 x i8] zeroinitializer
define void @g_init(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @LC_CTYPE
%4 = call i32 @setlocale(i32 %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@LC_CTYPE = global i32 0
@.str = [1 x i8] zeroinitializer
define void @g_init(i8* nocapture readnone %0) {
%2 = load i32, i32* @LC_CTYPE
%3 = tail call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}
long latticecond(long n, long h, long l, long m, long k) {
  return l * m * (m - 1) / 2 + n * (k + 1) * k / 2 - h * k * m;
}


x86 assembly (clang, -O0):
<latticecond>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x18(%rbp),%rax
imul   -0x20(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    $0x1,%rcx
imul   %rcx,%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
add    $0x1,%rcx
imul   %rcx,%rax
imul   -0x28(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
add    %rcx,%rax
mov    -0x10(%rbp),%rcx
imul   -0x28(%rbp),%rcx
imul   -0x20(%rbp),%rcx
sub    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<latticecond>:
imul   %rcx,%rdx
lea    -0x1(%rcx),%r9
imul   %rdx,%r9
mov    %r9,%rax
shr    $0x3f,%rax
add    %r9,%rax
sar    %rax
lea    0x1(%r8),%rdx
imul   %r8,%rdi
imul   %rdi,%rdx
mov    %rdx,%rdi
shr    $0x3f,%rdi
add    %rdx,%rdi
sar    %rdi
imul   %rcx,%rsi
imul   %r8,%rsi
sub    %rsi,%rax
add    %rdi,%rax
ret

LLVM IR (-O0):
define i64 @latticecond(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i64 %0, i64* %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i64, i64* %8
%12 = load i64, i64* %9
%13 = mul nsw i64 %11, %12
%14 = load i64, i64* %9
%15 = sub nsw i64 %14, 1
%16 = mul nsw i64 %13, %15
%17 = sdiv i64 %16, 2
%18 = load i64, i64* %6
%19 = load i64, i64* %10
%20 = add nsw i64 %19, 1
%21 = mul nsw i64 %18, %20
%22 = load i64, i64* %10
%23 = mul nsw i64 %21, %22
%24 = sdiv i64 %23, 2
%25 = add nsw i64 %17, %24
%26 = load i64, i64* %7
%27 = load i64, i64* %10
%28 = mul nsw i64 %26, %27
%29 = load i64, i64* %9
%30 = mul nsw i64 %28, %29
%31 = sub nsw i64 %25, %30
ret i64 %31
}

LLVM IR (-O2):
define i64 @latticecond(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = mul nsw i64 %3, %2
%7 = add nsw i64 %3, -1
%8 = mul nsw i64 %6, %7
%9 = sdiv i64 %8, 2
%10 = add nsw i64 %4, 1
%11 = mul i64 %4, %0
%12 = mul i64 %11, %10
%13 = sdiv i64 %12, 2
%14 = mul i64 %3, %1
%15 = mul i64 %14, %4
%16 = sub i64 %9, %15
%17 = add i64 %16, %13
ret i64 %17
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ height;
};
typedef TYPE_1__ XConfigureEvent;

/* Variables and functions */
int get_XConfigureEvent_height(void *_p) {
  return (int)((XConfigureEvent *)_p)->height;
}


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

x86 assembly (clang, -O2):
<get_XConfigureEvent_height>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @get_XConfigureEvent_height(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
__attribute__((weak)) void fd_nrf8001_set_local_data_success(void) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define weak void @fd_nrf8001_set_local_data_success() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0xad() {
  Assert_real((isdigit(173) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isdigit.c",
              870, ("isdigit should be 0 for 0xad"));
}


x86 assembly (clang, -O0):
<t_isdigit_0xad>:
push   %rbp
mov    %rsp,%rbp
mov    $0xad,%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x366,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isdigit_0xad>:
push   %rax
mov    $0xad,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x366,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0xad\00"
define void @t_isdigit_0xad() {
%1 = call i64 @isdigit(i32 173)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 870, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0xad\00"
define void @t_isdigit_0xad() {
%1 = tail call i64 @isdigit(i32 173)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 870, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int *, int);
void function() {
  int var = 5;
  static int static_var = 5;
  printf("\t[in function] var @ %p = %d\n", &var, var);
  printf("\t[in function] static_var @ %p = %d\n", &static_var, static_var);
  var++;
  static_var++;
}


x86 assembly (clang, -O0):
<function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x5,-0x4(%rbp)
mov    -0x4(%rbp),%edx
lea    0xed7(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <printf@plt>
mov    0x2ef0(%rip),%edx
lea    0xedf(%rip),%rdi
lea    0x2ee2(%rip),%rsi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    0x2ece(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ec5(%rip)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<function>:
push   %rax
movl   $0x5,0x4(%rsp)
lea    0xee0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    $0x5,%edx
call   1030 <printf@plt>
mov    0x2ef3(%rip),%edx
lea    0x2eec(%rip),%rsi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
addl   $0x1,0x2ed9(%rip)
pop    %rax
ret

LLVM IR (-O0):
@function.static_var = internal global i32 5
@.str = [30 x i8] c"\09[in function] var @ %p = %d\0A\00"
@.str.1 = [37 x i8] c"\09[in function] static_var @ %p = %d\0A\00"
define void @function() {
%1 = alloca i32
store i32 5, i32* %1
%2 = load i32, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32* %1, i32 %2)
%4 = load i32, i32* @function.static_var
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32* @function.static_var, i32 %4)
%6 = load i32, i32* %1
%7 = add nsw i32 %6, 1
store i32 %7, i32* %1
%8 = load i32, i32* @function.static_var
%9 = add nsw i32 %8, 1
store i32 %9, i32* @function.static_var
ret void
}

LLVM IR (-O2):
@function.static_var = internal global i32 5
@.str = [30 x i8] c"\09[in function] var @ %p = %d\0A\00"
@.str.1 = [37 x i8] c"\09[in function] static_var @ %p = %d\0A\00"
define void @function() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 5, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32* %1, i32 5)
%4 = load i32, i32* @function.static_var
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32* @function.static_var, i32 %4)
%6 = load i32, i32* @function.static_var
%7 = add nsw i32 %6, 1
store i32 %7, i32* @function.static_var
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float, double);
void celsiustofahr() {
  float celsius;
  for (celsius = 0; celsius <= 300; celsius = celsius + 20)
    printf("%3.0f%6.1f\n", celsius, (9.0 * celsius) / 5.0 + 32);
}


x86 assembly (clang, -O0):
<celsiustofahr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xed8(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
jb     1187 <celsiustofahr+0x77>
movss  -0x4(%rbp),%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xed0(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xebc(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xea8(%rip),%xmm2
addsd  %xmm2,%xmm1
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
movss  0xe8c(%rip),%xmm0
addss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1120 <celsiustofahr+0x10>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<celsiustofahr>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffffec,%ebp
lea    0xef9(%rip),%rbx
nop
add    $0x14,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xec7(%rip),%xmm1
divsd  0xec7(%rip),%xmm1
addsd  0xec7(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
cmp    $0x119,%ebp
jb     1120 <celsiustofahr+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%3.0f%6.1f\0A\00"
define void @celsiustofahr() {
%1 = alloca float
store float 0.000000e+00, float* %1
br label %2
2: ; preds = %13, %0
%3 = load float, float* %1
%4 = fcmp ole float %3, 3.000000e+02
br i1 %4, label %5, label %16
5: ; preds = %2
%6 = load float, float* %1
%7 = load float, float* %1
%8 = fpext float %7 to double
%9 = fmul double 9.000000e+00, %8
%10 = fdiv double %9, 5.000000e+00
%11 = fadd double %10, 3.200000e+01
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), float %6, double %11)
br label %13
13: ; preds = %5
%14 = load float, float* %1
%15 = fadd float %14, 2.000000e+01
store float %15, float* %1
br label %2
16: ; preds = %2
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%3.0f%6.1f\0A\00"
define void @celsiustofahr() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %9, %1 ]
%3 = sitofp i32 %2 to float
%4 = fpext float %3 to double
%5 = fmul double %4, 9.000000e+00
%6 = fdiv double %5, 5.000000e+00
%7 = fadd double %6, 3.200000e+01
%8 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), float %3, double %7)
%9 = add nuw nsw i32 %2, 20
%10 = icmp ugt i32 %2, 280
br i1 %10, label %11, label %1
11: ; preds = %1
ret void
}