xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *_get_nline_rel(int /*<<< orphan*/ *, size_t);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
char *_get_nline(FILE *fp, size_t nline) {
  rewind(fp);
  return _get_nline_rel((fp), (size_t)nline);
}


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

x86 assembly (clang, -O2):
<_get_nline>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <rewind@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <_get_nline_rel@plt>

LLVM IR (-O0):
define i8* @_get_nline(i32* %0, i64 %1) {
%3 = alloca i32*
%4 = alloca i64
store i32* %0, i32** %3
store i64 %1, i64* %4
%5 = load i32*, i32** %3
%6 = call i32 @rewind(i32* %5)
%7 = load i32*, i32** %3
%8 = load i64, i64* %4
%9 = call i8* @_get_nline_rel(i32* %7, i64 %8)
ret i8* %9
}

LLVM IR (-O2):
define i8* @_get_nline(i32* %0, i64 %1) {
%3 = tail call i32 @rewind(i32* %0)
%4 = tail call i8* @_get_nline_rel(i32* %0, i64 %1)
ret i8* %4
}
void free_confusion_matrix(int **confusion_matrix) {
  assert(confusion_matrix);
  free(confusion_matrix[0]);
  free(confusion_matrix[1]);
  free(confusion_matrix);
}


x86 assembly (clang, -O0):
<free_confusion_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_confusion_matrix>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <assert@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @free_confusion_matrix(i32** %0) {
%2 = tail call i32 (i32**, ...) bitcast (i32 (...)* @assert to i32 (i32**, ...)*)(i32** %0)
%3 = bitcast i32** %0 to i8**
%4 = load i8*, i8** %3
tail call void @free(i8* %4)
%5 = getelementptr inbounds i32*, i32** %0, i64 1
%6 = bitcast i32** %5 to i8**
%7 = load i8*, i8** %6
tail call void @free(i8* %7)
%8 = bitcast i32** %0 to i8*
tail call void @free(i8* %8)
ret void
}
/* Variables and functions */
int exp(float);
float sigmoid(float x) { return (float)1 / (1 + exp(-x)); }


x86 assembly (clang, -O0):
<sigmoid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
call   1030 <exp@plt>
add    $0x1,%eax
cvtsi2ss %eax,%xmm1
movss  0xebd(%rip),%xmm0
divss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigmoid>:
push   %rax
xorps  0xee8(%rip),%xmm0
call   1030 <exp@plt>
add    $0x1,%eax
cvtsi2ss %eax,%xmm1
movss  0xee4(%rip),%xmm0
divss  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @sigmoid(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fneg float %3
%5 = call i32 @exp(float %4)
%6 = add nsw i32 1, %5
%7 = sitofp i32 %6 to float
%8 = fdiv float 1.000000e+00, %7
ret float %8
}

LLVM IR (-O2):
define float @sigmoid(float %0) {
%2 = fneg float %0
%3 = tail call i32 @exp(float %2)
%4 = add nsw i32 %3, 1
%5 = sitofp i32 %4 to float
%6 = fdiv float 1.000000e+00, %5
ret float %6
}
/* Variables and functions */
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ philsh();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ signal(int /*<<< orphan*/, void (*)(int));
void HandleInterrupt(int sig) {
  int sig2;
  sig2 = sig;
  printf("\n");
  signal(SIGINT, HandleInterrupt);
  philsh();
}


x86 assembly (clang, -O0):
<HandleInterrupt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
mov    0x2e93(%rip),%rsi
call   1050 <signal@plt>
mov    $0x0,%al
call   1030 <philsh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HandleInterrupt>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
mov    0x2ea5(%rip),%rsi
call   1050 <signal@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <philsh@plt>

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

LLVM IR (-O2):
@SIGINT = global i32 0
define void @HandleInterrupt(i32 %0) {
%2 = tail call i32 @putchar(i32 10)
%3 = load i32, i32* @SIGINT
%4 = tail call i32 @signal(i32 %3, void (i32)* @HandleInterrupt)
%5 = tail call i32 (...) @philsh()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ l34stat_test(unsigned int, int /*<<< orphan*/);
void l4stat_test(unsigned int addr) { l34stat_test(addr, 0); }


x86 assembly (clang, -O0):
<l4stat_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <l34stat_test@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @l4stat_test(i32 %0) {
%2 = tail call i32 @l34stat_test(i32 %0, i32 0)
ret void
}
/* Type definitions */
struct cip_avl_node {
  int dummy;
};

/* Variables and functions */
int cip_avl_foreach_int(struct cip_avl_node *,
                        int (*)(struct cip_avl_node *, void *), void *);
int cip_avl_foreach(struct cip_avl_node *tree,
                    int (*callback_fn)(struct cip_avl_node *node,
                                       void *context),
                    void *context) {
  if (tree == NULL)
    return 1;
  return cip_avl_foreach_int(tree, callback_fn, context);
}


x86 assembly (clang, -O0):
<cip_avl_foreach>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    113b <cip_avl_foreach+0x2b>
movl   $0x1,-0x4(%rbp)
jmp    114f <cip_avl_foreach+0x3f>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <cip_avl_foreach_int@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cip_avl_foreach>:
test   %rdi,%rdi
je     111a <cip_avl_foreach+0xa>
jmp    1030 <cip_avl_foreach_int@plt>
mov    $0x1,%eax
ret

LLVM IR (-O0):
%struct.cip_avl_node = type { i32 }
define i32 @cip_avl_foreach(%struct.cip_avl_node* %0, i32 (%struct.cip_avl_node*, i8*)* %1, i8* %2) {
%4 = alloca i32
%5 = alloca %struct.cip_avl_node*
%6 = alloca i32 (%struct.cip_avl_node*, i8*)*
%7 = alloca i8*
store %struct.cip_avl_node* %0, %struct.cip_avl_node** %5
store i32 (%struct.cip_avl_node*, i8*)* %1, i32 (%struct.cip_avl_node*, i8*)** %6
store i8* %2, i8** %7
%8 = load %struct.cip_avl_node*, %struct.cip_avl_node** %5
%9 = icmp eq %struct.cip_avl_node* %8, null
br i1 %9, label %10, label %11
10: ; preds = %3
store i32 1, i32* %4
br label %16
11: ; preds = %3
%12 = load %struct.cip_avl_node*, %struct.cip_avl_node** %5
%13 = load i32 (%struct.cip_avl_node*, i8*)*, i32 (%struct.cip_avl_node*, i8*)** %6
%14 = load i8*, i8** %7
%15 = call i32 @cip_avl_foreach_int(%struct.cip_avl_node* %12, i32 (%struct.cip_avl_node*, i8*)* %13, i8* %14)
store i32 %15, i32* %4
br label %16
16: ; preds = %11, %10
%17 = load i32, i32* %4
ret i32 %17
}

LLVM IR (-O2):
%struct.cip_avl_node = type { i32 }
define i32 @cip_avl_foreach(%struct.cip_avl_node* %0, i32 (%struct.cip_avl_node*, i8*)* %1, i8* %2) {
%4 = icmp eq %struct.cip_avl_node* %0, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @cip_avl_foreach_int(%struct.cip_avl_node* %0, i32 (%struct.cip_avl_node*, i8*)* %1, i8* %2)
br label %7
7: ; preds = %3, %5
%8 = phi i32 [ %6, %5 ], [ 1, %3 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
size_t hash(size_t i) {
  assert(sizeof(size_t) == 8);
  size_t h = i;
  h ^= h >> 33;
  h *= 0xff51afd7ed558ccd;
  h ^= h >> 33;
  h *= 0xc4ceb9fe1a85ec53;
  h ^= h >> 33;
  return h;
}


x86 assembly (clang, -O0):
<hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x21,%rax
xor    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
movabs $0xff51afd7ed558ccd,%rax
af 51 ff
imul   -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x21,%rax
xor    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
movabs $0xc4ceb9fe1a85ec53,%rax
b9 ce c4
imul   -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x21,%rax
xor    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%edi
call   1030 <assert@plt>
mov    %rbx,%rax
shr    $0x21,%rax
xor    %rbx,%rax
movabs $0xff51afd7ed558ccd,%rcx
af 51 ff
imul   %rax,%rcx
mov    %rcx,%rax
shr    $0x21,%rax
xor    %rcx,%rax
movabs $0xc4ceb9fe1a85ec53,%rcx
b9 ce c4
imul   %rax,%rcx
mov    %rcx,%rax
shr    $0x21,%rax
xor    %rcx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @hash(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
%4 = call i32 @assert(i32 1)
%5 = load i64, i64* %2
store i64 %5, i64* %3
%6 = load i64, i64* %3
%7 = lshr i64 %6, 33
%8 = load i64, i64* %3
%9 = xor i64 %8, %7
store i64 %9, i64* %3
%10 = load i64, i64* %3
%11 = mul i64 %10, -49064778989728563
store i64 %11, i64* %3
%12 = load i64, i64* %3
%13 = lshr i64 %12, 33
%14 = load i64, i64* %3
%15 = xor i64 %14, %13
store i64 %15, i64* %3
%16 = load i64, i64* %3
%17 = mul i64 %16, -4265267296055464877
store i64 %17, i64* %3
%18 = load i64, i64* %3
%19 = lshr i64 %18, 33
%20 = load i64, i64* %3
%21 = xor i64 %20, %19
store i64 %21, i64* %3
%22 = load i64, i64* %3
ret i64 %22
}

LLVM IR (-O2):
define i64 @hash(i64 %0) {
%2 = tail call i32 @assert(i32 1)
%3 = lshr i64 %0, 33
%4 = xor i64 %3, %0
%5 = mul i64 %4, -49064778989728563
%6 = lshr i64 %5, 33
%7 = xor i64 %6, %5
%8 = mul i64 %7, -4265267296055464877
%9 = lshr i64 %8, 33
%10 = xor i64 %9, %8
ret i64 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ sqlite3_stmt;
typedef int /*<<< orphan*/ sqlite3;

/* Variables and functions */
int /*<<< orphan*/ sqlite3_close(int /*<<< orphan*/ *);
int /*<<< orphan*/ sqlite3_finalize(int /*<<< orphan*/ *);
void dao_finalize(sqlite3 *db, sqlite3_stmt *stmt) {
  sqlite3_finalize(stmt);
  sqlite3_close(db);
}


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

x86 assembly (clang, -O2):
<dao_finalize>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1040 <sqlite3_finalize@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <sqlite3_close@plt>

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

LLVM IR (-O2):
define void @dao_finalize(i32* %0, i32* %1) {
%3 = tail call i32 @sqlite3_finalize(i32* %1)
%4 = tail call i32 @sqlite3_close(i32* %0)
ret void
}
void external_function() {}


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

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

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

LLVM IR (-O2):
define void @external_function() {
ret void
}
signed long long int
signedlonglongint_ignoring_signedlongint(signed long long int x,
                                         signed long int y) {
  return x;
}


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

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

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

LLVM IR (-O2):
define i64 @signedlonglongint_ignoring_signedlongint(i64 returned %0, i64 %1) {
ret i64 %0
}
/* Variables and functions */
size_t strlen(const char *s) {
  register size_t i;
  if (!s)
    return 0;
  for (i = 0; *s; ++s)
    ++i;
  return i;
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1120 <strlen+0x20>
movq   $0x0,-0x8(%rbp)
jmp    115a <strlen+0x5a>
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1152 <strlen+0x52>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1128 <strlen+0x28>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
test   %rdi,%rdi
je     111f <strlen+0x1f>
cmpb   $0x0,(%rdi)
je     111f <strlen+0x1f>
xor    %ecx,%ecx
nopl   0x0(%rax)
lea    0x1(%rcx),%rax
cmpb   $0x0,0x1(%rdi,%rcx,1)
mov    %rax,%rcx
jne    1110 <strlen+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i64 @strlen(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %13, label %3
3: ; preds = %1
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %13, label %6
6: ; preds = %3, %6
%7 = phi i64 [ %9, %6 ], [ 0, %3 ]
%8 = phi i8* [ %10, %6 ], [ %0, %3 ]
%9 = add i64 %7, 1
%10 = getelementptr inbounds i8, i8* %8, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %6
13: ; preds = %6, %3, %1
%14 = phi i64 [ 0, %1 ], [ 0, %3 ], [ %9, %6 ]
ret i64 %14
}
int main() {
  int sayi1 = 0;
  int sayi2;
  int tmp;
  while (sayi1 < 500) {
    sayi1++;
    sayi2 = 1;
    tmp = 0;
    while (sayi2 < sayi1) {
      if (sayi1 % sayi2 == 0) {
        tmp = tmp + sayi2;
      }
      sayi2++;
    }
    if (sayi1 == tmp) {
    } else {
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1f4,-0x8(%rbp)
jge    1184 <main+0x84>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1169 <main+0x69>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    115b <main+0x5b>
mov    -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1136 <main+0x36>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    117a <main+0x7a>
jmp    117f <main+0x7f>
jmp    117f <main+0x7f>
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
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %5
5: ; preds = %33, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 500
br i1 %7, label %8, label %34
8: ; preds = %5
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
store i32 1, i32* %3
store i32 0, i32* %4
br label %11
11: ; preds = %24, %8
%12 = load i32, i32* %3
%13 = load i32, i32* %2
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %27
15: ; preds = %11
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = srem i32 %16, %17
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load i32, i32* %4
%22 = load i32, i32* %3
%23 = add nsw i32 %21, %22
store i32 %23, i32* %4
br label %24
24: ; preds = %20, %15
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %11
27: ; preds = %11
%28 = load i32, i32* %2
%29 = load i32, i32* %4
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %32
31: ; preds = %27
br label %33
32: ; preds = %27
br label %33
33: ; preds = %32, %31
br label %5
34: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int lastY(int order) {
  switch (order & 7) {
  case 2:
  case 6:
    return 0;
  case 0:
  case 1:
  case 7:
    return 1l << (order >> 1);
  default:
    return -(1l << (order >> 1));
  }
}


x86 assembly (clang, -O0):
<lastY>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x7,%eax
mov    %eax,-0xc(%rbp)
sub    $0x2,%eax
jb     115d <lastY+0x5d>
jmp    111e <lastY+0x1e>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
je     1151 <lastY+0x51>
jmp    112f <lastY+0x2f>
mov    -0xc(%rbp),%eax
sub    $0x6,%eax
je     1151 <lastY+0x51>
jmp    1140 <lastY+0x40>
mov    -0xc(%rbp),%eax
sub    $0x7,%eax
je     115d <lastY+0x5d>
jmp    1177 <lastY+0x77>
movl   $0x0,-0x4(%rbp)
jmp    1194 <lastY+0x94>
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,%eax
mov    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%rax
mov    %eax,-0x4(%rbp)
jmp    1194 <lastY+0x94>
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,%eax
mov    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%rax
mov    %rax,%rcx
xor    %eax,%eax
sub    %rcx,%rax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lastY>:
mov    %edi,%ecx
and    $0x7,%ecx
cmp    $0x7,%ecx
ja     112a <lastY+0x2a>
mov    $0x83,%eax
bt     %ecx,%eax
jae    111d <lastY+0x1d>
shr    %edi
mov    $0x1,%eax
jmp    1133 <lastY+0x33>
xor    %eax,%eax
mov    $0x44,%edx
bt     %ecx,%edx
jae    112a <lastY+0x2a>
ret
shr    %edi
mov    $0xffffffffffffffff,%rax
mov    %edi,%ecx
shl    %cl,%rax
ret

LLVM IR (-O0):
define i32 @lastY(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = and i32 %4, 7
switch i32 %5, label %13 [
i32 2, label %6
i32 6, label %6
i32 0, label %7
i32 1, label %7
i32 7, label %7
]
6: ; preds = %1, %1
store i32 0, i32* %2
br label %20
7: ; preds = %1, %1, %1
%8 = load i32, i32* %3
%9 = ashr i32 %8, 1
%10 = zext i32 %9 to i64
%11 = shl i64 1, %10
%12 = trunc i64 %11 to i32
store i32 %12, i32* %2
br label %20
13: ; preds = %1
%14 = load i32, i32* %3
%15 = ashr i32 %14, 1
%16 = zext i32 %15 to i64
%17 = shl i64 1, %16
%18 = sub nsw i64 0, %17
%19 = trunc i64 %18 to i32
store i32 %19, i32* %2
br label %20
20: ; preds = %13, %7, %6
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @lastY(i32 %0) {
%2 = and i32 %0, 7
switch i32 %2, label %8 [
i32 2, label %13
i32 6, label %13
i32 0, label %3
i32 1, label %3
i32 7, label %3
]
3: ; preds = %1, %1, %1
%4 = ashr i32 %0, 1
%5 = zext i32 %4 to i64
%6 = shl nuw i64 1, %5
%7 = trunc i64 %6 to i32
br label %13
8: ; preds = %1
%9 = ashr i32 %0, 1
%10 = zext i32 %9 to i64
%11 = shl nsw i64 -1, %10
%12 = trunc i64 %11 to i32
br label %13
13: ; preds = %1, %1, %8, %3
%14 = phi i32 [ %12, %8 ], [ %7, %3 ], [ 0, %1 ], [ 0, %1 ]
ret i32 %14
}
void time_statisic_end(void) {}


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

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

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

LLVM IR (-O2):
define void @time_statisic_end() {
ret void
}
int pci_prg_resp_pasid_required(struct pci_dev *pdev) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.pci_dev = type opaque
define i32 @pci_prg_resp_pasid_required(%struct.pci_dev* nocapture readnone %0) {
ret i32 0
}
int twoByteToInt(unsigned char *a) { return (int)(a[1] << 8 | a[0]); }


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

x86 assembly (clang, -O2):
<twoByteToInt>:
movzwl (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @twoByteToInt(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = shl i32 %6, 8
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = or i32 %7, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @twoByteToInt(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = shl nuw nsw i32 %4, 8
%6 = load i8, i8* %0
%7 = zext i8 %6 to i32
%8 = or i32 %5, %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ effectuerActionToucheEntree(char);
char lireSansEntree();
void actionJoueur(void) {
  char toucheEntree;
  toucheEntree = lireSansEntree();
  effectuerActionToucheEntree(toucheEntree);
}


x86 assembly (clang, -O0):
<actionJoueur>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <lireSansEntree@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <effectuerActionToucheEntree@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<actionJoueur>:
push   %rax
xor    %eax,%eax
call   1030 <lireSansEntree@plt>
movsbl %al,%edi
pop    %rax
jmp    1040 <effectuerActionToucheEntree@plt>

LLVM IR (-O0):
define void @actionJoueur() {
%1 = alloca i8
%2 = call signext i8 (...) @lireSansEntree()
store i8 %2, i8* %1
%3 = load i8, i8* %1
%4 = call i32 @effectuerActionToucheEntree(i8 signext %3)
ret void
}

LLVM IR (-O2):
define void @actionJoueur() {
%1 = tail call signext i8 (...) @lireSansEntree()
%2 = tail call i32 @effectuerActionToucheEntree(i8 signext %1)
ret void
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ strcat(char *, char const *);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
char *genurl(const char *contextPath, const char *suffix) {
  int len = strlen(contextPath) + strlen(suffix);
  char *url = (char *)malloc(len + 1);
  strcpy(url, contextPath);
  strcat(url, suffix);
  return url;
}


x86 assembly (clang, -O0):
<genurl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
add    $0x1,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<genurl>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    (%r15,%rax,1),%edi
add    $0x1,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <strcat@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @genurl(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = add nsw i32 %8, %10
store i32 %11, i32* %5
%12 = load i32, i32* %5
%13 = add nsw i32 %12, 1
%14 = call i64 @malloc(i32 %13)
%15 = inttoptr i64 %14 to i8*
store i8* %15, i8** %6
%16 = load i8*, i8** %6
%17 = load i8*, i8** %3
%18 = call i32 @strcpy(i8* %16, i8* %17)
%19 = load i8*, i8** %6
%20 = load i8*, i8** %4
%21 = call i32 @strcat(i8* %19, i8* %20)
%22 = load i8*, i8** %6
ret i8* %22
}

LLVM IR (-O2):
define i8* @genurl(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = add i32 %3, 1
%6 = add i32 %5, %4
%7 = tail call i64 @malloc(i32 %6)
%8 = inttoptr i64 %7 to i8*
%9 = tail call i32 @strcpy(i8* %8, i8* %0)
%10 = tail call i32 @strcat(i8* %8, i8* %1)
ret i8* %8
}
double call_d(double (*func)(double), double arg) { return func(arg); }


x86 assembly (clang, -O0):
<call_d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  -0x10(%rbp),%xmm0
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_d>:
jmp    *%rdi

LLVM IR (-O0):
define double @call_d(double (double)* %0, double %1) {
%3 = alloca double (double)*
%4 = alloca double
store double (double)* %0, double (double)** %3
store double %1, double* %4
%5 = load double (double)*, double (double)** %3
%6 = load double, double* %4
%7 = call double %5(double %6)
ret double %7
}

LLVM IR (-O2):
define double @call_d(double (double)* nocapture %0, double %1) {
%3 = tail call double %0(double %1)
ret double %3
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int EOF;
int uart_read(int *);
int getchar(void) {
  uint8_t byte;
  int error;
  error = uart_read(&byte);
  return error ? EOF : byte;
}


x86 assembly (clang, -O0):
<getchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
call   1030 <uart_read@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     113f <getchar+0x2f>
mov    0x2eb3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
jmp    1145 <getchar+0x35>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getchar>:
push   %rbx
sub    $0x10,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <uart_read@plt>
test   %eax,%eax
je     112d <getchar+0x1d>
mov    0x2ebb(%rip),%rbx
mov    (%rbx),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@EOF = global i32 0
define i32 @getchar() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @uart_read(i32* %1)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i32, i32* @EOF
br label %10
8: ; preds = %0
%9 = load i32, i32* %1
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @getchar() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @uart_read(i32* %1)
%4 = icmp eq i32 %3, 0
%5 = load i32, i32* @EOF
%6 = load i32, i32* %1
%7 = select i1 %4, i32 %6, i32 %5
ret i32 %7
}
int cijfersom(int i) {
  int som = 0;
  while (i > 0) {
    som = som + (i % 10);
    i = i / 10;
  }
  return som;
}


x86 assembly (clang, -O0):
<cijfersom>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1144 <cijfersom+0x44>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0xc(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
jmp    110e <cijfersom+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cijfersom>:
xor    %eax,%eax
test   %edi,%edi
jle    112d <cijfersom+0x2d>
mov    $0xcccccccd,%r8d
nopl   0x0(%rax)
mov    %edi,%edx
imul   %r8,%rdx
shr    $0x23,%rdx
lea    (%rdx,%rdx,1),%esi
lea    (%rsi,%rsi,4),%esi
mov    %edi,%ecx
sub    %esi,%ecx
add    %ecx,%eax
cmp    $0x9,%edi
mov    %edx,%edi
ja     1110 <cijfersom+0x10>
ret

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

LLVM IR (-O2):
define i32 @cijfersom(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %10
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i32 [ %8, %3 ], [ %0, %1 ]
%6 = urem i32 %5, 10
%7 = add nuw nsw i32 %4, %6
%8 = udiv i32 %5, 10
%9 = icmp ult i32 %5, 10
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %11
}
float max(float a, float b) { return a > b ? a : b; }


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

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

LLVM IR (-O0):
define float @max(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 @max(float %0, float %1) {
%3 = fcmp ogt float %0, %1
%4 = select i1 %3, float %0, float %1
ret float %4
}
void indent_put2s(fmt, arg) char fmt[], arg[];
{
  do_indent();
  out_str(fmt, arg);
  outn("");
}


x86 assembly (clang, -O0):
<indent_put2s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <do_indent@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <out_str@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <outn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<indent_put2s>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <do_indent@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <out_str@plt>
lea    0xeab(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <outn@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @indent_put2s(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 (...) @do_indent()
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @out_str to i32 (i8*, i8*, ...)*)(i8* %6, i8* %7)
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @outn to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @indent_put2s(i8* %0, i8* %1) {
%3 = tail call i32 (...) @do_indent()
%4 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @out_str to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outn to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ setbuf(int /*<<< orphan*/ *, char *);
void uninitvar_setbuf(void) {
  FILE *stream;
  char *buf;
  (void)setbuf(stream, buf);
}


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

x86 assembly (clang, -O2):
<uninitvar_setbuf>:
jmp    1030 <setbuf@plt>

LLVM IR (-O0):
define void @uninitvar_setbuf() {
%1 = alloca i32*
%2 = alloca i8*
%3 = load i32*, i32** %1
%4 = load i8*, i8** %2
%5 = call i32 @setbuf(i32* %3, i8* %4)
ret void
}

LLVM IR (-O2):
define void @uninitvar_setbuf() {
%1 = tail call i32 @setbuf(i32* undef, i8* undef)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
char *ttyname(int);
int main() {
  printf("fd 0: %s\n", ttyname(0));
  printf("fd 1: %s\n", ttyname(1));
  printf("fd 2: %s\n", ttyname(2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <ttyname@plt>
mov    %rax,%rsi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ttyname@plt>
mov    %rax,%rsi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <ttyname@plt>
mov    %rax,%rsi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <ttyname@plt>
lea    0xed1(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ttyname@plt>
lea    0xec2(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <ttyname@plt>
lea    0xeb3(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [10 x i8] c"fd 0: %s\0A\00"
@.str.1 = [10 x i8] c"fd 1: %s\0A\00"
@.str.2 = [10 x i8] c"fd 2: %s\0A\00"
define i32 @main() {
%1 = tail call i8* @ttyname(i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i8* @ttyname(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = tail call i8* @ttyname(i32 2)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glutWireTeapot(double);
void drawTeapot(void) {
  glColor3f(1.0, 0.0, 1.0);
  glutWireTeapot(3.80);
}


x86 assembly (clang, -O0):
<drawTeapot>:
push   %rbp
mov    %rsp,%rbp
movsd  0xedc(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1030 <glColor3f@plt>
movsd  0xec1(%rip),%xmm0
call   1040 <glutWireTeapot@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawTeapot>:
push   %rax
movsd  0xed7(%rip),%xmm0
xorps  %xmm1,%xmm1
movaps %xmm0,%xmm2
call   1030 <glColor3f@plt>
movsd  0xecc(%rip),%xmm0
pop    %rax
jmp    1040 <glutWireTeapot@plt>

LLVM IR (-O0):
define void @drawTeapot() {
%1 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%2 = call i32 @glutWireTeapot(double 3.800000e+00)
ret void
}

LLVM IR (-O2):
define void @drawTeapot() {
%1 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%2 = tail call i32 @glutWireTeapot(double 3.800000e+00)
ret void
}
void i2d_X509_EXTENSION(void) {}


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

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

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

LLVM IR (-O2):
define void @i2d_X509_EXTENSION() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memmove(char *, char const *, size_t);
size_t strlen(char const *);
void _inplace_strcpy(char *dst, const char *src) {
  size_t len = strlen(src);
  memmove(dst, src, len + 1);
}


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

x86 assembly (clang, -O2):
<_inplace_strcpy>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <memmove@plt>

LLVM IR (-O0):
define void @_inplace_strcpy(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i64 @strlen(i8* %6)
store i64 %7, i64* %5
%8 = load i8*, i8** %3
%9 = load i8*, i8** %4
%10 = load i64, i64* %5
%11 = add i64 %10, 1
%12 = call i32 @memmove(i8* %8, i8* %9, i64 %11)
ret void
}

LLVM IR (-O2):
define void @_inplace_strcpy(i8* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = add i64 %3, 1
%5 = tail call i32 @memmove(i8* %0, i8* %1, i64 %4)
ret void
}
void gtk_hbox_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_hbox_get_type() {
ret void
}
int initPCI9080(int *ad_irq, unsigned int *BASEA, unsigned int *BASEB,
                unsigned int *BASEC, int pci_index, int print) {
  volatile unsigned char *BASE0, *BASE1;
  unsigned int *mmap_io_ptr;
  unsigned lastbus, version, hardware, bus, device;
  long unsigned temp, temp_out, temp_in, localbase;
  long write_PCI9080_PCICR = 0x107;
  long write_PCI9080_CNTRL = 0x1007e;
  int pci_handle = -1;
  unsigned int BASEIO;
  unsigned flags;
  return write_PCI9080_CNTRL;
}


x86 assembly (clang, -O0):
<initPCI9080>:
push   %rbp
mov    %rsp,%rbp
sub    $0x18,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
movq   $0x107,-0x80(%rbp)
movq   $0x1007e,-0x88(%rbp)
movl   $0xffffffff,-0x8c(%rbp)
ff ff ff
mov    -0x88(%rbp),%rax
add    $0x18,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @initPCI9080(i32* %0, i32* %1, i32* %2, i32* %3, i32 %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i64
%22 = alloca i64
%23 = alloca i64
%24 = alloca i64
%25 = alloca i64
%26 = alloca i64
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
store i64 263, i64* %25
store i64 65662, i64* %26
store i32 -1, i32* %27
%30 = load i64, i64* %26
%31 = trunc i64 %30 to i32
ret i32 %31
}

LLVM IR (-O2):
define i32 @initPCI9080(i32* nocapture readnone %0, i32* nocapture readnone %1, i32* nocapture readnone %2, i32* nocapture readnone %3, i32 %4, i32 %5) {
ret i32 65662
}
int precision4(double value) {
  if (value < 10)
    return (2);
  else if (value < 100)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<precision4>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  0xeef(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1128 <precision4+0x28>
movl   $0x2,-0x4(%rbp)
jmp    1153 <precision4+0x53>
movsd  0xed8(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1147 <precision4+0x47>
movl   $0x1,-0x4(%rbp)
jmp    1153 <precision4+0x53>
jmp    114c <precision4+0x4c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<precision4>:
movsd  0xef8(%rip),%xmm1
xor    %ecx,%ecx
ucomisd %xmm0,%xmm1
seta   %cl
movsd  0xeef(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    $0x2,%eax
cmovbe %ecx,%eax
ret

LLVM IR (-O0):
define i32 @precision4(double %0) {
%2 = alloca i32
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp olt double %4, 1.000000e+01
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 2, i32* %2
br label %13
7: ; preds = %1
%8 = load double, double* %3
%9 = fcmp olt double %8, 1.000000e+02
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 1, i32* %2
br label %13
11: ; preds = %7
br label %12
12: ; preds = %11
store i32 0, i32* %2
br label %13
13: ; preds = %12, %10, %6
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @precision4(double %0) {
%2 = fcmp olt double %0, 1.000000e+01
%3 = fcmp olt double %0, 1.000000e+02
%4 = zext i1 %3 to i32
%5 = select i1 %2, i32 2, i32 %4
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
unsigned int ftell(int /*<<< orphan*/ *);
unsigned int getFileSizeEx(FILE *f) {
  unsigned int len;
  fseek(f, 0, SEEK_END);
  len = ftell(f);
  return len;
}


x86 assembly (clang, -O0):
<getFileSizeEx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <fseek@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ftell@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getFileSizeEx>:
push   %rbx
mov    %rdi,%rbx
mov    0x2ebd(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <fseek@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <ftell@plt>

LLVM IR (-O0):
@SEEK_END = global i32 0
define i32 @getFileSizeEx(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* @SEEK_END
%6 = call i32 @fseek(i32* %4, i32 0, i32 %5)
%7 = load i32*, i32** %2
%8 = call i32 @ftell(i32* %7)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
@SEEK_END = global i32 0
define i32 @getFileSizeEx(i32* nocapture %0) {
%2 = load i32, i32* @SEEK_END
%3 = tail call i32 @fseek(i32* %0, i32 0, i32 %2)
%4 = tail call i32 @ftell(i32* %0)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ pof_set_init_config_by_command(int, char **);
int /*<<< orphan*/ pof_set_init_config_by_file();
int /*<<< orphan*/ pof_set_init_configs();
uint32_t pof_get_config(int argc, char *argv[]) {
  uint32_t ret = 0;
  pof_set_init_configs();
  ret = pof_set_init_config_by_command(argc, argv);
  ret = pof_set_init_config_by_file();
  return 0;
}


x86 assembly (clang, -O0):
<pof_get_config>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1040 <pof_set_init_configs@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <pof_set_init_config_by_command@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <pof_set_init_config_by_file@plt>
mov    %eax,-0x14(%rbp)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pof_get_config>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1040 <pof_set_init_configs@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1050 <pof_set_init_config_by_command@plt>
xor    %eax,%eax
call   1030 <pof_set_init_config_by_file@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @pof_get_config(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 0, i32* %5
%6 = call i32 (...) @pof_set_init_configs()
%7 = load i32, i32* %3
%8 = load i8**, i8*** %4
%9 = call i32 @pof_set_init_config_by_command(i32 %7, i8** %8)
store i32 %9, i32* %5
%10 = call i32 (...) @pof_set_init_config_by_file()
store i32 %10, i32* %5
ret i32 0
}

LLVM IR (-O2):
define i32 @pof_get_config(i32 %0, i8** %1) {
%3 = tail call i32 (...) @pof_set_init_configs()
%4 = tail call i32 @pof_set_init_config_by_command(i32 %0, i8** %1)
%5 = tail call i32 (...) @pof_set_init_config_by_file()
ret i32 0
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int IoDeleteSymbolicLink(int SymbolicLinkName) {
  {
    int tmp_ndt_3;
    tmp_ndt_3 = __VERIFIER_nondet_int();
    if (tmp_ndt_3 == 0) {
      goto switch_4_0;
    } else {
      goto switch_4_default;
      if (0) {
      switch_4_0:
        return (0);
      switch_4_default:;
        return (-1073741823);
      } else {
      }
    }
  }
}


x86 assembly (clang, -O0):
<IoDeleteSymbolicLink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1134 <IoDeleteSymbolicLink+0x24>
jmp    1139 <IoDeleteSymbolicLink+0x29>
jmp    1145 <IoDeleteSymbolicLink+0x35>
movl   $0x0,-0x4(%rbp)
jmp    114c <IoDeleteSymbolicLink+0x3c>
movl   $0xc0000001,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IoDeleteSymbolicLink>:
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
mov    $0xc0000001,%ecx
cmovne %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @IoDeleteSymbolicLink(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %4
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
br label %12
9: ; preds = %1
br label %13
10: ; No predecessors!
br i1 false, label %11, label %14
11: ; preds = %10
br label %12
12: ; preds = %11, %8
store i32 0, i32* %2
br label %16
13: ; preds = %9
store i32 -1073741823, i32* %2
br label %16
14: ; preds = %10
br label %15
15: ; preds = %14
br label %16
16: ; preds = %12, %13, %15
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
define i32 @IoDeleteSymbolicLink(i32 %0) {
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 0, i32 -1073741823
ret i32 %4
}