xunge/DecIR huggingface dataset:
void yy_4_MagicWordAutoCorrect(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_4_MagicWordAutoCorrect(i8* nocapture %0, i32 %1) {
ret void
}
/* Type definitions */
struct list_of_states {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(struct list_of_states *);
int /*<<< orphan*/ free(struct list_of_states *);
void fnmatch_list_of_states_free(struct list_of_states *lists, size_t n) {
  assert(lists);
  (void)n;
  free(lists);
}


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

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

LLVM IR (-O0):
%struct.list_of_states = type { i32 }
define void @fnmatch_list_of_states_free(%struct.list_of_states* %0, i64 %1) {
%3 = alloca %struct.list_of_states*
%4 = alloca i64
store %struct.list_of_states* %0, %struct.list_of_states** %3
store i64 %1, i64* %4
%5 = load %struct.list_of_states*, %struct.list_of_states** %3
%6 = call i32 @assert(%struct.list_of_states* %5)
%7 = load i64, i64* %4
%8 = load %struct.list_of_states*, %struct.list_of_states** %3
%9 = call i32 @free(%struct.list_of_states* %8)
ret void
}

LLVM IR (-O2):
%struct.list_of_states = type { i32 }
define void @fnmatch_list_of_states_free(%struct.list_of_states* %0, i64 %1) {
%3 = tail call i32 @assert(%struct.list_of_states* %0)
%4 = tail call i32 @free(%struct.list_of_states* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void g4_cb(void *arg) { puts("GPIO_4 triggered"); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"GPIO_4 triggered\00"
define void @g4_cb(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"GPIO_4 triggered\00"
define void @g4_cb(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
double pow(int, double);
double dbmtov(double a) { return pow(10, (a - 13.0) / 20); }


x86 assembly (clang, -O0):
<dbmtov>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xede(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xeca(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    $0xa,%edi
call   1030 <pow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dbmtov>:
addsd  0xee8(%rip),%xmm0
divsd  0xee8(%rip),%xmm0
mov    $0xa,%edi
jmp    1030 <pow@plt>

LLVM IR (-O0):
define double @dbmtov(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fsub double %3, 1.300000e+01
%5 = fdiv double %4, 2.000000e+01
%6 = call double @pow(i32 10, double %5)
ret double %6
}

LLVM IR (-O2):
define double @dbmtov(double %0) {
%2 = fadd double %0, -1.300000e+01
%3 = fdiv double %2, 2.000000e+01
%4 = tail call double @pow(i32 10, double %3)
ret double %4
}
/* Variables and functions */
int pms_set_current_states(char *);
int pms_set_current_state(char *name) { return pms_set_current_states(name); }


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

x86 assembly (clang, -O2):
<pms_set_current_state>:
jmp    1030 <pms_set_current_states@plt>

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

LLVM IR (-O2):
define i32 @pms_set_current_state(i8* %0) {
%2 = tail call i32 @pms_set_current_states(i8* %0)
ret i32 %2
}
/* Type definitions */
struct net_device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ WARN_ON(int);
int netif_queue_stopped(struct net_device *);
int __netif_subqueue_stopped(struct net_device *dev, int fifo_no) {
  WARN_ON(1);
  return netif_queue_stopped(dev);
}


x86 assembly (clang, -O0):
<__netif_subqueue_stopped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x1,%edi
call   1030 <WARN_ON@plt>
mov    -0x8(%rbp),%rdi
call   1040 <netif_queue_stopped@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__netif_subqueue_stopped>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%edi
call   1030 <WARN_ON@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <netif_queue_stopped@plt>

LLVM IR (-O0):
%struct.net_device = type { i32 }
define i32 @__netif_subqueue_stopped(%struct.net_device* %0, i32 %1) {
%3 = alloca %struct.net_device*
%4 = alloca i32
store %struct.net_device* %0, %struct.net_device** %3
store i32 %1, i32* %4
%5 = call i32 @WARN_ON(i32 1)
%6 = load %struct.net_device*, %struct.net_device** %3
%7 = call i32 @netif_queue_stopped(%struct.net_device* %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.net_device = type { i32 }
define i32 @__netif_subqueue_stopped(%struct.net_device* %0, i32 %1) {
%3 = tail call i32 @WARN_ON(i32 1)
%4 = tail call i32 @netif_queue_stopped(%struct.net_device* %0)
ret i32 %4
}
void f1(int p) {
  if (p)
    __builtin_trap();
}


x86 assembly (clang, -O0):
<f1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1113 <f1+0x13>
ud2
pop    %rbp
ret

x86 assembly (clang, -O2):
<f1>:
test   %edi,%edi
jne    1105 <f1+0x5>
ret
ud2

LLVM IR (-O0):
define void @f1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %6
6: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @f1(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %4, label %3
3: ; preds = %1
tail call void @llvm.trap()
unreachable
4: ; preds = %1
ret void
}
double coq_fdiv(double x, double y) { return x / y; }


x86 assembly (clang, -O0):
<coq_fdiv>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<coq_fdiv>:
divsd  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define double @coq_fdiv(double %0, double %1) {
%3 = fdiv double %0, %1
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ stdout;
void PrintTotalResult(int resultId) {
  printf("result: callback_suite: %d\n", resultId);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<PrintTotalResult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintTotalResult>:
push   %rax
mov    %edi,%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"result: callback_suite: %d\0A\00"
@stdout = global i32 0
define void @PrintTotalResult(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"result: callback_suite: %d\0A\00"
@stdout = global i32 0
define void @PrintTotalResult(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  {
    printf("Error %d\n", (int)1);
    exit(1);
  };
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Error %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [10 x i8] c"Error %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @exit(i32 1)
unreachable
}
void ve_nfs_data_put(struct ve_struct *ve) {}


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

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

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

LLVM IR (-O2):
%struct.ve_struct = type opaque
define void @ve_nfs_data_put(%struct.ve_struct* nocapture %0) {
ret void
}
void avr_end() { ; }


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

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

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

LLVM IR (-O2):
define void @avr_end() {
ret void
}
void hup_handler(int p) {}


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

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

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

LLVM IR (-O2):
define void @hup_handler(i32 %0) {
ret void
}
void arm_mem_config_check(struct config_t *config) {}


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

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

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

LLVM IR (-O2):
%struct.config_t = type opaque
define void @arm_mem_config_check(%struct.config_t* nocapture %0) {
ret void
}
/* Variables and functions */
char getchr(int);
void getstrle(char string[], int offset) {
  int i;
  for (i = 0; i < 4; i++) {
    string[i] = getchr(offset + 3 - i);
  }
  string[4] = 0;
}


x86 assembly (clang, -O0):
<getstrle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x4,-0x10(%rbp)
jge    1159 <getstrle+0x49>
mov    -0xc(%rbp),%edi
add    $0x3,%edi
sub    -0x10(%rbp),%edi
call   1030 <getchr@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <getstrle+0x16>
mov    -0x8(%rbp),%rax
movb   $0x0,0x4(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getstrle>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0x3(%r14),%edi
call   1030 <getchr@plt>
mov    %al,(%rbx)
lea    0x2(%r14),%edi
call   1030 <getchr@plt>
mov    %al,0x1(%rbx)
lea    0x1(%r14),%edi
call   1030 <getchr@plt>
mov    %al,0x2(%rbx)
mov    %r14d,%edi
call   1030 <getchr@plt>
mov    %al,0x3(%rbx)
movb   $0x0,0x4(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @getstrle(i8* nocapture writeonly %0, i32 %1) {
%3 = add nsw i32 %1, 3
%4 = tail call signext i8 @getchr(i32 %3)
store i8 %4, i8* %0
%5 = add i32 %1, 2
%6 = tail call signext i8 @getchr(i32 %5)
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %6, i8* %7
%8 = add i32 %1, 1
%9 = tail call signext i8 @getchr(i32 %8)
%10 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %9, i8* %10
%11 = tail call signext i8 @getchr(i32 %1)
%12 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %11, i8* %12
%13 = getelementptr inbounds i8, i8* %0, i64 4
store i8 0, i8* %13
ret void
}
void foo017() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ prg8setBank0(int);
void vrc7setParams8000(uint16_t addr, uint8_t val) {
  (void)addr;
  prg8setBank0((val & 0x3F) << 13);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
and    $0x3f,%edi
shl    $0xd,%edi
call   1030 <prg8setBank0@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
mov    %esi,%edi
and    $0x3f,%edi
shl    $0xd,%edi
jmp    1030 <prg8setBank0@plt>

LLVM IR (-O0):
define void @vrc7setParams8000(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 = load i32, i32* %4
%7 = and i32 %6, 63
%8 = shl i32 %7, 13
%9 = call i32 @prg8setBank0(i32 %8)
ret void
}

LLVM IR (-O2):
define void @vrc7setParams8000(i32 %0, i32 %1) {
%3 = shl i32 %1, 13
%4 = and i32 %3, 516096
%5 = tail call i32 @prg8setBank0(i32 %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;
typedef int int16_t;

/* Variables and functions */
int /*<<< orphan*/ p264_pixel_add_8x8_mmx(int /*<<< orphan*/ *, int,
                                          int /*<<< orphan*/ *);
int /*<<< orphan*/ p264_xidct8_mmxext(int **);
int /*<<< orphan*/ p264_yidct8_mmx(int **);
void p264_add8x8_idct8_mmxext(uint8_t *dst, int i_dst, int16_t dct[8][8]) {
  dct[0][0] += 32;
  p264_xidct8_mmxext(dct);
  p264_yidct8_mmx(dct);
  p264_pixel_add_8x8_mmx(dst, i_dst, (uint16_t *)dct);
}


x86 assembly (clang, -O0):
<p264_add8x8_idct8_mmxext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0x20,%ecx
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rdi
call   1040 <p264_xidct8_mmxext@plt>
mov    -0x18(%rbp),%rdi
call   1050 <p264_yidct8_mmx@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1030 <p264_pixel_add_8x8_mmx@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<p264_add8x8_idct8_mmxext>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %esi,%r14d
mov    %rdi,%rbp
addl   $0x20,(%rdx)
mov    %rdx,%rdi
call   1040 <p264_xidct8_mmxext@plt>
mov    %rbx,%rdi
call   1050 <p264_yidct8_mmx@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    %rbx,%rdx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <p264_pixel_add_8x8_mmx@plt>

LLVM IR (-O0):
define void @p264_add8x8_idct8_mmxext(i32* %0, i32 %1, [8 x i32]* %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca [8 x i32]*
store i32* %0, i32** %4
store i32 %1, i32* %5
store [8 x i32]* %2, [8 x i32]** %6
%7 = load [8 x i32]*, [8 x i32]** %6
%8 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0
%9 = getelementptr inbounds [8 x i32], [8 x i32]* %8, i64 0, i64 0
%10 = load i32, i32* %9
%11 = add nsw i32 %10, 32
store i32 %11, i32* %9
%12 = load [8 x i32]*, [8 x i32]** %6
%13 = bitcast [8 x i32]* %12 to i32**
%14 = call i32 @p264_xidct8_mmxext(i32** %13)
%15 = load [8 x i32]*, [8 x i32]** %6
%16 = bitcast [8 x i32]* %15 to i32**
%17 = call i32 @p264_yidct8_mmx(i32** %16)
%18 = load i32*, i32** %4
%19 = load i32, i32* %5
%20 = load [8 x i32]*, [8 x i32]** %6
%21 = bitcast [8 x i32]* %20 to i32*
%22 = call i32 @p264_pixel_add_8x8_mmx(i32* %18, i32 %19, i32* %21)
ret void
}

LLVM IR (-O2):
define void @p264_add8x8_idct8_mmxext(i32* %0, i32 %1, [8 x i32]* %2) {
%4 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 0
%5 = load i32, i32* %4
%6 = add nsw i32 %5, 32
store i32 %6, i32* %4
%7 = bitcast [8 x i32]* %2 to i32**
%8 = tail call i32 @p264_xidct8_mmxext(i32** %7)
%9 = tail call i32 @p264_yidct8_mmx(i32** %7)
%10 = tail call i32 @p264_pixel_add_8x8_mmx(i32* %0, i32 %1, i32* %4)
ret void
}
/* Type definitions */
struct iovec {
  int dummy;
};
typedef int /*<<< orphan*/ ssize_t;
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int /*<<< orphan*/ syscall(int, int, struct iovec const *, int,
                           int /*<<< orphan*/);
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset) {
  return syscall(295, fd, iov, iovcnt, offset);
}


x86 assembly (clang, -O0):
<uv__preadv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x127,%edi
call   1030 <syscall@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uv__preadv>:
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %edi,%esi
mov    $0x127,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
%struct.iovec = type { i32 }
define i32 @uv__preadv(i32 %0, %struct.iovec* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca %struct.iovec*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store %struct.iovec* %1, %struct.iovec** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load %struct.iovec*, %struct.iovec** %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = call i32 @syscall(i32 295, i32 %9, %struct.iovec* %10, i32 %11, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
%struct.iovec = type { i32 }
define i32 @uv__preadv(i32 %0, %struct.iovec* %1, i32 %2, i32 %3) {
%5 = tail call i32 @syscall(i32 295, i32 %0, %struct.iovec* %1, i32 %2, i32 %3)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ execv(char *, char **);
void getSummaryReport() {
  char *args[] = {"aureport", " > summary.txt ", NULL};
  execv("/bin/audit", args);
}


x86 assembly (clang, -O0):
<getSummaryReport>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2ce1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cde(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2cdb(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xed5(%rip),%rdi
call   1030 <execv@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getSummaryReport>:
sub    $0x18,%rsp
mov    0x2cf5(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xee7(%rip),%rdi
mov    %rsp,%rsi
call   1030 <execv@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"aureport\00"
@.str.1 = [16 x i8] c" > summary.txt \00"
@__const.getSummaryReport.args = [3 x i8*] [i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str.2 = [11 x i8] c"/bin/audit\00"
define void @getSummaryReport() {
%1 = alloca [3 x i8*]
%2 = bitcast [3 x i8*]* %1 to i8*
%3 = getelementptr inbounds [3 x i8*], [3 x i8*]* %1, i64 0, i64 0
%4 = call i32 @execv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8** %3)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"aureport\00"
@.str.1 = [16 x i8] c" > summary.txt \00"
@__const.getSummaryReport.args = [3 x i8*] [i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str.2 = [11 x i8] c"/bin/audit\00"
define void @getSummaryReport() {
%1 = alloca [3 x i8*]
%2 = bitcast [3 x i8*]* %1 to i8*
%3 = getelementptr inbounds [3 x i8*], [3 x i8*]* %1, i64 0, i64 0
%4 = call i32 @execv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8** %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint_fast8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ IntEnable(int /*<<< orphan*/);
int /*<<< orphan*/ IntRegister(int /*<<< orphan*/, void (*)());
int /*<<< orphan*/ _ADCIntNumberGet(int /*<<< orphan*/, int /*<<< orphan*/);
void ADCIntRegister(uint32_t ui32Base, uint32_t ui32SequenceNum,
                    void (*pfnHandler)(void)) {
  uint_fast8_t ui8Int;
  ;
  ;
  ui8Int = _ADCIntNumberGet(ui32Base, ui32SequenceNum);
  ;
  IntRegister(ui8Int, pfnHandler);
  IntEnable(ui8Int);
}


x86 assembly (clang, -O0):
<ADCIntRegister>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <_ADCIntNumberGet@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <IntRegister@plt>
mov    -0x14(%rbp),%edi
call   1030 <IntEnable@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADCIntRegister>:
push   %rbp
push   %rbx
push   %rax
mov    %rdx,%rbx
call   1050 <_ADCIntNumberGet@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    %rbx,%rsi
call   1040 <IntRegister@plt>
mov    %ebp,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <IntEnable@plt>

LLVM IR (-O0):
define void @ADCIntRegister(i32 %0, i32 %1, void ()* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca void ()*
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store void ()* %2, void ()** %6
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @_ADCIntNumberGet(i32 %8, i32 %9)
store i32 %10, i32* %7
%11 = load i32, i32* %7
%12 = load void ()*, void ()** %6
%13 = bitcast void ()* %12 to void (...)*
%14 = call i32 @IntRegister(i32 %11, void (...)* %13)
%15 = load i32, i32* %7
%16 = call i32 @IntEnable(i32 %15)
ret void
}

LLVM IR (-O2):
define void @ADCIntRegister(i32 %0, i32 %1, void ()* %2) {
%4 = tail call i32 @_ADCIntNumberGet(i32 %0, i32 %1)
%5 = bitcast void ()* %2 to void (...)*
%6 = tail call i32 @IntRegister(i32 %4, void (...)* %5)
%7 = tail call i32 @IntEnable(i32 %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ regex_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ grep_stream(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
void grep_file(regex_t *re, char *path) {
  FILE *f;
  f = fopen(path, "r");
  if (!f) {
    perror(path);
    exit(1);
  }
  grep_stream(re, f);
  fclose(f);
}


x86 assembly (clang, -O0):
<grep_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe95(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1192 <grep_file+0x42>
mov    -0x10(%rbp),%rdi
call   1060 <perror@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <grep_stream@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<grep_file>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r15
mov    %rdi,%r14
lea    0xe9e(%rip),%rsi
mov    %r15,%rdi
call   1050 <fopen@plt>
test   %rax,%rax
je     118a <grep_file+0x3a>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <grep_stream@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fclose@plt>
mov    %r15,%rdi
call   1060 <perror@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
define void @grep_file(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca i32*
store i32* %0, i32** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %7, i32** %5
%8 = load i32*, i32** %5
%9 = icmp ne i32* %8, null
br i1 %9, label %14, label %10
10: ; preds = %2
%11 = load i8*, i8** %4
%12 = call i32 @perror(i8* %11)
%13 = call i32 @exit(i32 1)
unreachable
14: ; preds = %2
%15 = load i32*, i32** %3
%16 = load i32*, i32** %5
%17 = call i32 @grep_stream(i32* %15, i32* %16)
%18 = load i32*, i32** %5
%19 = call i32 @fclose(i32* %18)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
define void @grep_file(i32* %0, i8* nocapture %1) {
%3 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* %1)
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = tail call i32 @grep_stream(i32* %0, i32* %3)
%10 = tail call i32 @fclose(i32* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ nrand48(unsigned short *);
long long rand48(void) {
  unsigned short xsubi[3];
  nrand48(xsubi);
  return ((long long)xsubi[2]) << 32 | ((long long)xsubi[1]) << 16 |
         ((long long)xsubi[0]);
}


x86 assembly (clang, -O0):
<rand48>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x6(%rbp),%rdi
call   1030 <nrand48@plt>
movzwl -0x2(%rbp),%eax
shl    $0x20,%rax
movzwl -0x4(%rbp),%ecx
shl    $0x10,%rcx
or     %rcx,%rax
movzwl -0x6(%rbp),%ecx
or     %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rand48>:
push   %rax
lea    0x2(%rsp),%rdi
call   1030 <nrand48@plt>
movzwl 0x6(%rsp),%eax
shl    $0x20,%rax
movzwl 0x4(%rsp),%ecx
shl    $0x10,%rcx
or     %rax,%rcx
movzwl 0x2(%rsp),%eax
or     %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @rand48() {
%1 = alloca [3 x i16]
%2 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 0
%3 = call i32 @nrand48(i16* %2)
%4 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 2
%5 = load i16, i16* %4
%6 = zext i16 %5 to i64
%7 = shl i64 %6, 32
%8 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 1
%9 = load i16, i16* %8
%10 = zext i16 %9 to i64
%11 = shl i64 %10, 16
%12 = or i64 %7, %11
%13 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 0
%14 = load i16, i16* %13
%15 = zext i16 %14 to i64
%16 = or i64 %12, %15
ret i64 %16
}

LLVM IR (-O2):
define i64 @rand48() {
%1 = alloca [3 x i16]
%2 = bitcast [3 x i16]* %1 to i8*
%3 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 0
%4 = call i32 @nrand48(i16* %3)
%5 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 2
%6 = load i16, i16* %5
%7 = zext i16 %6 to i64
%8 = shl nuw nsw i64 %7, 32
%9 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 1
%10 = load i16, i16* %9
%11 = zext i16 %10 to i64
%12 = shl nuw nsw i64 %11, 16
%13 = or i64 %12, %8
%14 = load i16, i16* %3
%15 = zext i16 %14 to i64
%16 = or i64 %13, %15
ret i64 %16
}
/* Variables and functions */
int somedllfunc();
int main(int argc, char **argv) { return somedllfunc() == 42 ? 0 : 1; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <somedllfunc@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x2a,%edx
cmove  %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <somedllfunc@plt>
xor    %ecx,%ecx
cmp    $0x2a,%eax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
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 (...) @somedllfunc()
%7 = icmp eq i32 %6, 42
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 0, i32 1
ret i32 %9
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @somedllfunc()
%4 = icmp ne i32 %3, 42
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int test();
int main(void) { return 1 - test(); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <test@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test()
%3 = sub nsw i32 1, %2
ret i32 %3
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test()
%2 = sub nsw i32 1, %1
ret i32 %2
}
/* Variables and functions */
float atan2f(float, int /*<<< orphan*/);
int /*<<< orphan*/ sqrtf(int);
float asinf(float x) { return atan2f(x, sqrtf((1 + x) * (1 - x))); }


x86 assembly (clang, -O0):
<asinf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xec1(%rip),%xmm0
addss  -0x4(%rbp),%xmm0
movss  0xeb4(%rip),%xmm1
subss  -0x4(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <sqrtf@plt>
movss  -0x8(%rbp),%xmm0
mov    %eax,%edi
call   1040 <atan2f@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<asinf>:
push   %rax
movss  %xmm0,0x4(%rsp)
movss  0xed1(%rip),%xmm2
movaps %xmm0,%xmm1
addss  %xmm2,%xmm1
subss  %xmm0,%xmm2
mulss  %xmm1,%xmm2
cvttss2si %xmm2,%edi
call   1030 <sqrtf@plt>
movss  0x4(%rsp),%xmm0
mov    %eax,%edi
pop    %rax
jmp    1040 <atan2f@plt>

LLVM IR (-O0):
define float @asinf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = load float, float* %2
%5 = fadd float 1.000000e+00, %4
%6 = load float, float* %2
%7 = fsub float 1.000000e+00, %6
%8 = fmul float %5, %7
%9 = fptosi float %8 to i32
%10 = call i32 @sqrtf(i32 %9)
%11 = call float @atan2f(float %3, i32 %10)
ret float %11
}

LLVM IR (-O2):
define float @asinf(float %0) {
%2 = fadd float %0, 1.000000e+00
%3 = fsub float 1.000000e+00, %0
%4 = fmul float %2, %3
%5 = fptosi float %4 to i32
%6 = tail call i32 @sqrtf(i32 %5)
%7 = tail call float @atan2f(float %0, i32 %6)
ret float %7
}
char const *_default_auth_login(char const *username) { return username; }


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

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

LLVM IR (-O0):
define i8* @_default_auth_login(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
ret i8* %3
}

LLVM IR (-O2):
define i8* @_default_auth_login(i8* readnone returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ stu__cc(int);
int stu__off();
int stu__cc4(int a, int b, int c, int d) {
  stu__cc(a);
  stu__cc(b);
  stu__cc(c);
  stu__cc(d);
  return stu__off() - 4;
}


x86 assembly (clang, -O0):
<stu__cc4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <stu__cc@plt>
mov    -0x8(%rbp),%edi
call   1030 <stu__cc@plt>
mov    -0xc(%rbp),%edi
call   1030 <stu__cc@plt>
mov    -0x10(%rbp),%edi
call   1030 <stu__cc@plt>
mov    $0x0,%al
call   1040 <stu__off@plt>
sub    $0x4,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stu__cc4>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
call   1030 <stu__cc@plt>
mov    %ebx,%edi
call   1030 <stu__cc@plt>
mov    %ebp,%edi
call   1030 <stu__cc@plt>
mov    %r14d,%edi
call   1030 <stu__cc@plt>
xor    %eax,%eax
call   1040 <stu__off@plt>
add    $0xfffffffc,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @stu__cc4(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = call i32 @stu__cc(i32 %9)
%11 = load i32, i32* %6
%12 = call i32 @stu__cc(i32 %11)
%13 = load i32, i32* %7
%14 = call i32 @stu__cc(i32 %13)
%15 = load i32, i32* %8
%16 = call i32 @stu__cc(i32 %15)
%17 = call i32 (...) @stu__off()
%18 = sub nsw i32 %17, 4
ret i32 %18
}

LLVM IR (-O2):
define i32 @stu__cc4(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @stu__cc(i32 %0)
%6 = tail call i32 @stu__cc(i32 %1)
%7 = tail call i32 @stu__cc(i32 %2)
%8 = tail call i32 @stu__cc(i32 %3)
%9 = tail call i32 (...) @stu__off()
%10 = add nsw i32 %9, -4
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ irc_notice(char *, char *);
char *strtok(char *, char *);
void child_notice(char *p) {
  char *target, *msg;
  target = strtok(p, " ");
  msg = strtok(NULL, "");
  irc_notice(target, msg);
}


x86 assembly (clang, -O0):
<child_notice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strtok@plt>
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xeb6(%rip),%rsi
call   1040 <strtok@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <irc_notice@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<child_notice>:
push   %rbx
lea    0xed8(%rip),%rsi
call   1040 <strtok@plt>
mov    %rax,%rbx
lea    0xeca(%rip),%rsi
xor    %edi,%edi
call   1040 <strtok@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
pop    %rbx
jmp    1030 <irc_notice@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [1 x i8] zeroinitializer
define void @child_notice(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8* @strtok(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %3
%7 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
store i8* %7, i8** %4
%8 = load i8*, i8** %3
%9 = load i8*, i8** %4
%10 = call i32 @irc_notice(i8* %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [1 x i8] zeroinitializer
define void @child_notice(i8* %0) {
%2 = tail call i8* @strtok(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* @strtok(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @irc_notice(i8* %2, i8* %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;

/* Variables and functions */
int __setxid(int, int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int setresuid(uid_t ruid, uid_t euid, uid_t suid) {
  return __setxid(208, ruid, euid, suid);
}


x86 assembly (clang, -O0):
<setresuid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    $0xd0,%edi
call   1030 <__setxid@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setresuid>:
mov    %edx,%ecx
mov    %esi,%edx
mov    %edi,%esi
mov    $0xd0,%edi
jmp    1030 <__setxid@plt>

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

LLVM IR (-O2):
define i32 @setresuid(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @__setxid(i32 208, i32 %0, i32 %1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ foo(int *);
void baz4(int *p) { foo(p); }


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

x86 assembly (clang, -O2):
<baz4>:
jmp    1030 <foo@plt>

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

LLVM IR (-O2):
define void @baz4(i32* %0) {
%2 = tail call i32 @foo(i32* %0)
ret void
}
/* Type definitions */
typedef int uint_least64_t;

/* Variables and functions */
bool SHAREMIND_MAP_KEY_COPY_uint_least64_t(uint_least64_t *const dest,
                                           uint_least64_t const src) {
  return (((*dest) = src), true);
}


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

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

LLVM IR (-O0):
define i32 @SHAREMIND_MAP_KEY_COPY_uint_least64_t(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 = load i32*, i32** %3
store i32 %5, i32* %6
ret i32 1
}

LLVM IR (-O2):
define i32 @SHAREMIND_MAP_KEY_COPY_uint_least64_t(i32* nocapture writeonly %0, i32 %1) {
store i32 %1, i32* %0
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void ft_mem_del(void **ap) {
  (void)free(*ap);
  *ap = NULL;
  return;
}


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

x86 assembly (clang, -O2):
<ft_mem_del>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @ft_mem_del(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = load i8*, i8** %3
%5 = call i32 @free(i8* %4)
%6 = load i8**, i8*** %2
store i8* null, i8** %6
ret void
}

LLVM IR (-O2):
define void @ft_mem_del(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 @free(i8* %2)
store i8* null, i8** %0
ret void
}
void z80_debug(char *dstr) {}


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

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

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

LLVM IR (-O2):
define void @z80_debug(i8* nocapture %0) {
ret void
}
int fibonacci(int zahl) {
  if (zahl <= 2) {
    return 1;
  } else {
    return fibonacci(zahl - 1) + fibonacci(zahl - 2);
  }
}


x86 assembly (clang, -O0):
<fibonacci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jg     1131 <fibonacci+0x21>
movl   $0x1,-0x4(%rbp)
jmp    1154 <fibonacci+0x44>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <fibonacci@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibonacci@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibonacci>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%ebp
cmp    $0x3,%edi
jl     1145 <fibonacci+0x35>
mov    %edi,%ebx
add    $0x2,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x3(%rbx),%edi
call   1030 <fibonacci@plt>
add    %eax,%ebp
add    $0xfffffffe,%ebx
cmp    $0x4,%ebx
ja     1130 <fibonacci+0x20>
add    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibonacci(i32 %0) {
%2 = icmp slt i32 %0, 3
br i1 %2, label %13, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ %0, %1 ]
%5 = phi i32 [ %9, %3 ], [ 0, %1 ]
%6 = add nsw i32 %4, -1
%7 = tail call i32 @fibonacci(i32 %6)
%8 = add nsw i32 %4, -2
%9 = add nsw i32 %7, %5
%10 = icmp ult i32 %4, 5
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = add i32 %9, 1
br label %13
13: ; preds = %11, %1
%14 = phi i32 [ 1, %1 ], [ %12, %11 ]
ret i32 %14
}
int get_Parameter(unsigned char *pds) { return pds[8]; }


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

x86 assembly (clang, -O2):
<get_Parameter>:
movzbl 0x8(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @get_Parameter(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 8
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @get_Parameter(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 8
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
ret i32 %4
}
/* Type definitions */
struct dht_tracker {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct dht_tracker *);
void dt_cleanup(struct dht_tracker *tracker) { free(tracker); }


x86 assembly (clang, -O0):
<dt_cleanup>:
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):
<dt_cleanup>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.dht_tracker = type { i32 }
define void @dt_cleanup(%struct.dht_tracker* %0) {
%2 = alloca %struct.dht_tracker*
store %struct.dht_tracker* %0, %struct.dht_tracker** %2
%3 = load %struct.dht_tracker*, %struct.dht_tracker** %2
%4 = call i32 @free(%struct.dht_tracker* %3)
ret void
}

LLVM IR (-O2):
%struct.dht_tracker = type { i32 }
define void @dt_cleanup(%struct.dht_tracker* nocapture %0) {
%2 = tail call i32 @free(%struct.dht_tracker* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print();
int /*<<< orphan*/ unnest();
void Pendif(void) {
  print();
  unnest();
}


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

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

LLVM IR (-O0):
define void @Pendif() {
%1 = call i32 (...) @print()
%2 = call i32 (...) @unnest()
ret void
}

LLVM IR (-O2):
define void @Pendif() {
%1 = tail call i32 (...) @print()
%2 = tail call i32 (...) @unnest()
ret void
}
/* Variables and functions */
scalar_t__ malloc(int);
int main() {
  int *x;
  int y;
  x = (int *)malloc(4);
  *x = 20;
  y = *x--;
  return *x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x14,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4,%edi
call   1030 <malloc@plt>
movl   $0x14,(%rax)
mov    -0x4(%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
store i32 0, i32* %1
%4 = call i64 @malloc(i32 4)
%5 = inttoptr i64 %4 to i32*
store i32* %5, i32** %2
%6 = load i32*, i32** %2
store i32 20, i32* %6
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i32 -1
store i32* %8, i32** %2
%9 = load i32, i32* %7
store i32 %9, i32* %3
%10 = load i32*, i32** %2
%11 = load i32, i32* %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @malloc(i32 4)
%2 = inttoptr i64 %1 to i32*
store i32 20, i32* %2
%3 = getelementptr inbounds i32, i32* %2, i64 -1
%4 = load i32, i32* %3
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ rgph_f2u32(float);
int /*<<< orphan*/ rgph_u32_xxh32s_u32(int /*<<< orphan*/, uintptr_t);
uint32_t rgph_u32_xxh32s_f32(float value, uintptr_t seed) {
  return rgph_u32_xxh32s_u32(rgph_f2u32(value), seed);
}


x86 assembly (clang, -O0):
<rgph_u32_xxh32s_f32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <rgph_f2u32@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1040 <rgph_u32_xxh32s_u32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgph_u32_xxh32s_f32>:
push   %rbx
mov    %rdi,%rbx
call   1030 <rgph_f2u32@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <rgph_u32_xxh32s_u32@plt>

LLVM IR (-O0):
define i32 @rgph_u32_xxh32s_f32(float %0, i64 %1) {
%3 = alloca float
%4 = alloca i64
store float %0, float* %3
store i64 %1, i64* %4
%5 = load float, float* %3
%6 = call i32 @rgph_f2u32(float %5)
%7 = load i64, i64* %4
%8 = call i32 @rgph_u32_xxh32s_u32(i32 %6, i64 %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @rgph_u32_xxh32s_f32(float %0, i64 %1) {
%3 = tail call i32 @rgph_f2u32(float %0)
%4 = tail call i32 @rgph_u32_xxh32s_u32(i32 %3, i64 %1)
ret i32 %4
}
/* Variables and functions */
void _exit(void) {
  while (1)
    ;
}


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

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

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

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