xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ zap(int /*<<< orphan*/);
int main() {
  zap(0);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <zap@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @zap(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int term_color_from_name(char const *);
int term_background(const char *name) {
  int n = term_color_from_name(name);
  if (-1 == n)
    return n;
  printf("\e[4%dm", n);
  return 0;
}


x86 assembly (clang, -O0):
<term_background>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <term_color_from_name@plt>
mov    %eax,-0x14(%rbp)
mov    $0xffffffff,%eax
cmp    -0x14(%rbp),%eax
jne    1151 <term_background+0x31>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1167 <term_background+0x47>
mov    -0x14(%rbp),%esi
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<term_background>:
push   %rax
call   1030 <term_color_from_name@plt>
cmp    $0xffffffff,%eax
je     113d <term_background+0x1d>
lea    0xece(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
mov    $0xffffffff,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"\1B[4%dm\00"
define i32 @term_background(i8* %0) {
%2 = tail call i32 @term_color_from_name(i8* %0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 0, %4 ], [ -1, %1 ]
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void print_line(const char *str) { printf("%s\n", str); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @print_line(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void test_invalid_input(void) {
  const char *start;
  char *completed;
  vle_compl_reset();
  complete_options("fast ?f", &start);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("fast ?f", completed, __FUNCTION__, 91);
  } while (0);
  free(completed);
}


x86 assembly (clang, -O0):
<test_invalid_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1070 <vle_compl_reset@plt>
lea    0xe9a(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <complete_options@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe77(%rip),%rdi
lea    0xe78(%rip),%rdx
mov    $0x5b,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_invalid_input>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1070 <vle_compl_reset@plt>
lea    0xe9e(%rip),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <complete_options@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe88(%rip),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x5b,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [8 x i8] c"fast ?f\00"
@__FUNCTION__.test_invalid_input = [19 x i8] c"test_invalid_input\00"
define void @test_invalid_input() {
%1 = alloca i8*
%2 = alloca i8*
%3 = call i32 (...) @vle_compl_reset()
%4 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %1)
%5 = call i32 (...) @vle_compl_next()
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
store i8* %7, i8** %2
br label %8
8: ; preds = %0
%9 = load i8*, i8** %2
%10 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.test_invalid_input, i64 0, i64 0), i32 91)
br label %11
11: ; preds = %8
%12 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"fast ?f\00"
@__FUNCTION__.test_invalid_input = [19 x i8] c"test_invalid_input\00"
define void @test_invalid_input() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
%3 = tail call i32 (...) @vle_compl_reset()
%4 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %1)
%5 = call i32 (...) @vle_compl_next()
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
%8 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.test_invalid_input, i64 0, i64 0), i32 91)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char, char);
void buserr(int arg) {
  printf("#define MUST_ALIGN32\t%c* must align 32 bit values *%c\n", '/', '/');
  exit(0);
}


x86 assembly (clang, -O0):
<buserr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x2f,%edx
mov    %edx,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<buserr>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x2f,%esi
mov    $0x2f,%edx
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"#define MUST_ALIGN32\09%c* must align 32 bit values *%c\0A\00"
define void @buserr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8 signext 47, i8 signext 47)
%4 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [55 x i8] c"#define MUST_ALIGN32\09%c* must align 32 bit values *%c\0A\00"
define void @buserr(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8 signext 47, i8 signext 47)
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
scalar_t__ shim_enosys(int /*<<< orphan*/, int, int);
int shim_ioprio_get(int which, int who) {
  return (int)shim_enosys(0, which, who);
}


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

x86 assembly (clang, -O2):
<shim_ioprio_get>:
mov    %esi,%edx
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <shim_enosys@plt>

LLVM IR (-O0):
define i32 @shim_ioprio_get(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i64 @shim_enosys(i32 0, i32 %5, i32 %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @shim_ioprio_get(i32 %0, i32 %1) {
%3 = tail call i64 @shim_enosys(i32 0, i32 %0, i32 %1)
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ ASN1_VALUE;
typedef int /*<<< orphan*/ ASN1_OCTET_STRING;

/* Variables and functions */
int /*<<< orphan*/ ASN1_OCTET_STRING_it;
int ASN1_item_i2d(int /*<<< orphan*/ *, unsigned char **, int /*<<< orphan*/ *);
int i2d_ASN1_OCTET_STRING(ASN1_OCTET_STRING *a, unsigned char **out) {
  return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_OCTET_STRING_it);
}


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

x86 assembly (clang, -O2):
<i2d_ASN1_OCTET_STRING>:
mov    0x2ec9(%rip),%rdx
jmp    1030 <ASN1_item_i2d@plt>

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

LLVM IR (-O2):
@ASN1_OCTET_STRING_it = global i32 0
define i32 @i2d_ASN1_OCTET_STRING(i32* %0, i8** %1) {
%3 = tail call i32 @ASN1_item_i2d(i32* %0, i8** %1, i32* @ASN1_OCTET_STRING_it)
ret i32 %3
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
uint32_t add(uint32_t x, uint32_t y) { return x + y; }


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

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

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

LLVM IR (-O2):
define i64 @add(i64 %0, i64 %1) {
%3 = add nsw i64 %1, %0
ret i64 %3
}
void mt753x_swconfig_destroy(struct gsw_mt753x *gsw) {}


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

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

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

LLVM IR (-O2):
%struct.gsw_mt753x = type opaque
define void @mt753x_swconfig_destroy(%struct.gsw_mt753x* nocapture %0) {
ret void
}
/* Variables and functions */
int U_WMRCORENONE_get(char *);
int U_WMR8C_get(void) { return U_WMRCORENONE_get("U_WMR8C"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR8C\00"
define i32 @U_WMR8C_get() {
%1 = call i32 @U_WMRCORENONE_get(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR8C\00"
define i32 @U_WMR8C_get() {
%1 = tail call i32 @U_WMRCORENONE_get(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
void ThreadAPI_Exit(int res) {}


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

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

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

LLVM IR (-O2):
define void @ThreadAPI_Exit(i32 %0) {
ret void
}
int in_utf8(unsigned long value, void *arg) {
  int *nchar;
  nchar = arg;
  (*nchar)++;
  return 1;
}


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

x86 assembly (clang, -O2):
<in_utf8>:
addl   $0x1,(%rsi)
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @in_utf8(i64 %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3
%5 = add nsw i32 %4, 1
store i32 %5, i32* %3
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ OS_TaskRegister();
void task_1(void) {
  OS_TaskRegister();
  while (1)
    ;
  return;
}


x86 assembly (clang, -O0):
<task_1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <OS_TaskRegister@plt>
jmp    111b <task_1+0xb>

x86 assembly (clang, -O2):
<task_1>:
push   %rax
xor    %eax,%eax
call   1030 <OS_TaskRegister@plt>
nopl   0x0(%rax,%rax,1)
jmp    1120 <task_1+0x10>

LLVM IR (-O0):
define void @task_1() {
%1 = call i32 (...) @OS_TaskRegister()
br label %2
2: ; preds = %0, %2
br label %2
}

LLVM IR (-O2):
define void @task_1() {
%1 = tail call i32 (...) @OS_TaskRegister()
br label %2
2: ; preds = %0, %2
br label %2
}
/* Variables and functions */
double log10(float);
int mbLogC(float x) {
  int t;
  if (x <= 1.18e-38f)
    return -37928;
  t = (int)(1000.0 * log10(x) + 0.5);
  return t;
}


x86 assembly (clang, -O0):
<mbLogC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  0xedb(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     113b <mbLogC+0x2b>
movl   $0xffff6bd8,-0x4(%rbp)
jmp    116a <mbLogC+0x5a>
movss  -0x8(%rbp),%xmm0
call   1030 <log10@plt>
movsd  0xebb(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeb7(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mbLogC>:
push   %rax
mov    $0xffff6bd8,%eax
movss  0xee2(%rip),%xmm1
ucomiss %xmm0,%xmm1
jae    113c <mbLogC+0x2c>
call   1030 <log10@plt>
mulsd  0xed8(%rip),%xmm0
addsd  0xed8(%rip),%xmm0
cvttsd2si %xmm0,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @mbLogC(float %0) {
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
store float %0, float* %3
%5 = load float, float* %3
%6 = fcmp ole float %5, 0x38100FB320000000
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 -37928, i32* %2
br label %14
8: ; preds = %1
%9 = load float, float* %3
%10 = call double @log10(float %9)
%11 = call double @llvm.fmuladd.f64(double 1.000000e+03, double %10, double 5.000000e-01)
%12 = fptosi double %11 to i32
store i32 %12, i32* %4
%13 = load i32, i32* %4
store i32 %13, i32* %2
br label %14
14: ; preds = %8, %7
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
define i32 @mbLogC(float %0) {
%2 = fcmp ugt float %0, 0x38100FB320000000
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = tail call double @log10(float %0)
%5 = tail call double @llvm.fmuladd.f64(double %4, double 1.000000e+03, double 5.000000e-01)
%6 = fptosi double %5 to i32
br label %7
7: ; preds = %1, %3
%8 = phi i32 [ %6, %3 ], [ -37928, %1 ]
ret i32 %8
}
void fd36(int n) {
P0A:
  goto P0A;
  {
    typedef int(*b)[n];
  P01A:
    goto P01A;
    {
      typedef int(*c)[n];
    p012A:
      goto p012A;
      goto a;
    a:
      0;
    }
  P01B:
    goto P01B;
    {
      typedef int(*d)[n];
    P013A:
      goto P013A;
      0;
    }
  P01C:
    goto P01C;
    ;
    typedef int(*e)[n];
  P014A:
    goto P014A;
    0;
  };
P0B:
  goto P0B;
  {
    typedef int(*f)[n];
  P02A:
    goto P02A;
    {
      typedef int(*g)[n];
    P024A:
      goto P024A;
      0;
    };
  P02B:
    goto P02B;
    {
      typedef int(*h)[n];
    P025A:
      goto P025A;
      0;
    };
  P02C:
    goto P02C;
    ;
    typedef int(*i)[n];
  P026A:
    goto P026A;
    0;
  };
P0C:
  goto P0C;
  ;
  typedef int(*j)[n];
P03A:
  goto P03A;
  0;
P03B:
  goto P03B;
}


x86 assembly (clang, -O0):
<fd36>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fd36+0x7>

x86 assembly (clang, -O2):
<fd36>:
jmp    1100 <fd36>

LLVM IR (-O0):
define void @fd36(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %3, %1
br label %3
4: ; No predecessors!
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
br label %7
7: ; preds = %7, %4
br label %7
8: ; No predecessors!
%9 = load i32, i32* %2
%10 = zext i32 %9 to i64
br label %11
11: ; preds = %11, %8
br label %11
12: ; No predecessors!
br label %13
13: ; preds = %13, %12
br label %13
14: ; No predecessors!
%15 = load i32, i32* %2
%16 = zext i32 %15 to i64
br label %17
17: ; preds = %17, %14
br label %17
18: ; preds = %18
br label %18
19: ; No predecessors!
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
br label %22
22: ; preds = %22, %19
br label %22
23: ; preds = %23
br label %23
24: ; No predecessors!
%25 = load i32, i32* %2
%26 = zext i32 %25 to i64
br label %27
27: ; preds = %27, %24
br label %27
28: ; No predecessors!
%29 = load i32, i32* %2
%30 = zext i32 %29 to i64
br label %31
31: ; preds = %31, %28
br label %31
32: ; preds = %32
br label %32
33: ; No predecessors!
%34 = load i32, i32* %2
%35 = zext i32 %34 to i64
br label %36
36: ; preds = %36, %33
br label %36
37: ; preds = %37
br label %37
38: ; No predecessors!
%39 = load i32, i32* %2
%40 = zext i32 %39 to i64
br label %41
41: ; preds = %41, %38
br label %41
42: ; preds = %42
br label %42
43: ; No predecessors!
%44 = load i32, i32* %2
%45 = zext i32 %44 to i64
br label %46
46: ; preds = %46, %43
br label %46
47: ; preds = %47
br label %47
}

LLVM IR (-O2):
define void @fd36(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
void f(void) { __builtin_complex(0.0, 0.0); }


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

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

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

LLVM IR (-O2):
define void @f() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x5a() {
  Assert_real((ispunct(90) == 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_ispunct.c",
              455, ("ispunct should be 0 for Z"));
}


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

x86 assembly (clang, -O2):
<t_ispunct_0x5a>:
push   %rax
mov    $0x5a,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x1c7,%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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for Z\00"
define void @t_ispunct_0x5a() {
%1 = call i64 @ispunct(i32 90)
%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 455, i8* getelementptr inbounds ([26 x i8], [26 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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for Z\00"
define void @t_ispunct_0x5a() {
%1 = tail call i64 @ispunct(i32 90)
%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 455, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int sum2numbers(int, int);
int main() {
  int num1, num2, sum;
  scanf("%d %d", &num1, &num2);
  sum = sum2numbers(num1, num2);
  printf("%d\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <sum2numbers@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
call   1050 <sum2numbers@plt>
lea    0xeae(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = call i32 @sum2numbers(i32 %6, i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}
/* Variables and functions */
int randrange(int, int);
int randint(int start, int end) { return randrange(start, end + 1); }


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

x86 assembly (clang, -O2):
<randint>:
add    $0x1,%esi
jmp    1030 <randrange@plt>

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

LLVM IR (-O2):
define i32 @randint(i32 %0, i32 %1) {
%3 = add nsw i32 %1, 1
%4 = tail call i32 @randrange(i32 %0, i32 %3)
ret i32 %4
}
float foo1(void) {
  return 3.40282346638528859811704183484516925e+38F +
         3.40282346638528859811704183484516925e+38F;
}


x86 assembly (clang, -O0):
<foo1>:
push   %rbp
mov    %rsp,%rbp
movss  0xef4(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo1>:
movss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @foo1() {
ret float 0x7FF0000000000000
}

LLVM IR (-O2):
define float @foo1() {
ret float 0x7FF0000000000000
}
/* Variables and functions */
int errno;
int read(int, void *, int);
int k_read(int *nread, int fd, void *addr, int count) {
  int rc = read(fd, addr, count);
  if (rc < 0)
    return errno;
  if (nread)
    *nread = rc;
  return 0;
}


x86 assembly (clang, -O0):
<k_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1030 <read@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jge    1153 <k_read+0x43>
mov    0x2e97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    116e <k_read+0x5e>
cmpq   $0x0,-0x10(%rbp)
je     1167 <k_read+0x57>
mov    -0x28(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<k_read>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
mov    %rdx,%rsi
mov    %ecx,%edx
call   1030 <read@plt>
test   %eax,%eax
js     1131 <k_read+0x21>
mov    %eax,%ecx
xor    %eax,%eax
test   %rbx,%rbx
je     112f <k_read+0x1f>
mov    %ecx,(%rbx)
pop    %rbx
ret
mov    0x2ea8(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@errno = global i32 0
define i32 @k_read(i32* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%11 = load i32, i32* %7
%12 = load i8*, i8** %8
%13 = load i32, i32* %9
%14 = call i32 @read(i32 %11, i8* %12, i32 %13)
store i32 %14, i32* %10
%15 = load i32, i32* %10
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load i32, i32* @errno
store i32 %18, i32* %5
br label %26
19: ; preds = %4
%20 = load i32*, i32** %6
%21 = icmp ne i32* %20, null
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* %10
%24 = load i32*, i32** %6
store i32 %23, i32* %24
br label %25
25: ; preds = %22, %19
store i32 0, i32* %5
br label %26
26: ; preds = %25, %17
%27 = load i32, i32* %5
ret i32 %27
}

LLVM IR (-O2):
@errno = global i32 0
define i32 @k_read(i32* writeonly %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = tail call i32 @read(i32 %1, i8* %2, i32 %3)
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = load i32, i32* @errno
br label %12
9: ; preds = %4
%10 = icmp eq i32* %0, null
br i1 %10, label %12, label %11
11: ; preds = %9
store i32 %5, i32* %0
br label %12
12: ; preds = %9, %11, %7
%13 = phi i32 [ %8, %7 ], [ 0, %11 ], [ 0, %9 ]
ret i32 %13
}
char *colon(char *cp) {
  if (*cp == ':')
    return (0);
  for (; *cp; ++cp) {
    if (*cp == ':')
      return (cp);
    if (*cp == '/')
      return (0);
  }
  return (0);
}


x86 assembly (clang, -O0):
<colon>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    1125 <colon+0x25>
movq   $0x0,-0x8(%rbp)
jmp    118f <colon+0x8f>
jmp    112a <colon+0x2a>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1187 <colon+0x87>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    1154 <colon+0x54>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    118f <colon+0x8f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    1171 <colon+0x71>
movq   $0x0,-0x8(%rbp)
jmp    118f <colon+0x8f>
jmp    1176 <colon+0x76>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    112a <colon+0x2a>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<colon>:
mov    (%rdi),%cl
cmp    $0x3a,%cl
jne    110a <colon+0xa>
xor    %eax,%eax
ret
mov    %rdi,%rax
test   %cl,%cl
je     1107 <colon+0x7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0x2f,%cl
je     1107 <colon+0x7>
cmp    $0x3a,%cl
je     1109 <colon+0x9>
movzbl 0x1(%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1120 <colon+0x20>
jmp    1107 <colon+0x7>

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

LLVM IR (-O2):
define i8* @colon(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 58
br i1 %3, label %11, label %4
4: ; preds = %1, %7
%5 = phi i8 [ %9, %7 ], [ %2, %1 ]
%6 = phi i8* [ %8, %7 ], [ %0, %1 ]
switch i8 %5, label %7 [
i8 0, label %11
i8 58, label %10
i8 47, label %11
]
7: ; preds = %4
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
br label %4
10: ; preds = %4
br label %11
11: ; preds = %4, %4, %10, %1
%12 = phi i8* [ null, %1 ], [ %6, %10 ], [ null, %4 ], [ null, %4 ]
ret i8* %12
}
char *strcpy(char *dest, const char *src) {
  char *ret = dest;
  while ((*dest++ = *src++))
    ;
  return ret;
}


x86 assembly (clang, -O0):
<strcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %al,(%rcx)
cmp    $0x0,%al
je     1143 <strcpy+0x43>
jmp    1114 <strcpy+0x14>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcpy>:
mov    %rdi,%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rsi,%rcx,1),%edx
mov    %dl,(%rax,%rcx,1)
add    $0x1,%rcx
test   %dl,%dl
jne    1110 <strcpy+0x10>
ret

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

LLVM IR (-O2):
define i8* @strcpy(i8* returned writeonly %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %1, %2 ], [ %6, %3 ]
%5 = phi i8* [ %0, %2 ], [ %8, %3 ]
%6 = getelementptr inbounds i8, i8* %4, i64 1
%7 = load i8, i8* %4
%8 = getelementptr inbounds i8, i8* %5, i64 1
store i8 %7, i8* %5
%9 = icmp eq i8 %7, 0
br i1 %9, label %10, label %3
10: ; preds = %3
ret i8* %0
}
int Mini_AigLitRegular(int Lit) { return Lit & ~01; }


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

x86 assembly (clang, -O2):
<Mini_AigLitRegular>:
mov    %edi,%eax
and    $0xfffffffe,%eax
ret

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

LLVM IR (-O2):
define i32 @Mini_AigLitRegular(i32 %0) {
%2 = and i32 %0, -2
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ DMA9_DMA25_DriverIRQHandler();
__attribute__((weak)) void DMA9_DMA25_IRQHandler(void) {
  DMA9_DMA25_DriverIRQHandler();
}


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

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

LLVM IR (-O0):
define weak void @DMA9_DMA25_IRQHandler() {
%1 = call i32 (...) @DMA9_DMA25_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @DMA9_DMA25_IRQHandler() {
%1 = tail call i32 (...) @DMA9_DMA25_DriverIRQHandler()
ret void
}
double calc_disc(double a, double b, double c) {
  double discriminant;
  discriminant = b * b - 4 * a * c;
  return discriminant;
}


x86 assembly (clang, -O0):
<calc_disc>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  0xedb(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_disc>:
mulsd  0xef8(%rip),%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @calc_disc(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %5
%9 = load double, double* %5
%10 = load double, double* %4
%11 = fmul double 4.000000e+00, %10
%12 = load double, double* %6
%13 = fmul double %11, %12
%14 = fneg double %13
%15 = call double @llvm.fmuladd.f64(double %8, double %9, double %14)
store double %15, double* %7
%16 = load double, double* %7
ret double %16
}

LLVM IR (-O2):
define double @calc_disc(double %0, double %1, double %2) {
%4 = fmul double %0, -4.000000e+00
%5 = fmul double %4, %2
%6 = tail call double @llvm.fmuladd.f64(double %1, double %1, double %5)
ret double %6
}
int *func_64(int **p_65, int p_66, int p_67, int **p_68, short p_69) {
  step_hash(16);
  (*p_68) = func_75((((*p_65) != (void *)0) & 0x02L), p_68);
  step_hash(17);
  return (*p_68);
}


x86 assembly (clang, -O0):
<func_64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %r8w,%ax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %ax,-0x1a(%rbp)
mov    $0x10,%edi
mov    $0x0,%al
call   1030 <step_hash@plt>
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
setne  %al
and    $0x1,%al
movzbl %al,%eax
movslq %eax,%rdi
and    $0x2,%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <func_75@plt>
movslq %eax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    $0x11,%edi
mov    $0x0,%al
call   1030 <step_hash@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_64>:
push   %rbx
mov    %rcx,%rbx
mov    $0x10,%edi
xor    %eax,%eax
call   1030 <step_hash@plt>
xor    %edi,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <func_75@plt>
cltq
mov    %rax,(%rbx)
mov    $0x11,%edi
xor    %eax,%eax
call   1030 <step_hash@plt>
mov    (%rbx),%rax
pop    %rbx
ret

LLVM IR (-O0):
define i32* @func_64(i32** %0, i32 %1, i32 %2, i32** %3, i16 signext %4) {
%6 = alloca i32**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32**
%10 = alloca i16
store i32** %0, i32*** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32** %3, i32*** %9
store i16 %4, i16* %10
%11 = call i32 (i32, ...) bitcast (i32 (...)* @step_hash to i32 (i32, ...)*)(i32 16)
%12 = load i32**, i32*** %6
%13 = load i32*, i32** %12
%14 = icmp ne i32* %13, null
%15 = zext i1 %14 to i32
%16 = sext i32 %15 to i64
%17 = and i64 %16, 2
%18 = load i32**, i32*** %9
%19 = call i32 (i64, i32**, ...) bitcast (i32 (...)* @func_75 to i32 (i64, i32**, ...)*)(i64 %17, i32** %18)
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load i32**, i32*** %9
store i32* %21, i32** %22
%23 = call i32 (i32, ...) bitcast (i32 (...)* @step_hash to i32 (i32, ...)*)(i32 17)
%24 = load i32**, i32*** %9
%25 = load i32*, i32** %24
ret i32* %25
}

LLVM IR (-O2):
define i32* @func_64(i32** nocapture readnone %0, i32 %1, i32 %2, i32** %3, i16 signext %4) {
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @step_hash to i32 (i32, ...)*)(i32 16)
%7 = tail call i32 (i64, i32**, ...) bitcast (i32 (...)* @func_75 to i32 (i64, i32**, ...)*)(i64 0, i32** %3)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
store i32* %9, i32** %3
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @step_hash to i32 (i32, ...)*)(i32 17)
%11 = load i32*, i32** %3
ret i32* %11
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ vTaskDelete(int /*<<< orphan*/);
void abort(void) {
  puts("Abort!\n");
  vTaskDelete(0);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<abort>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <vTaskDelete@plt>
jmp    1137 <abort+0x17>

x86 assembly (clang, -O2):
<abort>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <vTaskDelete@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
jmp    1140 <abort+0x20>

LLVM IR (-O0):
@.str = [8 x i8] c"Abort!\0A\00"
define void @abort() {
%1 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @vTaskDelete(i32 0)
br label %3
3: ; preds = %0, %3
br label %3
}

LLVM IR (-O2):
@.str = [8 x i8] c"Abort!\0A\00"
define void @abort() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @vTaskDelete(i32 0)
br label %3
3: ; preds = %0, %3
br label %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
scalar_t__ ps();
int main(int argc, char *argv[]) {
  if (ps() != 0)
    printf("Some error occured while printing the list\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <ps@plt>
cmp    $0x0,%rax
je     1153 <main+0x33>
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <ps@plt>
test   %rax,%rax
je     1139 <main+0x19>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Some error occured while printing the list\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i64 (...) @ps()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
ret i32 0
}

LLVM IR (-O2):
@str = [43 x i8] c"Some error occured while printing the list\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @ps()
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int i, t[3];
  for (i = 2; i >= 0; i--)
    t[i] = i - 1;
  printf("%d", t[1] - t[t[0] + t[2]]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     114c <main+0x3c>
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x14(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%eax
add    -0xc(%rbp),%eax
cltq
sub    -0x14(%rbp,%rax,4),%esi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
ret i32 0
}
/* Variables and functions */
size_t strlen(char const *);
char *strpbrk(char const *, char const *);
size_t strcspn(const char *s1, const char *s2) {
  char *first_occ = strpbrk(s1, s2);
  if (first_occ == NULL)
    return strlen(s1);
  else
    return first_occ - s1;
}


x86 assembly (clang, -O0):
<strcspn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <strpbrk@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    115e <strcspn+0x3e>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x8(%rbp)
jmp    116d <strcspn+0x4d>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcspn>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strpbrk@plt>
test   %rax,%rax
je     1133 <strcspn+0x13>
sub    %rbx,%rax
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <strlen@plt>

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

LLVM IR (-O2):
define i64 @strcspn(i8* %0, i8* nocapture %1) {
%3 = tail call i8* @strpbrk(i8* %0, i8* %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i64 @strlen(i8* dereferenceable(1) %0)
br label %11
7: ; preds = %2
%8 = ptrtoint i8* %3 to i64
%9 = ptrtoint i8* %0 to i64
%10 = sub i64 %8, %9
br label %11
11: ; preds = %7, %5
%12 = phi i64 [ %6, %5 ], [ %10, %7 ]
ret i64 %12
}
/* Variables and functions */
void *_ITM_malloc(size_t);
void *tanger_stm_malloc(size_t size) { return _ITM_malloc(size); }


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

x86 assembly (clang, -O2):
<tanger_stm_malloc>:
jmp    1030 <_ITM_malloc@plt>

LLVM IR (-O0):
define i8* @tanger_stm_malloc(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i8* @_ITM_malloc(i64 %3)
ret i8* %4
}

LLVM IR (-O2):
define i8* @tanger_stm_malloc(i64 %0) {
%2 = tail call i8* @_ITM_malloc(i64 %0)
ret i8* %2
}
int op_lt(int a, int b) { return a < b; }


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

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

LLVM IR (-O0):
define i32 @op_lt(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp slt i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @op_lt(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
void speakup_control(int fg_console, struct kbd_struct *kbd, int value) {}


x86 assembly (clang, -O0):
<speakup_control>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.kbd_struct = type opaque
define void @speakup_control(i32 %0, %struct.kbd_struct* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.kbd_struct*
%6 = alloca i32
store i32 %0, i32* %4
store %struct.kbd_struct* %1, %struct.kbd_struct** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
%struct.kbd_struct = type opaque
define void @speakup_control(i32 %0, %struct.kbd_struct* nocapture %1, i32 %2) {
ret void
}
int isSurrogateHigh(unsigned int codePoint) {
  return 0xD800 <= codePoint && codePoint <= 0xDBFF;
}


x86 assembly (clang, -O0):
<isSurrogateHigh>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
mov    $0xd800,%ecx
cmp    -0x4(%rbp),%ecx
mov    %al,-0x5(%rbp)
ja     1127 <isSurrogateHigh+0x27>
cmpl   $0xdbff,-0x4(%rbp)
setbe  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isSurrogateHigh>:
and    $0xfffffc00,%edi
xor    %eax,%eax
cmp    $0xd800,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @isSurrogateHigh(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ule i32 55296, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp ule i32 %6, 56319
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @isSurrogateHigh(i32 %0) {
%2 = and i32 %0, -1024
%3 = icmp eq i32 %2, 55296
%4 = zext i1 %3 to i32
ret i32 %4
}