xunge/DecIR huggingface dataset:
void fa14(int n) {
  goto a;
  {
    int b[n];
    {
      int c[n];
      0;
    }
    {
      int d[n];
      0;
    };
    int e[n];
    0;
  };
  {
    int f[n];
    {
      int g[n];
      0;
    };
    {
      int h[n];
      0;
    };
    ;
    int i[n];
    0;
  };
a:;
  int j[n];
  0;
}


x86 assembly (clang, -O0):
<fa14>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @fa14(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i64
store i32 %0, i32* %2
br label %56
19: ; No predecessors!
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
%22 = call i8* @llvm.stacksave()
store i8* %22, i8** %3
%23 = alloca i32, i64 %21
store i64 %21, i64* %4
%24 = load i32, i32* %2
%25 = zext i32 %24 to i64
%26 = call i8* @llvm.stacksave()
store i8* %26, i8** %5
%27 = alloca i32, i64 %25
store i64 %25, i64* %6
%28 = load i8*, i8** %5
%29 = load i32, i32* %2
%30 = zext i32 %29 to i64
%31 = call i8* @llvm.stacksave()
store i8* %31, i8** %7
%32 = alloca i32, i64 %30
store i64 %30, i64* %8
%33 = load i8*, i8** %7
%34 = load i32, i32* %2
%35 = zext i32 %34 to i64
%36 = alloca i32, i64 %35
store i64 %35, i64* %9
%37 = load i8*, i8** %3
%38 = load i32, i32* %2
%39 = zext i32 %38 to i64
%40 = call i8* @llvm.stacksave()
store i8* %40, i8** %10
%41 = alloca i32, i64 %39
store i64 %39, i64* %11
%42 = load i32, i32* %2
%43 = zext i32 %42 to i64
%44 = call i8* @llvm.stacksave()
store i8* %44, i8** %12
%45 = alloca i32, i64 %43
store i64 %43, i64* %13
%46 = load i8*, i8** %12
%47 = load i32, i32* %2
%48 = zext i32 %47 to i64
%49 = call i8* @llvm.stacksave()
store i8* %49, i8** %14
%50 = alloca i32, i64 %48
store i64 %48, i64* %15
%51 = load i8*, i8** %14
%52 = load i32, i32* %2
%53 = zext i32 %52 to i64
%54 = alloca i32, i64 %53
store i64 %53, i64* %16
%55 = load i8*, i8** %10
br label %56
56: ; preds = %19, %1
%57 = load i32, i32* %2
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
store i8* %59, i8** %17
%60 = alloca i32, i64 %58
store i64 %58, i64* %18
%61 = load i8*, i8** %17
ret void
}

LLVM IR (-O2):
define void @fa14(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ test_arrays();
int /*<<< orphan*/ test_constexpr();
int /*<<< orphan*/ test_literals();
int /*<<< orphan*/ test_pointers();
int /*<<< orphan*/ test_primitives();
int /*<<< orphan*/ test_struct();
int /*<<< orphan*/ test_unsigned();
int /*<<< orphan*/ test_vars();
void testmain() {
  print("sizeof");
  test_primitives();
  test_pointers();
  test_unsigned();
  test_literals();
  test_arrays();
  test_vars();
  test_struct();
  test_constexpr();
}


x86 assembly (clang, -O0):
<testmain>:
push   %rbp
mov    %rsp,%rbp
lea    0xe65(%rip),%rdi
call   1080 <print@plt>
mov    $0x0,%al
call   1090 <test_primitives@plt>
mov    $0x0,%al
call   1040 <test_pointers@plt>
mov    $0x0,%al
call   1030 <test_unsigned@plt>
mov    $0x0,%al
call   1060 <test_literals@plt>
mov    $0x0,%al
call   10a0 <test_arrays@plt>
mov    $0x0,%al
call   1050 <test_vars@plt>
mov    $0x0,%al
call   1070 <test_struct@plt>
mov    $0x0,%al
call   10b0 <test_constexpr@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testmain>:
push   %rax
lea    0xe68(%rip),%rdi
call   1080 <print@plt>
xor    %eax,%eax
call   1090 <test_primitives@plt>
xor    %eax,%eax
call   1040 <test_pointers@plt>
xor    %eax,%eax
call   1030 <test_unsigned@plt>
xor    %eax,%eax
call   1060 <test_literals@plt>
xor    %eax,%eax
call   10a0 <test_arrays@plt>
xor    %eax,%eax
call   1050 <test_vars@plt>
xor    %eax,%eax
call   1070 <test_struct@plt>
xor    %eax,%eax
pop    %rcx
jmp    10b0 <test_constexpr@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"sizeof\00"
define void @testmain() {
%1 = call i32 @print(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @test_primitives()
%3 = call i32 (...) @test_pointers()
%4 = call i32 (...) @test_unsigned()
%5 = call i32 (...) @test_literals()
%6 = call i32 (...) @test_arrays()
%7 = call i32 (...) @test_vars()
%8 = call i32 (...) @test_struct()
%9 = call i32 (...) @test_constexpr()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"sizeof\00"
define void @testmain() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_primitives()
%3 = tail call i32 (...) @test_pointers()
%4 = tail call i32 (...) @test_unsigned()
%5 = tail call i32 (...) @test_literals()
%6 = tail call i32 (...) @test_arrays()
%7 = tail call i32 (...) @test_vars()
%8 = tail call i32 (...) @test_struct()
%9 = tail call i32 (...) @test_constexpr()
ret void
}
/* Type definitions */
typedef unsigned long long uint64_t;
struct timeval {
  unsigned long long tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
uint64_t ts_get_current_time(void) {
  struct timeval ts;
  gettimeofday(&ts, NULL);
  return ((uint64_t)ts.tv_sec * 1000000ull + ts.tv_usec);
}


x86 assembly (clang, -O0):
<ts_get_current_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x8(%rbp),%rax
add    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_get_current_time>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,0x10(%rsp),%rax
add    0x8(%rsp),%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define i64 @ts_get_current_time() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%4 = load i64, i64* %3
%5 = mul i64 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%7 = load i64, i64* %6
%8 = add i64 %5, %7
ret i64 %8
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define i64 @ts_get_current_time() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%5 = load i64, i64* %4
%6 = mul i64 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%8 = load i64, i64* %7
%9 = add i64 %6, %8
ret i64 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("this is a test!\n");
  printf("--------------hello world, hello everyone!\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"this is a test!\0A\00"
@.str.1 = [44 x i8] c"--------------hello world, hello everyone!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [16 x i8] c"this is a test!\00"
@str.2 = [43 x i8] c"--------------hello world, hello everyone!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int _LittleLong(int);
int LittleLong(int l) { return _LittleLong(l); }


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

x86 assembly (clang, -O2):
<LittleLong>:
jmp    1030 <_LittleLong@plt>

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

LLVM IR (-O2):
define i32 @LittleLong(i32 %0) {
%2 = tail call i32 @_LittleLong(i32 %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef char *uint64_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
uint64_t mul64_32(uint64_t a, uint32_t b, uint8_t s) {
  uint64_t prod;
  __asm__("mul %%rdx ; "
          "shrd %%cl, %%rdx, %%rax"
          : "=a"(prod)
          : "0"(a), "d"((uint64_t)b), "Ic"(s));
  return prod;
}


x86 assembly (clang, -O0):
<mul64_32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rdx
mov    -0x10(%rbp),%ecx
mul    %rdx
shrd   %cl,%rdx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mul64_32>:
mov    %edx,%ecx
mov    %rdi,%rax
movslq %esi,%rdx
mul    %rdx
shrd   %cl,%rdx,%rax
ret

LLVM IR (-O0):
define i8* @mul64_32(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
%12 = load i32, i32* %6
%13 = call i8* asm "mul %rdx ; shrd %cl, %rdx, %rax", "={ax},0,{dx},I{cx},~{dirflag},~{fpsr},~{flags}"(i8* %8, i8* %11, i32 %12)
store i8* %13, i8** %7
%14 = load i8*, i8** %7
ret i8* %14
}

LLVM IR (-O2):
define i8* @mul64_32(i8* readnone %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = inttoptr i64 %4 to i8*
%6 = tail call i8* asm "mul %rdx ; shrd %cl, %rdx, %rax", "={ax},0,{dx},I{cx},~{dirflag},~{fpsr},~{flags}"(i8* %0, i8* %5, i32 %2)
ret i8* %6
}
XShrinkRegion() {}


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

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

LLVM IR (-O0):
define i32 @XShrinkRegion() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @XShrinkRegion() {
ret i32 undef
}
func3(param) int param;
{ return param; }


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

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

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

LLVM IR (-O2):
define i32 @func3(i32 returned %0) {
ret i32 %0
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
void aeron_release() {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
  volatile int64_t dummy = 0;
}


x86 assembly (clang, -O0):
<aeron_release>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<aeron_release>:
movl   $0x0,-0x4(%rsp)
ret

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

LLVM IR (-O2):
define void @aeron_release() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store volatile i32 0, i32* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ oosmos_DelayMS(int);
int /*<<< orphan*/ oosmos_RunStateMachines();
int /*<<< orphan*/ testNew();
extern int main(void) {
  (void)testNew();
  for (;;) {
    oosmos_RunStateMachines();
    oosmos_DelayMS(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <testNew@plt>
mov    $0x0,%al
call   1050 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1040 <oosmos_DelayMS@plt>
jmp    1146 <main+0x16>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <testNew@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1040 <oosmos_DelayMS@plt>
jmp    1140 <main+0x10>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @testNew()
br label %3
3: ; preds = %3, %0
%4 = call i32 (...) @oosmos_RunStateMachines()
%5 = call i32 @oosmos_DelayMS(i32 1)
br label %3
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @testNew()
br label %2
2: ; preds = %2, %0
%3 = tail call i32 (...) @oosmos_RunStateMachines()
%4 = tail call i32 @oosmos_DelayMS(i32 1)
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void basehelp(void) {
  printf("Functions:\n    SIN   COS   ATAN   LOG    LOG10   EXP   SQRT   INT   "
         "ABS\n    F2C   C2F   IN2MM  MM2IN  PO2KG   KG2PO\n\nOperators:\n    "
         "'=' '+' '-' '*' '/' '%%' '^'\n    '~' or and xor '<<' "
         "'>>'\n\nConstants: (case sensitive)\n    PI      E       GAMMA   DEG "
         "    PHI   \n\nValues:\n    0x...   0X...   0...   0o...   0c...   "
         "0b...   0y...\n\n");
}


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

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

LLVM IR (-O0):
@.str = [330 x i8] c"Functions:\0A SIN COS ATAN LOG LOG10 EXP SQRT INT ABS\0A F2C C2F IN2MM MM2IN PO2KG KG2PO\0A\0AOperators:\0A '=' '+' '-' '*' '/' '%%' '^'\0A '~' or and xor '<<' '>>'\0A\0AConstants: (case sensitive)\0A PI E GAMMA DEG PHI \0A\0AValues:\0A 0x... 0X... 0... 0o... 0c... 0b... 0y...\0A\0A\00"
define void @basehelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [330 x i8] c"Functions:\0A SIN COS ATAN LOG LOG10 EXP SQRT INT ABS\0A F2C C2F IN2MM MM2IN PO2KG KG2PO\0A\0AOperators:\0A '=' '+' '-' '*' '/' '%%' '^'\0A '~' or and xor '<<' '>>'\0A\0AConstants: (case sensitive)\0A PI E GAMMA DEG PHI \0A\0AValues:\0A 0x... 0X... 0... 0o... 0c... 0b... 0y...\0A\0A\00"
define void @basehelp() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void shot(void *_data) {
  (void)_data;
  printf("Shot!\n");
}


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

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

LLVM IR (-O0):
@.str = [7 x i8] c"Shot!\0A\00"
define void @shot(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [6 x i8] c"Shot!\00"
define void @shot(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isupper(int);
void t_isupper_0xe3() {
  Assert_real((isupper(227) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isupper.c",
              1140, ("isupper should be 0 for 0xe3"));
}


x86 assembly (clang, -O0):
<t_isupper_0xe3>:
push   %rbp
mov    %rsp,%rbp
mov    $0xe3,%edi
call   1030 <isupper@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x474,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isupper_0xe3>:
push   %rax
mov    $0xe3,%edi
call   1030 <isupper@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x474,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [29 x i8] c"isupper should be 0 for 0xe3\00"
define void @t_isupper_0xe3() {
%1 = call i64 @isupper(i32 227)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1140, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [29 x i8] c"isupper should be 0 for 0xe3\00"
define void @t_isupper_0xe3() {
%1 = tail call i64 @isupper(i32 227)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1140, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ errAbort(char *, char *);
void samToBed(char *samIn, char *bedOut) {
  errAbort("%s: in order to use this functionality you must "
           "install the samtools library (<A "
           "HREF=\"http://samtools.sourceforge.net\" "
           "TARGET=_BLANK>http://samtools.sourceforge.net</A>) and recompile "
           "kent/src with "
           "USE_BAM=1 in your environment "
           "(see <A "
           "HREF=\"http://genomewiki.ucsc.edu/index.php/"
           "Build_Environment_Variables\" "
           "TARGET=_BLANK>http://genomewiki.ucsc.edu/index.php/"
           "Build_Environment_Variables</A>).",
           "samToBed");
}


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

x86 assembly (clang, -O2):
<samToBed>:
lea    0xee9(%rip),%rdi
lea    0x106c(%rip),%rsi
jmp    1030 <errAbort@plt>

LLVM IR (-O0):
@.str = [394 x i8] c"%s: in order to use this functionality you must install the samtools library (<A HREF=\22http://samtools.sourceforge.net\22 TARGET=_BLANK>http://samtools.sourceforge.net</A>) and recompile kent/src with USE_BAM=1 in your environment (see <A HREF=\22http://genomewiki.ucsc.edu/index.php/Build_Environment_Variables\22 TARGET=_BLANK>http://genomewiki.ucsc.edu/index.php/Build_Environment_Variables</A>).\00"
@.str.1 = [9 x i8] c"samToBed\00"
define void @samToBed(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 @errAbort(i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [394 x i8] c"%s: in order to use this functionality you must install the samtools library (<A HREF=\22http://samtools.sourceforge.net\22 TARGET=_BLANK>http://samtools.sourceforge.net</A>) and recompile kent/src with USE_BAM=1 in your environment (see <A HREF=\22http://genomewiki.ucsc.edu/index.php/Build_Environment_Variables\22 TARGET=_BLANK>http://genomewiki.ucsc.edu/index.php/Build_Environment_Variables</A>).\00"
@.str.1 = [9 x i8] c"samToBed\00"
define void @samToBed(i8* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = tail call i32 @errAbort(i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ IsSpanCompletelyInside(int, int, int);
bool IsCompletelyInside(int x, int y, int w, int h, int clipw, int cliph) {
  return IsSpanCompletelyInside(x, w, clipw) &&
         IsSpanCompletelyInside(y, h, cliph);
}


x86 assembly (clang, -O0):
<IsCompletelyInside>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1030 <IsSpanCompletelyInside@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x19(%rbp)
je     1164 <IsCompletelyInside+0x54>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1030 <IsSpanCompletelyInside@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsCompletelyInside>:
push   %rbp
push   %r14
push   %rbx
mov    %r9d,%r14d
mov    %ecx,%ebp
mov    %esi,%ebx
mov    %edx,%esi
mov    %r8d,%edx
call   1030 <IsSpanCompletelyInside@plt>
test   %rax,%rax
je     1143 <IsCompletelyInside+0x33>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <IsSpanCompletelyInside@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
jmp    1145 <IsCompletelyInside+0x35>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @IsCompletelyInside(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %7
%14 = load i32, i32* %9
%15 = load i32, i32* %11
%16 = call i64 @IsSpanCompletelyInside(i32 %13, i32 %14, i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %6
%19 = load i32, i32* %8
%20 = load i32, i32* %10
%21 = load i32, i32* %12
%22 = call i64 @IsSpanCompletelyInside(i32 %19, i32 %20, i32 %21)
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %18, %6
%25 = phi i1 [ false, %6 ], [ %23, %18 ]
%26 = zext i1 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
define i32 @IsCompletelyInside(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i64 @IsSpanCompletelyInside(i32 %0, i32 %2, i32 %4)
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = tail call i64 @IsSpanCompletelyInside(i32 %1, i32 %3, i32 %5)
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %9, %6
%14 = phi i32 [ 0, %6 ], [ %12, %9 ]
ret i32 %14
}
void HandleUnknown(void) {}


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

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

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

LLVM IR (-O2):
define void @HandleUnknown() {
ret void
}
/* Variables and functions */
int add(int, int);
int /*<<< orphan*/ printf(char *, int);
int sub(int, int);
int main(void) {
  printf("hello, there. math things: %d\n", add(10, 20) + sub(50, 10));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xa,%edi
mov    $0x14,%esi
call   1030 <add@plt>
mov    %eax,-0x8(%rbp)
mov    $0x32,%edi
mov    $0xa,%esi
call   1050 <sub@plt>
mov    -0x8(%rbp),%esi
add    %eax,%esi
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xa,%edi
mov    $0x14,%esi
call   1030 <add@plt>
mov    %eax,%ebx
mov    $0x32,%edi
mov    $0xa,%esi
call   1050 <sub@plt>
add    %eax,%ebx
lea    0xea6(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"hello, there. math things: %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @add(i32 10, i32 20)
%3 = call i32 @sub(i32 50, i32 10)
%4 = add nsw i32 %2, %3
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"hello, there. math things: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @add(i32 10, i32 20)
%2 = tail call i32 @sub(i32 50, i32 10)
%3 = add nsw i32 %2, %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 0
}
int lsm_enabled(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @lsm_enabled() {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ monitor_send_info(char *, int);
int /*<<< orphan*/ snprintf(char *, int, char *);
void monitor_send_keepalive_ack(void) {
  char buf[32];
  snprintf(buf, sizeof(buf), "[K-0000]keepalive_ack\n");
  monitor_send_info(buf, 1);
}


x86 assembly (clang, -O0):
<monitor_send_keepalive_ack>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x20(%rbp),%rdi
mov    $0x20,%esi
lea    0xec8(%rip),%rdx
call   1030 <snprintf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x1,%esi
call   1040 <monitor_send_info@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<monitor_send_keepalive_ack>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <monitor_send_info@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"[K-0000]keepalive_ack\0A\00"
define void @monitor_send_keepalive_ack() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 32, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%5 = call i32 @monitor_send_info(i8* %4, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"[K-0000]keepalive_ack\0A\00"
define void @monitor_send_keepalive_ack() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 32, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @monitor_send_info(i8* %2, i32 1)
ret void
}
/* Variables and functions */
int a(int);
int c(int);
int b(int x) { return a(x) - b(x) - c(x); }


x86 assembly (clang, -O0):
<b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <a@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <b@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <c@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
sub    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<b>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebx
call   1050 <a@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1030 <b@plt>
mov    %eax,%r14d
mov    %ebx,%edi
call   1040 <c@plt>
add    %r14d,%eax
sub    %eax,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @b(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @a(i32 %3)
%5 = load i32, i32* %2
%6 = call i32 @b(i32 %5)
%7 = sub nsw i32 %4, %6
%8 = load i32, i32* %2
%9 = call i32 @c(i32 %8)
%10 = sub nsw i32 %7, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @b(i32 %0) {
%2 = tail call i32 @a(i32 %0)
%3 = tail call i32 @b(i32 %0)
%4 = tail call i32 @c(i32 %0)
%5 = add i32 %3, %4
%6 = sub i32 %2, %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ hl_alloc_strbytes(char *);
int /*<<< orphan*/ hl_throw(int /*<<< orphan*/);
void null_function() { hl_throw(hl_alloc_strbytes(u"Null function ptr")); }


x86 assembly (clang, -O0):
<null_function>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <hl_alloc_strbytes@plt>
mov    %eax,%edi
call   1030 <hl_throw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<null_function>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <hl_alloc_strbytes@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <hl_throw@plt>

LLVM IR (-O0):
@.str = [18 x i16] [i16 78, i16 117, i16 108, i16 108, i16 32, i16 102, i16 117, i16 110, i16 99, i16 116, i16 105, i16 111, i16 110, i16 32, i16 112, i16 116, i16 114, i16 0]
define void @null_function() {
%1 = call i32 @hl_alloc_strbytes(i8* bitcast ([18 x i16]* @.str to i8*))
%2 = call i32 @hl_throw(i32 %1)
ret void
}

LLVM IR (-O2):
@.str = [18 x i16] [i16 78, i16 117, i16 108, i16 108, i16 32, i16 102, i16 117, i16 110, i16 99, i16 116, i16 105, i16 111, i16 110, i16 32, i16 112, i16 116, i16 114, i16 0]
define void @null_function() {
%1 = tail call i32 @hl_alloc_strbytes(i8* bitcast ([18 x i16]* @.str to i8*))
%2 = tail call i32 @hl_throw(i32 %1)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int standard_diagonal_Laurent_homotopy(int a, int b) {
  int fail;
  double *c;
  fail = _ada_use_c2phc4c(810, &a, &b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<standard_diagonal_Laurent_homotopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0x32a,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_diagonal_Laurent_homotopy>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x32a,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @standard_diagonal_Laurent_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @_ada_use_c2phc4c(i32 810, i32* %3, i32* %4, double* undef, i32 0)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ usleep(int);
void rsc_sched_delay(int ms) { usleep(ms * 1000); }


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

x86 assembly (clang, -O2):
<rsc_sched_delay>:
imul   $0x3e8,%edi,%edi
jmp    1030 <usleep@plt>

LLVM IR (-O0):
define void @rsc_sched_delay(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = mul nsw i32 %3, 1000
%5 = call i32 @usleep(i32 %4)
ret void
}

LLVM IR (-O2):
define void @rsc_sched_delay(i32 %0) {
%2 = mul nsw i32 %0, 1000
%3 = tail call i32 @usleep(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ i2cslave_ClearSlaveWREQ(int);
void i2c1slave_ClearSlaveWREQ(void) { i2cslave_ClearSlaveWREQ(1); }


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

x86 assembly (clang, -O2):
<i2c1slave_ClearSlaveWREQ>:
mov    $0x1,%edi
jmp    1030 <i2cslave_ClearSlaveWREQ@plt>

LLVM IR (-O0):
define void @i2c1slave_ClearSlaveWREQ() {
%1 = call i32 @i2cslave_ClearSlaveWREQ(i32 1)
ret void
}

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

/* Variables and functions */
uint64_t test2(uint64_t *buf) { return buf[5]; }


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

x86 assembly (clang, -O2):
<test2>:
mov    0x14(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @test2(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 5
%3 = load i32, i32* %2
ret i32 %3
}
int test_imm_5Cint64_highword_mem(long long *val) {
  return ((*val >> 32) & (0x5C << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_5Cint64_highword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = ashr i64 %4, 32
%6 = and i64 %5, 92
%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_5Cint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 395136991232
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void encryption_destroy(void) {}


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

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

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

LLVM IR (-O2):
define void @encryption_destroy() {
ret void
}
signed char signedchar_id(signed char x) { return x; }


x86 assembly (clang, -O0):
<signedchar_id>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define signext i8 @signedchar_id(i8 returned signext %0) {
ret i8 %0
}
/* Type definitions */
typedef char const uint32_t;

/* Variables and functions */
uint32_t readUInt32(const void *u) {
  const char *b = (const char *)u;
  return (b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24));
}


x86 assembly (clang, -O0):
<readUInt32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%rcx
movsbl 0x2(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%rcx
movsbl 0x3(%rcx),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<readUInt32>:
mov    (%rdi),%al
ret

LLVM IR (-O0):
define signext i8 @readUInt32(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
store i8* %4, i8** %3
%5 = load i8*, i8** %3
%6 = getelementptr inbounds i8, i8* %5, i64 0
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = or i32 %8, %13
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 2
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = shl i32 %18, 16
%20 = or i32 %14, %19
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 3
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = shl i32 %24, 24
%26 = or i32 %20, %25
%27 = trunc i32 %26 to i8
ret i8 %27
}

LLVM IR (-O2):
define signext i8 @readUInt32(i8* nocapture %0) {
%2 = load i8, i8* %0
ret i8 %2
}
/* Variables and functions */
int diminuto_ipcl_stream_accept_generic(int, char *, size_t);
int diminuto_ipcl_packet_accept_generic(int fd, char *pathp, size_t psize) {
  return diminuto_ipcl_stream_accept_generic(fd, pathp, psize);
}


x86 assembly (clang, -O0):
<diminuto_ipcl_packet_accept_generic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <diminuto_ipcl_stream_accept_generic@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<diminuto_ipcl_packet_accept_generic>:
jmp    1030 <diminuto_ipcl_stream_accept_generic@plt>

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

LLVM IR (-O2):
define i32 @diminuto_ipcl_packet_accept_generic(i32 %0, i8* %1, i64 %2) {
%4 = tail call i32 @diminuto_ipcl_stream_accept_generic(i32 %0, i8* %1, i64 %2)
ret i32 %4
}
int fn(int i) { return i + 1; }


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

x86 assembly (clang, -O2):
<fn>:
lea    0x1(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @fn(i32 %0) {
%2 = add nsw i32 %0, 1
ret i32 %2
}
__attribute__((no_sanitize_undefined)) void si_overflow(void) {
  int x = 123, y = 267;
  volatile int z1 = x + y;
  volatile int z2 = x - y;
  volatile int z3 = x * y;
  volatile int z4 = x / y;
}


x86 assembly (clang, -O0):
<si_overflow>:
push   %rbp
mov    %rsp,%rbp
movl   $0x7b,-0x4(%rbp)
movl   $0x10b,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,-0x18(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<si_overflow>:
movl   $0x186,-0x4(%rsp)
movl   $0xffffff70,-0x8(%rsp)
ff
movl   $0x8049,-0xc(%rsp)
movl   $0x0,-0x10(%rsp)
ret

LLVM IR (-O0):
define void @si_overflow() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 123, i32* %1
store i32 267, i32* %2
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = add nsw i32 %7, %8
store volatile i32 %9, i32* %3
%10 = load i32, i32* %1
%11 = load i32, i32* %2
%12 = sub nsw i32 %10, %11
store volatile i32 %12, i32* %4
%13 = load i32, i32* %1
%14 = load i32, i32* %2
%15 = mul nsw i32 %13, %14
store volatile i32 %15, i32* %5
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = sdiv i32 %16, %17
store volatile i32 %18, i32* %6
ret void
}

LLVM IR (-O2):
define void @si_overflow() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
store volatile i32 390, i32* %1
%6 = bitcast i32* %2 to i8*
store volatile i32 -144, i32* %2
%7 = bitcast i32* %3 to i8*
store volatile i32 32841, i32* %3
%8 = bitcast i32* %4 to i8*
store volatile i32 0, i32* %4
ret void
}
/* Variables and functions */
int strcasecmp(char const *, char const *);
int strcmp_case_insensitive(const char *s1, const char *s2) {
  return strcasecmp(s1, s2);
}


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

x86 assembly (clang, -O2):
<strcmp_case_insensitive>:
jmp    1030 <strcasecmp@plt>

LLVM IR (-O0):
define i32 @strcmp_case_insensitive(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 i32 @strcasecmp(i8* %5, i8* %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @strcmp_case_insensitive(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcasecmp(i8* %0, i8* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ fftss_kern_r4_ia64_f(double *, double *, double *, double *,
                                        long, long, int, int);
void fftss_r4_ia64_o_f(double *in, double *out, double *w, long bsize,
                       long blocks) {
  fftss_kern_r4_ia64_f(in, out, w, w + bsize * blocks * 6, bsize * blocks,
                       bsize, 14, 110);
}


x86 assembly (clang, -O0):
<fftss_r4_ia64_o_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
imul   $0x6,%rax,%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x20(%rbp),%r8
imul   -0x28(%rbp),%r8
mov    -0x20(%rbp),%r9
movl   $0xe,(%rsp)
movl   $0x6e,0x8(%rsp)
call   1030 <fftss_kern_r4_ia64_f@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fftss_r4_ia64_o_f>:
push   %rax
mov    %rcx,%r9
imul   %rcx,%r8
lea    (%r8,%r8,2),%rcx
shl    $0x4,%rcx
add    %rdx,%rcx
push   $0x6e
push   $0xe
call   1030 <fftss_kern_r4_ia64_f@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @fftss_r4_ia64_o_f(double* %0, double* %1, double* %2, i64 %3, i64 %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i64
%10 = alloca i64
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load double*, double** %6
%12 = load double*, double** %7
%13 = load double*, double** %8
%14 = load double*, double** %8
%15 = load i64, i64* %9
%16 = load i64, i64* %10
%17 = mul nsw i64 %15, %16
%18 = mul nsw i64 %17, 6
%19 = getelementptr inbounds double, double* %14, i64 %18
%20 = load i64, i64* %9
%21 = load i64, i64* %10
%22 = mul nsw i64 %20, %21
%23 = load i64, i64* %9
%24 = call i32 @fftss_kern_r4_ia64_f(double* %11, double* %12, double* %13, double* %19, i64 %22, i64 %23, i32 14, i32 110)
ret void
}

LLVM IR (-O2):
define void @fftss_r4_ia64_o_f(double* %0, double* %1, double* %2, i64 %3, i64 %4) {
%6 = mul nsw i64 %4, %3
%7 = mul nsw i64 %6, 6
%8 = getelementptr inbounds double, double* %2, i64 %7
%9 = tail call i32 @fftss_kern_r4_ia64_f(double* %0, double* %1, double* %2, double* %8, i64 %6, i64 %3, i32 14, i32 110)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;
struct udphdr {
  int /*<<< orphan*/ len;
};

/* Variables and functions */
int /*<<< orphan*/ ntohs(int /*<<< orphan*/);
uint16_t _udphdr_len_ntohs(struct udphdr *h) { return ntohs(h->len); }


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

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

LLVM IR (-O0):
%struct.udphdr = type { i32 }
define i32 @_udphdr_len_ntohs(%struct.udphdr* %0) {
%2 = alloca %struct.udphdr*
store %struct.udphdr* %0, %struct.udphdr** %2
%3 = load %struct.udphdr*, %struct.udphdr** %2
%4 = getelementptr inbounds %struct.udphdr, %struct.udphdr* %3, i32 0, i32 0
%5 = load i32, i32* %4
%6 = call i32 @ntohs(i32 %5)
ret i32 %6
}

LLVM IR (-O2):
%struct.udphdr = type { i32 }
define i32 @_udphdr_len_ntohs(%struct.udphdr* nocapture %0) {
%2 = getelementptr inbounds %struct.udphdr, %struct.udphdr* %0, i64 0, i32 0
%3 = load i32, i32* %2
%4 = tail call i32 @ntohs(i32 %3)
ret i32 %4
}
void _M2_dtoa_init(void) {}


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

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

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

LLVM IR (-O2):
define void @_M2_dtoa_init() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dmb_test();
int /*<<< orphan*/ dsb_test();
int /*<<< orphan*/ isb_test();
void sync_instruction_test(void) {
  dmb_test();
  dsb_test();
  isb_test();
}


x86 assembly (clang, -O0):
<sync_instruction_test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <dmb_test@plt>
mov    $0x0,%al
call   1040 <dsb_test@plt>
mov    $0x0,%al
call   1050 <isb_test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sync_instruction_test>:
push   %rax
xor    %eax,%eax
call   1030 <dmb_test@plt>
xor    %eax,%eax
call   1040 <dsb_test@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <isb_test@plt>

LLVM IR (-O0):
define void @sync_instruction_test() {
%1 = call i32 (...) @dmb_test()
%2 = call i32 (...) @dsb_test()
%3 = call i32 (...) @isb_test()
ret void
}

LLVM IR (-O2):
define void @sync_instruction_test() {
%1 = tail call i32 (...) @dmb_test()
%2 = tail call i32 (...) @dsb_test()
%3 = tail call i32 (...) @isb_test()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SYS_gettid;
long *malloc(int);
int /*<<< orphan*/ pthread_exit(long *);
int /*<<< orphan*/ sleep(int);
long syscall(int /*<<< orphan*/);
void *myThread(void *arg) {
  sleep(1);
  long int *tid = malloc(sizeof(long int));
  *tid = syscall(SYS_gettid);
  pthread_exit(tid);
}


x86 assembly (clang, -O0):
<myThread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x8,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rdi
call   1040 <pthread_exit@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myThread>:
push   %rbx
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x8,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    0x2e89(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall@plt>
mov    %rax,(%rbx)
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <pthread_exit@plt>

LLVM IR (-O0):
@SYS_gettid = global i32 0
define i8* @myThread(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64*
store i8* %0, i8** %3
%5 = call i32 @sleep(i32 1)
%6 = call i64* @malloc(i32 8)
store i64* %6, i64** %4
%7 = load i32, i32* @SYS_gettid
%8 = call i64 @syscall(i32 %7)
%9 = load i64*, i64** %4
store i64 %8, i64* %9
%10 = load i64*, i64** %4
%11 = call i32 @pthread_exit(i64* %10)
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
@SYS_gettid = global i32 0
define noalias i8* @myThread(i8* nocapture readnone %0) {
%2 = tail call i32 @sleep(i32 1)
%3 = tail call i64* @malloc(i32 8)
%4 = load i32, i32* @SYS_gettid
%5 = tail call i64 @syscall(i32 %4)
store i64 %5, i64* %3
%6 = tail call i32 @pthread_exit(i64* %3)
ret i8* undef
}
void gtk_tree_view_column_get_sort_indicator() {}


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

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

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

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