xunge/DecIR huggingface dataset:
void strip(char *s) {
  char *p2 = s;
  while (*s != '\0') {
    if (*s != '\t' && *s != '\n') {
      *p2++ = *s++;
    } else {
      ++s;
    }
  }
  *p2 = '\0';
}


x86 assembly (clang, -O0):
<strip>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1178 <strip+0x78>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1167 <strip+0x67>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     1167 <strip+0x67>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
jmp    1173 <strip+0x73>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1110 <strip+0x10>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<strip>:
mov    %rdi,%rax
jmp    1114 <strip+0x14>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rdi
movzbl (%rdi),%ecx
lea    -0x9(%rcx),%edx
cmp    $0x2,%dl
jb     1110 <strip+0x10>
test   %cl,%cl
je     112b <strip+0x2b>
mov    %cl,(%rax)
add    $0x1,%rax
jmp    1110 <strip+0x10>
movb   $0x0,(%rax)
ret

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

LLVM IR (-O2):
define void @strip(i8* nocapture %0) {
br label %2
2: ; preds = %8, %1
%3 = phi i8* [ %0, %1 ], [ %10, %8 ]
%4 = phi i8* [ %0, %1 ], [ %9, %8 ]
%5 = load i8, i8* %3
switch i8 %5, label %6 [
i8 0, label %11
i8 9, label %8
i8 10, label %8
]
6: ; preds = %2
%7 = getelementptr inbounds i8, i8* %4, i64 1
store i8 %5, i8* %4
br label %8
8: ; preds = %2, %2, %6
%9 = phi i8* [ %7, %6 ], [ %4, %2 ], [ %4, %2 ]
%10 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
11: ; preds = %2
store i8 0, i8* %4
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int __int32_t_encode_array(void *, int, int, int /*<<< orphan*/ *, int);
int __float_encode_array(void *_buf, int offset, int maxlen, const float *p,
                         int elements) {
  return __int32_t_encode_array(_buf, offset, maxlen, (int32_t *)p, elements);
}


x86 assembly (clang, -O0):
<__float_encode_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
call   1030 <__int32_t_encode_array@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__float_encode_array>:
jmp    1030 <__int32_t_encode_array@plt>

LLVM IR (-O0):
define i32 @__float_encode_array(i8* %0, i32 %1, i32 %2, float* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca float*
%10 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store float* %3, float** %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load float*, float** %9
%15 = bitcast float* %14 to i32*
%16 = load i32, i32* %10
%17 = call i32 @__int32_t_encode_array(i8* %11, i32 %12, i32 %13, i32* %15, i32 %16)
ret i32 %17
}

LLVM IR (-O2):
define i32 @__float_encode_array(i8* %0, i32 %1, i32 %2, float* %3, i32 %4) {
%6 = bitcast float* %3 to i32*
%7 = tail call i32 @__int32_t_encode_array(i8* %0, i32 %1, i32 %2, i32* %6, i32 %4)
ret i32 %7
}
/* Type definitions */
struct rpc_err {
  int dummy;
};
typedef int /*<<< orphan*/ CLIENT;

/* Variables and functions */
void clntraw_geterr(CLIENT *x, struct rpc_err *x1) {
  (void)x;
  (void)x1;
}


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

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

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

LLVM IR (-O2):
%struct.rpc_err = type { i32 }
define void @clntraw_geterr(i32* nocapture %0, %struct.rpc_err* nocapture %1) {
ret void
}
void handler_ext_int_9(void) {}


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

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

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

LLVM IR (-O2):
define void @handler_ext_int_9() {
ret void
}
void export_env_ull(const char *name, unsigned long long val) {}


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

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

LLVM IR (-O0):
define void @export_env_ull(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
ret void
}

LLVM IR (-O2):
define void @export_env_ull(i8* nocapture %0, i64 %1) {
ret void
}
/* Variables and functions */
size_t mcb(void *p, const char *buf, size_t size) {
  *(size_t *)p += size;
  return size;
}


x86 assembly (clang, -O0):
<mcb>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mcb>:
mov    %rdx,%rax
add    %rdx,(%rdi)
ret

LLVM IR (-O0):
define i64 @mcb(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i64, i64* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i64*
%10 = load i64, i64* %9
%11 = add i64 %10, %7
store i64 %11, i64* %9
%12 = load i64, i64* %6
ret i64 %12
}

LLVM IR (-O2):
define i64 @mcb(i8* nocapture %0, i8* nocapture readnone %1, i64 returned %2) {
%4 = bitcast i8* %0 to i64*
%5 = load i64, i64* %4
%6 = add i64 %5, %2
store i64 %6, i64* %4
ret i64 %2
}
int main(void) {
  int i = 0;
  while (i < 10)
    i++;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    112a <main+0x2a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <main+0x12>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int MAIN() {
  int a = 1, b = 2;
  int result;
  result = func(a, b) - 3;
  write(result);
  write("\n");
  return 0;
}


x86 assembly (clang, -O0):
<MAIN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    $0x0,%al
call   1040 <func@plt>
sub    $0x3,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1030 <write@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <write@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MAIN>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <func@plt>
lea    -0x3(%rax),%edi
xor    %eax,%eax
call   1030 <write@plt>
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1030 <write@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @MAIN() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 1, i32* %1
store i32 2, i32* %2
%4 = load i32, i32* %1
%5 = load i32, i32* %2
%6 = call i32 (i32, i32, ...) bitcast (i32 (...)* @func to i32 (i32, i32, ...)*)(i32 %4, i32 %5)
%7 = sub nsw i32 %6, 3
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = call i32 (i32, ...) bitcast (i32 (...)* @write to i32 (i32, ...)*)(i32 %8)
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define i32 @MAIN() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @func to i32 (i32, i32, ...)*)(i32 1, i32 2)
%2 = add nsw i32 %1, -3
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @write to i32 (i32, ...)*)(i32 %2)
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
scalar_t__ memcpy(char *, void const *, int);
char *kp_buf_wmem(char *p, const void *q, int len) {
  return (char *)memcpy(p, q, len) + len;
}


x86 assembly (clang, -O0):
<kp_buf_wmem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <memcpy@plt>
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kp_buf_wmem>:
push   %rbx
mov    %edx,%ebx
call   1030 <memcpy@plt>
movslq %ebx,%rcx
add    %rcx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @kp_buf_wmem(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i64 @memcpy(i8* %7, i8* %8, i32 %9)
%11 = inttoptr i64 %10 to i8*
%12 = load i32, i32* %6
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %11, i64 %13
ret i8* %14
}

LLVM IR (-O2):
define i8* @kp_buf_wmem(i8* %0, i8* %1, i32 %2) {
%4 = tail call i64 @memcpy(i8* %0, i8* %1, i32 %2)
%5 = inttoptr i64 %4 to i8*
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i8, i8* %5, i64 %6
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, char *, int);
void cmp2(void) { memcpy((void *)1, "foobar", 42); }


x86 assembly (clang, -O0):
<cmp2>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rsi
mov    $0x1,%edi
mov    $0x2a,%edx
call   1030 <memcpy@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp2>:
lea    0xee9(%rip),%rsi
mov    $0x1,%edi
mov    $0x2a,%edx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"foobar\00"
define void @cmp2() {
%1 = call i32 @memcpy(i8* inttoptr (i64 1 to i8*), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 42)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"foobar\00"
define void @cmp2() {
%1 = tail call i32 @memcpy(i8* inttoptr (i64 1 to i8*), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 42)
ret void
}
/* Variables and functions */
scalar_t__ ArgNum();
scalar_t__ LevelOf(int /*<<< orphan*/);
int /*<<< orphan*/ Me();
int Cnd_Level(void) { return (LevelOf(Me()) >= ArgNum()); }


x86 assembly (clang, -O0):
<Cnd_Level>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <Me@plt>
mov    %eax,%edi
call   1040 <LevelOf@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <ArgNum@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
cmp    %rcx,%rax
setge  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cnd_Level>:
push   %rbx
xor    %eax,%eax
call   1050 <Me@plt>
mov    %eax,%edi
call   1040 <LevelOf@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <ArgNum@plt>
xor    %ecx,%ecx
cmp    %rax,%rbx
setge  %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @Cnd_Level() {
%1 = call i32 (...) @Me()
%2 = call i64 @LevelOf(i32 %1)
%3 = call i64 (...) @ArgNum()
%4 = icmp sge i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @Cnd_Level() {
%1 = tail call i32 (...) @Me()
%2 = tail call i64 @LevelOf(i32 %1)
%3 = tail call i64 (...) @ArgNum()
%4 = icmp sge i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef int uint64_t;
typedef int uint32_t;

/* Variables and functions */
uint64_t is_objc_ivar_symbol(const char *__attribute__((nonnull)) const symbol,
                             const uint64_t first) {
  if (first != 6217605503174987615) {
    return 0;
  }
  const uint32_t second = *(const uint32_t *)(symbol + 8);
  if (second != 610226753) {
    return 0;
  }
  if (symbol[12] != '_') {
    return 0;
  }
  return 12;
}


x86 assembly (clang, -O0):
<is_objc_ivar_symbol>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movslq -0x14(%rbp),%rax
movabs $0x56495f434a424f5f,%rcx
5f 49 56
cmp    %rcx,%rax
je     112e <is_objc_ivar_symbol+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1175 <is_objc_ivar_symbol+0x75>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x245f5241,-0x18(%rbp)
je     1151 <is_objc_ivar_symbol+0x51>
movl   $0x0,-0x4(%rbp)
jmp    1175 <is_objc_ivar_symbol+0x75>
mov    -0x10(%rbp),%rax
movsbl 0xc(%rax),%eax
cmp    $0x5f,%eax
je     116e <is_objc_ivar_symbol+0x6e>
movl   $0x0,-0x4(%rbp)
jmp    1175 <is_objc_ivar_symbol+0x75>
movl   $0xc,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @is_objc_ivar_symbol(i8* nocapture readnone %0, i32 %1) {
ret i32 0
}
void foo() {
  enum xpto;
  enum xpto;
}


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

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

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

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

/* Variables and functions */
scalar_t__ readrecord(int /*<<< orphan*/ *, int *);
unsigned int readgb(FILE *f) {
  unsigned int nErrors = 0;
  int atEnd = 0;
  while (atEnd == 0) {
    nErrors += readrecord(f, &atEnd);
    if (atEnd == 0) {
    }
  }
  return nErrors;
}


x86 assembly (clang, -O0):
<readgb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jne    1161 <readgb+0x51>
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1030 <readrecord@plt>
mov    %rax,%rcx
mov    -0xc(%rbp),%eax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x10(%rbp)
jne    115c <readgb+0x4c>
jmp    115c <readgb+0x4c>
jmp    112a <readgb+0x1a>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readgb>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movl   $0x0,0xc(%rsp)
xor    %ebp,%ebp
lea    0xc(%rsp),%r14
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <readrecord@plt>
add    %eax,%ebp
cmpl   $0x0,0xc(%rsp)
je     1130 <readgb+0x20>
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @readgb(i32* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
br label %4
4: ; preds = %1, %4
%5 = phi i32 [ 0, %1 ], [ %8, %4 ]
%6 = call i64 @readrecord(i32* %0, i32* %2)
%7 = trunc i64 %6 to i32
%8 = add i32 %5, %7
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 0
br i1 %10, label %4, label %11
11: ; preds = %4
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void indent(FILE *out, int d) {
  int i;
  for (i = 0; i <= d; i++)
    fprintf(out, " ");
}


x86 assembly (clang, -O0):
<indent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1150 <indent+0x40>
mov    -0x8(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <indent+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<indent>:
push   %r14
push   %rbx
push   %rax
test   %esi,%esi
js     1132 <indent+0x22>
mov    %esi,%ebx
mov    %rdi,%r14
add    $0x1,%ebx
mov    $0x20,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
add    $0xffffffff,%ebx
jne    1120 <indent+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @indent(i32* nocapture %0, i32 %1) {
%3 = icmp slt i32 %1, 0
br i1 %3, label %9, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %7, %4 ], [ 0, %2 ]
%6 = tail call i32 @fputc(i32 32, i32* %0)
%7 = add nuw i32 %5, 1
%8 = icmp eq i32 %5, %1
br i1 %8, label %9, label %4
9: ; preds = %4, %2
ret void
}
void _Jv_ThrowNoSuchFieldError() {}


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

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

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

LLVM IR (-O2):
define void @_Jv_ThrowNoSuchFieldError() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ WNOHANG;
int errno;
scalar_t__ waitpid(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
void ps_daemon_sigchld_handler(int sig) {
  int errno_process = errno;
  while (waitpid(-1, NULL, WNOHANG) > 0)
    continue;
  errno = errno_process;
}


x86 assembly (clang, -O0):
<ps_daemon_sigchld_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <waitpid@plt>
cmp    $0x0,%rax
jle    114d <ps_daemon_sigchld_handler+0x3d>
jmp    1127 <ps_daemon_sigchld_handler+0x17>
mov    -0x8(%rbp),%ecx
mov    0x2e81(%rip),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ps_daemon_sigchld_handler>:
push   %rbp
push   %r14
push   %rbx
mov    0x2ebd(%rip),%r14
mov    (%r14),%ebp
mov    0x2ec3(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rbx),%edx
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1030 <waitpid@plt>
test   %rax,%rax
jg     1130 <ps_daemon_sigchld_handler+0x20>
mov    %ebp,(%r14)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i32 0
@WNOHANG = global i32 0
define void @ps_daemon_sigchld_handler(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* @errno
store i32 %4, i32* %3
br label %5
5: ; preds = %9, %1
%6 = load i32, i32* @WNOHANG
%7 = call i64 @waitpid(i32 -1, i32* null, i32 %6)
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %5
br label %5
10: ; preds = %5
%11 = load i32, i32* %3
store i32 %11, i32* @errno
ret void
}

LLVM IR (-O2):
@errno = global i32 0
@WNOHANG = global i32 0
define void @ps_daemon_sigchld_handler(i32 %0) {
%2 = load i32, i32* @errno
br label %3
3: ; preds = %3, %1
%4 = load i32, i32* @WNOHANG
%5 = tail call i64 @waitpid(i32 -1, i32* null, i32 %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %3, label %7
7: ; preds = %3
store i32 %2, i32* @errno
ret void
}
void PDMR3ThreadSuspend(void) {}


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

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

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

LLVM IR (-O2):
define void @PDMR3ThreadSuspend() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ itracku_device_write_string(char *);
int /*<<< orphan*/ itracku_rd_ser_init(char const *);
void itracku_rt_init(const char *fname) {
  itracku_rd_ser_init(fname);
  itracku_device_write_string("WP AP-Exit");
}


x86 assembly (clang, -O0):
<itracku_rt_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <itracku_rd_ser_init@plt>
lea    0xec4(%rip),%rdi
call   1030 <itracku_device_write_string@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<itracku_rt_init>:
push   %rax
call   1040 <itracku_rd_ser_init@plt>
lea    0xed3(%rip),%rdi
pop    %rax
jmp    1030 <itracku_device_write_string@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"WP AP-Exit\00"
define void @itracku_rt_init(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @itracku_rd_ser_init(i8* %3)
%5 = call i32 @itracku_device_write_string(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"WP AP-Exit\00"
define void @itracku_rt_init(i8* %0) {
%2 = tail call i32 @itracku_rd_ser_init(i8* %0)
%3 = tail call i32 @itracku_device_write_string(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
int _abs(int n) {
  if (n < 0)
    return (-n);
  return (n);
}


x86 assembly (clang, -O0):
<_abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    111e <_abs+0x1e>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1124 <_abs+0x24>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_abs>:
mov    %edi,%eax
neg    %eax
cmovs  %edi,%eax
ret

LLVM IR (-O0):
define i32 @_abs(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = sub nsw i32 0, %7
store i32 %8, i32* %2
br label %11
9: ; preds = %1
%10 = load i32, i32* %3
store i32 %10, i32* %2
br label %11
11: ; preds = %9, %6
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @_abs(i32 %0) {
%2 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
ret i32 %2
}
void foo_2_1_2_2_2_2_2_1_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_2_1_2_2_2_2_2_1_2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
void exitc(int err_code, char *err_msg) {
  printf("%s\n", err_msg);
  fclose(stdin);
  fclose(stdout);
  fclose(stderr);
  exit(err_code);
}


x86 assembly (clang, -O0):
<exitc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<exitc>:
push   %rbx
mov    %edi,%ebx
lea    0xec6(%rip),%rdi
call   1040 <printf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@stderr = global i32 0
define void @exitc(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 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* @stdin
%8 = call i32 @fclose(i32 %7)
%9 = load i32, i32* @stdout
%10 = call i32 @fclose(i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fclose(i32 %11)
%13 = load i32, i32* %3
%14 = call i32 @exit(i32 %13)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@stderr = global i32 0
define void @exitc(i32 %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = load i32, i32* @stdin
%5 = tail call i32 @fclose(i32 %4)
%6 = load i32, i32* @stdout
%7 = tail call i32 @fclose(i32 %6)
%8 = load i32, i32* @stderr
%9 = tail call i32 @fclose(i32 %8)
%10 = tail call i32 @exit(i32 %0)
unreachable
}
/* Variables and functions */
int ceil(double);
int M(double A, double delta_omega) {
  if (A > 21)
    return ceil((A - 7.95) / (2.285 * delta_omega));
  else
    return ceil(5.79 / delta_omega);
}


x86 assembly (clang, -O0):
<M>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xed1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1168 <M+0x58>
movsd  -0x10(%rbp),%xmm0
movsd  0xed2(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xebe(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1030 <ceil@plt>
mov    %eax,-0x4(%rbp)
jmp    117d <M+0x6d>
movsd  0xe98(%rip),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1030 <ceil@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<M>:
ucomisd 0xee8(%rip),%xmm0
jbe    1133 <M+0x23>
addsd  0xeee(%rip),%xmm0
mulsd  0xeee(%rip),%xmm1
divsd  %xmm1,%xmm0
jmp    1030 <ceil@plt>
movsd  0xecd(%rip),%xmm0
divsd  %xmm1,%xmm0
jmp    1030 <ceil@plt>

LLVM IR (-O0):
define i32 @M(double %0, double %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = fcmp ogt double %6, 2.100000e+01
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load double, double* %4
%10 = fsub double %9, 7.950000e+00
%11 = load double, double* %5
%12 = fmul double 2.285000e+00, %11
%13 = fdiv double %10, %12
%14 = call i32 @ceil(double %13)
store i32 %14, i32* %3
br label %19
15: ; preds = %2
%16 = load double, double* %5
%17 = fdiv double 5.790000e+00, %16
%18 = call i32 @ceil(double %17)
store i32 %18, i32* %3
br label %19
19: ; preds = %15, %8
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
define i32 @M(double %0, double %1) {
%3 = fcmp ogt double %0, 2.100000e+01
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = fadd double %0, -7.950000e+00
%6 = fmul double %1, 2.285000e+00
%7 = fdiv double %5, %6
br label %10
8: ; preds = %2
%9 = fdiv double 5.790000e+00, %1
br label %10
10: ; preds = %8, %4
%11 = phi double [ %9, %8 ], [ %7, %4 ]
%12 = tail call i32 @ceil(double %11)
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
__attribute__((no)) void f(unsigned long long i) {
  if (i <= 0x1000000000000000ull) {
    unsigned long long j = i | 0x1000000000000000ull;
    if (j == 0x1100000000000000ull)
      exit(0);
  }
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movabs $0x1000000000000000,%rax
cmp    %rax,-0x8(%rbp)
ja     1162 <f+0x52>
movabs $0x1000000000000000,%rax
or     -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movabs $0x1100000000000000,%rax
cmp    %rax,-0x10(%rbp)
jne    115d <f+0x4d>
xor    %edi,%edi
call   1030 <exit@plt>
jmp    1162 <f+0x52>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
movabs $0x1000000000000000,%rax
cmp    %rax,%rdi
ja     113b <f+0x2b>
movabs $0xefffffffffffffff,%rax
ff ff ef
and    %rax,%rdi
movabs $0x100000000000000,%rax
cmp    %rax,%rdi
je     113c <f+0x2c>
ret
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @f(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = icmp ule i64 %4, 1152921504606846976
br i1 %5, label %6, label %14
6: ; preds = %1
%7 = load i64, i64* %2
%8 = or i64 %7, 1152921504606846976
store i64 %8, i64* %3
%9 = load i64, i64* %3
%10 = icmp eq i64 %9, 1224979098644774912
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = call i32 @exit(i32 0)
unreachable
13: ; preds = %6
br label %14
14: ; preds = %13, %1
ret void
}

LLVM IR (-O2):
define void @f(i64 %0) {
%2 = icmp ult i64 %0, 1152921504606846977
%3 = and i64 %0, -1152921504606846977
%4 = icmp eq i64 %3, 72057594037927936
%5 = and i1 %2, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int reverse(int);
int /*<<< orphan*/ scanf(char *, int *, int *);
void process() {
  int num1, num2;
  scanf("%d %d\n", &num1, &num2);
  printf("%d\n", reverse(reverse(num1) + reverse(num2)));
}


x86 assembly (clang, -O0):
<process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x4(%rbp),%edi
call   1030 <reverse@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <reverse@plt>
mov    -0xc(%rbp),%edi
add    %eax,%edi
call   1030 <reverse@plt>
mov    %eax,%esi
lea    0xe91(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
call   1030 <reverse@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%edi
call   1030 <reverse@plt>
add    %eax,%ebx
mov    %ebx,%edi
call   1030 <reverse@plt>
lea    0xe94(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d %d\0A\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define void @process() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%4 = load i32, i32* %1
%5 = call i32 @reverse(i32 %4)
%6 = load i32, i32* %2
%7 = call i32 @reverse(i32 %6)
%8 = add nsw i32 %5, %7
%9 = call i32 @reverse(i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d %d\0A\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define void @process() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = call i32 @reverse(i32 %6)
%8 = load i32, i32* %2
%9 = call i32 @reverse(i32 %8)
%10 = add nsw i32 %9, %7
%11 = call i32 @reverse(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %11)
ret void
}
void window_guest_list_emptysub() {}


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

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

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

LLVM IR (-O2):
define void @window_guest_list_emptysub() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char const *);
scalar_t__ strncmp(char const *, char const *, int /*<<< orphan*/);
int strbeginswith(const char *a, const char *prefix) {
  return strncmp(a, prefix, strlen(prefix)) == 0;
}


x86 assembly (clang, -O0):
<strbeginswith>:
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   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strbeginswith>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @strbeginswith(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i64 @strncmp(i8* %0, i8* %1, i32 %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
float log10f(float);
void sLog10_process(float bIn, float *bOut) {
  *bOut = (bIn > 0.0f) ? log10f(bIn) : 0.0f;
}


x86 assembly (clang, -O0):
<sLog10_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1146 <sLog10_process+0x36>
movss  -0x4(%rbp),%xmm0
call   1030 <log10f@plt>
movss  %xmm0,-0x14(%rbp)
jmp    1153 <sLog10_process+0x43>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1153 <sLog10_process+0x43>
movss  -0x14(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sLog10_process>:
push   %rbx
mov    %rdi,%rbx
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jbe    1127 <sLog10_process+0x17>
movaps %xmm1,%xmm0
call   1030 <log10f@plt>
movss  %xmm0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @sLog10_process(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 = fcmp ogt float %5, 0.000000e+00
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load float, float* %3
%9 = call float @log10f(float %8)
br label %11
10: ; preds = %2
br label %11
11: ; preds = %10, %7
%12 = phi float [ %9, %7 ], [ 0.000000e+00, %10 ]
%13 = load float*, float** %4
store float %12, float* %13
ret void
}

LLVM IR (-O2):
define void @sLog10_process(float %0, float* nocapture writeonly %1) {
%3 = fcmp ogt float %0, 0.000000e+00
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call float @log10f(float %0)
br label %6
6: ; preds = %2, %4
%7 = phi float [ %5, %4 ], [ 0.000000e+00, %2 ]
store float %7, float* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void localnum() {
  int num;
  num = 100;
  printf("In localnum, num is %d\n", num);
}


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

x86 assembly (clang, -O2):
<localnum>:
lea    0xee9(%rip),%rdi
mov    $0x64,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"In localnum, num is %d\0A\00"
define void @localnum() {
%1 = alloca i32
store i32 100, i32* %1
%2 = load i32, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"In localnum, num is %d\0A\00"
define void @localnum() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 100)
ret void
}
int greenhouse(int zone, double orbital_radius, double greenhouse_radius) {
  return ((orbital_radius < greenhouse_radius) && (zone == 1));
}


x86 assembly (clang, -O0):
<greenhouse>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x19(%rbp)
jbe    1134 <greenhouse+0x34>
cmpl   $0x1,-0x4(%rbp)
sete   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<greenhouse>:
ucomisd %xmm0,%xmm1
seta   %al
cmp    $0x1,%edi
sete   %cl
and    %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @greenhouse(i32 %0, double %1, double %2) {
%4 = alloca i32
%5 = alloca double
%6 = alloca double
store i32 %0, i32* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %5
%8 = load double, double* %6
%9 = fcmp olt double %7, %8
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, 1
br label %13
13: ; preds = %10, %3
%14 = phi i1 [ false, %3 ], [ %12, %10 ]
%15 = zext i1 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @greenhouse(i32 %0, double %1, double %2) {
%4 = fcmp olt double %1, %2
%5 = icmp eq i32 %0, 1
%6 = and i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ __NR_gettid;
int /*<<< orphan*/ syscall(int /*<<< orphan*/);
pid_t gettid(void) { return syscall(__NR_gettid); }


x86 assembly (clang, -O0):
<gettid>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gettid>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_gettid = global i32 0
define i32 @gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = call i32 @syscall(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@__NR_gettid = global i32 0
define i32 @gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = tail call i32 @syscall(i32 %1)
ret i32 %2
}
unsigned int le_readu32(const void *addr) {
  const unsigned char *p = (const unsigned char *)addr;
  return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24);
}


x86 assembly (clang, -O0):
<le_readu32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%rcx
movzbl 0x3(%rcx),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @le_readu32(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = zext i8 %2 to i32
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = shl nuw nsw i32 %6, 8
%8 = or i32 %7, %3
%9 = getelementptr inbounds i8, i8* %0, i64 2
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = shl nuw nsw i32 %11, 16
%13 = or i32 %8, %12
%14 = getelementptr inbounds i8, i8* %0, i64 3
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = shl nuw i32 %16, 24
%18 = or i32 %13, %17
ret i32 %18
}
/* Variables and functions */
int eulerPhi(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  scanf("%d", &n);
  printf("%d\n", eulerPhi(n));
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%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 = call i32 @eulerPhi(i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Hello world from C!\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [20 x i8] c"Hello world from C!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_t;

/* Variables and functions */
scalar_t__ SIGRTMAX;
int _pthread_kill(int /*<<< orphan*/, scalar_t__);
int pthread_cancel(pthread_t th) { return _pthread_kill(th, (SIGRTMAX - 1)); }


x86 assembly (clang, -O0):
<pthread_cancel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%rsi
sub    $0x1,%rsi
call   1030 <_pthread_kill@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pthread_cancel>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%rsi
add    $0xffffffffffffffff,%rsi
jmp    1030 <_pthread_kill@plt>

LLVM IR (-O0):
@SIGRTMAX = global i64 0
define i32 @pthread_cancel(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i64, i64* @SIGRTMAX
%5 = sub nsw i64 %4, 1
%6 = call i32 @_pthread_kill(i32 %3, i64 %5)
ret i32 %6
}

LLVM IR (-O2):
@SIGRTMAX = global i64 0
define i32 @pthread_cancel(i32 %0) {
%2 = load i64, i64* @SIGRTMAX
%3 = add nsw i64 %2, -1
%4 = tail call i32 @_pthread_kill(i32 %0, i64 %3)
ret i32 %4
}
void do_control_change(char ctrlnumber, char value) {
  switch (ctrlnumber) {
  case 120:
    break;
  case 121:
    break;
  case 122:
    break;
  case 123:
    break;
  case 124:
    break;
  case 125:
    break;
  case 126:
    break;
  case 127:
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<do_control_change>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x1(%rbp),%eax
add    $0xffffff88,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x7,%eax
ja     1162 <do_control_change+0x62>
mov    -0x10(%rbp),%rax
lea    0xecf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
jmp    1167 <do_control_change+0x67>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @do_control_change(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
switch i32 %6, label %15 [
i32 120, label %7
i32 121, label %8
i32 122, label %9
i32 123, label %10
i32 124, label %11
i32 125, label %12
i32 126, label %13
i32 127, label %14
]
7: ; preds = %2
br label %16
8: ; preds = %2
br label %16
9: ; preds = %2
br label %16
10: ; preds = %2
br label %16
11: ; preds = %2
br label %16
12: ; preds = %2
br label %16
13: ; preds = %2
br label %16
14: ; preds = %2
br label %16
15: ; preds = %2
br label %16
16: ; preds = %15, %14, %13, %12, %11, %10, %9, %8, %7
ret void
}

LLVM IR (-O2):
define void @do_control_change(i8 signext %0, i8 signext %1) {
ret void
}