xunge/DecIR huggingface dataset:
void backlight_disable(void) {
  (*((volatile unsigned long *)0x7F0080A4)) &= ~(1 << 14);
}


x86 assembly (clang, -O0):
<backlight_disable>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f0080a4,%eax
mov    (%rax),%rcx
and    $0xffffffffffffbfff,%rcx
mov    $0x7f0080a4,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<backlight_disable>:
andq   $0xffffffffffffbfff,0x7f0080a4
7f ff bf ff ff
ret

LLVM IR (-O0):
define void @backlight_disable() {
%1 = load volatile i64, i64* inttoptr (i64 2130739364 to i64*)
%2 = and i64 %1, -16385
store volatile i64 %2, i64* inttoptr (i64 2130739364 to i64*)
ret void
}

LLVM IR (-O2):
define void @backlight_disable() {
%1 = load volatile i64, i64* inttoptr (i64 2130739364 to i64*)
%2 = and i64 %1, -16385
store volatile i64 %2, i64* inttoptr (i64 2130739364 to i64*)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ gmtime_r(int /*<<< orphan*/ const *, struct tm *);
size_t strftime(char *, size_t const, char *, struct tm *);
size_t ytht_utc_time_s(char *buf, const size_t len, const time_t *t) {
  struct tm tm;
  gmtime_r(t, &tm);
  return strftime(buf, len, "%a, %d %b %Y %H:%M:%S %Z", &tm);
}


x86 assembly (clang, -O0):
<ytht_utc_time_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1030 <gmtime_r@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xeb0(%rip),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <strftime@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ytht_utc_time_s>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0x8(%rsp),%r15
mov    %rdx,%rdi
mov    %r15,%rsi
call   1030 <gmtime_r@plt>
lea    0xeba(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rcx
call   1040 <strftime@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [25 x i8] c"%a, %d %b %Y %H:%M:%S %Z\00"
define i64 @ytht_utc_time_s(i8* %0, i64 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32*
%7 = alloca %struct.tm
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32* %2, i32** %6
%8 = load i32*, i32** %6
%9 = call i32 @gmtime_r(i32* %8, %struct.tm* %7)
%10 = load i8*, i8** %4
%11 = load i64, i64* %5
%12 = call i64 @strftime(i8* %10, i64 %11, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), %struct.tm* %7)
ret i64 %12
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [25 x i8] c"%a, %d %b %Y %H:%M:%S %Z\00"
define i64 @ytht_utc_time_s(i8* %0, i64 %1, i32* %2) {
%4 = alloca %struct.tm
%5 = bitcast %struct.tm* %4 to i8*
%6 = call i32 @gmtime_r(i32* %2, %struct.tm* %4)
%7 = call i64 @strftime(i8* %0, i64 %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), %struct.tm* %4)
ret i64 %7
}
/* Variables and functions */
int /*<<< orphan*/ free(unsigned char *);
char *malloc(size_t);
int /*<<< orphan*/ memcpy(char *, unsigned char *, size_t);
void shrink(unsigned char **arr, size_t newlen) {
  char *temp = malloc(newlen);
  memcpy(temp, *arr, newlen);
  free(*arr);
  *arr = temp;
}


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

x86 assembly (clang, -O2):
<shrink>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    (%rbx),%rsi
mov    %rax,%rdi
mov    %r14,%rdx
call   1040 <memcpy@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    %r15,(%rbx)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @shrink(i8** %0, i64 %1) {
%3 = alloca i8**
%4 = alloca i64
%5 = alloca i8*
store i8** %0, i8*** %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = call i8* @malloc(i64 %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = load i8**, i8*** %3
%10 = load i8*, i8** %9
%11 = load i64, i64* %4
%12 = call i32 @memcpy(i8* %8, i8* %10, i64 %11)
%13 = load i8**, i8*** %3
%14 = load i8*, i8** %13
%15 = call i32 @free(i8* %14)
%16 = load i8*, i8** %5
%17 = load i8**, i8*** %3
store i8* %16, i8** %17
ret void
}

LLVM IR (-O2):
define void @shrink(i8** nocapture %0, i64 %1) {
%3 = tail call i8* @malloc(i64 %1)
%4 = load i8*, i8** %0
%5 = tail call i32 @memcpy(i8* %3, i8* %4, i64 %1)
%6 = load i8*, i8** %0
%7 = tail call i32 @free(i8* %6)
store i8* %3, i8** %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void in_freepointer(void *arg) {
  void **ptr = (void **)arg;
  free(*ptr);
  *ptr = NULL;
}


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

x86 assembly (clang, -O2):
<in_freepointer>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @in_freepointer(i8* %0) {
%2 = alloca i8*
%3 = alloca i8**
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i8**
store i8** %5, i8*** %3
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
%8 = call i32 @free(i8* %7)
%9 = load i8**, i8*** %3
store i8* null, i8** %9
ret void
}

LLVM IR (-O2):
define void @in_freepointer(i8* nocapture %0) {
%2 = bitcast i8* %0 to i8**
%3 = load i8*, i8** %2
%4 = tail call i32 @free(i8* %3)
store i8* null, i8** %2
ret void
}
/* Variables and functions */
scalar_t__ rand();
double random_double(double x) { return (double)rand(); }


x86 assembly (clang, -O0):
<random_double>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_double>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @random_double(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i64 (...) @rand()
%4 = sitofp i64 %3 to double
ret double %4
}

LLVM IR (-O2):
define double @random_double(double %0) {
%2 = tail call i64 (...) @rand()
%3 = sitofp i64 %2 to double
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
int open(char *, int /*<<< orphan*/);
int main() {
  int fd = open("/etc/passwd", O_RDONLY);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1040 <open@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <close@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1040 <open@plt>
mov    %eax,%edi
call   1030 <close@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"/etc/passwd\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* @O_RDONLY
%4 = call i32 @open(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %3)
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @close(i32 %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"/etc/passwd\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = load i32, i32* @O_RDONLY
%2 = tail call i32 @open(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @close(i32 %2)
ret i32 0
}
void foo_1_1_1_1_2_1_1_1_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_1_1_1_2_1_1_1_2() {
ret void
}
/* Variables and functions */
int AMI_Up_RegisterBit8(void *, int, int);
int AMI_FORCEset(void *i2c_hnd) {
  return AMI_Up_RegisterBit8(i2c_hnd, 0x1d, 0x40);
}


x86 assembly (clang, -O0):
<AMI_FORCEset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1d,%esi
mov    $0x40,%edx
call   1030 <AMI_Up_RegisterBit8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AMI_FORCEset>:
mov    $0x1d,%esi
mov    $0x40,%edx
jmp    1030 <AMI_Up_RegisterBit8@plt>

LLVM IR (-O0):
define i32 @AMI_FORCEset(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @AMI_Up_RegisterBit8(i8* %3, i32 29, i32 64)
ret i32 %4
}

LLVM IR (-O2):
define i32 @AMI_FORCEset(i8* %0) {
%2 = tail call i32 @AMI_Up_RegisterBit8(i8* %0, i32 29, i32 64)
ret i32 %2
}
/* Variables and functions */
void *CreatePopupMenu();
void *CreateMenuContainer() { return CreatePopupMenu(); }


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

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

LLVM IR (-O0):
define i8* @CreateMenuContainer() {
%1 = call i8* (...) @CreatePopupMenu()
ret i8* %1
}

LLVM IR (-O2):
define i8* @CreateMenuContainer() {
%1 = tail call i8* (...) @CreatePopupMenu()
ret i8* %1
}
void curl_multi_cleanup() {}


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

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

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

LLVM IR (-O2):
define void @curl_multi_cleanup() {
ret void
}
/* Variables and functions */
int SIGINT;
int SIGQUIT;
int /*<<< orphan*/ printf(char *);
void my_func(int sign_no) {
  if (sign_no == SIGINT) {
    printf("I have got SIGINT\n");
  } else if (sign_no == SIGQUIT) {
    printf("I have got SIGQUIT\n");
  }
}


x86 assembly (clang, -O0):
<my_func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ec3(%rip),%rcx
cmp    (%rcx),%eax
jne    113e <my_func+0x2e>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
jmp    1161 <my_func+0x51>
mov    -0x4(%rbp),%eax
mov    0x2e98(%rip),%rcx
cmp    (%rcx),%eax
jne    115c <my_func+0x4c>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
jmp    1161 <my_func+0x51>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_func>:
mov    0x2ed1(%rip),%rax
cmp    %edi,(%rax)
jne    1127 <my_func+0x17>
lea    0xef1(%rip),%rdi
jmp    1030 <puts@plt>
mov    0x2eb2(%rip),%rax
cmp    %edi,(%rax)
jne    113e <my_func+0x2e>
lea    0xec7(%rip),%rdi
jmp    1030 <puts@plt>
ret

LLVM IR (-O0):
@SIGINT = global i32 0
@.str = [19 x i8] c"I have got SIGINT\0A\00"
@SIGQUIT = global i32 0
@.str.1 = [20 x i8] c"I have got SIGQUIT\0A\00"
define void @my_func(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIGINT
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %15
8: ; preds = %1
%9 = load i32, i32* %2
%10 = load i32, i32* @SIGQUIT
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
br label %15
15: ; preds = %14, %6
ret void
}

LLVM IR (-O2):
@SIGINT = global i32 0
@SIGQUIT = global i32 0
@str = [19 x i8] c"I have got SIGQUIT\00"
@str.2 = [18 x i8] c"I have got SIGINT\00"
define void @my_func(i32 %0) {
%2 = load i32, i32* @SIGINT
%3 = icmp eq i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* @SIGQUIT
%6 = icmp eq i32 %5, %0
br i1 %6, label %7, label %10
7: ; preds = %4, %1
%8 = phi i8* [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.2, i64 0, i64 0), %1 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %4 ]
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
br label %10
10: ; preds = %7, %4
ret void
}
/* Type definitions */
struct forth_instance {
  int dummy;
};

/* Variables and functions */
scalar_t__ st_pop(struct forth_instance *);
int /*<<< orphan*/ st_push(struct forth_instance *, intptr_t);
void fetch(struct forth_instance *fi) {
  st_push(fi, *((intptr_t *)st_pop(fi)));
}


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

x86 assembly (clang, -O2):
<fetch>:
push   %rbx
mov    %rdi,%rbx
call   1030 <st_pop@plt>
mov    (%rax),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <st_push@plt>

LLVM IR (-O0):
%struct.forth_instance = type { i32 }
define void @fetch(%struct.forth_instance* %0) {
%2 = alloca %struct.forth_instance*
store %struct.forth_instance* %0, %struct.forth_instance** %2
%3 = load %struct.forth_instance*, %struct.forth_instance** %2
%4 = load %struct.forth_instance*, %struct.forth_instance** %2
%5 = call i64 @st_pop(%struct.forth_instance* %4)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6
%8 = call i32 @st_push(%struct.forth_instance* %3, i64 %7)
ret void
}

LLVM IR (-O2):
%struct.forth_instance = type { i32 }
define void @fetch(%struct.forth_instance* %0) {
%2 = tail call i64 @st_pop(%struct.forth_instance* %0)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3
%5 = tail call i32 @st_push(%struct.forth_instance* %0, i64 %4)
ret void
}
char test_char_7(char a, char b, char c, char d, char e, char f, char g) {
  return 0x19;
}


x86 assembly (clang, -O0):
<test_char_7>:
push   %rbp
mov    %rsp,%rbp
mov    %r8d,-0x18(%rbp)
mov    %ecx,%eax
mov    -0x18(%rbp),%ecx
mov    %eax,-0x14(%rbp)
mov    %edx,%eax
mov    -0x14(%rbp),%edx
mov    %eax,-0x10(%rbp)
mov    %esi,%eax
mov    -0x10(%rbp),%esi
mov    %eax,-0xc(%rbp)
mov    %edi,%r8d
mov    -0xc(%rbp),%edi
mov    %r9b,%al
mov    0x10(%rbp),%r9b
mov    %r8b,-0x1(%rbp)
mov    %dil,-0x2(%rbp)
mov    %sil,-0x3(%rbp)
mov    %dl,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
mov    $0x19,%al
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_char_7>:
mov    $0x19,%al
ret

LLVM IR (-O0):
define signext i8 @test_char_7(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6) {
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
store i8 %0, i8* %8
store i8 %1, i8* %9
store i8 %2, i8* %10
store i8 %3, i8* %11
store i8 %4, i8* %12
store i8 %5, i8* %13
store i8 %6, i8* %14
ret i8 25
}

LLVM IR (-O2):
define signext i8 @test_char_7(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6) {
ret i8 25
}
/* Variables and functions */
int /*<<< orphan*/ VirtualizeTimerC__0__Timer__stop(unsigned int);
void ForwardingEngineM__0__Timer__stop(void) {
  VirtualizeTimerC__0__Timer__stop(2U);
}


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

x86 assembly (clang, -O2):
<ForwardingEngineM__0__Timer__stop>:
mov    $0x2,%edi
jmp    1030 <VirtualizeTimerC__0__Timer__stop@plt>

LLVM IR (-O0):
define void @ForwardingEngineM__0__Timer__stop() {
%1 = call i32 @VirtualizeTimerC__0__Timer__stop(i32 2)
ret void
}

LLVM IR (-O2):
define void @ForwardingEngineM__0__Timer__stop() {
%1 = tail call i32 @VirtualizeTimerC__0__Timer__stop(i32 2)
ret void
}
void event_info_key(key, value) char *key;
char *value;
{
  int num;
  if (strcmp(key, "octave") == 0) {
    num = readsnumf(value);
    event_octave(num, 0);
  };
}


x86 assembly (clang, -O0):
<event_info_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1173 <event_info_key+0x43>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <readsnumf@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <event_octave@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<event_info_key>:
push   %rbx
mov    %rsi,%rbx
lea    0xec5(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1146 <event_info_key+0x16>
pop    %rbx
ret
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <readsnumf@plt>
mov    %eax,%edi
xor    %esi,%esi
xor    %eax,%eax
pop    %rbx
jmp    1040 <event_octave@plt>

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

LLVM IR (-O2):
@.str = [7 x i8] c"octave\00"
define void @event_info_key(i8* nocapture %0, i8* %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @readsnumf to i32 (i8*, ...)*)(i8* %1)
%7 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @event_octave to i32 (i32, i32, ...)*)(i32 %6, i32 0)
br label %8
8: ; preds = %5, %2
ret void
}
void caam_algapi_exit(void) {}


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

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

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

LLVM IR (-O2):
define void @caam_algapi_exit() {
ret void
}
void config_uartdma_event(int port) {}


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

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

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

LLVM IR (-O2):
define void @config_uartdma_event(i32 %0) {
ret void
}
/* Variables and functions */
scalar_t__ hypot(float, float);
float hypotf(float x, float y) { return (float)hypot(x, y); }


x86 assembly (clang, -O0):
<hypotf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1030 <hypot@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hypotf>:
push   %rax
call   1030 <hypot@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @hypotf(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = call i64 @hypot(float %5, float %6)
%8 = sitofp i64 %7 to float
ret float %8
}

LLVM IR (-O2):
define float @hypotf(float %0, float %1) {
%3 = tail call i64 @hypot(float %0, float %1)
%4 = sitofp i64 %3 to float
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ test_report_2();
int main() {
  test_report_2();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_report_2()
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int whline(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
int __darwin_whline(WINDOW *w, uint32_t c, int n) { return whline(w, c, n); }


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

x86 assembly (clang, -O2):
<__darwin_whline>:
jmp    1030 <whline@plt>

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

LLVM IR (-O2):
define i32 @__darwin_whline(i32* %0, i32 %1, i32 %2) {
%4 = tail call i32 @whline(i32* %0, i32 %1, i32 %2)
ret i32 %4
}
char unescape(int c) {
  switch (c) {
  case 'n':
    return '\n';
  case 't':
    return '\t';
  case 'r':
    return '\r';
  case '\\':
    return '\\';
  case '\'':
    return '\'';
  case '\"':
    return '\"';
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<unescape>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x22,%eax
je     119d <unescape+0x9d>
jmp    111b <unescape+0x1b>
mov    -0xc(%rbp),%eax
sub    $0x27,%eax
je     1194 <unescape+0x94>
jmp    112c <unescape+0x2c>
mov    -0xc(%rbp),%eax
sub    $0x5c,%eax
je     118b <unescape+0x8b>
jmp    113d <unescape+0x3d>
mov    -0xc(%rbp),%eax
sub    $0x6e,%eax
je     1170 <unescape+0x70>
jmp    114e <unescape+0x4e>
mov    -0xc(%rbp),%eax
sub    $0x72,%eax
je     1182 <unescape+0x82>
jmp    115f <unescape+0x5f>
mov    -0xc(%rbp),%eax
sub    $0x74,%eax
je     1179 <unescape+0x79>
jmp    11a6 <unescape+0xa6>
movb   $0xa,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0x9,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0xd,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0x5c,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0x27,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0x22,-0x1(%rbp)
jmp    11aa <unescape+0xaa>
movb   $0x0,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<unescape>:
lea    -0x5c(%rdi),%ecx
cmp    $0x18,%ecx
ja     111d <unescape+0x1d>
mov    $0xa,%al
lea    0xeef(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x5c,%al
ret
cmp    $0x22,%edi
je     1133 <unescape+0x33>
cmp    $0x27,%edi
jne    112a <unescape+0x2a>
mov    $0x27,%al
ret
xor    %eax,%eax
ret
mov    $0xd,%al
ret
mov    $0x9,%al
ret
mov    $0x22,%al
ret

LLVM IR (-O0):
define signext i8 @unescape(i32 %0) {
%2 = alloca i8
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %11 [
i32 110, label %5
i32 116, label %6
i32 114, label %7
i32 92, label %8
i32 39, label %9
i32 34, label %10
]
5: ; preds = %1
store i8 10, i8* %2
br label %12
6: ; preds = %1
store i8 9, i8* %2
br label %12
7: ; preds = %1
store i8 13, i8* %2
br label %12
8: ; preds = %1
store i8 92, i8* %2
br label %12
9: ; preds = %1
store i8 39, i8* %2
br label %12
10: ; preds = %1
store i8 34, i8* %2
br label %12
11: ; preds = %1
store i8 0, i8* %2
br label %12
12: ; preds = %11, %10, %9, %8, %7, %6, %5
%13 = load i8, i8* %2
ret i8 %13
}

LLVM IR (-O2):
define signext i8 @unescape(i32 %0) {
switch i32 %0, label %7 [
i32 110, label %8
i32 116, label %2
i32 114, label %3
i32 92, label %4
i32 39, label %5
i32 34, label %6
]
2: ; preds = %1
br label %8
3: ; preds = %1
br label %8
4: ; preds = %1
br label %8
5: ; preds = %1
br label %8
6: ; preds = %1
br label %8
7: ; preds = %1
br label %8
8: ; preds = %1, %7, %6, %5, %4, %3, %2
%9 = phi i8 [ 0, %7 ], [ 34, %6 ], [ 39, %5 ], [ 92, %4 ], [ 13, %3 ], [ 9, %2 ], [ 10, %1 ]
ret i8 %9
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0x88() {
  Assert_real((isdigit(136) == 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_isdigit.c",
              685, ("isdigit should be 0 for 0x88"));
}


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

x86 assembly (clang, -O2):
<t_isdigit_0x88>:
push   %rax
mov    $0x88,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x2ad,%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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x88\00"
define void @t_isdigit_0x88() {
%1 = call i64 @isdigit(i32 136)
%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 685, 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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x88\00"
define void @t_isdigit_0x88() {
%1 = tail call i64 @isdigit(i32 136)
%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 685, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int strcmp(char *, char *);
int main(void) {
  char *a = "asdf";
  char *b = "asdf";
  int ret = 0;
  ret = strcmp(a, b);
  if (ret == 0) {
    printf("true\n");
  } else if (ret == 1) {
    printf("false\n");
  } else {
    printf("not a damn clue\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xebf(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    1177 <main+0x57>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    11a3 <main+0x83>
cmpl   $0x1,-0x1c(%rbp)
jne    1192 <main+0x72>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
jmp    119e <main+0x7e>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    11a3 <main+0x83>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [5 x i8] c"asdf\00"
@.str.1 = [6 x i8] c"true\0A\00"
@.str.2 = [7 x i8] c"false\0A\00"
@.str.3 = [17 x i8] c"not a damn clue\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %3
store i32 0, i32* %4
%5 = load i8*, i8** %2
%6 = load i8*, i8** %3
%7 = call i32 @strcmp(i8* %5, i8* %6)
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %20
12: ; preds = %0
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %19
17: ; preds = %12
%18 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %10
ret i32 0
}

LLVM IR (-O2):
@str.5 = [5 x i8] c"true\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
void *malloc(unsigned long);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, unsigned long);
void *blob_alloc(unsigned long size) {
  void *ptr;
  ptr = malloc(size);
  if (ptr != NULL)
    memset(ptr, 0, size);
  return ptr;
}


x86 assembly (clang, -O0):
<blob_alloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1153 <blob_alloc+0x33>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blob_alloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1141 <blob_alloc+0x21>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @blob_alloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @memset(i8* %2, i32 0, i64 %0)
br label %6
6: ; preds = %4, %1
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ trainer_dp_6(int /*<<< orphan*/);
void trainer_dp_6_launcher(void) { trainer_dp_6(0); }


x86 assembly (clang, -O0):
<trainer_dp_6_launcher>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <trainer_dp_6@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @trainer_dp_6_launcher() {
%1 = call i32 @trainer_dp_6(i32 0)
ret void
}

LLVM IR (-O2):
define void @trainer_dp_6_launcher() {
%1 = tail call i32 @trainer_dp_6(i32 0)
ret void
}
unsigned umin(unsigned a, unsigned b) { return a < b ? a : b; }


x86 assembly (clang, -O0):
<umin>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1121 <umin+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <umin+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<umin>:
mov    %esi,%eax
cmp    %esi,%edi
cmovb  %edi,%eax
ret

LLVM IR (-O0):
define i32 @umin(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 ult i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @umin(i32 %0, i32 %1) {
%3 = icmp ult i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void const *, size_t);
void __aeabi_memcpy4(void *dest, const void *src, size_t n) {
  memcpy(dest, src, n);
}


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

x86 assembly (clang, -O2):
<__aeabi_memcpy4>:
jmp    1030 <memcpy@plt>

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

LLVM IR (-O2):
define void @__aeabi_memcpy4(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 @memcpy(i8* %0, i8* %1, i64 %2)
ret void
}
double compute_slope(double x_1, double y_1, double x_2, double y_2) {
  double slope = 0.0;
  slope = (y_2 - y_1) / (x_2 - x_1);
  return slope;
}


x86 assembly (clang, -O0):
<compute_slope>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute_slope>:
subsd  %xmm1,%xmm3
subsd  %xmm0,%xmm2
divsd  %xmm2,%xmm3
movapd %xmm3,%xmm0
ret

LLVM IR (-O0):
define double @compute_slope(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
store double 0.000000e+00, double* %9
%10 = load double, double* %8
%11 = load double, double* %6
%12 = fsub double %10, %11
%13 = load double, double* %7
%14 = load double, double* %5
%15 = fsub double %13, %14
%16 = fdiv double %12, %15
store double %16, double* %9
%17 = load double, double* %9
ret double %17
}

LLVM IR (-O2):
define double @compute_slope(double %0, double %1, double %2, double %3) {
%5 = fsub double %3, %1
%6 = fsub double %2, %0
%7 = fdiv double %5, %6
ret double %7
}
/* Type definitions */
struct timespec {
  int tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_BOOTTIME;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
double seconds_since_boot() {
  struct timespec t;
  clock_gettime(CLOCK_BOOTTIME, &t);
  return (double)t.tv_sec + t.tv_nsec * 1e-9;
  ;
}


x86 assembly (clang, -O0):
<seconds_since_boot>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1030 <clock_gettime@plt>
cvtsi2sdq -0x8(%rbp),%xmm1
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xec3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<seconds_since_boot>:
sub    $0x18,%rsp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1030 <clock_gettime@plt>
cvtsi2sdq 0x10(%rsp),%xmm1
cvtsi2sdl 0x8(%rsp),%xmm0
mulsd  0xec4(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
@CLOCK_BOOTTIME = global i32 0
define double @seconds_since_boot() {
%1 = alloca %struct.timespec
%2 = load i32, i32* @CLOCK_BOOTTIME
%3 = call i32 @clock_gettime(i32 %2, %struct.timespec* %1)
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 1
%5 = load i64, i64* %4
%6 = sitofp i64 %5 to double
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 0
%8 = load i32, i32* %7
%9 = sitofp i32 %8 to double
%10 = call double @llvm.fmuladd.f64(double %9, double 1.000000e-09, double %6)
ret double %10
}

LLVM IR (-O2):
%struct.timespec = type { i32, i64 }
@CLOCK_BOOTTIME = global i32 0
define double @seconds_since_boot() {
%1 = alloca %struct.timespec
%2 = bitcast %struct.timespec* %1 to i8*
%3 = load i32, i32* @CLOCK_BOOTTIME
%4 = call i32 @clock_gettime(i32 %3, %struct.timespec* %1)
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%9 = load i32, i32* %8
%10 = sitofp i32 %9 to double
%11 = call double @llvm.fmuladd.f64(double %10, double 1.000000e-09, double %7)
ret double %11
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memset(void *, int, int /*<<< orphan*/);
void finalizer_scrubvar(uint32_t sz, void *ptr) { memset(ptr, 0xa5, sz); }


x86 assembly (clang, -O0):
<finalizer_scrubvar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    $0xa5,%esi
call   1030 <memset@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<finalizer_scrubvar>:
mov    %edi,%edx
mov    %rsi,%rdi
mov    $0xa5,%esi
jmp    1030 <memset@plt>

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

LLVM IR (-O2):
define void @finalizer_scrubvar(i32 %0, i8* %1) {
%3 = tail call i32 @memset(i8* %1, i32 165, i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
int main(void) {
  double d = 1.234567801232;
  printf("%.10lf\n", d);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  0xee0(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movsd  0xee0(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%.10lf\0A\00"
define i32 @main() {
%1 = alloca double
store double 0x3FF3C0CA2AAFC6F0, double* %1
%2 = load double, double* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%.10lf\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double 0x3FF3C0CA2AAFC6F0)
ret i32 0
}
/* Variables and functions */
int pthread_setspecific(int, void *);
int PyThread_set_key_value(int key, void *value) {
  int fail;
  fail = pthread_setspecific(key, value);
  return fail ? -1 : 0;
}


x86 assembly (clang, -O0):
<PyThread_set_key_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <pthread_setspecific@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
xor    %eax,%eax
mov    $0xffffffff,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PyThread_set_key_value>:
push   %rax
call   1030 <pthread_setspecific@plt>
neg    %eax
sbb    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @PyThread_set_key_value(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = load i32, i32* %3
%7 = load i8*, i8** %4
%8 = call i32 @pthread_setspecific(i32 %6, i8* %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = icmp ne i32 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 -1, i32 0
ret i32 %12
}

LLVM IR (-O2):
define i32 @PyThread_set_key_value(i32 %0, i8* %1) {
%3 = tail call i32 @pthread_setspecific(i32 %0, i8* %1)
%4 = icmp ne i32 %3, 0
%5 = sext i1 %4 to i32
ret i32 %5
}
char *skipcolon(char *p) {
  while (*p == ':') {
    p++;
  }
  return p;
}


x86 assembly (clang, -O0):
<skipcolon>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    1129 <skipcolon+0x29>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <skipcolon+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipcolon>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
cmpb   $0x3a,0x1(%rax)
lea    0x1(%rax),%rax
je     1110 <skipcolon+0x10>
ret

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

LLVM IR (-O2):
define i8* @skipcolon(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = load i8, i8* %3
%5 = icmp eq i8 %4, 58
%6 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %5, label %2, label %7
7: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ error(int, int, char *);
void memory_exhausted(int errnum) { error(1, errnum, "memory exhausted"); }


x86 assembly (clang, -O0):
<memory_exhausted>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x1,%edi
lea    0xed6(%rip),%rdx
call   1030 <error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<memory_exhausted>:
mov    %edi,%esi
lea    0xee7(%rip),%rdx
mov    $0x1,%edi
jmp    1030 <error@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"memory exhausted\00"
define void @memory_exhausted(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @error(i32 1, i32 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"memory exhausted\00"
define void @memory_exhausted(i32 %0) {
%2 = tail call i32 @error(i32 1, i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ checktoe(char, short);
int /*<<< orphan*/ cliptoe(char, short);
int /*<<< orphan*/ printf(char *);
char whichfoot();
short whichtoe(char);
void gettoe() {
  char foot;
  short int toenumber;
  foot = whichfoot();
  toenumber = whichtoe(foot);
  printf("\n");
  if (checktoe(foot, toenumber) == 0) {
    cliptoe(foot, toenumber);
  }
  return;
}


x86 assembly (clang, -O0):
<gettoe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <whichfoot@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1070 <whichtoe@plt>
mov    %ax,-0x4(%rbp)
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
mov    -0x1(%rbp),%al
movsbl %al,%edi
movswl -0x4(%rbp),%esi
call   1060 <checktoe@plt>
cmp    $0x0,%rax
jne    11a3 <gettoe+0x53>
mov    -0x1(%rbp),%al
movsbl %al,%edi
movswl -0x4(%rbp),%esi
call   1050 <cliptoe@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gettoe>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <whichfoot@plt>
movsbl %al,%ebx
mov    %ebx,%edi
call   1070 <whichtoe@plt>
mov    %eax,%ebp
mov    $0xa,%edi
call   1030 <putchar@plt>
movswl %bp,%ebp
mov    %ebx,%edi
mov    %ebp,%esi
call   1060 <checktoe@plt>
test   %rax,%rax
je     1188 <gettoe+0x38>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %ebx,%edi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <cliptoe@plt>

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

LLVM IR (-O2):
define void @gettoe() {
%1 = tail call signext i8 (...) @whichfoot()
%2 = tail call signext i16 @whichtoe(i8 signext %1)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i64 @checktoe(i8 signext %1, i16 signext %2)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = tail call i32 @cliptoe(i8 signext %1, i16 signext %2)
br label %8
8: ; preds = %6, %0
ret void
}
void strength_test9(int *data) {
  int i = 0;
  do {
    data[data[2]] = i;
    i = i + 1;
  } while (i * 21 < data[3]);
}


x86 assembly (clang, -O0):
<strength_test9>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq 0x8(%rcx),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
imul   $0x15,-0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    0xc(%rcx),%eax
jl     110f <strength_test9+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strength_test9>:
xor    %eax,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movslq 0x8(%rdi),%rdx
mov    %ecx,(%rdi,%rdx,4)
add    $0x1,%ecx
add    $0x15,%eax
cmp    0xc(%rdi),%eax
jl     1110 <strength_test9+0x10>
ret

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

LLVM IR (-O2):
define void @strength_test9(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 2
%3 = getelementptr inbounds i32, i32* %0, i64 3
br label %4
4: ; preds = %4, %1
%5 = phi i32 [ 0, %1 ], [ %9, %4 ]
%6 = load i32, i32* %2
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i32, i32* %0, i64 %7
store i32 %5, i32* %8
%9 = add nuw nsw i32 %5, 1
%10 = mul nsw i32 %9, 21
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %4, label %13
13: ; preds = %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ driver();
int main(int argc, char **argv) {
  driver();
  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   1030 <driver@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @driver()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @driver()
ret i32 0
}