xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ main1(int, int);
int main(void) {
  main1(100, 100);
  main1(0, 15);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x64,%esi
mov    %esi,%edi
call   1030 <main1@plt>
xor    %edi,%edi
mov    $0xf,%esi
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x64,%edi
mov    $0x64,%esi
call   1030 <main1@plt>
xor    %edi,%edi
mov    $0xf,%esi
call   1030 <main1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @main1(i32 100, i32 100)
%3 = call i32 @main1(i32 0, i32 15)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @main1(i32 100, i32 100)
%2 = tail call i32 @main1(i32 0, i32 15)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ GL_BACK;
int /*<<< orphan*/ GL_CULL_FACE;
int /*<<< orphan*/ GL_CW;
int /*<<< orphan*/ glClearColor(double, double, double, double);
int /*<<< orphan*/ glCullFace(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glFrontFace(int /*<<< orphan*/);
void initdisplay(void) {
  glClearColor(0.0, 0.0, 0.4, 0.0);
  glFrontFace(GL_CW);
  glEnable(GL_CULL_FACE);
  glCullFace(GL_BACK);
}


x86 assembly (clang, -O0):
<initdisplay>:
push   %rbp
mov    %rsp,%rbp
xorps  %xmm3,%xmm3
movsd  0xeb1(%rip),%xmm2
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
call   1040 <glClearColor@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
call   1050 <glFrontFace@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
call   1030 <glEnable@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%edi
call   1060 <glCullFace@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initdisplay>:
push   %rax
movsd  0xeb7(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
call   1040 <glClearColor@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
call   1050 <glFrontFace@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
call   1030 <glEnable@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1060 <glCullFace@plt>

LLVM IR (-O0):
@GL_CW = global i32 0
@GL_CULL_FACE = global i32 0
@GL_BACK = global i32 0
define void @initdisplay() {
%1 = call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%2 = load i32, i32* @GL_CW
%3 = call i32 @glFrontFace(i32 %2)
%4 = load i32, i32* @GL_CULL_FACE
%5 = call i32 @glEnable(i32 %4)
%6 = load i32, i32* @GL_BACK
%7 = call i32 @glCullFace(i32 %6)
ret void
}

LLVM IR (-O2):
@GL_CW = global i32 0
@GL_CULL_FACE = global i32 0
@GL_BACK = global i32 0
define void @initdisplay() {
%1 = tail call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%2 = load i32, i32* @GL_CW
%3 = tail call i32 @glFrontFace(i32 %2)
%4 = load i32, i32* @GL_CULL_FACE
%5 = tail call i32 @glEnable(i32 %4)
%6 = load i32, i32* @GL_BACK
%7 = tail call i32 @glCullFace(i32 %6)
ret void
}
/* Type definitions */
struct Cyc_Lexing_lexbuf {
  int dummy;
};

/* Variables and functions */
int Cyc_Lex_wstrng_next_rec(struct Cyc_Lexing_lexbuf *, int);
int Cyc_Lex_wstrng_next(struct Cyc_Lexing_lexbuf *lexbuf) {
  int _T0;
  _T0 = Cyc_Lex_wstrng_next_rec(lexbuf, 4);
  return _T0;
}


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

x86 assembly (clang, -O2):
<Cyc_Lex_wstrng_next>:
mov    $0x4,%esi
jmp    1030 <Cyc_Lex_wstrng_next_rec@plt>

LLVM IR (-O0):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_Lex_wstrng_next(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = alloca %struct.Cyc_Lexing_lexbuf*
%3 = alloca i32
store %struct.Cyc_Lexing_lexbuf* %0, %struct.Cyc_Lexing_lexbuf** %2
%4 = load %struct.Cyc_Lexing_lexbuf*, %struct.Cyc_Lexing_lexbuf** %2
%5 = call i32 @Cyc_Lex_wstrng_next_rec(%struct.Cyc_Lexing_lexbuf* %4, i32 4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_Lex_wstrng_next(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = tail call i32 @Cyc_Lex_wstrng_next_rec(%struct.Cyc_Lexing_lexbuf* %0, i32 4)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ _dorand48(unsigned short *);
long jrand48(unsigned short xseed[3]) {
  _dorand48(xseed);
  return ((long)xseed[2] << 16) + (long)xseed[1];
}


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

x86 assembly (clang, -O2):
<jrand48>:
push   %rbx
mov    %rdi,%rbx
call   1030 <_dorand48@plt>
mov    0x2(%rbx),%eax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @jrand48(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = call i32 @_dorand48(i16* %3)
%5 = load i16*, i16** %2
%6 = getelementptr inbounds i16, i16* %5, i64 2
%7 = load i16, i16* %6
%8 = zext i16 %7 to i64
%9 = shl i64 %8, 16
%10 = load i16*, i16** %2
%11 = getelementptr inbounds i16, i16* %10, i64 1
%12 = load i16, i16* %11
%13 = zext i16 %12 to i64
%14 = add nsw i64 %9, %13
ret i64 %14
}

LLVM IR (-O2):
define i64 @jrand48(i16* %0) {
%2 = tail call i32 @_dorand48(i16* %0)
%3 = getelementptr inbounds i16, i16* %0, i64 2
%4 = load i16, i16* %3
%5 = zext i16 %4 to i64
%6 = shl nuw nsw i64 %5, 16
%7 = getelementptr inbounds i16, i16* %0, i64 1
%8 = load i16, i16* %7
%9 = zext i16 %8 to i64
%10 = or i64 %6, %9
ret i64 %10
}
/* Variables and functions */
scalar_t__ isspace(int);
char *strtrim_left(char *p) {
  for (; isspace((int)*p); ++p)
    ;
  return p;
}


x86 assembly (clang, -O0):
<strtrim_left>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1148 <strtrim_left+0x38>
jmp    1137 <strtrim_left+0x27>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <strtrim_left+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strtrim_left>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isspace@plt>
test   %rax,%rax
jne    1120 <strtrim_left+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @strtrim_left(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %10, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = call i64 @isspace(i32 %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
br label %10
10: ; preds = %9
%11 = load i8*, i8** %2
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %2
br label %3
13: ; preds = %3
%14 = load i8*, i8** %2
ret i8* %14
}

LLVM IR (-O2):
define i8* @strtrim_left(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %8, %2 ]
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = tail call i64 @isspace(i32 %5)
%7 = icmp eq i64 %6, 0
%8 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %7, label %9, label %2
9: ; preds = %2
ret i8* %3
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t rev8(uint8_t a) {
  return ((a & 0x01) << 7) | ((a & 0x02) << 5) | ((a & 0x04) << 3) |
         ((a & 0x08) << 1) | ((a & 0x10) >> 1) | ((a & 0x20) >> 3) |
         ((a & 0x40) >> 5) | ((a & 0x80) >> 7);
}


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

x86 assembly (clang, -O2):
<rev8>:
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 @rev8(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 1
%5 = shl i32 %4, 7
%6 = load i32, i32* %2
%7 = and i32 %6, 2
%8 = shl i32 %7, 5
%9 = or i32 %5, %8
%10 = load i32, i32* %2
%11 = and i32 %10, 4
%12 = shl i32 %11, 3
%13 = or i32 %9, %12
%14 = load i32, i32* %2
%15 = and i32 %14, 8
%16 = shl i32 %15, 1
%17 = or i32 %13, %16
%18 = load i32, i32* %2
%19 = and i32 %18, 16
%20 = ashr i32 %19, 1
%21 = or i32 %17, %20
%22 = load i32, i32* %2
%23 = and i32 %22, 32
%24 = ashr i32 %23, 3
%25 = or i32 %21, %24
%26 = load i32, i32* %2
%27 = and i32 %26, 64
%28 = ashr i32 %27, 5
%29 = or i32 %25, %28
%30 = load i32, i32* %2
%31 = and i32 %30, 128
%32 = ashr i32 %31, 7
%33 = or i32 %29, %32
ret i32 %33
}

LLVM IR (-O2):
define i32 @rev8(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
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
size_t wcsxfrm(wchar_t *ws1, const wchar_t *ws2, size_t n) {
  memcpy((char *)ws1, (const char *)ws2, n);
  return n;
}


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

x86 assembly (clang, -O2):
<wcsxfrm>:
push   %rbx
mov    %rdx,%rbx
call   1030 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @wcsxfrm(i32* %0, i32* %1, i64 %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i64
store i32* %0, i32** %4
store i32* %1, i32** %5
store i64 %2, i64* %6
%7 = load i32*, i32** %4
%8 = bitcast i32* %7 to i8*
%9 = load i32*, i32** %5
%10 = bitcast i32* %9 to i8*
%11 = load i64, i64* %6
%12 = call i32 @memcpy(i8* %8, i8* %10, i64 %11)
%13 = load i64, i64* %6
ret i64 %13
}

LLVM IR (-O2):
define i64 @wcsxfrm(i32* %0, i32* %1, i64 returned %2) {
%4 = bitcast i32* %0 to i8*
%5 = bitcast i32* %1 to i8*
%6 = tail call i32 @memcpy(i8* %4, i8* %5, i64 %2)
ret i64 %2
}
void netcdf_SetVerticalDatumTS(int VerticalDatumFlag) {}


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

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

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

LLVM IR (-O2):
define void @netcdf_SetVerticalDatumTS(i32 %0) {
ret void
}
/* Type definitions */
typedef int uint32_t;
typedef int int32_t;

/* Variables and functions */
uint32_t etna_f32_to_fixp16(float f) {
  if (f >= (32768.0f - 1.0f / 65536.0f))
    return 0x7fffffff;
  if (f < -32768.0f)
    return 0x80000000;
  return (int32_t)(f * 65536.0f + 0.5f);
}


x86 assembly (clang, -O0):
<etna_f32_to_fixp16>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     112b <etna_f32_to_fixp16+0x2b>
movl   $0x7fffffff,-0x4(%rbp)
jmp    116d <etna_f32_to_fixp16+0x6d>
movss  0xed1(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1149 <etna_f32_to_fixp16+0x49>
movl   $0x80000000,-0x4(%rbp)
jmp    116d <etna_f32_to_fixp16+0x6d>
movss  -0x8(%rbp),%xmm0
movss  0xeb2(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xeaa(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<etna_f32_to_fixp16>:
mov    $0x7fffffff,%eax
ucomiss 0xef4(%rip),%xmm0
jae    1134 <etna_f32_to_fixp16+0x34>
mov    $0x80000000,%eax
movss  0xee9(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     1134 <etna_f32_to_fixp16+0x34>
mulss  0xee0(%rip),%xmm0
addss  0xedc(%rip),%xmm0
cvttss2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @etna_f32_to_fixp16(float %0) {
%2 = alloca i32
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp oge float %4, 3.276800e+04
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 2147483647, i32* %2
br label %15
7: ; preds = %1
%8 = load float, float* %3
%9 = fcmp olt float %8, -3.276800e+04
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 -2147483648, i32* %2
br label %15
11: ; preds = %7
%12 = load float, float* %3
%13 = call float @llvm.fmuladd.f32(float %12, float 6.553600e+04, float 5.000000e-01)
%14 = fptosi float %13 to i32
store i32 %14, i32* %2
br label %15
15: ; preds = %11, %10, %6
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @etna_f32_to_fixp16(float %0) {
%2 = fcmp ult float %0, 3.276800e+04
br i1 %2, label %3, label %8
3: ; preds = %1
%4 = fcmp olt float %0, -3.276800e+04
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = tail call float @llvm.fmuladd.f32(float %0, float 6.553600e+04, float 5.000000e-01)
%7 = fptosi float %6 to i32
br label %8
8: ; preds = %3, %1, %5
%9 = phi i32 [ %7, %5 ], [ 2147483647, %1 ], [ -2147483648, %3 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(long *, long *, int);
long *memory_alloc(long, char *, int);
void *adt_copy_long(const void *data) {
  long *data2;
  ((data2) = memory_alloc((long)sizeof *(data2),
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "Jianlong-Peng/myADT/refs/heads/master/src/mtools.c",
                          38));
  memcpy(data2, (long *)data, sizeof(long));
  return (void *)data2;
}


x86 assembly (clang, -O0):
<adt_copy_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x8,%edi
lea    0xec8(%rip),%rsi
mov    $0x26,%edx
call   1030 <memory_alloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <memcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adt_copy_long>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xed2(%rip),%rsi
mov    $0x8,%edi
mov    $0x26,%edx
call   1030 <memory_alloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
mov    $0x8,%edx
call   1040 <memcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Jianlong-Peng/myADT/refs/heads/master/src/mtools.c\00"
define i8* @adt_copy_long(i8* %0) {
%2 = alloca i8*
%3 = alloca i64*
store i8* %0, i8** %2
%4 = call i64* @memory_alloc(i64 8, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str, i64 0, i64 0), i32 38)
store i64* %4, i64** %3
%5 = load i64*, i64** %3
%6 = load i8*, i8** %2
%7 = bitcast i8* %6 to i64*
%8 = call i32 @memcpy(i64* %5, i64* %7, i32 8)
%9 = load i64*, i64** %3
%10 = bitcast i64* %9 to i8*
ret i8* %10
}

LLVM IR (-O2):
@.str = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Jianlong-Peng/myADT/refs/heads/master/src/mtools.c\00"
define i8* @adt_copy_long(i8* %0) {
%2 = tail call i64* @memory_alloc(i64 8, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str, i64 0, i64 0), i32 38)
%3 = bitcast i8* %0 to i64*
%4 = tail call i32 @memcpy(i64* %2, i64* %3, i32 8)
%5 = bitcast i64* %2 to i8*
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ LCD_CLR_A0();
int /*<<< orphan*/ Send1(char);
void LCD_X_Write00(char Cmd) {
  ;
  LCD_CLR_A0();
  Send1(Cmd);
  ;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0x0,%al
call   1040 <LCD_CLR_A0@plt>
movsbl -0x1(%rbp),%edi
call   1030 <Send1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1040 <LCD_CLR_A0@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <Send1@plt>

LLVM IR (-O0):
define void @LCD_X_Write00(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 (...) @LCD_CLR_A0()
%4 = load i8, i8* %2
%5 = call i32 @Send1(i8 signext %4)
ret void
}

LLVM IR (-O2):
define void @LCD_X_Write00(i8 signext %0) {
%2 = tail call i32 (...) @LCD_CLR_A0()
%3 = tail call i32 @Send1(i8 signext %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int32_t htob_32(int32_t hostval) {
  union {
    int32_t l;
    uint8_t b[4];
  } u1, u2;
  u1.l = hostval;
  u2.b[0] = u1.b[3];
  u2.b[1] = u1.b[2];
  u2.b[2] = u1.b[1];
  u2.b[3] = u1.b[0];
  return u2.l;
}


x86 assembly (clang, -O0):
<htob_32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%union.anon = type { [4 x i32] }
define i32 @htob_32(i32 %0) {
%2 = alloca i32
%3 = alloca %union.anon
%4 = alloca %union.anon
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = bitcast %union.anon* %3 to i32*
store i32 %5, i32* %6
%7 = bitcast %union.anon* %3 to [4 x i32]*
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%9 = load i32, i32* %8
%10 = bitcast %union.anon* %4 to [4 x i32]*
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
store i32 %9, i32* %11
%12 = bitcast %union.anon* %3 to [4 x i32]*
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 2
%14 = load i32, i32* %13
%15 = bitcast %union.anon* %4 to [4 x i32]*
%16 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 1
store i32 %14, i32* %16
%17 = bitcast %union.anon* %3 to [4 x i32]*
%18 = getelementptr inbounds [4 x i32], [4 x i32]* %17, i64 0, i64 1
%19 = load i32, i32* %18
%20 = bitcast %union.anon* %4 to [4 x i32]*
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %20, i64 0, i64 2
store i32 %19, i32* %21
%22 = bitcast %union.anon* %3 to [4 x i32]*
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %22, i64 0, i64 0
%24 = load i32, i32* %23
%25 = bitcast %union.anon* %4 to [4 x i32]*
%26 = getelementptr inbounds [4 x i32], [4 x i32]* %25, i64 0, i64 3
store i32 %24, i32* %26
%27 = bitcast %union.anon* %4 to i32*
%28 = load i32, i32* %27
ret i32 %28
}

LLVM IR (-O2):
define i32 @htob_32(i32 %0) {
ret i32 undef
}
void glutInitDisplayMode(unsigned int mode) {}


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

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

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

LLVM IR (-O2):
define void @glutInitDisplayMode(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void get_architecture(void) { printf("X86"); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"X86\00"
define void @get_architecture() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}
int encodeChar(char inputChar) {
  if (inputChar == ' ') {
    return 27 - 1;
  } else {
    int result;
    result = inputChar - (int)'A';
    if (result < 27 && result >= 0) {
      return result;
    } else {
      return -1;
    }
  }
}


x86 assembly (clang, -O0):
<encodeChar>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x20,%eax
jne    1123 <encodeChar+0x23>
movl   $0x1a,-0x4(%rbp)
jmp    1153 <encodeChar+0x53>
movsbl -0x5(%rbp),%eax
sub    $0x41,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1b,-0xc(%rbp)
jge    114c <encodeChar+0x4c>
cmpl   $0x0,-0xc(%rbp)
jl     114c <encodeChar+0x4c>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1153 <encodeChar+0x53>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<encodeChar>:
mov    $0x1a,%eax
cmp    $0x20,%dil
je     1122 <encodeChar+0x22>
movsbl %dil,%ecx
add    $0xbf,%dil
add    $0xffffffbf,%ecx
cmp    $0x1b,%dil
mov    $0xffffffff,%eax
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @encodeChar(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %3
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 32
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 26, i32* %2
br label %21
9: ; preds = %1
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = sub nsw i32 %11, 65
store i32 %12, i32* %4
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 27
br i1 %14, label %15, label %20
15: ; preds = %9
%16 = load i32, i32* %4
%17 = icmp sge i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i32, i32* %4
store i32 %19, i32* %2
br label %21
20: ; preds = %15, %9
store i32 -1, i32* %2
br label %21
21: ; preds = %20, %18, %8
%22 = load i32, i32* %2
ret i32 %22
}

LLVM IR (-O2):
define i32 @encodeChar(i8 signext %0) {
%2 = icmp eq i8 %0, 32
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = add i8 %0, -65
%5 = icmp ult i8 %4, 27
%6 = sext i8 %0 to i32
%7 = add nsw i32 %6, -65
%8 = select i1 %5, i32 %7, i32 -1
br label %9
9: ; preds = %1, %3
%10 = phi i32 [ %8, %3 ], [ 26, %1 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ plcvm_get_u8(scalar_t__);
scalar_t__ plcvm_lpm_u16();
int plcvm_pop();
int /*<<< orphan*/ plcvm_push(int /*<<< orphan*/);
void cb_ldm_u1_cs16(void) {
  plcvm_push(plcvm_get_u8(plcvm_pop() * 4 + plcvm_lpm_u16()));
}


x86 assembly (clang, -O0):
<cb_ldm_u1_cs16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <plcvm_pop@plt>
shl    $0x2,%eax
cltq
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <plcvm_lpm_u16@plt>
mov    -0x8(%rbp),%rdi
add    %rax,%rdi
call   1050 <plcvm_get_u8@plt>
mov    %eax,%edi
call   1060 <plcvm_push@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cb_ldm_u1_cs16>:
push   %rbx
xor    %eax,%eax
call   1030 <plcvm_pop@plt>
shl    $0x2,%eax
movslq %eax,%rbx
xor    %eax,%eax
call   1040 <plcvm_lpm_u16@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1050 <plcvm_get_u8@plt>
mov    %eax,%edi
pop    %rbx
jmp    1060 <plcvm_push@plt>

LLVM IR (-O0):
define void @cb_ldm_u1_cs16() {
%1 = call i32 (...) @plcvm_pop()
%2 = mul nsw i32 %1, 4
%3 = sext i32 %2 to i64
%4 = call i64 (...) @plcvm_lpm_u16()
%5 = add nsw i64 %3, %4
%6 = call i32 @plcvm_get_u8(i64 %5)
%7 = call i32 @plcvm_push(i32 %6)
ret void
}

LLVM IR (-O2):
define void @cb_ldm_u1_cs16() {
%1 = tail call i32 (...) @plcvm_pop()
%2 = shl nsw i32 %1, 2
%3 = sext i32 %2 to i64
%4 = tail call i64 (...) @plcvm_lpm_u16()
%5 = add nsw i64 %4, %3
%6 = tail call i32 @plcvm_get_u8(i64 %5)
%7 = tail call i32 @plcvm_push(i32 %6)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
uint32_t knot_wire_read_u32(const uint8_t *pos) {
  return ntohl(*(uint32_t *)pos);
}


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

x86 assembly (clang, -O2):
<knot_wire_read_u32>:
mov    (%rdi),%edi
jmp    1030 <ntohl@plt>

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

LLVM IR (-O2):
define i32 @knot_wire_read_u32(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @ntohl(i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ putc(char);
void puts(char *string) {
  int i = 0;
  while (string[i]) {
    putc(string[i]);
    i++;
  }
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1154 <puts+0x44>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <putc@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <puts+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <puts+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <putc@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <puts+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @puts(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8 [ %10, %4 ], [ %2, %1 ]
%7 = tail call i32 @putc(i8 signext %6)
%8 = add nuw i64 %5, 1
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
unsigned long SwapEndianLong(unsigned long Data) {
  unsigned char A, B, C, D;
  A = (unsigned char)((Data >> 24) & 0x0ff);
  B = (unsigned char)((Data >> 16) & 0x0ff);
  C = (unsigned char)((Data >> 8) & 0x0ff);
  D = (unsigned char)(Data & 0x0ff);
  return (unsigned long)(A | (B << 8) | (C << 16) | (D << 24));
}


x86 assembly (clang, -O0):
<SwapEndianLong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x18,%rax
and    $0xff,%rax
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x10,%rax
and    $0xff,%rax
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x8,%rax
and    $0xff,%rax
mov    %al,-0xb(%rbp)
mov    -0x8(%rbp),%rax
and    $0xff,%rax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xa(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzbl -0xb(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
movzbl -0xc(%rbp),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<SwapEndianLong>:
bswap  %edi
movslq %edi,%rax
ret

LLVM IR (-O0):
define i64 @SwapEndianLong(i64 %0) {
%2 = alloca i64
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i64 %0, i64* %2
%7 = load i64, i64* %2
%8 = lshr i64 %7, 24
%9 = and i64 %8, 255
%10 = trunc i64 %9 to i8
store i8 %10, i8* %3
%11 = load i64, i64* %2
%12 = lshr i64 %11, 16
%13 = and i64 %12, 255
%14 = trunc i64 %13 to i8
store i8 %14, i8* %4
%15 = load i64, i64* %2
%16 = lshr i64 %15, 8
%17 = and i64 %16, 255
%18 = trunc i64 %17 to i8
store i8 %18, i8* %5
%19 = load i64, i64* %2
%20 = and i64 %19, 255
%21 = trunc i64 %20 to i8
store i8 %21, i8* %6
%22 = load i8, i8* %3
%23 = zext i8 %22 to i32
%24 = load i8, i8* %4
%25 = zext i8 %24 to i32
%26 = shl i32 %25, 8
%27 = or i32 %23, %26
%28 = load i8, i8* %5
%29 = zext i8 %28 to i32
%30 = shl i32 %29, 16
%31 = or i32 %27, %30
%32 = load i8, i8* %6
%33 = zext i8 %32 to i32
%34 = shl i32 %33, 24
%35 = or i32 %31, %34
%36 = sext i32 %35 to i64
ret i64 %36
}

LLVM IR (-O2):
define i64 @SwapEndianLong(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @llvm.bswap.i32(i32 %2)
%4 = sext i32 %3 to i64
ret i64 %4
}
void ls_costN_nm4_decref(void) {}


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

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

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

LLVM IR (-O2):
define void @ls_costN_nm4_decref() {
ret void
}
int test_imm_BEuint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0xBE << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_BEuint64_highword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
shr    $0x20,%rdx
and    $0xbe,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_BEuint64_highword_mem>:
testb  $0xbe,0x4(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_BEuint64_highword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = lshr i64 %4, 32
%6 = and i64 %5, 190
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_BEuint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 816043786240
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void cerrarArchivo() {}


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

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

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

LLVM IR (-O2):
define void @cerrarArchivo() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CG_SelectNextPlayer();
void CG_NextTeamMember_f(void) { CG_SelectNextPlayer(); }


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

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

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

LLVM IR (-O2):
define void @CG_NextTeamMember_f() {
%1 = tail call i32 (...) @CG_SelectNextPlayer()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ not_nested();
void stack_underflow() {
  not_nested();
  return;
}


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

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

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

LLVM IR (-O2):
define void @stack_underflow() {
%1 = tail call i32 (...) @not_nested()
ret void
}
unsigned long http_parser_version(void) {
  return 2 * 0x10000 | 2 * 0x00100 | 0 * 0x00001;
}


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

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

LLVM IR (-O0):
define i64 @http_parser_version() {
ret i64 131584
}

LLVM IR (-O2):
define i64 @http_parser_version() {
ret i64 131584
}
void t_trivial(void *context) {}


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

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

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

LLVM IR (-O2):
define void @t_trivial(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  printf("Hello, my architecture is %s\n", "Undefined");
  exit(0);
}


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

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

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

LLVM IR (-O2):
@.str = [30 x i8] c"Hello, my architecture is %s\0A\00"
@.str.1 = [10 x i8] c"Undefined\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
void sunxi_hotplug_cooling_unregister(struct sunxi_budget_cooling_device *bcd) {
}


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

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

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

LLVM IR (-O2):
%struct.sunxi_budget_cooling_device = type opaque
define void @sunxi_hotplug_cooling_unregister(%struct.sunxi_budget_cooling_device* nocapture %0) {
ret void
}
/* Variables and functions */
float __infer_nondet_float();
int __infer_nondet_int();
float frexpf(float value, int *exp) {
  *exp = __infer_nondet_int();
  return __infer_nondet_float();
}


x86 assembly (clang, -O0):
<frexpf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1040 <__infer_nondet_float@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<frexpf>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <__infer_nondet_int@plt>
mov    %eax,(%rbx)
xor    %eax,%eax
pop    %rbx
jmp    1040 <__infer_nondet_float@plt>

LLVM IR (-O0):
define float @frexpf(float %0, i32* %1) {
%3 = alloca float
%4 = alloca i32*
store float %0, float* %3
store i32* %1, i32** %4
%5 = call i32 (...) @__infer_nondet_int()
%6 = load i32*, i32** %4
store i32 %5, i32* %6
%7 = call float (...) @__infer_nondet_float()
ret float %7
}

LLVM IR (-O2):
define float @frexpf(float %0, i32* nocapture writeonly %1) {
%3 = tail call i32 (...) @__infer_nondet_int()
store i32 %3, i32* %1
%4 = tail call float (...) @__infer_nondet_float()
ret float %4
}
void foo030() {}


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

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

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

LLVM IR (-O2):
define void @foo030() {
ret void
}
/* Variables and functions */
void *malloc(size_t);
void *realloc(void *, size_t);
void *rpl_realloc(void *ptr, size_t n) {
  if (!ptr)
    return malloc(n);
  if (n == 0)
    n = 1;
  return realloc(ptr, n);
}


x86 assembly (clang, -O0):
<rpl_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114d <rpl_realloc+0x2d>
mov    -0x18(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
jmp    1171 <rpl_realloc+0x51>
cmpq   $0x0,-0x18(%rbp)
jne    1160 <rpl_realloc+0x40>
movq   $0x1,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rpl_realloc>:
test   %rdi,%rdi
je     1139 <rpl_realloc+0x19>
test   %rsi,%rsi
mov    $0x1,%eax
cmovne %rsi,%rax
mov    %rax,%rsi
jmp    1040 <realloc@plt>
mov    %rsi,%rdi
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define noalias i8* @rpl_realloc(i8* %0, i64 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i8* @malloc(i64 %1)
br label %10
6: ; preds = %2
%7 = icmp eq i64 %1, 0
%8 = select i1 %7, i64 1, i64 %1
%9 = tail call i8* @realloc(i8* %0, i64 %8)
br label %10
10: ; preds = %6, %4
%11 = phi i8* [ %9, %6 ], [ %5, %4 ]
ret i8* %11
}
/* Variables and functions */
int /*<<< orphan*/ TTWAIN_ModalEventLoopPD();
void TTWAIN_ModalEventLoop(void) { TTWAIN_ModalEventLoopPD(); }


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

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

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

LLVM IR (-O2):
define void @TTWAIN_ModalEventLoop() {
%1 = tail call i32 (...) @TTWAIN_ModalEventLoopPD()
ret void
}
unsigned char from_b64(unsigned char ch) {
  static const unsigned char tab[128] = {
      255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62,  255,
      255, 255, 63,  52,  53,  54,  55,  56,  57,  58,  59,  60,  61,  255, 255,
      255, 200, 255, 255, 255, 0,   1,   2,   3,   4,   5,   6,   7,   8,   9,
      10,  11,  12,  13,  14,  15,  16,  17,  18,  19,  20,  21,  22,  23,  24,
      25,  255, 255, 255, 255, 255, 255, 26,  27,  28,  29,  30,  31,  32,  33,
      34,  35,  36,  37,  38,  39,  40,  41,  42,  43,  44,  45,  46,  47,  48,
      49,  50,  51,  255, 255, 255, 255, 255,
  };
  return tab[ch & 127];
}


x86 assembly (clang, -O0):
<from_b64>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
and    $0x7f,%eax
movslq %eax,%rcx
lea    0xee5(%rip),%rax
movzbl (%rax,%rcx,1),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<from_b64>:
and    $0x7f,%edi
lea    0xef6(%rip),%rax
mov    (%rdi,%rax,1),%al
ret

LLVM IR (-O0):
@from_b64.tab = internal constant [128 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF>\FF\FF\FF?456789:;<=\FF\FF\FF\C8\FF\FF\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\FF\FF\FF\FF\FF\FF\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./0123\FF\FF\FF\FF\FF"
define zeroext i8 @from_b64(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 127
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [128 x i8], [128 x i8]* @from_b64.tab, i64 0, i64 %6
%8 = load i8, i8* %7
ret i8 %8
}

LLVM IR (-O2):
@from_b64.tab = internal unnamed_addr constant [128 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF>\FF\FF\FF?456789:;<=\FF\FF\FF\C8\FF\FF\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\FF\FF\FF\FF\FF\FF\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./0123\FF\FF\FF\FF\FF"
define zeroext i8 @from_b64(i8 zeroext %0) {
%2 = and i8 %0, 127
%3 = zext i8 %2 to i64
%4 = getelementptr inbounds [128 x i8], [128 x i8]* @from_b64.tab, i64 0, i64 %3
%5 = load i8, i8* %4
ret i8 %5
}
long proc2(long p1, int p2) { return p1 + p2; }


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

x86 assembly (clang, -O2):
<proc2>:
movslq %esi,%rax
add    %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @proc2(i64 %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = add nsw i64 %3, %0
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ prout(char *);
int /*<<< orphan*/ skip(int);
void prelim(void) {
  skip(2);
  prout("-SUPER- STAR TREK");
  skip(1);
  prout("Latest update-21 Sept 78");
  skip(1);
}


x86 assembly (clang, -O0):
<prelim>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
call   1030 <skip@plt>
lea    0xecb(%rip),%rdi
call   1040 <prout@plt>
mov    $0x1,%edi
call   1030 <skip@plt>
lea    0xec7(%rip),%rdi
call   1040 <prout@plt>
mov    $0x1,%edi
call   1030 <skip@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prelim>:
push   %rax
mov    $0x2,%edi
call   1030 <skip@plt>
lea    0xece(%rip),%rdi
call   1040 <prout@plt>
mov    $0x1,%edi
call   1030 <skip@plt>
lea    0xeca(%rip),%rdi
call   1040 <prout@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <skip@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"-SUPER- STAR TREK\00"
@.str.1 = [25 x i8] c"Latest update-21 Sept 78\00"
define void @prelim() {
%1 = call i32 @skip(i32 2)
%2 = call i32 @prout(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @skip(i32 1)
%4 = call i32 @prout(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @skip(i32 1)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"-SUPER- STAR TREK\00"
@.str.1 = [25 x i8] c"Latest update-21 Sept 78\00"
define void @prelim() {
%1 = tail call i32 @skip(i32 2)
%2 = tail call i32 @prout(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @skip(i32 1)
%4 = tail call i32 @prout(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @skip(i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ UsageMsg(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
void ShowHelp(void) {
  char programName[2048];
  sprintf(programName, "%s %s", "MultiVPN - Multiprotocol VPN tool", "v0.0.1");
  UsageMsg(programName);
}


x86 assembly (clang, -O0):
<ShowHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x800,%rsp
lea    -0x800(%rbp),%rdi
lea    0xec7(%rip),%rsi
lea    0xec6(%rip),%rdx
lea    0xee1(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x800(%rbp),%rdi
call   1030 <UsageMsg@plt>
add    $0x800,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShowHelp>:
push   %rbx
sub    $0x800,%rsp
lea    0xed1(%rip),%rsi
lea    0xed0(%rip),%rdx
lea    0xeeb(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <UsageMsg@plt>
add    $0x800,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [34 x i8] c"MultiVPN - Multiprotocol VPN tool\00"
@.str.2 = [7 x i8] c"v0.0.1\00"
define void @ShowHelp() {
%1 = alloca [2048 x i8]
%2 = getelementptr inbounds [2048 x i8], [2048 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = getelementptr inbounds [2048 x i8], [2048 x i8]* %1, i64 0, i64 0
%5 = call i32 @UsageMsg(i8* %4)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [34 x i8] c"MultiVPN - Multiprotocol VPN tool\00"
@.str.2 = [7 x i8] c"v0.0.1\00"
define void @ShowHelp() {
%1 = alloca [2048 x i8]
%2 = getelementptr inbounds [2048 x i8], [2048 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @UsageMsg(i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stdout;
int main(void) {
  fprintf(stdout, "Good Bye ...");
  sleep(5);
  fflush(stdout);
  sleep(5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
lea    0xeb1(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x5,%edi
call   1050 <sleep@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0x5,%edi
call   1050 <sleep@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ea8(%rip),%rbx
mov    (%rbx),%edi
lea    0xebf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x5,%edi
call   1050 <sleep@plt>
mov    (%rbx),%edi
call   1040 <fflush@plt>
mov    $0x5,%edi
call   1050 <sleep@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [13 x i8] c"Good Bye ...\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @stdout
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @sleep(i32 5)
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
%7 = call i32 @sleep(i32 5)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [13 x i8] c"Good Bye ...\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @sleep(i32 5)
%4 = load i32, i32* @stdout
%5 = tail call i32 @fflush(i32 %4)
%6 = tail call i32 @sleep(i32 5)
ret i32 0
}
int main(int argc, char **argv) {
  char buf[10];
  volatile char *x = buf;
  *x = 0;
  return buf[0];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1a(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
movsbl -0x1a(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
movb   $0x0,-0x1(%rsp)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i8]
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
store i8* %8, i8** %7
%9 = load i8*, i8** %7
store volatile i8 0, i8* %9
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8
store volatile i8 0, i8* %3
ret i32 0
}