xunge/DecIR huggingface dataset:
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  printf("Welcome to the QNX Momentics IDE\n");
  return EXIT_SUCCESS;
}


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"Welcome to the QNX Momentics IDE\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @EXIT_SUCCESS
ret i32 %7
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [33 x i8] c"Welcome to the QNX Momentics IDE\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
void gtk_container_add_with_properties() {}


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

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

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

LLVM IR (-O2):
define void @gtk_container_add_with_properties() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fizzbuzz();
void main() { fizzbuzz(); }


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

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

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

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @fizzbuzz()
ret void
}
/* Variables and functions */
char *all_tests();
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  char *result = all_tests();
  if (result) {
    printf("# FAILURE\n");
  }
  printf("#ALL TESTS PASSED\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <all_tests@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1158 <main+0x38>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <all_tests@plt>
test   %rax,%rax
je     1139 <main+0x19>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"# FAILURE\0A\00"
@.str.1 = [19 x i8] c"#ALL TESTS PASSED\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i8* (...) @all_tests()
store i8* %7, i8** %6
%8 = load i8*, i8** %6
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"#ALL TESTS PASSED\00"
@str.2 = [10 x i8] c"# FAILURE\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i8* (...) @all_tests()
%4 = icmp eq i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.2, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct timeval {
  int tv_sec;
  long tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, void *);
long get_usecs(void) {
  struct timeval t;
  gettimeofday(&t, ((void *)0));
  return t.tv_sec * 1000000 + t.tv_usec;
}


x86 assembly (clang, -O0):
<get_usecs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x10(%rbp),%eax
cltq
add    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_usecs>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movslq 0x8(%rsp),%rax
imul   $0xf4240,%rax,%rax
add    0x10(%rsp),%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
define i64 @get_usecs() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i8* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load i32, i32* %3
%5 = mul nsw i32 %4, 1000000
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%8 = load i64, i64* %7
%9 = add nsw i64 %6, %8
ret i64 %9
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
define i64 @get_usecs() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i8* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%9 = load i64, i64* %8
%10 = add nsw i64 %9, %7
ret i64 %10
}
/* Variables and functions */
double exp(double);
double dr1_dx1(double *x) { return exp(x[0]); }


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

x86 assembly (clang, -O2):
<dr1_dx1>:
movsd  (%rdi),%xmm0
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @dr1_dx1(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 0
%5 = load double, double* %4
%6 = call double @exp(double %5)
ret double %6
}

LLVM IR (-O2):
define double @dr1_dx1(double* nocapture %0) {
%2 = load double, double* %0
%3 = tail call double @exp(double %2)
ret double %3
}
/* Type definitions */
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int8_t destroy(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @destroy() {
ret i32 0
}
void driver_unregister(struct device_driver *drv) { return; }


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

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

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

LLVM IR (-O2):
%struct.device_driver = type opaque
define void @driver_unregister(%struct.device_driver* nocapture %0) {
ret void
}
int okn_mtx3_mult(struct okn_mtx3 *result, struct okn_mtx3 *m1,
                  struct okn_mtx3 *m2) {}


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

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

LLVM IR (-O0):
%struct.okn_mtx3 = type opaque
define i32 @okn_mtx3_mult(%struct.okn_mtx3* %0, %struct.okn_mtx3* %1, %struct.okn_mtx3* %2) {
%4 = alloca i32
%5 = alloca %struct.okn_mtx3*
%6 = alloca %struct.okn_mtx3*
%7 = alloca %struct.okn_mtx3*
store %struct.okn_mtx3* %0, %struct.okn_mtx3** %5
store %struct.okn_mtx3* %1, %struct.okn_mtx3** %6
store %struct.okn_mtx3* %2, %struct.okn_mtx3** %7
%8 = load i32, i32* %4
ret i32 %8
}

LLVM IR (-O2):
%struct.okn_mtx3 = type opaque
define i32 @okn_mtx3_mult(%struct.okn_mtx3* nocapture readnone %0, %struct.okn_mtx3* nocapture readnone %1, %struct.okn_mtx3* nocapture readnone %2) {
ret i32 undef
}
/* Variables and functions */
char tolower(char);
int is_vowel(char c) {
  c = tolower(c);
  switch (c) {
  case 'a':
  case 'e':
  case 'i':
  case 'o':
  case 'u':
    return 1;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<is_vowel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <tolower@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x61,%eax
je     1183 <is_vowel+0x73>
jmp    113f <is_vowel+0x2f>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     1183 <is_vowel+0x73>
jmp    1150 <is_vowel+0x40>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     1183 <is_vowel+0x73>
jmp    1161 <is_vowel+0x51>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     1183 <is_vowel+0x73>
jmp    1172 <is_vowel+0x62>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
jne    118f <is_vowel+0x7f>
jmp    1183 <is_vowel+0x73>
movl   $0x1,-0x4(%rbp)
jmp    1196 <is_vowel+0x86>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_vowel>:
push   %rax
call   1030 <tolower@plt>
movsbl %al,%ecx
add    $0xffffff9f,%ecx
ror    %ecx
xor    %eax,%eax
cmp    $0xa,%ecx
ja     1132 <is_vowel+0x22>
movslq %ecx,%rax
lea    0xed1(%rip),%rcx
mov    (%rcx,%rax,4),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @is_vowel(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call signext i8 @tolower(i8 signext %4)
store i8 %5, i8* %3
%6 = load i8, i8* %3
%7 = sext i8 %6 to i32
switch i32 %7, label %9 [
i32 97, label %8
i32 101, label %8
i32 105, label %8
i32 111, label %8
i32 117, label %8
]
8: ; preds = %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %10
9: ; preds = %1
store i32 0, i32* %2
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@switch.table.is_vowel = [11 x i32] [i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 0, i32 1, i32 0, i32 0, i32 1]
define i32 @is_vowel(i8 signext %0) {
%2 = tail call signext i8 @tolower(i8 signext %0)
%3 = sext i8 %2 to i32
%4 = add nsw i32 %3, -97
%5 = tail call i32 @llvm.fshl.i32(i32 %4, i32 %4, i32 31)
%6 = icmp ult i32 %5, 11
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = sext i32 %5 to i64
%9 = getelementptr inbounds [11 x i32], [11 x i32]* @switch.table.is_vowel, i64 0, i64 %8
%10 = load i32, i32* %9
br label %11
11: ; preds = %1, %7
%12 = phi i32 [ %10, %7 ], [ 0, %1 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ foo(int /*<<< orphan*/);
__attribute__((no, noclone)) unsigned long long f36(unsigned long long x,
                                                    unsigned long long y) {
  unsigned long long r = x + y;
  if (y >= r)
    foo(0);
  return r;
}


x86 assembly (clang, -O0):
<f36>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jb     1141 <f36+0x31>
xor    %edi,%edi
call   1030 <foo@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f36>:
push   %rbx
mov    %rdi,%rbx
add    %rsi,%rbx
cmp    %rsi,%rbx
ja     1123 <f36+0x13>
xor    %edi,%edi
call   1030 <foo@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @f36(i64 %0, i64 %1) {
%3 = add i64 %1, %0
%4 = icmp ugt i64 %3, %1
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @foo(i32 0)
br label %7
7: ; preds = %5, %2
ret i64 %3
}
/* Type definitions */
struct lemon {
  int dummy;
};

/* Variables and functions */
void *allocator_alloc(struct lemon *, long);
void *lemon_allocator_alloc(struct lemon *lemon, long size) {
  return allocator_alloc(lemon, size);
}


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

x86 assembly (clang, -O2):
<lemon_allocator_alloc>:
jmp    1030 <allocator_alloc@plt>

LLVM IR (-O0):
%struct.lemon = type { i32 }
define i8* @lemon_allocator_alloc(%struct.lemon* %0, i64 %1) {
%3 = alloca %struct.lemon*
%4 = alloca i64
store %struct.lemon* %0, %struct.lemon** %3
store i64 %1, i64* %4
%5 = load %struct.lemon*, %struct.lemon** %3
%6 = load i64, i64* %4
%7 = call i8* @allocator_alloc(%struct.lemon* %5, i64 %6)
ret i8* %7
}

LLVM IR (-O2):
%struct.lemon = type { i32 }
define i8* @lemon_allocator_alloc(%struct.lemon* %0, i64 %1) {
%3 = tail call i8* @allocator_alloc(%struct.lemon* %0, i64 %1)
ret i8* %3
}
double FABS(const double x) { return ((x < 0.0) ? -x : x); }


x86 assembly (clang, -O0):
<FABS>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    113d <FABS+0x3d>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1147 <FABS+0x47>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<FABS>:
movapd 0xef8(%rip),%xmm2
xorpd  %xmm0,%xmm2
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm1
cmpltsd %xmm3,%xmm1
andpd  %xmm1,%xmm2
andnpd %xmm0,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @FABS(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp olt double %3, 0.000000e+00
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load double, double* %2
%7 = fneg double %6
br label %10
8: ; preds = %1
%9 = load double, double* %2
br label %10
10: ; preds = %8, %5
%11 = phi double [ %7, %5 ], [ %9, %8 ]
ret double %11
}

LLVM IR (-O2):
define double @FABS(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = fneg double %0
%4 = select i1 %2, double %3, double %0
ret double %4
}
/* Variables and functions */
void *malloc(unsigned int const);
int /*<<< orphan*/ memcpy(void *, void *, unsigned int const);
void *alloc_copy(void *data, const unsigned int size) {
  void *p;
  p = malloc(size);
  if (p != NULL)
    memcpy(p, data, size);
  return p;
}


x86 assembly (clang, -O0):
<alloc_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1156 <alloc_copy+0x36>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alloc_copy>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%r14
mov    %esi,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1145 <alloc_copy+0x25>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1030 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i8* @alloc_copy(i8* %0, i32 %1) {
%3 = tail call i8* @malloc(i32 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @memcpy(i8* %3, i8* %0, i32 %1)
br label %7
7: ; preds = %5, %2
ret i8* %3
}
void prune_add1(unsigned int x) {
  int a[10];
  if (x + 1 < 11) {
    a[x] = 0;
  }
}


x86 assembly (clang, -O0):
<prune_add1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
cmp    $0xb,%eax
jae    1121 <prune_add1+0x21>
mov    -0x4(%rbp),%eax
movl   $0x0,-0x30(%rbp,%rax,4)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @prune_add1(i32 %0) {
%2 = alloca i32
%3 = alloca [10 x i32]
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = add i32 %4, 1
%6 = icmp ult i32 %5, 11
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, i32* %2
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %9
store i32 0, i32* %10
br label %11
11: ; preds = %7, %1
ret void
}

LLVM IR (-O2):
define void @prune_add1(i32 %0) {
ret void
}
/* Variables and functions */
int composeCharacters(size_t *length, const unsigned char *characters,
                      unsigned char *buffer, unsigned int *map) {
  return 0;
}


x86 assembly (clang, -O0):
<composeCharacters>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @composeCharacters(i64* %0, i8* %1, i8* %2, i32* %3) {
%5 = alloca i64*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
store i64* %0, i64** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32* %3, i32** %8
ret i32 0
}

LLVM IR (-O2):
define i32 @composeCharacters(i64* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i32* nocapture readnone %3) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ PoiLearnSettingsHandle();
int /*<<< orphan*/ UAVObjRequestUpdate(int /*<<< orphan*/);
void PoiLearnSettingsRequestUpdate() {
  UAVObjRequestUpdate(PoiLearnSettingsHandle());
}


x86 assembly (clang, -O0):
<PoiLearnSettingsRequestUpdate>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <PoiLearnSettingsHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjRequestUpdate@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PoiLearnSettingsRequestUpdate>:
push   %rax
xor    %eax,%eax
call   1030 <PoiLearnSettingsHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <UAVObjRequestUpdate@plt>

LLVM IR (-O0):
define void @PoiLearnSettingsRequestUpdate() {
%1 = call i32 (...) @PoiLearnSettingsHandle()
%2 = call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}

LLVM IR (-O2):
define void @PoiLearnSettingsRequestUpdate() {
%1 = tail call i32 (...) @PoiLearnSettingsHandle()
%2 = tail call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ gen_mloop_scope(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/, int /*<<< orphan*/);
void gen_sub_mloop_stop(FILE *outfile, int numopened) {
  int i;
  for (i = 0; i < numopened; i++) {
    fprintf(outfile, "}\n");
  }
  gen_mloop_scope(outfile, NULL, 0, 0);
}


x86 assembly (clang, -O0):
<gen_sub_mloop_stop>:
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
jge    1160 <gen_sub_mloop_stop+0x40>
mov    -0x8(%rbp),%rdi
lea    0xeb3(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1136 <gen_sub_mloop_stop+0x16>
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <gen_mloop_scope@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_sub_mloop_stop>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
test   %esi,%esi
jle    115a <gen_sub_mloop_stop+0x3a>
mov    %esi,%ebp
lea    0xecc(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1040 <fwrite@plt>
add    $0xffffffff,%ebp
jne    1140 <gen_sub_mloop_stop+0x20>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <gen_mloop_scope@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"}\0A\00"
define void @gen_sub_mloop_stop(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 slt 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 ([3 x i8], [3 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
%17 = load i32*, i32** %3
%18 = call i32 @gen_mloop_scope(i32* %17, i32* null, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"}\0A\00"
define void @gen_sub_mloop_stop(i32* %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %9
4: ; preds = %2, %4
%5 = phi i32 [ %7, %4 ], [ 0, %2 ]
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2, i64 1, i32* %0)
%7 = add nuw nsw i32 %5, 1
%8 = icmp eq i32 %7, %1
br i1 %8, label %9, label %4
9: ; preds = %4, %2
%10 = tail call i32 @gen_mloop_scope(i32* %0, i32* null, i32 0, i32 0)
ret void
}
/* Type definitions */
struct DequeEntry {
  int dummy;
};
struct Deque {
  int dummy;
};

/* Variables and functions */
struct DequeEntry *deque_removeFirst(struct Deque *);
extern struct DequeEntry *deque_pop(struct Deque *deque) {
  return deque_removeFirst(deque);
}


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

x86 assembly (clang, -O2):
<deque_pop>:
jmp    1030 <deque_removeFirst@plt>

LLVM IR (-O0):
%struct.DequeEntry = type { i32 }
%struct.Deque = type { i32 }
define %struct.DequeEntry* @deque_pop(%struct.Deque* %0) {
%2 = alloca %struct.Deque*
store %struct.Deque* %0, %struct.Deque** %2
%3 = load %struct.Deque*, %struct.Deque** %2
%4 = call %struct.DequeEntry* @deque_removeFirst(%struct.Deque* %3)
ret %struct.DequeEntry* %4
}

LLVM IR (-O2):
%struct.DequeEntry = type { i32 }
%struct.Deque = type { i32 }
define %struct.DequeEntry* @deque_pop(%struct.Deque* %0) {
%2 = tail call %struct.DequeEntry* @deque_removeFirst(%struct.Deque* %0)
ret %struct.DequeEntry* %2
}
/* Variables and functions */
int getbase(char const **);
int strlen(char const *);
long strtol(char const *, char **, int);
int getlong(const char *s, long *ret) {
  const char *end;
  char *rend;
  int base;
  end = s + strlen(s);
  base = getbase(&s);
  *ret = strtol(s, &rend, base);
  return (end == rend);
}


x86 assembly (clang, -O0):
<getlong>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <getbase@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    -0x20(%rbp),%rsi
call   1050 <strtol@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getlong>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rdi,(%rsp)
call   1040 <strlen@plt>
movslq %eax,%r15
add    %rbx,%r15
mov    %rsp,%rdi
call   1030 <getbase@plt>
mov    (%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %eax,%edx
call   1050 <strtol@plt>
mov    %rax,(%r14)
xor    %eax,%eax
cmp    0x8(%rsp),%r15
sete   %al
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @getlong(i8* %0, i64* %1) {
%3 = alloca i8*
%4 = alloca i64*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %3
store i64* %1, i64** %4
%8 = load i8*, i8** %3
%9 = load i8*, i8** %3
%10 = call i32 @strlen(i8* %9)
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %8, i64 %11
store i8* %12, i8** %5
%13 = call i32 @getbase(i8** %3)
store i32 %13, i32* %7
%14 = load i8*, i8** %3
%15 = load i32, i32* %7
%16 = call i64 @strtol(i8* %14, i8** %6, i32 %15)
%17 = load i64*, i64** %4
store i64 %16, i64* %17
%18 = load i8*, i8** %5
%19 = load i8*, i8** %6
%20 = icmp eq i8* %18, %19
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
define i32 @getlong(i8* %0, i64* nocapture writeonly %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%5 = bitcast i8** %4 to i8*
%6 = tail call i32 @strlen(i8* %0)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = call i32 @getbase(i8** %3)
%10 = load i8*, i8** %3
%11 = call i64 @strtol(i8* %10, i8** %4, i32 %9)
store i64 %11, i64* %1
%12 = load i8*, i8** %4
%13 = icmp eq i8* %8, %12
%14 = zext i1 %13 to i32
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(void) {
  char *s;
  strcpy(s, "Well, hello there");
  printf("s: '%s'\n", s);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xede(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [18 x i8] c"Well, hello there\00"
@.str.1 = [9 x i8] c"s: '%s'\0A\00"
define i32 @main() {
%1 = tail call i32 @strcpy(i8* undef, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* undef)
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ y_root;
};
typedef TYPE_1__ XButtonPressedEvent;

/* Variables and functions */
int get_XButtonPressedEvent_y_root(void *_p) {
  return (int)((XButtonPressedEvent *)_p)->y_root;
}


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

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

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

LLVM IR (-O2):
define i32 @get_XButtonPressedEvent_y_root(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
unsigned long long rol64(unsigned long long x, int s) {
  asm("rolq %%cl,%0" : "=r"(x) : "0"(x), "c"(s));
  return x;
}


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

x86 assembly (clang, -O2):
<rol64>:
mov    %esi,%ecx
mov    %rdi,%rax
rol    %cl,%rax
ret

LLVM IR (-O0):
define i64 @rol64(i64 %0, i32 %1) {
%3 = alloca i64
%4 = alloca i32
store i64 %0, i64* %3
store i32 %1, i32* %4
%5 = load i64, i64* %3
%6 = load i32, i32* %4
%7 = call i64 asm "rolq %cl,$0", "=r,0,{cx},~{dirflag},~{fpsr},~{flags}"(i64 %5, i32 %6)
store i64 %7, i64* %3
%8 = load i64, i64* %3
ret i64 %8
}

LLVM IR (-O2):
define i64 @rol64(i64 %0, i32 %1) {
%3 = tail call i64 asm "rolq %cl,$0", "=r,0,{cx},~{dirflag},~{fpsr},~{flags}"(i64 %0, i32 %1)
ret i64 %3
}
int btrfs_test_free_space_tree(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @btrfs_test_free_space_tree() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ _write_int(char **, int);
int /*<<< orphan*/ memcpy(char *, char const *, int);
void _write_string_len(char **pptr, const char *string, int len) {
  _write_int(pptr, len);
  memcpy(*pptr, string, len);
  *pptr += len;
}


x86 assembly (clang, -O0):
<_write_string_len>:
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    -0x14(%rbp),%esi
call   1030 <_write_int@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
movslq %edx,%rdx
add    %rdx,%rcx
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_write_string_len>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %edx,%esi
call   1030 <_write_int@plt>
mov    (%rbx),%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1040 <memcpy@plt>
movslq %ebp,%rax
add    %rax,(%rbx)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @_write_string_len(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 i32, i32* %6
%9 = call i32 @_write_int(i8** %7, i32 %8)
%10 = load i8**, i8*** %4
%11 = load i8*, i8** %10
%12 = load i8*, i8** %5
%13 = load i32, i32* %6
%14 = call i32 @memcpy(i8* %11, i8* %12, i32 %13)
%15 = load i32, i32* %6
%16 = load i8**, i8*** %4
%17 = load i8*, i8** %16
%18 = sext i32 %15 to i64
%19 = getelementptr inbounds i8, i8* %17, i64 %18
store i8* %19, i8** %16
ret void
}

LLVM IR (-O2):
define void @_write_string_len(i8** %0, i8* %1, i32 %2) {
%4 = tail call i32 @_write_int(i8** %0, i32 %2)
%5 = load i8*, i8** %0
%6 = tail call i32 @memcpy(i8* %5, i8* %1, i32 %2)
%7 = load i8*, i8** %0
%8 = sext i32 %2 to i64
%9 = getelementptr inbounds i8, i8* %7, i64 %8
store i8* %9, i8** %0
ret void
}
void fa203(int n) {
  {
    int b[n];
    {
      int c[n];
      0;
    }
    {
      int d[n];
      0;
    };
    int e[n];
    0;
  };
  {
    int f[n];
    {
      int g[n];
      0;
    };
    {
      int h[n];
    a:
      goto a;
      0;
    };
    ;
    int i[n];
    0;
  };
  ;
  int j[n];
  0;
}


x86 assembly (clang, -O0):
<fa203>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rax,-0x70(%rbp)
jmp    1185 <fa203+0x85>

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

LLVM IR (-O0):
define void @fa203(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i64
store i32 %0, i32* %2
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
%21 = call i8* @llvm.stacksave()
store i8* %21, i8** %3
%22 = alloca i32, i64 %20
store i64 %20, i64* %4
%23 = load i32, i32* %2
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %5
%26 = alloca i32, i64 %24
store i64 %24, i64* %6
%27 = load i8*, i8** %5
%28 = load i32, i32* %2
%29 = zext i32 %28 to i64
%30 = call i8* @llvm.stacksave()
store i8* %30, i8** %7
%31 = alloca i32, i64 %29
store i64 %29, i64* %8
%32 = load i8*, i8** %7
%33 = load i32, i32* %2
%34 = zext i32 %33 to i64
%35 = alloca i32, i64 %34
store i64 %34, i64* %9
%36 = load i8*, i8** %3
%37 = load i32, i32* %2
%38 = zext i32 %37 to i64
%39 = call i8* @llvm.stacksave()
store i8* %39, i8** %10
%40 = alloca i32, i64 %38
store i64 %38, i64* %11
%41 = load i32, i32* %2
%42 = zext i32 %41 to i64
%43 = call i8* @llvm.stacksave()
store i8* %43, i8** %12
%44 = alloca i32, i64 %42
store i64 %42, i64* %13
%45 = load i8*, i8** %12
%46 = load i32, i32* %2
%47 = zext i32 %46 to i64
%48 = call i8* @llvm.stacksave()
store i8* %48, i8** %14
%49 = alloca i32, i64 %47
store i64 %47, i64* %15
br label %50
50: ; preds = %50, %1
br label %50
51: ; No predecessors!
%52 = load i32, i32* %2
%53 = zext i32 %52 to i64
%54 = alloca i32, i64 %53
store i64 %53, i64* %16
%55 = load i8*, i8** %10
%56 = load i32, i32* %2
%57 = zext i32 %56 to i64
%58 = call i8* @llvm.stacksave()
store i8* %58, i8** %17
%59 = alloca i32, i64 %57
store i64 %57, i64* %18
%60 = load i8*, i8** %17
ret void
}

LLVM IR (-O2):
define void @fa203(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ bar(int);
void foo(void) { bar(21043); }


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5233,%edi
call   1030 <bar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
mov    $0x5233,%edi
jmp    1030 <bar@plt>

LLVM IR (-O0):
define void @foo() {
%1 = call i32 @bar(i32 21043)
ret void
}

LLVM IR (-O2):
define void @foo() {
%1 = tail call i32 @bar(i32 21043)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TOSH_MAKE_HUM_SCL_INPUT();
void HUMIDITY_MAKE_CLOCK_INPUT() { TOSH_MAKE_HUM_SCL_INPUT(); }


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

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

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

LLVM IR (-O2):
define void @HUMIDITY_MAKE_CLOCK_INPUT() {
%1 = tail call i32 (...) @TOSH_MAKE_HUM_SCL_INPUT()
ret void
}
AX0AX1(r0, r1, x0, x1, p0, p1) unsigned char r0, r1;
unsigned char *p0, *p1;
{
  if ((((unsigned char *)10000000)[x0]) <= (((unsigned char *)11111111)[x1]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<AX0AX1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %dil,%sil
mov    %sil,-0x5(%rbp)
mov    %al,-0x6(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
movslq -0xc(%rbp),%rcx
mov    $0x989680,%eax
movzbl (%rax,%rcx,1),%eax
movslq -0x10(%rbp),%rdx
mov    $0xa98ac7,%ecx
movzbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jg     114c <AX0AX1+0x4c>
movl   $0x1,-0x4(%rbp)
jmp    1153 <AX0AX1+0x53>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<AX0AX1>:
movslq %edx,%rax
mov    0x989680(%rax),%dl
movslq %ecx,%rcx
xor    %eax,%eax
cmp    0xa98ac7(%rcx),%dl
setbe  %al
ret

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

LLVM IR (-O2):
define i32 @AX0AX1(i32 %0, i32 %1, i32 %2, i32 %3, i8* nocapture readnone %4, i8* nocapture readnone %5) {
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds i8, i8* inttoptr (i64 10000000 to i8*), i64 %7
%9 = load i8, i8* %8
%10 = sext i32 %3 to i64
%11 = getelementptr inbounds i8, i8* inttoptr (i64 11111111 to i8*), i64 %10
%12 = load i8, i8* %11
%13 = icmp ule i8 %9, %12
%14 = zext i1 %13 to i32
ret i32 %14
}
/* Type definitions */
typedef int uint64_t;
typedef int uint32_t;

/* Variables and functions */
int UINT64_C(int);
uint64_t vid_to_attr_oid(uint32_t vid, uint32_t attrid) {
  return ((uint64_t)vid << 32) | (UINT64_C(1) << 61) | attrid;
}


x86 assembly (clang, -O0):
<vid_to_attr_oid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x20,%ecx
shl    %cl,%eax
mov    %eax,-0xc(%rbp)
mov    $0x1,%edi
call   1030 <UINT64_C@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%eax
mov    $0x3d,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
or     -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vid_to_attr_oid>:
mov    $0x1,%edi
jmp    1030 <UINT64_C@plt>

LLVM IR (-O0):
define i32 @vid_to_attr_oid(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = shl i32 %5, 32
%7 = call i32 @UINT64_C(i32 1)
%8 = shl i32 %7, 61
%9 = or i32 %6, %8
%10 = load i32, i32* %4
%11 = or i32 %9, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @vid_to_attr_oid(i32 %0, i32 %1) {
%3 = tail call i32 @UINT64_C(i32 1)
ret i32 poison
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void ShowWrongPassword(void) {
  puts("<html><head><title>Wrong Password!</title></head>");
  puts("<body><center><h1>Wrong Password!</h1></center>");
  puts("Sorry, the password you entered is not correct.  Please go");
  puts("back and try again.<p>");
  puts("</body></html>");
}


x86 assembly (clang, -O0):
<ShowWrongPassword>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShowWrongPassword>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf32(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"<html><head><title>Wrong Password!</title></head>\00"
@.str.1 = [48 x i8] c"<body><center><h1>Wrong Password!</h1></center>\00"
@.str.2 = [59 x i8] c"Sorry, the password you entered is not correct. Please go\00"
@.str.3 = [23 x i8] c"back and try again.<p>\00"
@.str.4 = [15 x i8] c"</body></html>\00"
define void @ShowWrongPassword() {
%1 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"<html><head><title>Wrong Password!</title></head>\00"
@.str.1 = [48 x i8] c"<body><center><h1>Wrong Password!</h1></center>\00"
@.str.2 = [59 x i8] c"Sorry, the password you entered is not correct. Please go\00"
@.str.3 = [23 x i8] c"back and try again.<p>\00"
@.str.4 = [15 x i8] c"</body></html>\00"
define void @ShowWrongPassword() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
ret void
}
/* Type definitions */
struct bus_service {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(void *);
void service_bus_delete(const struct bus_service *s) { free((void *)s); }


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

x86 assembly (clang, -O2):
<service_bus_delete>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.bus_service = type { i32 }
define void @service_bus_delete(%struct.bus_service* %0) {
%2 = alloca %struct.bus_service*
store %struct.bus_service* %0, %struct.bus_service** %2
%3 = load %struct.bus_service*, %struct.bus_service** %2
%4 = bitcast %struct.bus_service* %3 to i8*
%5 = call i32 @free(i8* %4)
ret void
}

LLVM IR (-O2):
%struct.bus_service = type { i32 }
define void @service_bus_delete(%struct.bus_service* nocapture %0) {
%2 = bitcast %struct.bus_service* %0 to i8*
%3 = tail call i32 @free(i8* %2)
ret void
}
int SDL_imageFilterBitOrMMX(unsigned char *Src1, unsigned char *Src2,
                            unsigned char *Dest, int length) {
  return (0);
}


x86 assembly (clang, -O0):
<SDL_imageFilterBitOrMMX>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @SDL_imageFilterBitOrMMX(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
ret i32 0
}

LLVM IR (-O2):
define i32 @SDL_imageFilterBitOrMMX(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i32 %3) {
ret i32 0
}
void ff_hevc_put_hevc_uni_w_epel_h12_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_w_epel_h12_12_sse4() {
ret void
}
/* Variables and functions */
unsigned char SPI_MODE_0;
unsigned char spi_mode_0() { return SPI_MODE_0; }


x86 assembly (clang, -O0):
<spi_mode_0>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
movzbl (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<spi_mode_0>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%al
ret

LLVM IR (-O0):
@SPI_MODE_0 = global i8 0
define zeroext i8 @spi_mode_0() {
%1 = load i8, i8* @SPI_MODE_0
ret i8 %1
}

LLVM IR (-O2):
@SPI_MODE_0 = global i8 0
define zeroext i8 @spi_mode_0() {
%1 = load i8, i8* @SPI_MODE_0
ret i8 %1
}
void test0() {
  int MACRO = 0;
  int number2 = 4;
}


x86 assembly (clang, -O0):
<test0>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @test0() {
ret void
}
void selinux_exit(void) {}


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

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

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

LLVM IR (-O2):
define void @selinux_exit() {
ret void
}
int a() { return 1 || 1; }


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

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

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

LLVM IR (-O2):
define i32 @a() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void ic(void) { printf("India, China\n"); }


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

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

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

LLVM IR (-O2):
@str = [13 x i8] c"India, China\00"
define void @ic() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef scalar_t__ time_t;

/* Variables and functions */
scalar_t__ time(int /*<<< orphan*/ *);
unsigned long chktimer1(void) {
  time_t ticks;
  ticks = time(NULL);
  return ((unsigned long)ticks);
}


x86 assembly (clang, -O0):
<chktimer1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1030 <time@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chktimer1>:
xor    %edi,%edi
jmp    1030 <time@plt>

LLVM IR (-O0):
define i64 @chktimer1() {
%1 = alloca i64
%2 = call i64 @time(i32* null)
store i64 %2, i64* %1
%3 = load i64, i64* %1
ret i64 %3
}

LLVM IR (-O2):
define i64 @chktimer1() {
%1 = tail call i64 @time(i32* null)
ret i64 %1
}