xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ my_putstr_fail(char *);
char **exit_2char(char **dest, char *str) {
  my_putstr_fail(str);
  return (dest);
}


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

x86 assembly (clang, -O2):
<exit_2char>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <my_putstr_fail@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8** @exit_2char(i8** readnone returned %0, i8* %1) {
%3 = tail call i32 @my_putstr_fail(i8* %1)
ret i8** %0
}
/* Type definitions */
struct user_regs_struct {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ dump_regs(int /*<<< orphan*/ *, struct user_regs_struct *,
                             int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
void dump_regs_name(const char *filename, struct user_regs_struct *user,
                    int hit_breakpoint) {
  FILE *f;
  f = fopen(filename, "w");
  dump_regs(f, user, hit_breakpoint);
  fclose(f);
}


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

x86 assembly (clang, -O2):
<dump_regs_name>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
lea    0xebf(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1040 <dump_regs@plt>
mov    %rbp,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <fclose@plt>

LLVM IR (-O0):
%struct.user_regs_struct = type { i32 }
@.str = [2 x i8] c"w\00"
define void @dump_regs_name(i8* %0, %struct.user_regs_struct* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca %struct.user_regs_struct*
%6 = alloca i32
%7 = alloca i32*
store i8* %0, i8** %4
store %struct.user_regs_struct* %1, %struct.user_regs_struct** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %9, i32** %7
%10 = load i32*, i32** %7
%11 = load %struct.user_regs_struct*, %struct.user_regs_struct** %5
%12 = load i32, i32* %6
%13 = call i32 @dump_regs(i32* %10, %struct.user_regs_struct* %11, i32 %12)
%14 = load i32*, i32** %7
%15 = call i32 @fclose(i32* %14)
ret void
}

LLVM IR (-O2):
%struct.user_regs_struct = type { i32 }
@.str = [2 x i8] c"w\00"
define void @dump_regs_name(i8* nocapture %0, %struct.user_regs_struct* %1, i32 %2) {
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @dump_regs(i32* %4, %struct.user_regs_struct* %1, i32 %2)
%6 = tail call i32 @fclose(i32* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isxdigit(int);
void t_isxdigit_0x33() {
  Assert_real((isxdigit(51)),
              "/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_isxdigit.c",
              260, ("isxdigit should be 1 for 3"));
}


x86 assembly (clang, -O0):
<t_isxdigit_0x33>:
push   %rbp
mov    %rsp,%rbp
mov    $0x33,%edi
call   1030 <isxdigit@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x104,%edx
lea    0xf66(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isxdigit_0x33>:
push   %rax
mov    $0x33,%edi
call   1030 <isxdigit@plt>
lea    0xece(%rip),%rsi
lea    0xf70(%rip),%rcx
mov    %eax,%edi
mov    $0x104,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 1 for 3\00"
define void @t_isxdigit_0x33() {
%1 = call i32 @isxdigit(i32 51)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 260, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 1 for 3\00"
define void @t_isxdigit_0x33() {
%1 = tail call i32 @isxdigit(i32 51)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 260, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ i2cWriteRegister(int, int, int);
void mcuShutDown(void) {
  i2cWriteRegister(3, 0x20, 1);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<mcuShutDown>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
mov    $0x20,%esi
mov    $0x1,%edx
call   1030 <i2cWriteRegister@plt>
jmp    1128 <mcuShutDown+0x18>

x86 assembly (clang, -O2):
<mcuShutDown>:
push   %rax
mov    $0x3,%edi
mov    $0x20,%esi
mov    $0x1,%edx
call   1030 <i2cWriteRegister@plt>
cs nopw 0x0(%rax,%rax,1)
nop
jmp    1130 <mcuShutDown+0x20>

LLVM IR (-O0):
define void @mcuShutDown() {
%1 = call i32 @i2cWriteRegister(i32 3, i32 32, i32 1)
br label %2
2: ; preds = %0, %2
br label %2
}

LLVM IR (-O2):
define void @mcuShutDown() {
%1 = tail call i32 @i2cWriteRegister(i32 3, i32 32, i32 1)
br label %2
2: ; preds = %0, %2
br label %2
}
/* Variables and functions */
int fnv1_hash(void *, int);
int hash_pointer(void *key) { return fnv1_hash(key, sizeof(void *)); }


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

x86 assembly (clang, -O2):
<hash_pointer>:
mov    $0x8,%esi
jmp    1030 <fnv1_hash@plt>

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

LLVM IR (-O2):
define i32 @hash_pointer(i8* %0) {
%2 = tail call i32 @fnv1_hash(i8* %0, i32 8)
ret i32 %2
}
/* Variables and functions */
scalar_t__ hasEasyFactors(unsigned int);
int isMillerRabinPrime(unsigned int);
int isPrime(unsigned int src) {
  if (hasEasyFactors(src))
    return 0;
  return isMillerRabinPrime(src);
}


x86 assembly (clang, -O0):
<isPrime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <hasEasyFactors@plt>
cmp    $0x0,%rax
je     1149 <isPrime+0x29>
movl   $0x0,-0x4(%rbp)
jmp    1154 <isPrime+0x34>
mov    -0x8(%rbp),%edi
call   1040 <isMillerRabinPrime@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isPrime>:
push   %rbx
mov    %edi,%ebx
call   1030 <hasEasyFactors@plt>
test   %rax,%rax
je     1131 <isPrime+0x11>
xor    %eax,%eax
pop    %rbx
ret
mov    %ebx,%edi
pop    %rbx
jmp    1040 <isMillerRabinPrime@plt>

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

LLVM IR (-O2):
define i32 @isPrime(i32 %0) {
%2 = tail call i64 @hasEasyFactors(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @isMillerRabinPrime(i32 %0)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ 0, %1 ]
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ R_ADC_Start();
char adcStart(void *parameters) {
  R_ADC_Start();
  return 0;
}


x86 assembly (clang, -O0):
<adcStart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <R_ADC_Start@plt>
xor    %eax,%eax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i8 @adcStart(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @R_ADC_Start()
ret i8 0
}

LLVM IR (-O2):
define signext i8 @adcStart(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @R_ADC_Start()
ret i8 0
}
int func() { return 5; }


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

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

LLVM IR (-O0):
define i32 @func() {
ret i32 5
}

LLVM IR (-O2):
define i32 @func() {
ret i32 5
}
void osd_exit(void) {}


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

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

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

LLVM IR (-O2):
define void @osd_exit() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char input[5];
  scanf("%s", input);
  printf("Your input : %s", input);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x9(%rbp),%rsi
lea    0xed3(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x9(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xb(%rsp),%rbx
mov    %rbx,%rsi
call   1040 <scanf@plt>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [16 x i8] c"Your input : %s\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 1
}
hex(x) int x;
{
  hexb(x >> 8);
  hexb(x);
}


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

x86 assembly (clang, -O2):
<hex>:
push   %rbx
mov    %edi,%ebx
sar    $0x8,%edi
xor    %eax,%eax
call   1030 <hexb@plt>
mov    %ebx,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <hexb@plt>

LLVM IR (-O0):
define i32 @hex(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = ashr i32 %4, 8
%6 = call i32 (i32, ...) bitcast (i32 (...)* @hexb to i32 (i32, ...)*)(i32 %5)
%7 = load i32, i32* %3
%8 = call i32 (i32, ...) bitcast (i32 (...)* @hexb to i32 (i32, ...)*)(i32 %7)
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @hex(i32 %0) {
%2 = ashr i32 %0, 8
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @hexb to i32 (i32, ...)*)(i32 %2)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @hexb to i32 (i32, ...)*)(i32 %0)
ret i32 undef
}
void native_window_create_video() { return; }


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

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

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

LLVM IR (-O2):
define void @native_window_create_video() {
ret void
}
/* Type definitions */
typedef scalar_t__ time_t;

/* Variables and functions */
char const *apm_time(scalar_t__);
const char *apm_delta_time(time_t then, time_t now) {
  return apm_time(now - then);
}


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

x86 assembly (clang, -O2):
<apm_delta_time>:
sub    %rdi,%rsi
mov    %rsi,%rdi
jmp    1030 <apm_time@plt>

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

LLVM IR (-O2):
define i8* @apm_delta_time(i64 %0, i64 %1) {
%3 = sub nsw i64 %1, %0
%4 = tail call i8* @apm_time(i64 %3)
ret i8* %4
}
void UART1_IRQHandler(void) {}


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

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

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

LLVM IR (-O2):
define void @UART1_IRQHandler() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ csolve_assert(int /*<<< orphan*/);
void csolve_block_begin(void *p) { csolve_assert(0); }


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

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

LLVM IR (-O0):
define void @csolve_block_begin(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @csolve_assert(i32 0)
ret void
}

LLVM IR (-O2):
define void @csolve_block_begin(i8* nocapture readnone %0) {
%2 = tail call i32 @csolve_assert(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *malloc(scalar_t__);
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ strlen(char *);
char *voltea_string(char *);
int main(void) {
  char *s = "Campos verdes";
  char *p;
  p = malloc(strlen(s) + 1);
  p = s;
  char *s_duplicado;
  s_duplicado = voltea_string(s);
  printf("%s\n", s_duplicado);
  free(s_duplicado);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <voltea_string@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xe6b(%rip),%rdi
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1050 <voltea_string@plt>
mov    %rax,%rbx
lea    0xec7(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Campos verdes\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %2
%5 = load i8*, i8** %2
%6 = call i64 @strlen(i8* %5)
%7 = add nsw i64 %6, 1
%8 = call i8* @malloc(i64 %7)
store i8* %8, i8** %3
%9 = load i8*, i8** %2
store i8* %9, i8** %3
%10 = load i8*, i8** %2
%11 = call i8* @voltea_string(i8* %10)
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** %4
%15 = call i32 @free(i8* %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"Campos verdes\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i8* @voltea_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%3 = tail call i32 @free(i8* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_thread_is_running() {
  printf("NOT IMPLEMENTED:"
         "pa_thread_is_running"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [38 x i8] c"NOT IMPLEMENTED:pa_thread_is_running\0A\00"
define i32 @pa_thread_is_running() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [37 x i8] c"NOT IMPLEMENTED:pa_thread_is_running\00"
define i32 @pa_thread_is_running() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_attr_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int pthread_attr_destroy(pthread_attr_t *attr) { assert(0); }


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

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

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

LLVM IR (-O2):
define i32 @pthread_attr_destroy(i32* nocapture readnone %0) {
%2 = tail call i32 @assert(i32 0)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_p384_msat(uintptr_t);
void fiat_p384_msat(uint64_t out1[7]) {
  internal_fiat_p384_msat((uintptr_t)out1);
}


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

x86 assembly (clang, -O2):
<fiat_p384_msat>:
jmp    1030 <internal_fiat_p384_msat@plt>

LLVM IR (-O0):
define void @fiat_p384_msat(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = ptrtoint i32* %3 to i64
%5 = call i32 @internal_fiat_p384_msat(i64 %4)
ret void
}

LLVM IR (-O2):
define void @fiat_p384_msat(i32* %0) {
%2 = ptrtoint i32* %0 to i64
%3 = tail call i32 @internal_fiat_p384_msat(i64 %2)
ret void
}
void _Jv_GetStringUTFRegion() {}


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

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

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

LLVM IR (-O2):
define void @_Jv_GetStringUTFRegion() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ IF_fct_2(char);
void IF_Lsup(void) { IF_fct_2('>'); }


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

x86 assembly (clang, -O2):
<IF_Lsup>:
mov    $0x3e,%edi
jmp    1030 <IF_fct_2@plt>

LLVM IR (-O0):
define void @IF_Lsup() {
%1 = call i32 @IF_fct_2(i8 signext 62)
ret void
}

LLVM IR (-O2):
define void @IF_Lsup() {
%1 = tail call i32 @IF_fct_2(i8 signext 62)
ret void
}
/* Variables and functions */
void using_history(void) {}


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

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

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

LLVM IR (-O2):
define void @using_history() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GarbageCollection();
int /*<<< orphan*/ Init();
int /*<<< orphan*/ ListenMainKey();
int /*<<< orphan*/ SayGoodbye();
int /*<<< orphan*/ ToMainScreen();
int main(int argn, char *argv[]) {
  Init();
  {
    ToMainScreen();
    while (!ListenMainKey()) {
    };
    ;
    SayGoodbye();
    GarbageCollection();
  };
  ;
  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   1060 <Init@plt>
mov    $0x0,%al
call   1030 <ToMainScreen@plt>
mov    $0x0,%al
call   1070 <ListenMainKey@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1190 <main+0x40>
jmp    1195 <main+0x45>
jmp    1174 <main+0x24>
mov    $0x0,%al
call   1050 <SayGoodbye@plt>
mov    $0x0,%al
call   1040 <GarbageCollection@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <Init@plt>
xor    %eax,%eax
call   1030 <ToMainScreen@plt>
nop
xor    %eax,%eax
call   1070 <ListenMainKey@plt>
test   %eax,%eax
je     1160 <main+0x10>
xor    %eax,%eax
call   1050 <SayGoodbye@plt>
xor    %eax,%eax
call   1040 <GarbageCollection@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 (...) @Init()
%7 = call i32 (...) @ToMainScreen()
br label %8
8: ; preds = %12, %2
%9 = call i32 (...) @ListenMainKey()
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
br i1 %11, label %12, label %13
12: ; preds = %8
br label %8
13: ; preds = %8
%14 = call i32 (...) @SayGoodbye()
%15 = call i32 (...) @GarbageCollection()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @Init()
%4 = tail call i32 (...) @ToMainScreen()
br label %5
5: ; preds = %5, %2
%6 = tail call i32 (...) @ListenMainKey()
%7 = icmp eq i32 %6, 0
br i1 %7, label %5, label %8
8: ; preds = %5
%9 = tail call i32 (...) @SayGoodbye()
%10 = tail call i32 (...) @GarbageCollection()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ switch_on_bits(unsigned char *, int);
void CTRL_REGSC_BITSET_R2g_T1g(unsigned char *data) {
  switch_on_bits(data, (0x10 | 0x02 | 0x01));
}


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

x86 assembly (clang, -O2):
<CTRL_REGSC_BITSET_R2g_T1g>:
mov    $0x13,%esi
jmp    1030 <switch_on_bits@plt>

LLVM IR (-O0):
define void @CTRL_REGSC_BITSET_R2g_T1g(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @switch_on_bits(i8* %3, i32 19)
ret void
}

LLVM IR (-O2):
define void @CTRL_REGSC_BITSET_R2g_T1g(i8* %0) {
%2 = tail call i32 @switch_on_bits(i8* %0, i32 19)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mktime(struct tm *);
time_t tm_normalizetolocal(struct tm *tm) { return mktime(tm); }


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

x86 assembly (clang, -O2):
<tm_normalizetolocal>:
jmp    1030 <mktime@plt>

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

LLVM IR (-O2):
%struct.tm = type { i32 }
define i32 @tm_normalizetolocal(%struct.tm* nocapture %0) {
%2 = tail call i32 @mktime(%struct.tm* %0)
ret i32 %2
}
/* Variables and functions */
float __builtin_arm_vcvtr_f(float, int);
float test_vcvtrf1(float f) { return __builtin_arm_vcvtr_f(f, 1); }


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

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

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

LLVM IR (-O2):
define float @test_vcvtrf1(float %0) {
%2 = tail call float @__builtin_arm_vcvtr_f(float %0, i32 1)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ addstr(char *);
int /*<<< orphan*/ clrtoeol();
int /*<<< orphan*/ move(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ refresh();
void print_msg(char *s) {
  move(0, 0);
  addstr(s);
  clrtoeol();
  refresh();
  return;
}


x86 assembly (clang, -O0):
<print_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1060 <move@plt>
mov    -0x8(%rbp),%rdi
call   1050 <addstr@plt>
mov    $0x0,%al
call   1040 <clrtoeol@plt>
mov    $0x0,%al
call   1030 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_msg>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
xor    %esi,%esi
call   1060 <move@plt>
mov    %rbx,%rdi
call   1050 <addstr@plt>
xor    %eax,%eax
call   1040 <clrtoeol@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <refresh@plt>

LLVM IR (-O0):
define void @print_msg(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @move(i32 0, i32 0)
%4 = load i8*, i8** %2
%5 = call i32 @addstr(i8* %4)
%6 = call i32 (...) @clrtoeol()
%7 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
define void @print_msg(i8* %0) {
%2 = tail call i32 @move(i32 0, i32 0)
%3 = tail call i32 @addstr(i8* %0)
%4 = tail call i32 (...) @clrtoeol()
%5 = tail call i32 (...) @refresh()
ret void
}
/* Type definitions */
typedef unsigned int uint16_t;

/* Variables and functions */
void _tgl_bit(uint16_t *x, const int b) { *x ^= (1U << b); }


x86 assembly (clang, -O0):
<_tgl_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<_tgl_bit>:
mov    %esi,%ecx
mov    $0x1,%eax
shl    %cl,%eax
xor    %eax,(%rdi)
ret

LLVM IR (-O0):
define void @_tgl_bit(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = shl i32 1, %5
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = xor i32 %8, %6
store i32 %9, i32* %7
ret void
}

LLVM IR (-O2):
define void @_tgl_bit(i32* nocapture %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = load i32, i32* %0
%5 = xor i32 %4, %3
store i32 %5, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ UARTWriteChar(int);
void __putchar(int ch) {
  if (ch == '\n')
    UARTWriteChar('\r');
  UARTWriteChar(ch);
}


x86 assembly (clang, -O0):
<__putchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jne    112f <__putchar+0x1f>
mov    $0xd,%edi
call   1030 <UARTWriteChar@plt>
mov    -0x4(%rbp),%edi
call   1030 <UARTWriteChar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__putchar>:
push   %rbx
mov    %edi,%ebx
cmp    $0xa,%edi
jne    1122 <__putchar+0x12>
mov    $0xd,%edi
call   1030 <UARTWriteChar@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <UARTWriteChar@plt>

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

LLVM IR (-O2):
define void @__putchar(i32 %0) {
%2 = icmp eq i32 %0, 10
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @UARTWriteChar(i32 13)
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @UARTWriteChar(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ braktop_(double *, int *, double *, int *, int *);
void braktop(double aa, int *ia, double a[], int n, int l) {
  braktop_(&aa, ia, a, &n, &l);
}


x86 assembly (clang, -O0):
<braktop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    -0x8(%rbp),%rdi
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
call   1030 <braktop_@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<braktop>:
sub    $0x18,%rsp
mov    %rsi,%rax
mov    %rdi,%rsi
movsd  %xmm0,0x10(%rsp)
mov    %edx,0xc(%rsp)
mov    %ecx,0x8(%rsp)
lea    0x10(%rsp),%rdi
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
mov    %rax,%rdx
call   1030 <braktop_@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @braktop(double %0, i32* %1, double* %2, i32 %3, i32 %4) {
%6 = alloca double
%7 = alloca i32*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
store double %0, double* %6
store i32* %1, i32** %7
store double* %2, double** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32*, i32** %7
%12 = load double*, double** %8
%13 = call i32 @braktop_(double* %6, i32* %11, double* %12, i32* %9, i32* %10)
ret void
}

LLVM IR (-O2):
define void @braktop(double %0, i32* %1, double* %2, i32 %3, i32 %4) {
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
store double %0, double* %6
store i32 %3, i32* %7
store i32 %4, i32* %8
%9 = call i32 @braktop_(double* %6, i32* %1, double* %2, i32* %7, i32* %8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SetDirection(unsigned char, int);
void Toggle(unsigned char Outputs) { SetDirection(Outputs, 0x40); }


x86 assembly (clang, -O0):
<Toggle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0x40,%esi
movzbl -0x1(%rbp),%edi
call   1030 <SetDirection@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Toggle>:
mov    $0x40,%esi
jmp    1030 <SetDirection@plt>

LLVM IR (-O0):
define void @Toggle(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i32 @SetDirection(i8 zeroext %3, i32 64)
ret void
}

LLVM IR (-O2):
define void @Toggle(i8 zeroext %0) {
%2 = tail call i32 @SetDirection(i8 zeroext %0, i32 64)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ startSpeedSensor();
int main() { startSpeedSensor(); }


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @startSpeedSensor()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @startSpeedSensor()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fork();
int getpid();
int getppid();
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main() {
  fork();
  fork();
  fork();
  printf("%d %d\n", getpid(), getppid());
  wait(NULL);
  wait(NULL);
  wait(NULL);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <fork@plt>
mov    $0x0,%al
call   1070 <fork@plt>
mov    $0x0,%al
call   1070 <fork@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <getppid@plt>
mov    -0x8(%rbp),%esi
mov    %eax,%edx
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <wait@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <wait@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <wait@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1070 <fork@plt>
xor    %eax,%eax
call   1070 <fork@plt>
xor    %eax,%eax
call   1070 <fork@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <getppid@plt>
lea    0xe83(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <wait@plt>
xor    %edi,%edi
call   1060 <wait@plt>
xor    %edi,%edi
call   1060 <wait@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @fork()
%2 = tail call i32 (...) @fork()
%3 = tail call i32 (...) @fork()
%4 = tail call i32 (...) @getpid()
%5 = tail call i32 (...) @getppid()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
%7 = tail call i32 @wait(i32* null)
%8 = tail call i32 @wait(i32* null)
%9 = tail call i32 @wait(i32* null)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ runDiskTest();
int /*<<< orphan*/ runFileTests();
int /*<<< orphan*/ testScheduler();
void runKernelTests() {
  testScheduler();
  runDiskTest();
  runFileTests();
}


x86 assembly (clang, -O0):
<runKernelTests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <testScheduler@plt>
mov    $0x0,%al
call   1040 <runDiskTest@plt>
mov    $0x0,%al
call   1050 <runFileTests@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<runKernelTests>:
push   %rax
xor    %eax,%eax
call   1030 <testScheduler@plt>
xor    %eax,%eax
call   1040 <runDiskTest@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <runFileTests@plt>

LLVM IR (-O0):
define void @runKernelTests() {
%1 = call i32 (...) @testScheduler()
%2 = call i32 (...) @runDiskTest()
%3 = call i32 (...) @runFileTests()
ret void
}

LLVM IR (-O2):
define void @runKernelTests() {
%1 = tail call i32 (...) @testScheduler()
%2 = tail call i32 (...) @runDiskTest()
%3 = tail call i32 (...) @runFileTests()
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int inventory(const char *pname, const char *fname, int argc,
              const char **argv) {
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<inventory>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inventory>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @inventory(i8* %0, i8* %1, i32 %2, i8** %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8** %3, i8*** %8
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @inventory(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2, i8** nocapture readnone %3) {
%5 = load i32, i32* @EXIT_SUCCESS
ret i32 %5
}
void ff_hevc_put_hevc_bi_w_pel_pixels64_8_sse4() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_tooltips_disable() {
ret void
}
/* Variables and functions */
double interp_high_order_dx_1(double, double *, double *, int, int, double,
                              int /*<<< orphan*/);
double interp_high_order_dx(double x0, double *x, double *y, int n, int order,
                            double dx) {
  return (interp_high_order_dx_1(x0, x, y, n, order, dx, 0));
}


x86 assembly (clang, -O0):
<interp_high_order_dx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
movsd  -0x28(%rbp),%xmm1
xor    %r8d,%r8d
call   1030 <interp_high_order_dx_1@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp_high_order_dx>:
xor    %r8d,%r8d
jmp    1030 <interp_high_order_dx_1@plt>

LLVM IR (-O0):
define double @interp_high_order_dx(double %0, double* %1, double* %2, i32 %3, i32 %4, double %5) {
%7 = alloca double
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
store double %0, double* %7
store double* %1, double** %8
store double* %2, double** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store double %5, double* %12
%13 = load double, double* %7
%14 = load double*, double** %8
%15 = load double*, double** %9
%16 = load i32, i32* %10
%17 = load i32, i32* %11
%18 = load double, double* %12
%19 = call double @interp_high_order_dx_1(double %13, double* %14, double* %15, i32 %16, i32 %17, double %18, i32 0)
ret double %19
}

LLVM IR (-O2):
define double @interp_high_order_dx(double %0, double* %1, double* %2, i32 %3, i32 %4, double %5) {
%7 = tail call double @interp_high_order_dx_1(double %0, double* %1, double* %2, i32 %3, i32 %4, double %5, i32 0)
ret double %7
}
int fun_coverage_switch(int x) {
  int ret = 0;
  switch (x) {
  case 1: {
    ret += 2;
    break;
  }
  case 2: {
    ret += 3;
    break;
  }
  case 3: {
    ret += 4;
    break;
  }
  default: {
    ret += 100;
    break;
  }
  }
  return ret;
}


x86 assembly (clang, -O0):
<fun_coverage_switch>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x1,%eax
je     1144 <fun_coverage_switch+0x44>
jmp    1122 <fun_coverage_switch+0x22>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
je     1152 <fun_coverage_switch+0x52>
jmp    1133 <fun_coverage_switch+0x33>
mov    -0xc(%rbp),%eax
sub    $0x3,%eax
je     1160 <fun_coverage_switch+0x60>
jmp    116e <fun_coverage_switch+0x6e>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    1177 <fun_coverage_switch+0x77>
mov    -0x8(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x8(%rbp)
jmp    1177 <fun_coverage_switch+0x77>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
jmp    1177 <fun_coverage_switch+0x77>
mov    -0x8(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_coverage_switch>:
lea    -0x1(%rdi),%eax
lea    0x1(%rdi),%ecx
cmp    $0x3,%eax
mov    $0x64,%eax
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @fun_coverage_switch(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
switch i32 %4, label %14 [
i32 1, label %5
i32 2, label %8
i32 3, label %11
]
5: ; preds = %1
%6 = load i32, i32* %3
%7 = add nsw i32 %6, 2
store i32 %7, i32* %3
br label %17
8: ; preds = %1
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 3
store i32 %10, i32* %3
br label %17
11: ; preds = %1
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 4
store i32 %13, i32* %3
br label %17
14: ; preds = %1
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 100
store i32 %16, i32* %3
br label %17
17: ; preds = %14, %11, %8, %5
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
define i32 @fun_coverage_switch(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 3
%4 = add i32 %0, 1
%5 = select i1 %3, i32 %4, i32 100
ret i32 %5
}
/* Variables and functions */
double atanh(double);
double kosambi(double r) { return 50.0 * atanh(2.0 * r); }


x86 assembly (clang, -O0):
<kosambi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xee3(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <atanh@plt>
movaps %xmm0,%xmm1
movsd  0xec6(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kosambi>:
push   %rax
addsd  %xmm0,%xmm0
call   1030 <atanh@plt>
mulsd  0xede(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @kosambi(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double 2.000000e+00, %3
%5 = call double @atanh(double %4)
%6 = fmul double 5.000000e+01, %5
ret double %6
}

LLVM IR (-O2):
define double @kosambi(double %0) {
%2 = fmul double %0, 2.000000e+00
%3 = tail call double @atanh(double %2)
%4 = fmul double %3, 5.000000e+01
ret double %4
}
/* Variables and functions */
unsigned int *malloc(int);
unsigned int *intudup(const unsigned int i) {
  unsigned int *ret;
  if ((ret = malloc(sizeof(unsigned int))) == NULL) {
    return NULL;
  }
  (*ret) = i;
  return ret;
}


x86 assembly (clang, -O0):
<intudup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1140 <intudup+0x30>
movq   $0x0,-0x8(%rbp)
jmp    1151 <intudup+0x41>
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<intudup>:
push   %rbx
mov    %edi,%ebx
mov    $0x4,%edi
call   1030 <malloc@plt>
test   %rax,%rax
je     1124 <intudup+0x14>
mov    %ebx,(%rax)
pop    %rbx
ret

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

LLVM IR (-O2):
define noalias i32* @intudup(i32 %0) {
%2 = tail call i32* @malloc(i32 4)
%3 = icmp eq i32* %2, null
br i1 %3, label %5, label %4
4: ; preds = %1
store i32 %0, i32* %2
br label %5
5: ; preds = %1, %4
ret i32* %2
}
/* Variables and functions */
char getTexChar();
int /*<<< orphan*/ ungetTexChar(char);
int getSameChar(char c) {
  char cThis;
  int count = -1;
  do {
    cThis = getTexChar();
    count++;
  } while (cThis == c);
  ungetTexChar(cThis);
  return count;
}


x86 assembly (clang, -O0):
<getSameChar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getTexChar@plt>
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movsbl -0x2(%rbp),%eax
movsbl -0x1(%rbp),%ecx
cmp    %ecx,%eax
je     1135 <getSameChar+0x15>
movsbl -0x2(%rbp),%edi
call   1030 <ungetTexChar@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getSameChar>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
mov    $0xffffffff,%ebx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getTexChar@plt>
add    $0x1,%ebx
cmp    %bpl,%al
je     1130 <getSameChar+0x10>
movsbl %al,%edi
call   1030 <ungetTexChar@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @getSameChar(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %2
store i32 -1, i32* %4
br label %5
5: ; preds = %9, %1
%6 = call signext i8 (...) @getTexChar()
store i8 %6, i8* %3
%7 = load i32, i32* %4
%8 = add nsw i32 %7, 1
store i32 %8, i32* %4
br label %9
9: ; preds = %5
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %5, label %15
15: ; preds = %9
%16 = load i8, i8* %3
%17 = call i32 @ungetTexChar(i8 signext %16)
%18 = load i32, i32* %4
ret i32 %18
}

LLVM IR (-O2):
define i32 @getSameChar(i8 signext %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ -1, %1 ], [ %5, %2 ]
%4 = tail call signext i8 (...) @getTexChar()
%5 = add nsw i32 %3, 1
%6 = icmp eq i8 %4, %0
br i1 %6, label %2, label %7
7: ; preds = %2
%8 = tail call i32 @ungetTexChar(i8 signext %4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ strncpy(char *, char *, unsigned int);
void safe_strncpy(char *targ, char *src, unsigned spaceavail) {
  unsigned goodcount = spaceavail - 1;
  if (spaceavail < 1) {
    return;
  }
  strncpy(targ, src, goodcount);
  targ[goodcount] = 0;
}


x86 assembly (clang, -O0):
<safe_strncpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jae    113b <safe_strncpy+0x2b>
jmp    1156 <safe_strncpy+0x46>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_strncpy>:
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
sub    $0x1,%ebx
jb     112c <safe_strncpy+0x1c>
mov    %rdi,%r14
mov    %ebx,%edx
call   1030 <strncpy@plt>
mov    %ebx,%eax
movb   $0x0,(%r14,%rax,1)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @safe_strncpy(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
%9 = sub i32 %8, 1
store i32 %9, i32* %7
%10 = load i32, i32* %6
%11 = icmp ult i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %3
br label %22
13: ; preds = %3
%14 = load i8*, i8** %4
%15 = load i8*, i8** %5
%16 = load i32, i32* %7
%17 = call i32 @strncpy(i8* %14, i8* %15, i32 %16)
%18 = load i8*, i8** %4
%19 = load i32, i32* %7
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, i8* %18, i64 %20
store i8 0, i8* %21
br label %22
22: ; preds = %13, %12
ret void
}

LLVM IR (-O2):
define void @safe_strncpy(i8* %0, i8* %1, i32 %2) {
%4 = add i32 %2, -1
%5 = icmp eq i32 %2, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = tail call i32 @strncpy(i8* %0, i8* %1, i32 %4)
%8 = zext i32 %4 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
store i8 0, i8* %9
br label %10
10: ; preds = %3, %6
ret void
}