xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int a = 100;
  printf("a = %d\n", a);
  printf("Hello%n\n", &a);
  printf("a = %d\n", a);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x64,0xc(%rsp)
lea    0xedc(%rip),%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"a = %d\0A\00"
@.str.1 = [9 x i8] c"Hello%n\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 100, i32* %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 100)
%4 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ PoiLocationHandle();
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
void PoiLocationUpdated() { UAVObjUpdated(PoiLocationHandle()); }


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

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

LLVM IR (-O0):
define void @PoiLocationUpdated() {
%1 = call i32 (...) @PoiLocationHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @PoiLocationUpdated() {
%1 = tail call i32 (...) @PoiLocationHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ cpu_set_t;

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
void cpuset_free(cpu_set_t *set) { (free(set)); }


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

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

LLVM IR (-O2):
define void @cpuset_free(i32* nocapture %0) {
%2 = tail call i32 @free(i32* %0)
ret void
}
/* Type definitions */
struct timespec {
  int /*<<< orphan*/ tv_nsec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
void timespec_copy(struct timespec *dest, const struct timespec *source) {
  dest->tv_sec = source->tv_sec;
  dest->tv_nsec = source->tv_nsec;
}


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

x86 assembly (clang, -O2):
<timespec_copy>:
mov    0x4(%rsi),%eax
mov    %eax,0x4(%rdi)
mov    (%rsi),%eax
mov    %eax,(%rdi)
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i32 }
define void @timespec_copy(%struct.timespec* %0, %struct.timespec* %1) {
%3 = alloca %struct.timespec*
%4 = alloca %struct.timespec*
store %struct.timespec* %0, %struct.timespec** %3
store %struct.timespec* %1, %struct.timespec** %4
%5 = load %struct.timespec*, %struct.timespec** %4
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i32 0, i32 1
%7 = load i32, i32* %6
%8 = load %struct.timespec*, %struct.timespec** %3
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %8, i32 0, i32 1
store i32 %7, i32* %9
%10 = load %struct.timespec*, %struct.timespec** %4
%11 = getelementptr inbounds %struct.timespec, %struct.timespec* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = load %struct.timespec*, %struct.timespec** %3
%14 = getelementptr inbounds %struct.timespec, %struct.timespec* %13, i32 0, i32 0
store i32 %12, i32* %14
ret void
}

LLVM IR (-O2):
%struct.timespec = type { i32, i32 }
define void @timespec_copy(%struct.timespec* nocapture writeonly %0, %struct.timespec* nocapture %1) {
%3 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%4 = load i32, i32* %3
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
store i32 %4, i32* %5
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%7 = load i32, i32* %6
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
store i32 %7, i32* %8
ret void
}
int space(int c) { return (c == ' ' || c == '\t' || c == '\n'); }


x86 assembly (clang, -O0):
<space>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     112f <space+0x2f>
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     112f <space+0x2f>
cmpl   $0xa,-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):
<space>:
mov    $0x1,%eax
cmp    $0x9,%edi
je     110f <space+0xf>
cmp    $0x20,%edi
jne    1110 <space+0x10>
ret
xor    %eax,%eax
cmp    $0xa,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @space(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 32
br i1 %4, label %11, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 9
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 10
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 @space(i32 %0) {
switch i32 %0, label %2 [
i32 32, label %5
i32 9, label %5
]
2: ; preds = %1
%3 = icmp eq i32 %0, 10
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ DeinitFields();
void SwitchFrom_68() { DeinitFields(); }


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

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

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

LLVM IR (-O2):
define void @SwitchFrom_68() {
%1 = tail call i32 (...) @DeinitFields()
ret void
}
void SWAP3(char **p_1, char **p_2) {
  char *tmp;
  tmp = *p_1;
  *p_1 = *p_2;
  *p_2 = tmp;
}


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

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

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

LLVM IR (-O2):
define void @SWAP3(i8** nocapture %0, i8** nocapture %1) {
%3 = load i8*, i8** %0
%4 = load i8*, i8** %1
store i8* %4, i8** %0
store i8* %3, i8** %1
ret void
}
int calc_blsi_u32(int src1, int src2) { return (-src1) & (src2); }


x86 assembly (clang, -O0):
<calc_blsi_u32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xor    %eax,%eax
sub    -0x4(%rbp),%eax
and    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_blsi_u32>:
mov    %edi,%eax
neg    %eax
and    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @calc_blsi_u32(i32 %0, i32 %1) {
%3 = sub nsw i32 0, %0
%4 = and i32 %3, %1
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ load_stream(int /*<<< orphan*/ *);
int /*<<< orphan*/ load_syms(int /*<<< orphan*/ *);
int /*<<< orphan*/ *open_file(char const *, char *);
void load_file(const char *filename) {
  FILE *f = open_file(filename, "rb");
  load_syms(f);
  load_stream(f);
  fclose(f);
}


x86 assembly (clang, -O0):
<load_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xea9(%rip),%rsi
call   1040 <open_file@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <load_syms@plt>
mov    -0x10(%rbp),%rdi
call   1060 <load_stream@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load_file>:
push   %rbx
lea    0xeb8(%rip),%rsi
call   1040 <open_file@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <load_syms@plt>
mov    %rbx,%rdi
call   1060 <load_stream@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <fclose@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
define void @load_file(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32* @open_file(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = call i32 @load_syms(i32* %6)
%8 = load i32*, i32** %3
%9 = call i32 @load_stream(i32* %8)
%10 = load i32*, i32** %3
%11 = call i32 @fclose(i32* %10)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
define void @load_file(i8* %0) {
%2 = tail call i32* @open_file(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @load_syms(i32* %2)
%4 = tail call i32 @load_stream(i32* %2)
%5 = tail call i32 @fclose(i32* %2)
ret void
}
int cmpIntAsc(int x, int y) { return x <= y; }


x86 assembly (clang, -O0):
<cmpIntAsc>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmpIntAsc>:
xor    %eax,%eax
cmp    %esi,%edi
setle  %al
ret

LLVM IR (-O0):
define i32 @cmpIntAsc(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 = icmp sle i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @cmpIntAsc(i32 %0, i32 %1) {
%3 = icmp sle i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *);
char *util_print_time(long int t) {
  static char s[40];
  (void)sprintf(s, "**** sec");
  return s;
}


x86 assembly (clang, -O0):
<util_print_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0x2f1d(%rip),%rdi
lea    0xed6(%rip),%rsi
call   1030 <sprintf@plt>
lea    0x2f0a(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<util_print_time>:
movabs $0x636573202a2a2a2a,%rax
73 65 63
mov    %rax,0x2f1f(%rip)
movb   $0x0,0x2f20(%rip)
lea    0x2f11(%rip),%rax
ret

LLVM IR (-O0):
@util_print_time.s = internal global [40 x i8] zeroinitializer
@.str = [9 x i8] c"**** sec\00"
define i8* @util_print_time(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = call i32 @sprintf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @util_print_time.s, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
ret i8* getelementptr inbounds ([40 x i8], [40 x i8]* @util_print_time.s, i64 0, i64 0)
}

LLVM IR (-O2):
@util_print_time.s = internal global [40 x i8] zeroinitializer
@.str = [9 x i8] c"**** sec\00"
define i8* @util_print_time(i64 %0) {
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(9) getelementptr inbounds ([40 x i8], [40 x i8]* @util_print_time.s, i64 0, i64 0), i8* align 1 dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i64 9, i1 false)
ret i8* getelementptr inbounds ([40 x i8], [40 x i8]* @util_print_time.s, i64 0, i64 0)
}
long gf_xor(long a, long b) {
  long result;
  result = a ^ b;
  return result;
}


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

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

LLVM IR (-O0):
define i64 @gf_xor(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = xor i64 %6, %7
store i64 %8, i64* %5
%9 = load i64, i64* %5
ret i64 %9
}

LLVM IR (-O2):
define i64 @gf_xor(i64 %0, i64 %1) {
%3 = xor i64 %1, %0
ret i64 %3
}
/* Variables and functions */
int nrf_802154_request_cca(int);
bool nrf_802154_cca(void) {
  bool result;
  (void)(0x0006UL);
  result = nrf_802154_request_cca(0x00);
  (void)(0x0006UL);
  return result;
}


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

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

LLVM IR (-O0):
define i32 @nrf_802154_cca() {
%1 = alloca i32
%2 = call i32 @nrf_802154_request_cca(i32 0)
store i32 %2, i32* %1
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @nrf_802154_cca() {
%1 = tail call i32 @nrf_802154_request_cca(i32 0)
ret i32 %1
}
/* Type definitions */
struct mxq_task {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct mxq_task *);
void __delete_task(struct mxq_task *task) {
  do {
    if (task)
      free(task);
    task = NULL;
  } while (0);
}


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

x86 assembly (clang, -O2):
<__delete_task>:
test   %rdi,%rdi
je     111a <__delete_task+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.mxq_task = type { i32 }
define void @__delete_task(%struct.mxq_task* %0) {
%2 = alloca %struct.mxq_task*
store %struct.mxq_task* %0, %struct.mxq_task** %2
br label %3
3: ; preds = %1
%4 = load %struct.mxq_task*, %struct.mxq_task** %2
%5 = icmp ne %struct.mxq_task* %4, null
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = load %struct.mxq_task*, %struct.mxq_task** %2
%8 = call i32 @free(%struct.mxq_task* %7)
br label %9
9: ; preds = %6, %3
store %struct.mxq_task* null, %struct.mxq_task** %2
br label %10
10: ; preds = %9
ret void
}

LLVM IR (-O2):
%struct.mxq_task = type { i32 }
define void @__delete_task(%struct.mxq_task* %0) {
%2 = icmp eq %struct.mxq_task* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(%struct.mxq_task* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
void mixedSignedness13(int a) {
  unsigned max = ((~0U) & ((~0U) >> 1));
  clang_analyzer_eval(a < max);
  clang_analyzer_eval((a + 2) < max);
  clang_analyzer_eval((a + 2U) < max);
}


x86 assembly (clang, -O0):
<mixedSignedness13>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x7fffffff,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mixedSignedness13>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %edi,%edi
cmp    $0x7fffffff,%ebx
setb   %dil
call   1030 <clang_analyzer_eval@plt>
add    $0x2,%ebx
xor    %ebp,%ebp
cmp    $0x7fffffff,%ebx
setb   %bpl
mov    %ebp,%edi
call   1030 <clang_analyzer_eval@plt>
mov    %ebp,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <clang_analyzer_eval@plt>

LLVM IR (-O0):
define void @mixedSignedness13(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 2147483647, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = icmp ult i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @clang_analyzer_eval(i32 %7)
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 2
%11 = load i32, i32* %3
%12 = icmp ult i32 %10, %11
%13 = zext i1 %12 to i32
%14 = call i32 @clang_analyzer_eval(i32 %13)
%15 = load i32, i32* %2
%16 = add i32 %15, 2
%17 = load i32, i32* %3
%18 = icmp ult i32 %16, %17
%19 = zext i1 %18 to i32
%20 = call i32 @clang_analyzer_eval(i32 %19)
ret void
}

LLVM IR (-O2):
define void @mixedSignedness13(i32 %0) {
%2 = icmp ult i32 %0, 2147483647
%3 = zext i1 %2 to i32
%4 = tail call i32 @clang_analyzer_eval(i32 %3)
%5 = add nsw i32 %0, 2
%6 = icmp ult i32 %5, 2147483647
%7 = zext i1 %6 to i32
%8 = tail call i32 @clang_analyzer_eval(i32 %7)
%9 = tail call i32 @clang_analyzer_eval(i32 %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int(*p)[4], i;
  int a[4] = {1, 2, 3, 4};
  p = &a;
  for (i = 0; i < 4; i++)
    printf("%5d", (*p)[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1173 <main+0x63>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1144 <main+0x34>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.a = [4 x i32] [i32 1, i32 2, i32 3, i32 4]
@.str = [4 x i8] c"%5d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]*
%3 = alloca i32
%4 = alloca [4 x i32]
store i32 0, i32* %1
%5 = bitcast [4 x i32]* %4 to i8*
store [4 x i32]* %4, [4 x i32]** %2
store i32 0, i32* %3
br label %6
6: ; preds = %16, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 4
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = load [4 x i32]*, [4 x i32]** %2
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %9
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %6
19: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%5d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 4)
ret i32 0
}
int main(void) {
  int x = 0;
  int y = {0};
  return x + y;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = add nsw i32 %4, %5
ret i32 %6
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void argvfree(argv) char **argv;
{
  char **a;
  if (argv) {
    for (a = argv; *a; a++)
      ((void)realloc(*a, 0));
    ((void)realloc(argv, 0));
  }
}


x86 assembly (clang, -O0):
<argvfree>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     116b <argvfree+0x5b>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     115e <argvfree+0x4e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <realloc@plt>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    112f <argvfree+0x1f>
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <realloc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<argvfree>:
test   %rdi,%rdi
je     1154 <argvfree+0x44>
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1143 <argvfree+0x33>
lea    0x8(%r14),%rbx
nopl   0x0(%rax,%rax,1)
xor    %esi,%esi
call   1030 <realloc@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <argvfree+0x20>
mov    %r14,%rdi
xor    %esi,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <realloc@plt>
ret

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

LLVM IR (-O2):
define void @argvfree(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %16, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = icmp eq i8* %4, null
br i1 %5, label %13, label %6
6: ; preds = %3, %6
%7 = phi i8* [ %11, %6 ], [ %4, %3 ]
%8 = phi i8** [ %10, %6 ], [ %0, %3 ]
%9 = tail call i8* @realloc(i8* %7, i64 0)
%10 = getelementptr inbounds i8*, i8** %8, i64 1
%11 = load i8*, i8** %10
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %6
13: ; preds = %6, %3
%14 = bitcast i8** %0 to i8*
%15 = tail call i8* @realloc(i8* %14, i64 0)
br label %16
16: ; preds = %13, %1
ret void
}
int cairo_code_draw_infamousLogo_get_height() { return 133; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_infamousLogo_get_height() {
ret i32 133
}

LLVM IR (-O2):
define i32 @cairo_code_draw_infamousLogo_get_height() {
ret i32 133
}
/* Type definitions */
struct umsgpack_packer_buf {
  int dummy;
};

/* Variables and functions */
int umsgpack_pack_int32(struct umsgpack_packer_buf *, int);
int umsgpack_pack_int(struct umsgpack_packer_buf *buf, int val) {
  return umsgpack_pack_int32(buf, val);
}


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

x86 assembly (clang, -O2):
<umsgpack_pack_int>:
jmp    1030 <umsgpack_pack_int32@plt>

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

LLVM IR (-O2):
%struct.umsgpack_packer_buf = type { i32 }
define i32 @umsgpack_pack_int(%struct.umsgpack_packer_buf* %0, i32 %1) {
%3 = tail call i32 @umsgpack_pack_int32(%struct.umsgpack_packer_buf* %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
void print_binary_of(unsigned n) {
  if (n > 1) {
    print_binary_of(n / 2);
  }
  printf("%d", n % 2);
}


x86 assembly (clang, -O0):
<print_binary_of>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jbe    1140 <print_binary_of+0x20>
mov    -0x4(%rbp),%edi
shr    $0x1,%edi
call   1040 <print_binary_of@plt>
mov    -0x4(%rbp),%esi
and    $0x1,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_binary_of>:
push   %rbx
mov    %edi,%ebx
cmp    $0x2,%edi
jb     1131 <print_binary_of+0x11>
mov    %ebx,%edi
shr    %edi
call   1040 <print_binary_of@plt>
and    $0x1,%ebx
lea    0xec5(%rip),%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @print_binary_of(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ugt i32 %3, 1
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = udiv i32 %6, 2
br label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = urem i32 %9, 2
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @print_binary_of(i32 %0) {
%2 = icmp ugt i32 %0, 1
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = lshr i32 %0, 1
tail call void @print_binary_of(i32 %4)
br label %5
5: ; preds = %3, %1
%6 = and i32 %0, 1
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
ret void
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t rev_byte_1(uint8_t old) {
  return (old >> 7 & 0x1) | (old >> 5 & 0x2) | (old >> 3 & 0x4) |
         (old >> 1 & 0x8) | (old << 1 & 0x10) | (old << 3 & 0x20) |
         (old << 5 & 0x40) | (old << 7 & 0x80);
}


x86 assembly (clang, -O0):
<rev_byte_1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
and    $0x1,%eax
mov    -0x4(%rbp),%ecx
sar    $0x5,%ecx
and    $0x2,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
sar    $0x3,%ecx
and    $0x4,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
sar    $0x1,%ecx
and    $0x8,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
and    $0x10,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x3,%ecx
and    $0x20,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x5,%ecx
and    $0x40,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x7,%ecx
and    $0x80,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rev_byte_1>:
rol    $0x4,%dil
mov    %edi,%eax
and    $0x33,%al
shl    $0x2,%al
shr    $0x2,%dil
and    $0x33,%dil
or     %al,%dil
mov    %edi,%eax
and    $0x55,%al
add    %al,%al
shr    %dil
and    $0x55,%dil
or     %al,%dil
movzbl %dil,%eax
ret

LLVM IR (-O0):
define i32 @rev_byte_1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 7
%5 = and i32 %4, 1
%6 = load i32, i32* %2
%7 = ashr i32 %6, 5
%8 = and i32 %7, 2
%9 = or i32 %5, %8
%10 = load i32, i32* %2
%11 = ashr i32 %10, 3
%12 = and i32 %11, 4
%13 = or i32 %9, %12
%14 = load i32, i32* %2
%15 = ashr i32 %14, 1
%16 = and i32 %15, 8
%17 = or i32 %13, %16
%18 = load i32, i32* %2
%19 = shl i32 %18, 1
%20 = and i32 %19, 16
%21 = or i32 %17, %20
%22 = load i32, i32* %2
%23 = shl i32 %22, 3
%24 = and i32 %23, 32
%25 = or i32 %21, %24
%26 = load i32, i32* %2
%27 = shl i32 %26, 5
%28 = and i32 %27, 64
%29 = or i32 %25, %28
%30 = load i32, i32* %2
%31 = shl i32 %30, 7
%32 = and i32 %31, 128
%33 = or i32 %29, %32
ret i32 %33
}

LLVM IR (-O2):
define i32 @rev_byte_1(i32 %0) {
%2 = trunc i32 %0 to i8
%3 = tail call i8 @llvm.bitreverse.i8(i8 %2)
%4 = zext i8 %3 to i32
ret i32 %4
}
int fun372() { return 372; }


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

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

LLVM IR (-O0):
define i32 @fun372() {
ret i32 372
}

LLVM IR (-O2):
define i32 @fun372() {
ret i32 372
}
/* Variables and functions */
double fabs(double);
int main(int argc, char const *argv[]) {
  if (fabs(-2.0) == 2.0) {
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  0xee6(%rip),%xmm0
movsd  0xede(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    113e <main+0x3e>
jp     113e <main+0x3e>
movl   $0x0,-0x4(%rbp)
jmp    1145 <main+0x45>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
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 double @llvm.fabs.f64(double -2.000000e+00)
%7 = fcmp oeq double %6, 2.000000e+00
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 0, i32* %3
br label %10
9: ; preds = %2
store i32 1, i32* %3
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %3
ret i32 %11
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void exit_usage(const char *name) {
  fprintf(stderr, "usage: %s <host> <port>\n", name);
  fprintf(
      stderr,
      "\tforward stdin to remote host and write received data to stdout.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<exit_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
lea    0xec2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exit_usage>:
push   %rbx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"usage: %s <host> <port>\0A\00"
@.str.1 = [66 x i8] c"\09forward stdin to remote host and write received data to stdout.\0A\00"
define void @exit_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"usage: %s <host> <port>\0A\00"
@.str.1 = [66 x i8] c"\09forward stdin to remote host and write received data to stdout.\0A\00"
define void @exit_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int accept(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ close(int);
int utilServerCreate(int, int, int, int);
int utilSingleAcceptServer(int port) {
  int server, client;
  if ((server = utilServerCreate(port, 1, 20, 1)) < 0)
    return server;
  client = accept(server, NULL, NULL);
  close(server);
  return client;
}


x86 assembly (clang, -O0):
<utilSingleAcceptServer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x1,%ecx
mov    $0x14,%edx
mov    %ecx,%esi
call   1030 <utilServerCreate@plt>
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jge    1166 <utilSingleAcceptServer+0x36>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1186 <utilSingleAcceptServer+0x56>
mov    -0xc(%rbp),%edi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rsi
call   1050 <accept@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <close@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<utilSingleAcceptServer>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
call   1030 <utilServerCreate@plt>
mov    %eax,%ebx
test   %eax,%eax
js     1165 <utilSingleAcceptServer+0x35>
mov    %ebx,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <accept@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <close@plt>
mov    %ebp,%eax
jmp    1167 <utilSingleAcceptServer+0x37>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @utilSingleAcceptServer(i32 %0) {
%2 = tail call i32 @utilServerCreate(i32 %0, i32 1, i32 20, i32 1)
%3 = icmp slt i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i32 @accept(i32 %2, i32* null, i32* null)
%6 = tail call i32 @close(i32 %2)
br label %7
7: ; preds = %1, %4
%8 = phi i32 [ %5, %4 ], [ %2, %1 ]
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_cmpeq_ps(int /*<<< orphan*/, int /*<<< orphan*/);
__m128 test_mm_cmpeq_ps(__m128 __a, __m128 __b) {
  return _mm_cmpeq_ps(__a, __b);
}


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

x86 assembly (clang, -O2):
<test_mm_cmpeq_ps>:
jmp    1030 <_mm_cmpeq_ps@plt>

LLVM IR (-O0):
define i32 @test_mm_cmpeq_ps(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 = call i32 @_mm_cmpeq_ps(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_cmpeq_ps(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmpeq_ps(i32 %0, i32 %1)
ret i32 %3
}
/* Type definitions */
struct charArray {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ charArrayInit(struct charArray *, int);
void charstringInit(struct charArray *s) { charArrayInit(s, 1); }


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

x86 assembly (clang, -O2):
<charstringInit>:
mov    $0x1,%esi
jmp    1030 <charArrayInit@plt>

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

LLVM IR (-O2):
%struct.charArray = type { i32 }
define void @charstringInit(%struct.charArray* %0) {
%2 = tail call i32 @charArrayInit(%struct.charArray* %0, i32 1)
ret void
}
extern void libvamphostsdk_v_2_0_present(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ *malloc(size_t);
int /*<<< orphan*/ n2a_wcscpy(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                              size_t);
int wcslen(int /*<<< orphan*/ const *);
wchar_t *n2a_wcsdup(const wchar_t *ptr) {
  wchar_t *dup;
  size_t len = wcslen(ptr) + 1;
  dup = malloc(len * sizeof(wchar_t));
  if (dup == NULL) {
    return NULL;
  }
  n2a_wcscpy(dup, ptr, len);
  return dup;
}


x86 assembly (clang, -O0):
<n2a_wcsdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <wcslen@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
shl    $0x2,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1177 <n2a_wcsdup+0x47>
movq   $0x0,-0x8(%rbp)
jmp    1190 <n2a_wcsdup+0x60>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1050 <n2a_wcscpy@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<n2a_wcsdup>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <wcslen@plt>
movslq %eax,%rbx
lea    0x4(,%rbx,4),%rdi
call   1040 <malloc@plt>
mov    %rax,%r15
test   %rax,%rax
je     1167 <n2a_wcsdup+0x37>
add    $0x1,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1050 <n2a_wcscpy@plt>
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32* @n2a_wcsdup(i32* %0) {
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i64
store i32* %0, i32** %3
%6 = load i32*, i32** %3
%7 = call i32 @wcslen(i32* %6)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
store i64 %9, i64* %5
%10 = load i64, i64* %5
%11 = mul i64 %10, 4
%12 = call i32* @malloc(i64 %11)
store i32* %12, i32** %4
%13 = load i32*, i32** %4
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %16
15: ; preds = %1
store i32* null, i32** %2
br label %22
16: ; preds = %1
%17 = load i32*, i32** %4
%18 = load i32*, i32** %3
%19 = load i64, i64* %5
%20 = call i32 @n2a_wcscpy(i32* %17, i32* %18, i64 %19)
%21 = load i32*, i32** %4
store i32* %21, i32** %2
br label %22
22: ; preds = %16, %15
%23 = load i32*, i32** %2
ret i32* %23
}

LLVM IR (-O2):
define i32* @n2a_wcsdup(i32* %0) {
%2 = tail call i32 @wcslen(i32* %0)
%3 = add nsw i32 %2, 1
%4 = sext i32 %3 to i64
%5 = shl nsw i64 %4, 2
%6 = tail call i32* @malloc(i64 %5)
%7 = icmp eq i32* %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @n2a_wcscpy(i32* %6, i32* %0, i64 %4)
br label %10
10: ; preds = %1, %8
ret i32* %6
}
/* Variables and functions */
float abs(float);
float sqrt(float);
float s_sqrt(float val) {
  if (val < 0.00) {
    return -sqrt(abs(val));
  }
  return sqrt(val);
}


x86 assembly (clang, -O0):
<s_sqrt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1169 <s_sqrt+0x49>
movss  -0x8(%rbp),%xmm0
call   1030 <abs@plt>
call   1040 <sqrt@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1178 <s_sqrt+0x58>
movss  -0x8(%rbp),%xmm0
call   1040 <sqrt@plt>
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s_sqrt>:
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    113d <s_sqrt+0x1d>
push   %rax
call   1030 <abs@plt>
ucomiss 0xedb(%rip),%xmm0
jb     1147 <s_sqrt+0x27>
sqrtss %xmm0,%xmm0
jmp    114c <s_sqrt+0x2c>
ucomiss %xmm1,%xmm0
jb     1158 <s_sqrt+0x38>
sqrtss %xmm0,%xmm0
ret
call   1040 <sqrt@plt>
xorps  0xead(%rip),%xmm0
add    $0x8,%rsp
ret
jmp    1040 <sqrt@plt>

LLVM IR (-O0):
define float @s_sqrt(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fpext float %4 to double
%6 = fcmp olt double %5, 0.000000e+00
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load float, float* %3
%9 = call float @abs(float %8)
%10 = call float @sqrt(float %9)
%11 = fneg float %10
store float %11, float* %2
br label %15
12: ; preds = %1
%13 = load float, float* %3
%14 = call float @sqrt(float %13)
store float %14, float* %2
br label %15
15: ; preds = %12, %7
%16 = load float, float* %2
ret float %16
}

LLVM IR (-O2):
define float @s_sqrt(float %0) {
%2 = fcmp olt float %0, 0.000000e+00
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = tail call float @abs(float %0)
%5 = tail call float @sqrt(float %4)
%6 = fneg float %5
br label %9
7: ; preds = %1
%8 = tail call float @sqrt(float %0)
br label %9
9: ; preds = %7, %3
%10 = phi float [ %6, %3 ], [ %8, %7 ]
ret float %10
}
unsigned int hashPtrhash(const void *const x) {
  union {
    const void *ptr;
    unsigned int ui;
  } v;
  v.ui = 0;
  v.ptr = x;
  return v.ui;
}


x86 assembly (clang, -O0):
<hashPtrhash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%union.anon = type { i8* }
define i32 @hashPtrhash(i8* %0) {
%2 = alloca i8*
%3 = alloca %union.anon
store i8* %0, i8** %2
%4 = bitcast %union.anon* %3 to i32*
store i32 0, i32* %4
%5 = load i8*, i8** %2
%6 = bitcast %union.anon* %3 to i8**
store i8* %5, i8** %6
%7 = bitcast %union.anon* %3 to i32*
%8 = load i32, i32* %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @hashPtrhash(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ nop();
void nop_milli(void) {
  for (uint32_t i = 0; i <= 293; i++) {
    nop();
  }
}


x86 assembly (clang, -O0):
<nop_milli>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x125,-0x4(%rbp)
jg     1141 <nop_milli+0x31>
mov    $0x0,%al
call   1030 <nop@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <nop_milli+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nop_milli>:
push   %rbx
mov    $0x126,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <nop@plt>
add    $0xffffffff,%ebx
jne    1120 <nop_milli+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @nop_milli() {
br label %2
1: ; preds = %2
ret void
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %5, %2 ]
%4 = tail call i32 (...) @nop()
%5 = add nuw nsw i32 %3, 1
%6 = icmp eq i32 %5, 294
br i1 %6, label %1, label %2
}
/* Variables and functions */
int /*<<< orphan*/ sys_write(char *);
int /*<<< orphan*/ task_destroy(int);
void test_task_b() {
  while (1) {
    sys_write("\tbar\n");
    task_destroy(1);
  }
}


x86 assembly (clang, -O0):
<test_task_b>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <test_task_b+0x9>
lea    0xed0(%rip),%rdi
call   1040 <sys_write@plt>
mov    $0x1,%edi
call   1030 <task_destroy@plt>
jmp    1129 <test_task_b+0x9>

x86 assembly (clang, -O2):
<test_task_b>:
push   %rbx
lea    0xed8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <sys_write@plt>
mov    $0x1,%edi
call   1030 <task_destroy@plt>
jmp    1130 <test_task_b+0x10>

LLVM IR (-O0):
@.str = [6 x i8] c"\09bar\0A\00"
define void @test_task_b() {
br label %1
1: ; preds = %0, %1
%2 = call i32 @sys_write(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @task_destroy(i32 1)
br label %1
}

LLVM IR (-O2):
@.str = [6 x i8] c"\09bar\0A\00"
define void @test_task_b() {
br label %1
1: ; preds = %0, %1
%2 = tail call i32 @sys_write(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @task_destroy(i32 1)
br label %1
}
void CRYPTO_dbg_realloc(void) {}


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

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

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

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