xunge/DecIR huggingface dataset:
void untrack_pfn_moved(struct vm_area_struct *vma) {}


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

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

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

LLVM IR (-O2):
%struct.vm_area_struct = type opaque
define void @untrack_pfn_moved(%struct.vm_area_struct* nocapture %0) {
ret void
}
int is_commutative_expr(int itype) {
  return (itype == 0x80007) || (itype == 0x80008) || (itype == 0x80011);
}


x86 assembly (clang, -O0):
<is_commutative_expr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x80007,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1138 <is_commutative_expr+0x38>
mov    $0x1,%al
cmpl   $0x80008,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1138 <is_commutative_expr+0x38>
cmpl   $0x80011,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_commutative_expr>:
lea    -0x80007(%rdi),%eax
cmp    $0x2,%eax
setb   %al
cmp    $0x80011,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @is_commutative_expr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 524295
br i1 %4, label %11, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 524296
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 524305
br label %11
11: ; preds = %8, %5, %1
%12 = phi i1 [ true, %5 ], [ true, %1 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @is_commutative_expr(i32 %0) {
%2 = add i32 %0, -524295
%3 = icmp ult i32 %2, 2
%4 = icmp eq i32 %0, 524305
%5 = or i1 %4, %3
%6 = zext i1 %5 to i32
ret i32 %6
}
void ff_hevc_put_hevc_qpel_v48_12_sse4() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ malloc(int);
void *alloc_XKeyboardState(void) {
  XKeyboardState *_p = (XKeyboardState *)malloc(sizeof(XKeyboardState));
  if (_p == NULL)
    abort();
  return (void *)_p;
}


x86 assembly (clang, -O0):
<alloc_XKeyboardState>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1148 <alloc_XKeyboardState+0x28>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alloc_XKeyboardState>:
push   %rax
mov    $0x4,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     1132 <alloc_XKeyboardState+0x12>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i8* @alloc_XKeyboardState() {
%1 = alloca i32*
%2 = call i64 @malloc(i32 4)
%3 = inttoptr i64 %2 to i32*
store i32* %3, i32** %1
%4 = load i32*, i32** %1
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
%9 = load i32*, i32** %1
%10 = bitcast i32* %9 to i8*
ret i8* %10
}

LLVM IR (-O2):
define i8* @alloc_XKeyboardState() {
%1 = tail call i64 @malloc(i32 4)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = inttoptr i64 %1 to i8*
ret i8* %6
}
void null_action(void *data) {}


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

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

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

LLVM IR (-O2):
define void @null_action(i8* nocapture %0) {
ret void
}
void set_rmetricdump_content_dnumcolumns_dnumversion(int *numcolumns,
                                                     int *numversion) {
  extern void set_rmetricdump_read_content_dnumcolumns_dnumversion(
      int *numcolumns, int *numversion);
  set_rmetricdump_read_content_dnumcolumns_dnumversion(numcolumns, numversion);
}


x86 assembly (clang, -O0):
<set_rmetricdump_content_dnumcolumns_dnumversion>:
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 <set_rmetricdump_read_content_dnumcolumns_dnumversion@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_rmetricdump_content_dnumcolumns_dnumversion>:
jmp    1030 <set_rmetricdump_read_content_dnumcolumns_dnumversion@plt>

LLVM IR (-O0):
define void @set_rmetricdump_content_dnumcolumns_dnumversion(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
ret void
}

LLVM IR (-O2):
define void @set_rmetricdump_content_dnumcolumns_dnumversion(i32* %0, i32* %1) {
tail call void @set_rmetricdump_read_content_dnumcolumns_dnumversion(i32* %0, i32* %1)
ret void
}
/* Variables and functions */
void OPENSSL_cleanse(void *ptr, size_t len) {}


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

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

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

LLVM IR (-O2):
define void @OPENSSL_cleanse(i8* nocapture %0, i64 %1) {
ret void
}
/* Type definitions */
struct timezone {
  int dummy;
};
struct timeval {
  int tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, struct timezone *);
double getTime_ms(void) {
  struct timeval sTime;
  struct timezone tz;
  double dTime_ms;
  gettimeofday(&sTime, &tz);
  dTime_ms = ((double)sTime.tv_sec * (double)1000);
  dTime_ms += (sTime.tv_usec / 1000);
  return dTime_ms;
}


x86 assembly (clang, -O0):
<getTime_ms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <gettimeofday@plt>
cvtsi2sdq -0x8(%rbp),%xmm0
movsd  0xecd(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getTime_ms>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
mov    %rsp,%rsi
call   1030 <gettimeofday@plt>
cvtsi2sdq 0x10(%rsp),%xmm1
mulsd  0xed0(%rip),%xmm1
movslq 0x8(%rsp),%rax
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
%struct.timezone = type { i32 }
define double @getTime_ms() {
%1 = alloca %struct.timeval
%2 = alloca %struct.timezone
%3 = alloca double
%4 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* %2)
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = fmul double %7, 1.000000e+03
store double %8, double* %3
%9 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%10 = load i32, i32* %9
%11 = sdiv i32 %10, 1000
%12 = sitofp i32 %11 to double
%13 = load double, double* %3
%14 = fadd double %13, %12
store double %14, double* %3
%15 = load double, double* %3
ret double %15
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
%struct.timezone = type { i32 }
define double @getTime_ms() {
%1 = alloca %struct.timeval
%2 = alloca %struct.timezone
%3 = bitcast %struct.timeval* %1 to i8*
%4 = bitcast %struct.timezone* %2 to i8*
%5 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* %2)
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load i64, i64* %6
%8 = sitofp i64 %7 to double
%9 = fmul double %8, 1.000000e+03
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%11 = load i32, i32* %10
%12 = sdiv i32 %11, 1000
%13 = sitofp i32 %12 to double
%14 = fadd double %9, %13
ret double %14
}
void capturingNamed2CAPTURING_NAMED() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ bomb(char *);
extern pid_t fork(void) { bomb("fork"); }


x86 assembly (clang, -O0):
<fork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <bomb@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [5 x i8] c"fork\00"
define i32 @fork() {
%1 = alloca i32
%2 = call i32 @bomb(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [5 x i8] c"fork\00"
define i32 @fork() {
%1 = tail call i32 @bomb(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ UARTInit(int);
void routerInit() { UARTInit(9600); }


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

x86 assembly (clang, -O2):
<routerInit>:
mov    $0x2580,%edi
jmp    1030 <UARTInit@plt>

LLVM IR (-O0):
define void @routerInit() {
%1 = call i32 @UARTInit(i32 9600)
ret void
}

LLVM IR (-O2):
define void @routerInit() {
%1 = tail call i32 @UARTInit(i32 9600)
ret void
}
void lll_prof_enter_lll(void) {}


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

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

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

LLVM IR (-O2):
define void @lll_prof_enter_lll() {
ret void
}
/* Variables and functions */
double isinf(double);
double function_isinf(double x) { return isinf(x); }


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

x86 assembly (clang, -O2):
<function_isinf>:
jmp    1030 <isinf@plt>

LLVM IR (-O0):
define double @function_isinf(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @isinf(double %3)
ret double %4
}

LLVM IR (-O2):
define double @function_isinf(double %0) {
%2 = tail call double @isinf(double %0)
ret double %2
}
const char *TA_GetVersionBuild(void) { return "0"; }


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

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

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

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
define i8* @TA_GetVersionBuild() {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
struct pollfd {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int poll(struct pollfd *fds, int nfds, int timeout) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<poll>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    0x2ed3(%rip),%rax
mov    (%rax),%ecx
mov    0x2eba(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<poll>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.pollfd = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @poll(%struct.pollfd* %0, i32 %1, i32 %2) {
%4 = alloca %struct.pollfd*
%5 = alloca i32
%6 = alloca i32
store %struct.pollfd* %0, %struct.pollfd** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* @ENOSYS
store i32 %7, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
%struct.pollfd = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @poll(%struct.pollfd* nocapture readnone %0, i32 %1, i32 %2) {
%4 = load i32, i32* @ENOSYS
store i32 %4, i32* @errno
ret i32 -1
}
/* Type definitions */
struct pmaplist {
  int dummy;
};
typedef int /*<<< orphan*/ bool_t;
typedef int /*<<< orphan*/ XDR;

/* Variables and functions */
int /*<<< orphan*/ xdr_pmaplist(int /*<<< orphan*/ *, struct pmaplist **);
bool_t xdr_pmaplist_ptr(XDR *xdrs, struct pmaplist *rp) {
  return xdr_pmaplist(xdrs, (struct pmaplist **)(void *)rp);
}


x86 assembly (clang, -O0):
<xdr_pmaplist_ptr>:
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 <xdr_pmaplist@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xdr_pmaplist_ptr>:
jmp    1030 <xdr_pmaplist@plt>

LLVM IR (-O0):
%struct.pmaplist = type { i32 }
define i32 @xdr_pmaplist_ptr(i32* %0, %struct.pmaplist* %1) {
%3 = alloca i32*
%4 = alloca %struct.pmaplist*
store i32* %0, i32** %3
store %struct.pmaplist* %1, %struct.pmaplist** %4
%5 = load i32*, i32** %3
%6 = load %struct.pmaplist*, %struct.pmaplist** %4
%7 = bitcast %struct.pmaplist* %6 to i8*
%8 = bitcast i8* %7 to %struct.pmaplist**
%9 = call i32 @xdr_pmaplist(i32* %5, %struct.pmaplist** %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.pmaplist = type { i32 }
define i32 @xdr_pmaplist_ptr(i32* %0, %struct.pmaplist* %1) {
%3 = bitcast %struct.pmaplist* %1 to %struct.pmaplist**
%4 = tail call i32 @xdr_pmaplist(i32* %0, %struct.pmaplist** %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int n;
  int *p;
  n = 151;
  p = &n;
  printf("n is %d.\n", n);
  printf("n is %d.\n", *p);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x97,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x97,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [10 x i8] c"n is %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 151)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 151)
ret i32 0
}
void gtk_file_chooser_action_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_file_chooser_action_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  char *pointer = "String pointer";
  char array[] = "String array";
  printf("%s\n", pointer);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x1d(%rbp)
mov    0xedc(%rip),%eax
mov    %eax,-0x15(%rbp)
mov    0xed7(%rip),%al
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [15 x i8] c"String pointer\00"
@__const.main.array = [13 x i8] c"String array\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca [13 x i8]
store i32 0, i32* %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8** %2
%4 = bitcast [13 x i8]* %3 to i8*
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"String pointer\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int __sigprocmask(int, int /*<<< orphan*/ const *, int /*<<< orphan*/ *);
int errno;
int pthread_sigmask(int how, const sigset_t *newmask, sigset_t *oldmask) {
  int result = __sigprocmask(how, newmask, oldmask);
  if (result < 0)
    result = errno;
  return result;
}


x86 assembly (clang, -O0):
<pthread_sigmask>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <__sigprocmask@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    114c <pthread_sigmask+0x3c>
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pthread_sigmask>:
push   %rax
call   1030 <__sigprocmask@plt>
test   %eax,%eax
jns    1123 <pthread_sigmask+0x13>
mov    0x2ebf(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@errno = global i32 0
define i32 @pthread_sigmask(i32 %0, i32* %1, i32* %2) {
%4 = tail call i32 @__sigprocmask(i32 %0, i32* %1, i32* %2)
%5 = icmp slt i32 %4, 0
%6 = load i32, i32* @errno
%7 = select i1 %5, i32 %6, i32 %4
ret i32 %7
}
/* Type definitions */
struct hashtable {
  int dummy;
};

/* Variables and functions */
int hashtable_get_target(struct hashtable *, void const *, size_t, void **,
                         int);
int hashtable_get(struct hashtable *ht, const void *key, size_t keylen,
                  void **data) {
  return hashtable_get_target(ht, key, keylen, (void **)data, 1);
}


x86 assembly (clang, -O0):
<hashtable_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1,%r8d
call   1030 <hashtable_get_target@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hashtable_get>:
mov    $0x1,%r8d
jmp    1030 <hashtable_get_target@plt>

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

LLVM IR (-O2):
%struct.hashtable = type { i32 }
define i32 @hashtable_get(%struct.hashtable* %0, i8* %1, i64 %2, i8** %3) {
%5 = tail call i32 @hashtable_get_target(%struct.hashtable* %0, i8* %1, i64 %2, i8** %3, i32 1)
ret i32 %5
}
/* Variables and functions */
bool is_valid_uuid(char value[]) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @is_valid_uuid(i8* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int /*<<< orphan*/ SIGKILL;
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ SIG_SETMASK;
int /*<<< orphan*/ WRITE(int /*<<< orphan*/);
int /*<<< orphan*/ e(int);
int /*<<< orphan*/ pause();
int /*<<< orphan*/ sigfillset(int /*<<< orphan*/ *);
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sigprocmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                               int /*<<< orphan*/ *);
void test_kill_child() {
  sigset_t set;
  signal(SIGKILL, SIG_IGN);
  sigfillset(&set);
  sigprocmask(SIG_SETMASK, &set, NULL);
  WRITE(0);
  pause();
  e(100);
}


x86 assembly (clang, -O0):
<test_kill_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
mov    0x2e68(%rip),%rax
mov    (%rax),%esi
call   1040 <signal@plt>
lea    -0x4(%rbp),%rdi
call   1050 <sigfillset@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    -0x4(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
xor    %edi,%edi
call   1080 <WRITE@plt>
mov    $0x0,%al
call   1060 <pause@plt>
mov    $0x64,%edi
call   1070 <e@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_kill_child>:
push   %rbx
sub    $0x10,%rsp
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
call   1040 <signal@plt>
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <sigfillset@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
xor    %edi,%edi
call   1080 <WRITE@plt>
xor    %eax,%eax
call   1060 <pause@plt>
mov    $0x64,%edi
call   1070 <e@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@SIGKILL = global i32 0
@SIG_IGN = global i32 0
@SIG_SETMASK = global i32 0
define void @test_kill_child() {
%1 = alloca i32
%2 = load i32, i32* @SIGKILL
%3 = load i32, i32* @SIG_IGN
%4 = call i32 @signal(i32 %2, i32 %3)
%5 = call i32 @sigfillset(i32* %1)
%6 = load i32, i32* @SIG_SETMASK
%7 = call i32 @sigprocmask(i32 %6, i32* %1, i32* null)
%8 = call i32 @WRITE(i32 0)
%9 = call i32 (...) @pause()
%10 = call i32 @e(i32 100)
ret void
}

LLVM IR (-O2):
@SIGKILL = global i32 0
@SIG_IGN = global i32 0
@SIG_SETMASK = global i32 0
define void @test_kill_child() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = load i32, i32* @SIGKILL
%4 = load i32, i32* @SIG_IGN
%5 = tail call i32 @signal(i32 %3, i32 %4)
%6 = call i32 @sigfillset(i32* %1)
%7 = load i32, i32* @SIG_SETMASK
%8 = call i32 @sigprocmask(i32 %7, i32* %1, i32* null)
%9 = call i32 @WRITE(i32 0)
%10 = call i32 (...) @pause()
%11 = call i32 @e(i32 100)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ system(char *);
FILE *initEc() {
  system("modprobe ec_sys write_support=1");
  return fopen("/sys/kernel/debug/ec/ec0/io", "r+");
}


x86 assembly (clang, -O0):
<initEc>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <system@plt>
lea    0xee9(%rip),%rdi
lea    0xefe(%rip),%rsi
call   1040 <fopen@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initEc>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <system@plt>
lea    0xeec(%rip),%rdi
lea    0xf01(%rip),%rsi
pop    %rax
jmp    1040 <fopen@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"modprobe ec_sys write_support=1\00"
@.str.1 = [28 x i8] c"/sys/kernel/debug/ec/ec0/io\00"
@.str.2 = [3 x i8] c"r+\00"
define i32* @initEc() {
%1 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32* @fopen(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
ret i32* %2
}

LLVM IR (-O2):
@.str = [32 x i8] c"modprobe ec_sys write_support=1\00"
@.str.1 = [28 x i8] c"/sys/kernel/debug/ec/ec0/io\00"
@.str.2 = [3 x i8] c"r+\00"
define noalias i32* @initEc() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
ret i32* %2
}
int konnect_sockets_init() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @konnect_sockets_init() {
ret i32 0
}
/* Variables and functions */
double alea();
double r1(void) { return 0.95 + 0.1 * alea(); }


x86 assembly (clang, -O0):
<r1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <alea@plt>
movsd  0xedd(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xed9(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<r1>:
push   %rax
xor    %eax,%eax
call   1030 <alea@plt>
mulsd  0xee0(%rip),%xmm0
addsd  0xee0(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @r1() {
%1 = call double (...) @alea()
%2 = call double @llvm.fmuladd.f64(double 1.000000e-01, double %1, double 0x3FEE666666666666)
ret double %2
}

LLVM IR (-O2):
define double @r1() {
%1 = tail call double (...) @alea()
%2 = tail call double @llvm.fmuladd.f64(double %1, double 1.000000e-01, double 0x3FEE666666666666)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void __attribute__((destructor)) libx2_unloaded(void) {
  printf("Libx2: unloaded\n");
}


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"Libx2: unloaded\0A\00"
@llvm.global_dtors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @libx2_unloaded, i8* null }]
define void @libx2_unloaded() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@llvm.global_dtors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @libx2_unloaded, i8* null }]
@str = [16 x i8] c"Libx2: unloaded\00"
define void @libx2_unloaded() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ iscntrl(unsigned int);
int _eml_parse822_is_ctl(char c) { return iscntrl((unsigned)c) || c == 127; }


x86 assembly (clang, -O0):
<_eml_parse822_is_ctl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <iscntrl@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x2(%rbp)
jne    1146 <_eml_parse822_is_ctl+0x36>
movsbl -0x1(%rbp),%eax
cmp    $0x7f,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_eml_parse822_is_ctl>:
push   %rbx
mov    %edi,%ebx
call   1030 <iscntrl@plt>
test   %rax,%rax
setne  %al
cmp    $0x7f,%bl
sete   %cl
or     %al,%cl
movzbl %cl,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @_eml_parse822_is_ctl(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = call i64 @iscntrl(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 127
br label %11
11: ; preds = %7, %1
%12 = phi i1 [ true, %1 ], [ %10, %7 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @_eml_parse822_is_ctl(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = tail call i64 @iscntrl(i32 %2)
%4 = icmp ne i64 %3, 0
%5 = icmp eq i8 %0, 127
%6 = or i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int GetInt();
int /*<<< orphan*/ printf(char *);
int getPositiveInt(void) {
  int n;
  do {
    printf("Height: ");
    n = GetInt();
  } while (n < 0 || n > 23);
  return n;
}


x86 assembly (clang, -O0):
<getPositiveInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <GetInt@plt>
mov    %eax,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1157 <getPositiveInt+0x37>
cmpl   $0x17,-0x4(%rbp)
setg   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    1128 <getPositiveInt+0x8>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getPositiveInt>:
push   %rbx
lea    0xed8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <GetInt@plt>
cmp    $0x17,%eax
ja     1130 <getPositiveInt+0x10>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Height: \00"
define i32 @getPositiveInt() {
%1 = alloca i32
br label %2
2: ; preds = %11, %0
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @GetInt()
store i32 %4, i32* %1
br label %5
5: ; preds = %2
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load i32, i32* %1
%10 = icmp sgt i32 %9, 23
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
br i1 %12, label %2, label %13
13: ; preds = %11
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
@.str = [9 x i8] c"Height: \00"
define i32 @getPositiveInt() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @GetInt()
%4 = icmp ugt i32 %3, 23
br i1 %4, label %1, label %5
5: ; preds = %1
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ uint32_t;
struct smc_call {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ smc64_result(struct smc_call *, unsigned int,
                                int /*<<< orphan*/);
void smc32_result(struct smc_call *smc, unsigned i, uint32_t v) {
  uint64_t v64 = v;
  smc64_result(smc, i, v64);
}


x86 assembly (clang, -O0):
<smc32_result>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1030 <smc64_result@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smc32_result>:
jmp    1030 <smc64_result@plt>

LLVM IR (-O0):
%struct.smc_call = type { i32 }
define void @smc32_result(%struct.smc_call* %0, i32 %1, i32 %2) {
%4 = alloca %struct.smc_call*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store %struct.smc_call* %0, %struct.smc_call** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
store i32 %8, i32* %7
%9 = load %struct.smc_call*, %struct.smc_call** %4
%10 = load i32, i32* %5
%11 = load i32, i32* %7
%12 = call i32 @smc64_result(%struct.smc_call* %9, i32 %10, i32 %11)
ret void
}

LLVM IR (-O2):
%struct.smc_call = type { i32 }
define void @smc32_result(%struct.smc_call* %0, i32 %1, i32 %2) {
%4 = tail call i32 @smc64_result(%struct.smc_call* %0, i32 %1, i32 %2)
ret void
}
double f_blend(double numerator, double denominator) {
  double p = 2 * denominator * denominator;
  double u = numerator / denominator;
  double u2 = u * u;
  return (u * u2 * (10 - p + (2 * p - 15) * u + (6 - p) * u2));
}


x86 assembly (clang, -O0):
<f_blend>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf02(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  0xebb(%rip),%xmm1
subsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
addsd  %xmm2,%xmm2
movsd  0xe9d(%rip),%xmm3
addsd  %xmm3,%xmm2
movsd  -0x20(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xe7c(%rip),%xmm1
subsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_blend>:
movapd %xmm1,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
divsd  %xmm1,%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xee0(%rip),%xmm3
subsd  %xmm2,%xmm3
movsd  0xee4(%rip),%xmm4
subsd  %xmm2,%xmm4
addsd  %xmm2,%xmm2
addsd  0xecc(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm4
addsd  %xmm2,%xmm4
mulsd  %xmm4,%xmm0
ret

LLVM IR (-O0):
define double @f_blend(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %3
store double %1, double* %4
%8 = load double, double* %4
%9 = fmul double 2.000000e+00, %8
%10 = load double, double* %4
%11 = fmul double %9, %10
store double %11, double* %5
%12 = load double, double* %3
%13 = load double, double* %4
%14 = fdiv double %12, %13
store double %14, double* %6
%15 = load double, double* %6
%16 = load double, double* %6
%17 = fmul double %15, %16
store double %17, double* %7
%18 = load double, double* %6
%19 = load double, double* %7
%20 = fmul double %18, %19
%21 = load double, double* %5
%22 = fsub double 1.000000e+01, %21
%23 = load double, double* %5
%24 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %23, double -1.500000e+01)
%25 = load double, double* %6
%26 = call double @llvm.fmuladd.f64(double %24, double %25, double %22)
%27 = load double, double* %5
%28 = fsub double 6.000000e+00, %27
%29 = load double, double* %7
%30 = call double @llvm.fmuladd.f64(double %28, double %29, double %26)
%31 = fmul double %20, %30
ret double %31
}

LLVM IR (-O2):
define double @f_blend(double %0, double %1) {
%3 = fmul double %1, 2.000000e+00
%4 = fmul double %3, %1
%5 = fdiv double %0, %1
%6 = fmul double %5, %5
%7 = fmul double %5, %6
%8 = fsub double 1.000000e+01, %4
%9 = tail call double @llvm.fmuladd.f64(double %4, double 2.000000e+00, double -1.500000e+01)
%10 = tail call double @llvm.fmuladd.f64(double %9, double %5, double %8)
%11 = fsub double 6.000000e+00, %4
%12 = tail call double @llvm.fmuladd.f64(double %11, double %6, double %10)
%13 = fmul double %7, %12
ret double %13
}
void ZoneDelta(int *pnRunningTotal, char *psString) {}


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

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

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

LLVM IR (-O2):
define void @ZoneDelta(i32* nocapture %0, i8* nocapture %1) {
ret void
}
int fun715() { return 715; }


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

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

LLVM IR (-O0):
define i32 @fun715() {
ret i32 715
}

LLVM IR (-O2):
define i32 @fun715() {
ret i32 715
}
int memcmp7f(char *a, char *b, int len) {
  while (len--) {
    if ((*a & 0x7f) != (*b & 0x7f))
      return (1);
    a++;
    b++;
  }
  return (0);
}


x86 assembly (clang, -O0):
<memcmp7f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x1c(%rbp)
cmp    $0x0,%eax
je     1168 <memcmp7f+0x68>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
and    $0x7f,%eax
mov    -0x18(%rbp),%rcx
movsbl (%rcx),%ecx
and    $0x7f,%ecx
cmp    %ecx,%eax
je     114b <memcmp7f+0x4b>
movl   $0x1,-0x4(%rbp)
jmp    116f <memcmp7f+0x6f>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    110f <memcmp7f+0xf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<memcmp7f>:
test   %edx,%edx
je     1124 <memcmp7f+0x24>
mov    %edx,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movzbl (%rsi,%rcx,1),%edx
xor    (%rdi,%rcx,1),%dl
test   $0x7f,%dl
jne    1127 <memcmp7f+0x27>
add    $0x1,%rcx
cmp    %ecx,%eax
jne    1110 <memcmp7f+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @memcmp7f(i8* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %19, label %5
5: ; preds = %3, %15
%6 = phi i32 [ %9, %15 ], [ %2, %3 ]
%7 = phi i8* [ %17, %15 ], [ %1, %3 ]
%8 = phi i8* [ %16, %15 ], [ %0, %3 ]
%9 = add nsw i32 %6, -1
%10 = load i8, i8* %8
%11 = load i8, i8* %7
%12 = xor i8 %11, %10
%13 = and i8 %12, 127
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %5
%16 = getelementptr inbounds i8, i8* %8, i64 1
%17 = getelementptr inbounds i8, i8* %7, i64 1
%18 = icmp eq i32 %9, 0
br i1 %18, label %19, label %5
19: ; preds = %5, %15, %3
%20 = phi i32 [ 0, %3 ], [ 0, %15 ], [ 1, %5 ]
ret i32 %20
}
adr0adrx1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{
  if ((*((short *)10000000)) <= (((short *)11111111)[x1]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adr0adrx1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    $0x989680,%eax
movswl (%rax),%eax
movslq -0x10(%rbp),%rdx
mov    $0xa98ac7,%ecx
movswl (%rcx,%rdx,2),%ecx
cmp    %ecx,%eax
jg     1148 <adr0adrx1+0x48>
movl   $0x1,-0x4(%rbp)
jmp    114f <adr0adrx1+0x4f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adr0adrx1>:
movzwl 0x989680,%edx
movslq %ecx,%rcx
xor    %eax,%eax
cmp    0xa98ac7(%rcx,%rcx,1),%dx
setle  %al
ret

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

LLVM IR (-O2):
define i32 @adr0adrx1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture readnone %4, i16* nocapture readnone %5) {
%7 = load i16, i16* inttoptr (i64 10000000 to i16*)
%8 = sext i32 %3 to i64
%9 = getelementptr inbounds i16, i16* inttoptr (i64 11111111 to i16*), i64 %8
%10 = load i16, i16* %9
%11 = icmp sle i16 %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
void help(char *prog) { printf("%s: %s (ls|dump) file [files]\n", prog, prog); }


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
mov    %rdx,%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"%s: %s (ls|dump) file [files]\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"%s: %s (ls|dump) file [files]\0A\00"
define void @help(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ saveGame();
void input_save(void) { saveGame(); }


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

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

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

LLVM IR (-O2):
define void @input_save() {
%1 = tail call i32 (...) @saveGame()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ gid_t;

/* Variables and functions */
int setgid(int /*<<< orphan*/);
__attribute__((__weak__, __always___)) int softboundmpx_setgid(gid_t gid) {
  return setgid(gid);
}


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

x86 assembly (clang, -O2):
<softboundmpx_setgid>:
jmp    1030 <setgid@plt>

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

LLVM IR (-O2):
define weak i32 @softboundmpx_setgid(i32 %0) {
%2 = tail call i32 @setgid(i32 %0)
ret i32 %2
}
int foo_inbranch(int *b, int c) { return *b + c; }


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

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

LLVM IR (-O0):
define i32 @foo_inbranch(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* %5
%7 = load i32, i32* %4
%8 = add nsw i32 %6, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @foo_inbranch(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* %0
%4 = add nsw i32 %3, %1
ret i32 %4
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int copy_dobldobl_container_to_target_solutions(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(256, a, b, c, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<copy_dobldobl_container_to_target_solutions>:
mov    $0x100,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @copy_dobldobl_container_to_target_solutions() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 256, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, char *);
void print_version(const char *name) {
  printf("%s: z/VM CP command interface version %s\n"
         "Copyright IBM Corp. 2005, 2006\n",
         name, "S390_TOOLS_RELEASE");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
lea    0xf1b(%rip),%rdx
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
lea    0xf28(%rip),%rdx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [73 x i8] c"%s: z/VM CP command interface version %s\0ACopyright IBM Corp. 2005, 2006\0A\00"
@.str.1 = [19 x i8] c"S390_TOOLS_RELEASE\00"
define void @print_version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [73 x i8] c"%s: z/VM CP command interface version %s\0ACopyright IBM Corp. 2005, 2006\0A\00"
@.str.1 = [19 x i8] c"S390_TOOLS_RELEASE\00"
define void @print_version(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}