xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void JUNK_JUNK() { printf("no underscores\n"); }


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

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

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

LLVM IR (-O2):
@str = [15 x i8] c"no underscores\00"
define void @JUNK_JUNK() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
ret void
}
void av_get_audio_frame_duration() {}


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

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

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

LLVM IR (-O2):
define void @av_get_audio_frame_duration() {
ret void
}
/* Type definitions */
struct __test_metadata {
  int dummy;
};
struct __fixture_variant_metadata {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ basic_interface(struct __test_metadata *);
void wrapper_basic_interface(struct __test_metadata *_metadata,
                             struct __fixture_variant_metadata *variant) {
  basic_interface(_metadata);
}


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

x86 assembly (clang, -O2):
<wrapper_basic_interface>:
jmp    1030 <basic_interface@plt>

LLVM IR (-O0):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_basic_interface(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* %1) {
%3 = alloca %struct.__test_metadata*
%4 = alloca %struct.__fixture_variant_metadata*
store %struct.__test_metadata* %0, %struct.__test_metadata** %3
store %struct.__fixture_variant_metadata* %1, %struct.__fixture_variant_metadata** %4
%5 = load %struct.__test_metadata*, %struct.__test_metadata** %3
%6 = call i32 @basic_interface(%struct.__test_metadata* %5)
ret void
}

LLVM IR (-O2):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_basic_interface(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* nocapture readnone %1) {
%3 = tail call i32 @basic_interface(%struct.__test_metadata* %0)
ret void
}
int fl_(int *const l) {

  if ((*l))
    return (0);
  else
    return (1);
}


x86 assembly (clang, -O0):
<fl_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
je     1121 <fl_+0x21>
movl   $0x0,-0x4(%rbp)
jmp    1128 <fl_+0x28>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fl_>:
xor    %eax,%eax
cmpl   $0x0,(%rdi)
sete   %al
ret

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

LLVM IR (-O2):
define i32 @fl_(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct stream {
  int dummy;
};

/* Variables and functions */
int decode_atom_format_6_1(unsigned char const *, struct stream *);
int decode_atom_format_6_12(const unsigned char *pkt, struct stream *stream) {
  return decode_atom_format_6_1(pkt, stream);
}


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

x86 assembly (clang, -O2):
<decode_atom_format_6_12>:
jmp    1030 <decode_atom_format_6_1@plt>

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

LLVM IR (-O2):
%struct.stream = type { i32 }
define i32 @decode_atom_format_6_12(i8* %0, %struct.stream* %1) {
%3 = tail call i32 @decode_atom_format_6_1(i8* %0, %struct.stream* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ load_db();
int /*<<< orphan*/ load_if();
void configure(void) {
  load_if();
  load_db();
}


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

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

LLVM IR (-O0):
define void @configure() {
%1 = call i32 (...) @load_if()
%2 = call i32 (...) @load_db()
ret void
}

LLVM IR (-O2):
define void @configure() {
%1 = tail call i32 (...) @load_if()
%2 = tail call i32 (...) @load_db()
ret void
}
/* Variables and functions */
char *strstr(char const *, char const *);
char *CString_strstr(const char *haystack, const char *needle) {
  return strstr(haystack, needle);
}


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

x86 assembly (clang, -O2):
<CString_strstr>:
jmp    1030 <strstr@plt>

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

LLVM IR (-O2):
define i8* @CString_strstr(i8* %0, i8* nocapture %1) {
%3 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ ignore_ws(char **);
int more_params(char **c) {
  ignore_ws(c);
  return (**c) != 0;
}


x86 assembly (clang, -O0):
<more_params>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <ignore_ws@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<more_params>:
push   %rbx
mov    %rdi,%rbx
call   1030 <ignore_ws@plt>
mov    (%rbx),%rcx
xor    %eax,%eax
cmpb   $0x0,(%rcx)
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @more_params(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = call i32 @ignore_ws(i8** %3)
%5 = load i8**, i8*** %2
%6 = load i8*, i8** %5
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @more_params(i8** %0) {
%2 = tail call i32 @ignore_ws(i8** %0)
%3 = load i8*, i8** %0
%4 = load i8, i8* %3
%5 = icmp ne i8 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ CLOCK_SYS_GetBusClockFreq();
uint32_t CLOCK_SYS_GetCrcFreq(uint32_t instance) {
  (void)instance;
  return CLOCK_SYS_GetBusClockFreq();
}


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

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

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

LLVM IR (-O2):
define i32 @CLOCK_SYS_GetCrcFreq(i32 %0) {
%2 = tail call i32 (...) @CLOCK_SYS_GetBusClockFreq()
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_mul_ps(int /*<<< orphan*/, int /*<<< orphan*/);
__m128 test_mm_mul_ps(__m128 A, __m128 B) { return _mm_mul_ps(A, B); }


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

x86 assembly (clang, -O2):
<test_mm_mul_ps>:
jmp    1030 <_mm_mul_ps@plt>

LLVM IR (-O0):
define i32 @test_mm_mul_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_mul_ps(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_mul_ps(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_mul_ps(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ glmCrossProduct2f(float *, float *);
int /*<<< orphan*/ glmMakeVector2f(float *, float const *, float const *);
int /*<<< orphan*/ glmNormalizeVector2f(float *);
void glmComputeLineNormalf(float normal[2], const float c1[2],
                           const float c2[2]) {
  float v[2];
  glmMakeVector2f(v, c1, c2);
  glmCrossProduct2f(normal, v);
  glmNormalizeVector2f(normal);
}


x86 assembly (clang, -O0):
<glmComputeLineNormalf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1050 <glmMakeVector2f@plt>
mov    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1030 <glmCrossProduct2f@plt>
mov    -0x8(%rbp),%rdi
call   1040 <glmNormalizeVector2f@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmComputeLineNormalf>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    %rsp,%r14
mov    %r14,%rdi
call   1050 <glmMakeVector2f@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <glmCrossProduct2f@plt>
mov    %rbx,%rdi
call   1040 <glmNormalizeVector2f@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @glmComputeLineNormalf(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca [2 x float]
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
%8 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 0
%9 = load float*, float** %5
%10 = load float*, float** %6
%11 = call i32 @glmMakeVector2f(float* %8, float* %9, float* %10)
%12 = load float*, float** %4
%13 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 0
%14 = call i32 @glmCrossProduct2f(float* %12, float* %13)
%15 = load float*, float** %4
%16 = call i32 @glmNormalizeVector2f(float* %15)
ret void
}

LLVM IR (-O2):
define void @glmComputeLineNormalf(float* %0, float* %1, float* %2) {
%4 = alloca [2 x float]
%5 = bitcast [2 x float]* %4 to i8*
%6 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
%7 = call i32 @glmMakeVector2f(float* %6, float* %1, float* %2)
%8 = call i32 @glmCrossProduct2f(float* %0, float* %6)
%9 = call i32 @glmNormalizeVector2f(float* %0)
ret void
}
void rop3_96_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  stk2 = *D ^ S;
  stk1 = T & stk2;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}


x86 assembly (clang, -O0):
<rop3_96_0_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xc(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
and    %ecx,%eax
movzbl -0xb(%rbp),%ecx
movzbl -0xa(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
movzbl -0xa(%rbp),%ecx
movzbl -0x9(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
mov    -0x8(%rbp),%rdx
movzbl (%rdx),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_96_0_1>:
mov    (%rdi),%r8b
mov    %r8d,%ecx
xor    %sil,%cl
mov    %edx,%eax
and    %sil,%al
and    %cl,%al
not    %sil
and    %dl,%sil
and    %r8b,%sil
or     %al,%sil
mov    %sil,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_96_0_1(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%9 = load i8*, i8** %4
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = load i8, i8* %5
%13 = zext i8 %12 to i32
%14 = xor i32 %11, %13
%15 = trunc i32 %14 to i8
store i8 %15, i8* %8
%16 = load i8, i8* %6
%17 = zext i8 %16 to i32
%18 = load i8, i8* %8
%19 = zext i8 %18 to i32
%20 = and i32 %17, %19
%21 = trunc i32 %20 to i8
store i8 %21, i8* %7
%22 = load i8, i8* %7
%23 = zext i8 %22 to i32
%24 = load i8, i8* %5
%25 = zext i8 %24 to i32
%26 = and i32 %23, %25
%27 = load i8, i8* %7
%28 = zext i8 %27 to i32
%29 = load i8, i8* %6
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = and i32 %28, %31
%33 = or i32 %26, %32
%34 = load i8, i8* %6
%35 = zext i8 %34 to i32
%36 = load i8, i8* %5
%37 = zext i8 %36 to i32
%38 = xor i32 %37, -1
%39 = and i32 %35, %38
%40 = load i8*, i8** %4
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = and i32 %39, %42
%44 = or i32 %33, %43
%45 = trunc i32 %44 to i8
%46 = load i8*, i8** %4
store i8 %45, i8* %46
ret void
}

LLVM IR (-O2):
define void @rop3_96_0_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %1
%6 = and i8 %2, %1
%7 = and i8 %6, %5
%8 = xor i8 %1, -1
%9 = and i8 %8, %2
%10 = and i8 %9, %4
%11 = or i8 %7, %10
store i8 %11, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ FIONREAD;
int ioctl(int, int /*<<< orphan*/, int *);
int SerialDataAvail(int fd) {
  int result;
  if (ioctl(fd, FIONREAD, &result) == -1)
    return -1;
  return result;
}


x86 assembly (clang, -O0):
<SerialDataAvail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
lea    -0xc(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    1145 <SerialDataAvail+0x35>
movl   $0xffffffff,-0x4(%rbp)
jmp    114b <SerialDataAvail+0x3b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SerialDataAvail>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rdx
call   1030 <ioctl@plt>
cmp    $0xffffffff,%eax
je     112d <SerialDataAvail+0x1d>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@FIONREAD = global i32 0
define i32 @SerialDataAvail(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = load i32, i32* @FIONREAD
%7 = call i32 @ioctl(i32 %5, i32 %6, i32* %4)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, i32* %2
br label %12
10: ; preds = %1
%11 = load i32, i32* %4
store i32 %11, i32* %2
br label %12
12: ; preds = %10, %9
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
@FIONREAD = global i32 0
define i32 @SerialDataAvail(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = load i32, i32* @FIONREAD
%5 = call i32 @ioctl(i32 %0, i32 %4, i32* %2)
%6 = icmp eq i32 %5, -1
%7 = load i32, i32* %2
%8 = select i1 %6, i32 -1, i32 %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ __iar_program_start();
void ResetIsr(void) {
  (*((volatile unsigned long *)(0x400D20B4))) = 0xFF;
  __iar_program_start();
}


x86 assembly (clang, -O0):
<ResetIsr>:
push   %rbp
mov    %rsp,%rbp
mov    $0x400d20b4,%eax
movq   $0xff,(%rax)
mov    $0x0,%al
call   1030 <__iar_program_start@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ResetIsr>:
movq   $0xff,0x400d20b4
xor    %eax,%eax
jmp    1030 <__iar_program_start@plt>

LLVM IR (-O0):
define void @ResetIsr() {
store volatile i64 255, i64* inttoptr (i64 1074602164 to i64*)
%1 = call i32 (...) @__iar_program_start()
ret void
}

LLVM IR (-O2):
define void @ResetIsr() {
store volatile i64 255, i64* inttoptr (i64 1074602164 to i64*)
%1 = tail call i32 (...) @__iar_program_start()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ tempString;

/* Variables and functions */
int /*<<< orphan*/ getSexComponents(double, int *, int *, int *);
int setStandardProcedure(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int, int);
int setObjAlt(double alt) {
  int d, m, s;
  char tempString[16];
  getSexComponents(alt, &d, &m, &s);
  snprintf(tempString, sizeof(tempString), "#:Sa%+02d*%02d#", d, m);
  return (setStandardProcedure(tempString));
}


x86 assembly (clang, -O0):
<setObjAlt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    -0xc(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
call   1050 <getSexComponents@plt>
lea    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
mov    $0x10,%esi
lea    0xe96(%rip),%rdx
call   1040 <snprintf@plt>
lea    -0x30(%rbp),%rdi
call   1030 <setStandardProcedure@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setObjAlt>:
push   %rbx
sub    $0x20,%rsp
lea    0x8(%rsp),%rdi
lea    0x4(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1050 <getSexComponents@plt>
mov    0x8(%rsp),%ecx
mov    0x4(%rsp),%r8d
lea    0xea7(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x10,%esi
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <setStandardProcedure@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"#:Sa%+02d*%02d#\00"
define i32 @setObjAlt(double %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [16 x i8]
store double %0, double* %2
%7 = load double, double* %2
%8 = call i32 @getSexComponents(double %7, i32* %3, i32* %4, i32* %5)
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = call i32 @snprintf(i8* %9, i32 16, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
%13 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%14 = call i32 @setStandardProcedure(i8* %13)
ret i32 %14
}

LLVM IR (-O2):
@.str = [16 x i8] c"#:Sa%+02d*%02d#\00"
define i32 @setObjAlt(double %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [16 x i8]
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%10 = call i32 @getSexComponents(double %0, i32* %2, i32* %3, i32* %4)
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = call i32 @snprintf(i8* %9, i32 16, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12)
%14 = call i32 @setStandardProcedure(i8* %9)
ret i32 %14
}
unsigned short int get_sp(void) { return 0; }


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

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

LLVM IR (-O0):
define zeroext i16 @get_sp() {
ret i16 0
}

LLVM IR (-O2):
define zeroext i16 @get_sp() {
ret i16 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
void welcome() {
  char name[100];
  printf("enter you name : ");
  scanf("%100s", name);
  printf("Welcome %s!\n", name);
}


x86 assembly (clang, -O0):
<welcome>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x70(%rbp),%rsi
lea    0xed1(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x70(%rbp),%rsi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<welcome>:
push   %rbx
sub    $0x70,%rsp
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1040 <scanf@plt>
lea    0xecc(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"enter you name : \00"
@.str.1 = [6 x i8] c"%100s\00"
@.str.2 = [13 x i8] c"Welcome %s!\0A\00"
define void @welcome() {
%1 = alloca [100 x i8]
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"enter you name : \00"
@.str.1 = [6 x i8] c"%100s\00"
@.str.2 = [13 x i8] c"Welcome %s!\0A\00"
define void @welcome() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Ellipse183(long, long, long, long, unsigned long);
void ellipse(long x, long y, long rx, long ry, unsigned long c) {
  Ellipse183(x, y, rx, ry, c);
}


x86 assembly (clang, -O0):
<ellipse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <Ellipse183@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ellipse>:
jmp    1030 <Ellipse183@plt>

LLVM IR (-O0):
define void @ellipse(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i64 %0, i64* %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i64, i64* %6
%12 = load i64, i64* %7
%13 = load i64, i64* %8
%14 = load i64, i64* %9
%15 = load i64, i64* %10
%16 = call i32 @Ellipse183(i64 %11, i64 %12, i64 %13, i64 %14, i64 %15)
ret void
}

LLVM IR (-O2):
define void @ellipse(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = tail call i32 @Ellipse183(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4)
ret void
}
/* Type definitions */
typedef scalar_t__ int32_t;

/* Variables and functions */
int32_t add(int32_t a, int32_t b) { return a + b; }


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

x86 assembly (clang, -O2):
<add>:
lea    (%rdi,%rsi,1),%rax
ret

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

LLVM IR (-O2):
define i64 @add(i64 %0, i64 %1) {
%3 = add nsw i64 %1, %0
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ enableAnalog(int /*<<< orphan*/);
int getAnalog(int);
int /*<<< orphan*/ initPWM(int, int, int);
int /*<<< orphan*/ setDutyCyclePWM(int, int);
int /*<<< orphan*/ usleep(int);
int main() {
  int value;
  enableAnalog(0);
  initPWM(3, 1 * 1000000, 500 * 1000);
  while (1) {
    value = getAnalog(5);
    setDutyCyclePWM(3, (value * 1 * 1000000) / 4096);
    usleep(1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <enableAnalog@plt>
mov    $0x3,%edi
mov    $0xf4240,%esi
mov    $0x7a120,%edx
call   1070 <initPWM@plt>
mov    $0x5,%edi
call   1050 <getAnalog@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x0,%eax
mov    %eax,-0xc(%rbp)
imul   $0xf4240,%eax,%eax
mov    $0x1000,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    $0x3,%edi
call   1030 <setDutyCyclePWM@plt>
mov    $0x1,%edi
call   1060 <usleep@plt>
jmp    117a <main+0x2a>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <enableAnalog@plt>
mov    $0x3,%edi
mov    $0xf4240,%esi
mov    $0x7a120,%edx
call   1070 <initPWM@plt>
nopl   0x0(%rax)
mov    $0x5,%edi
call   1050 <getAnalog@plt>
imul   $0xf4240,%eax,%eax
lea    0xfff(%rax),%esi
test   %eax,%eax
cmovns %eax,%esi
sar    $0xc,%esi
mov    $0x3,%edi
call   1030 <setDutyCyclePWM@plt>
mov    $0x1,%edi
call   1060 <usleep@plt>
jmp    1170 <main+0x20>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @enableAnalog(i32 0)
%4 = call i32 @initPWM(i32 3, i32 1000000, i32 500000)
br label %5
5: ; preds = %0, %5
%6 = call i32 @getAnalog(i32 5)
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = mul nsw i32 %7, 1
%9 = mul nsw i32 %8, 1000000
%10 = sdiv i32 %9, 4096
%11 = call i32 @setDutyCyclePWM(i32 3, i32 %10)
%12 = call i32 @usleep(i32 1)
br label %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @enableAnalog(i32 0)
%2 = tail call i32 @initPWM(i32 3, i32 1000000, i32 500000)
br label %3
3: ; preds = %3, %0
%4 = tail call i32 @getAnalog(i32 5)
%5 = mul nsw i32 %4, 1000000
%6 = sdiv i32 %5, 4096
%7 = tail call i32 @setDutyCyclePWM(i32 3, i32 %6)
%8 = tail call i32 @usleep(i32 1)
br label %3
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void fm_entry_2nd_stage(void) {
  void (*second_stage_entry)(void) = (void *)(0x4005b000);
  if (0xffffffff != *(uint32_t *)(0x4005b000)) {
    second_stage_entry();
  }
  while ((1)) {
  }
}


x86 assembly (clang, -O0):
<fm_entry_2nd_stage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4005b000,%eax
mov    %rax,-0x8(%rbp)
mov    $0xffffffff,%eax
mov    $0x4005b000,%ecx
cmp    (%rcx),%eax
je     1126 <fm_entry_2nd_stage+0x26>
call   *-0x8(%rbp)
jmp    112b <fm_entry_2nd_stage+0x2b>
jmp    112b <fm_entry_2nd_stage+0x2b>

x86 assembly (clang, -O2):
<fm_entry_2nd_stage>:
push   %rax
cmpl   $0xffffffff,0x4005b000
ff
je     1120 <fm_entry_2nd_stage+0x20>
mov    $0x4005b000,%eax
call   *%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
jmp    1120 <fm_entry_2nd_stage+0x20>

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

LLVM IR (-O2):
define void @fm_entry_2nd_stage() {
%1 = load i32, i32* inttoptr (i64 1074114560 to i32*)
%2 = icmp eq i32 %1, -1
br i1 %2, label %4, label %3
3: ; preds = %0
tail call void inttoptr (i64 1074114560 to void ()*)()
br label %4
4: ; preds = %3, %0
br label %5
5: ; preds = %4, %5
br label %5
}
/* Variables and functions */
int /*<<< orphan*/ logging(char *, char *);
void usage(char *s) { logging("Usage: %s <bytecode>\n", s); }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"Usage: %s <bytecode>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @logging(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Usage: %s <bytecode>\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @logging(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ write_tape_mark(int /*<<< orphan*/ *);
void write_tape_eot(FILE *f) {
  write_tape_mark(f);
  write_tape_mark(f);
}


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

x86 assembly (clang, -O2):
<write_tape_eot>:
push   %rbx
mov    %rdi,%rbx
call   1030 <write_tape_mark@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <write_tape_mark@plt>

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

LLVM IR (-O2):
define void @write_tape_eot(i32* %0) {
%2 = tail call i32 @write_tape_mark(i32* %0)
%3 = tail call i32 @write_tape_mark(i32* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ debug();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ quit(int);
void noop() {
  printf("noop!\n");
  debug();
  quit(-1);
}


x86 assembly (clang, -O0):
<noop>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <debug@plt>
mov    $0xffffffff,%edi
call   1050 <quit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<noop>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <debug@plt>
mov    $0xffffffff,%edi
pop    %rax
jmp    1050 <quit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"noop!\0A\00"
define void @noop() {
%1 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @debug()
%3 = call i32 @quit(i32 -1)
ret void
}

LLVM IR (-O2):
@str = [6 x i8] c"noop!\00"
define void @noop() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @debug()
%3 = tail call i32 @quit(i32 -1)
ret void
}
/* Type definitions */
struct wpa_ctrl {
  int dummy;
};

/* Variables and functions */
int wpa_ctrl_command(struct wpa_ctrl *, char *);
int wpa_cli_cmd_list_networks(struct wpa_ctrl *ctrl, int argc,
                              const char *argv[]) {
  return wpa_ctrl_command(ctrl, "LIST_NETWORKS");
}


x86 assembly (clang, -O0):
<wpa_cli_cmd_list_networks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed2(%rip),%rsi
call   1030 <wpa_ctrl_command@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wpa_cli_cmd_list_networks>:
lea    0xee9(%rip),%rsi
jmp    1030 <wpa_ctrl_command@plt>

LLVM IR (-O0):
%struct.wpa_ctrl = type { i32 }
@.str = [14 x i8] c"LIST_NETWORKS\00"
define i32 @wpa_cli_cmd_list_networks(%struct.wpa_ctrl* %0, i32 %1, i8** %2) {
%4 = alloca %struct.wpa_ctrl*
%5 = alloca i32
%6 = alloca i8**
store %struct.wpa_ctrl* %0, %struct.wpa_ctrl** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%7 = load %struct.wpa_ctrl*, %struct.wpa_ctrl** %4
%8 = call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 %8
}

LLVM IR (-O2):
%struct.wpa_ctrl = type { i32 }
@.str = [14 x i8] c"LIST_NETWORKS\00"
define i32 @wpa_cli_cmd_list_networks(%struct.wpa_ctrl* %0, i32 %1, i8** nocapture readnone %2) {
%4 = tail call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fread(char *, int, int, int /*<<< orphan*/ *);
int get_random(char *buf, int size) {
  int ret;
  FILE *fp;
  fp = fopen("/dev/urandom", "r");
  ret = fread(buf, 1, size, fp);
  fclose(fp);
  return ret;
}


x86 assembly (clang, -O0):
<get_random>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeba(%rip),%rdi
lea    0xec0(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
call   1030 <fread@plt>
mov    %eax,-0x10(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_random>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xebf(%rip),%rdi
lea    0xec5(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
mov    %rax,%rcx
call   1030 <fread@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"/dev/urandom\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @get_random(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i8* %0, i8** %3
store i32 %1, i32* %4
%7 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %6
%8 = load i8*, i8** %3
%9 = load i32, i32* %4
%10 = load i32*, i32** %6
%11 = call i32 @fread(i8* %8, i32 1, i32 %9, i32* %10)
store i32 %11, i32* %5
%12 = load i32*, i32** %6
%13 = call i32 @fclose(i32* %12)
%14 = load i32, i32* %5
ret i32 %14
}

LLVM IR (-O2):
@.str = [13 x i8] c"/dev/urandom\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @get_random(i8* nocapture %0, i32 %1) {
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @fread(i8* %0, i32 1, i32 %1, i32* %3)
%5 = tail call i32 @fclose(i32* %3)
ret i32 %4
}
/* Variables and functions */
long double expl(long double);
long double libm_expl(long double x) { return expl(x); }


x86 assembly (clang, -O0):
<libm_expl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <expl@plt>
fld    %st(0)
fstp   %st(0)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<libm_expl>:
jmp    1030 <expl@plt>

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

LLVM IR (-O2):
define x86_fp80 @libm_expl(x86_fp80 %0) {
%2 = tail call x86_fp80 @expl(x86_fp80 %0)
ret x86_fp80 %2
}
/* Type definitions */
struct yamc_pub_args_info {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ yamc_pub_cmd_parser_release(struct yamc_pub_args_info *);
void yamc_pub_cmd_parser_free(struct yamc_pub_args_info *args_info) {
  yamc_pub_cmd_parser_release(args_info);
}


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

x86 assembly (clang, -O2):
<yamc_pub_cmd_parser_free>:
jmp    1030 <yamc_pub_cmd_parser_release@plt>

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

LLVM IR (-O2):
%struct.yamc_pub_args_info = type { i32 }
define void @yamc_pub_cmd_parser_free(%struct.yamc_pub_args_info* %0) {
%2 = tail call i32 @yamc_pub_cmd_parser_release(%struct.yamc_pub_args_info* %0)
ret void
}
/* Type definitions */
struct ploop_disk_images_data {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ get_disk_descriptor_fname(struct ploop_disk_images_data *,
                                             char *, int);
int /*<<< orphan*/ strcat(char *, char *);
void get_disk_descriptor_lock_fname(struct ploop_disk_images_data *di,
                                    char *out, int size) {
  get_disk_descriptor_fname(di, out, size);
  strcat(out, ".lck");
}


x86 assembly (clang, -O0):
<get_disk_descriptor_lock_fname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <get_disk_descriptor_fname@plt>
mov    -0x10(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1040 <strcat@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_disk_descriptor_lock_fname>:
push   %rbx
mov    %rsi,%rbx
call   1030 <get_disk_descriptor_fname@plt>
lea    0xed0(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <strcat@plt>

LLVM IR (-O0):
%struct.ploop_disk_images_data = type { i32 }
@.str = [5 x i8] c".lck\00"
define void @get_disk_descriptor_lock_fname(%struct.ploop_disk_images_data* %0, i8* %1, i32 %2) {
%4 = alloca %struct.ploop_disk_images_data*
%5 = alloca i8*
%6 = alloca i32
store %struct.ploop_disk_images_data* %0, %struct.ploop_disk_images_data** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load %struct.ploop_disk_images_data*, %struct.ploop_disk_images_data** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @get_disk_descriptor_fname(%struct.ploop_disk_images_data* %7, i8* %8, i32 %9)
%11 = load i8*, i8** %5
%12 = call i32 @strcat(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.ploop_disk_images_data = type { i32 }
@.str = [5 x i8] c".lck\00"
define void @get_disk_descriptor_lock_fname(%struct.ploop_disk_images_data* %0, i8* %1, i32 %2) {
%4 = tail call i32 @get_disk_descriptor_fname(%struct.ploop_disk_images_data* %0, i8* %1, i32 %2)
%5 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ my_putchar(int);
void my_put_nbr(int nb) {
  if (nb < 0) {
    my_putchar('-');
    nb = -nb;
  }
  if (nb > 9) {
    my_put_nbr(nb / 10);
    my_put_nbr(nb % 10);
  } else {
    my_putchar('0' + nb);
  }
}


x86 assembly (clang, -O0):
<my_put_nbr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1147 <my_put_nbr+0x27>
mov    $0x2d,%edi
call   1040 <my_putchar@plt>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x9,-0x4(%rbp)
jle    117a <my_put_nbr+0x5a>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1030 <my_put_nbr@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <my_put_nbr@plt>
jmp    1185 <my_put_nbr+0x65>
mov    -0x4(%rbp),%edi
add    $0x30,%edi
call   1040 <my_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_put_nbr>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
mov    $0xcccccccd,%r14d
test   %ebp,%ebp
jns    113c <my_put_nbr+0x1c>
mov    $0x2d,%edi
call   1040 <my_putchar@plt>
neg    %ebp
cmp    $0xa,%ebp
jb     115f <my_put_nbr+0x3f>
mov    %ebp,%ebx
imul   %r14,%rbx
shr    $0x23,%rbx
mov    %ebx,%edi
call   1030 <my_put_nbr@plt>
add    %ebx,%ebx
lea    (%rbx,%rbx,4),%eax
sub    %eax,%ebp
test   %ebp,%ebp
jns    113c <my_put_nbr+0x1c>
jmp    1130 <my_put_nbr+0x10>
add    $0x30,%ebp
mov    %ebp,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <my_putchar@plt>

LLVM IR (-O0):
define void @my_put_nbr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = call i32 @my_putchar(i32 45)
%7 = load i32, i32* %2
%8 = sub nsw i32 0, %7
store i32 %8, i32* %2
br label %9
9: ; preds = %5, %1
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 9
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i32, i32* %2
%14 = sdiv i32 %13, 10
%15 = load i32, i32* %2
%16 = srem i32 %15, 10
br label %21
17: ; preds = %9
%18 = load i32, i32* %2
%19 = add nsw i32 48, %18
%20 = call i32 @my_putchar(i32 %19)
br label %21
21: ; preds = %17, %12
ret void
}

LLVM IR (-O2):
define void @my_put_nbr(i32 %0) {
br label %2
2: ; preds = %11, %1
%3 = phi i32 [ %0, %1 ], [ %13, %11 ]
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @my_putchar(i32 45)
%7 = sub nsw i32 0, %3
br label %8
8: ; preds = %5, %2
%9 = phi i32 [ %7, %5 ], [ %3, %2 ]
%10 = icmp ugt i32 %9, 9
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = udiv i32 %9, 10
tail call void @my_put_nbr(i32 %12)
%13 = urem i32 %9, 10
br label %2
14: ; preds = %8
%15 = add nuw nsw i32 %9, 48
%16 = tail call i32 @my_putchar(i32 %15)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_dictionary();
int main(void) {
  printf("///////////////////////\n");
  printf("// DICTIONARY \n");
  printf("///////////////////////\n");
  test_dictionary();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee7(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <test_dictionary@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"///////////////////////\0A\00"
@.str.1 = [16 x i8] c"// DICTIONARY \0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (...) @test_dictionary()
ret i32 0
}

LLVM IR (-O2):
@str.2 = [15 x i8] c"// DICTIONARY \00"
@str.3 = [24 x i8] c"///////////////////////\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.3, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.3, i64 0, i64 0))
%4 = tail call i32 (...) @test_dictionary()
ret i32 0
}
void lpm_stats_suspend_exit(void) { return; }


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

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

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

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

/* Variables and functions */
uint32_t w2nat(uint16_t const x) { return x; }


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

x86 assembly (clang, -O2):
<w2nat>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @w2nat(i32 returned %0) {
ret i32 %0
}
void posix_class2P_SPACE() {}


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

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

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

LLVM IR (-O2):
define void @posix_class2P_SPACE() {
ret void
}
/* Type definitions */
struct dns_transmit {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ packetfree(struct dns_transmit *);
int /*<<< orphan*/ queryfree(struct dns_transmit *);
int /*<<< orphan*/ socketfree(struct dns_transmit *);
void dns_transmit_free(struct dns_transmit *d) {
  queryfree(d);
  socketfree(d);
  packetfree(d);
}


x86 assembly (clang, -O0):
<dns_transmit_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <queryfree@plt>
mov    -0x8(%rbp),%rdi
call   1050 <socketfree@plt>
mov    -0x8(%rbp),%rdi
call   1040 <packetfree@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dns_transmit_free>:
push   %rbx
mov    %rdi,%rbx
call   1030 <queryfree@plt>
mov    %rbx,%rdi
call   1050 <socketfree@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <packetfree@plt>

LLVM IR (-O0):
%struct.dns_transmit = type { i32 }
define void @dns_transmit_free(%struct.dns_transmit* %0) {
%2 = alloca %struct.dns_transmit*
store %struct.dns_transmit* %0, %struct.dns_transmit** %2
%3 = load %struct.dns_transmit*, %struct.dns_transmit** %2
%4 = call i32 @queryfree(%struct.dns_transmit* %3)
%5 = load %struct.dns_transmit*, %struct.dns_transmit** %2
%6 = call i32 @socketfree(%struct.dns_transmit* %5)
%7 = load %struct.dns_transmit*, %struct.dns_transmit** %2
%8 = call i32 @packetfree(%struct.dns_transmit* %7)
ret void
}

LLVM IR (-O2):
%struct.dns_transmit = type { i32 }
define void @dns_transmit_free(%struct.dns_transmit* %0) {
%2 = tail call i32 @queryfree(%struct.dns_transmit* %0)
%3 = tail call i32 @socketfree(%struct.dns_transmit* %0)
%4 = tail call i32 @packetfree(%struct.dns_transmit* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ voronoi(float, float, float, float *, float *, int,
                           int /*<<< orphan*/);
float voronoi_F2(float x, float y, float z) {
  float da[4], pa[12];
  voronoi(x, y, z, da, pa, 1, 0);
  return da[1];
}


x86 assembly (clang, -O0):
<voronoi_F2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
lea    -0x20(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <voronoi@plt>
movss  -0x1c(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<voronoi_F2>:
sub    $0x48,%rsp
mov    %rsp,%rdi
lea    0x10(%rsp),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <voronoi@plt>
movss  0x4(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define float @voronoi_F2(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca [4 x float]
%8 = alloca [12 x float]
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%9 = load float, float* %4
%10 = load float, float* %5
%11 = load float, float* %6
%12 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%13 = getelementptr inbounds [12 x float], [12 x float]* %8, i64 0, i64 0
%14 = call i32 @voronoi(float %9, float %10, float %11, float* %12, float* %13, i32 1, i32 0)
%15 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
%16 = load float, float* %15
ret float %16
}

LLVM IR (-O2):
define float @voronoi_F2(float %0, float %1, float %2) {
%4 = alloca [4 x float]
%5 = alloca [12 x float]
%6 = bitcast [4 x float]* %4 to i8*
%7 = bitcast [12 x float]* %5 to i8*
%8 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 0
%9 = getelementptr inbounds [12 x float], [12 x float]* %5, i64 0, i64 0
%10 = call i32 @voronoi(float %0, float %1, float %2, float* %8, float* %9, i32 1, i32 0)
%11 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 1
%12 = load float, float* %11
ret float %12
}