xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isspace(int);
void t_isspace_0x4d() {
  Assert_real((isspace(77) == 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_isspace.c",
              390, ("isspace should be 0 for M"));
}


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

x86 assembly (clang, -O2):
<t_isspace_0x4d>:
push   %rax
mov    $0x4d,%edi
call   1030 <isspace@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x186,%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_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for M\00"
define void @t_isspace_0x4d() {
%1 = call i64 @isspace(i32 77)
%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 390, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for M\00"
define void @t_isspace_0x4d() {
%1 = tail call i64 @isspace(i32 77)
%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 390, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
const char *unpack_s32(int32_t *data, const char *buffer) {
  *data = ntohl(*((int32_t *)buffer));
  return buffer + sizeof(*data);
}


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

x86 assembly (clang, -O2):
<unpack_s32>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    (%rsi),%edi
call   1030 <ntohl@plt>
mov    %eax,(%r14)
add    $0x4,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @unpack_s32(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 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = call i32 @ntohl(i32 %7)
%9 = load i32*, i32** %3
store i32 %8, i32* %9
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i64 4
ret i8* %11
}

LLVM IR (-O2):
define i8* @unpack_s32(i32* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3
%5 = tail call i32 @ntohl(i32 %4)
store i32 %5, i32* %0
%6 = getelementptr inbounds i8, i8* %1, i64 4
ret i8* %6
}
/* Variables and functions */
int /*<<< orphan*/ _change_mode(int);
void radio_standby(void) {
  ;
  _change_mode(0x04);
}


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

x86 assembly (clang, -O2):
<radio_standby>:
mov    $0x4,%edi
jmp    1030 <_change_mode@plt>

LLVM IR (-O0):
define void @radio_standby() {
%1 = call i32 @_change_mode(i32 4)
ret void
}

LLVM IR (-O2):
define void @radio_standby() {
%1 = tail call i32 @_change_mode(i32 4)
ret void
}
/* Type definitions */
typedef char uint8_t;

/* Variables and functions */
int fuzix_isdigit(int c) { return ((uint8_t)c >= '0') && ((uint8_t)c <= '9'); }


x86 assembly (clang, -O0):
<fuzix_isdigit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x5(%rbp)
jl     112a <fuzix_isdigit+0x2a>
mov    -0x4(%rbp),%eax
movsbl %al,%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fuzix_isdigit>:
shl    $0x18,%edi
add    $0xd0ffffff,%edi
xor    %eax,%eax
cmp    $0xaffffff,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @fuzix_isdigit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = trunc i32 %3 to i8
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, i32* %2
%9 = trunc i32 %8 to i8
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 57
br label %12
12: ; preds = %7, %1
%13 = phi i1 [ false, %1 ], [ %11, %7 ]
%14 = zext i1 %13 to i32
ret i32 %14
}

LLVM IR (-O2):
define i32 @fuzix_isdigit(i32 %0) {
%2 = shl i32 %0, 24
%3 = add i32 %2, -788529153
%4 = icmp ult i32 %3, 184549375
%5 = zext i1 %4 to i32
ret i32 %5
}
void av_codec_get_lowres() {}


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

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

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

LLVM IR (-O2):
define void @av_codec_get_lowres() {
ret void
}
/* Type definitions */
struct t_config_option {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fset_buffer_refresh(int /*<<< orphan*/);
void fset_config_change_use_color_value_cb(const void *pointer, void *data,
                                           struct t_config_option *option) {
  (void)pointer;
  (void)data;
  (void)option;
  fset_buffer_refresh(0);
}


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

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

LLVM IR (-O0):
%struct.t_config_option = type { i32 }
define void @fset_config_change_use_color_value_cb(i8* %0, i8* %1, %struct.t_config_option* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca %struct.t_config_option*
store i8* %0, i8** %4
store i8* %1, i8** %5
store %struct.t_config_option* %2, %struct.t_config_option** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load %struct.t_config_option*, %struct.t_config_option** %6
%10 = call i32 @fset_buffer_refresh(i32 0)
ret void
}

LLVM IR (-O2):
%struct.t_config_option = type { i32 }
define void @fset_config_change_use_color_value_cb(i8* nocapture readnone %0, i8* nocapture readnone %1, %struct.t_config_option* nocapture readnone %2) {
%4 = tail call i32 @fset_buffer_refresh(i32 0)
ret void
}
void get_label_y_left(int j, char y[]) {
  j++;
  y[0] = (char)(int)(j / 10 + 48);
  y[1] = (char)(j % 10 + 48);
  y[2] = '\0';
  if (y[0] == '0') {
    y[0] = ' ';
  }
  return;
}


x86 assembly (clang, -O0):
<get_label_y_left>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x2(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    1160 <get_label_y_left+0x60>
mov    -0x10(%rbp),%rax
movb   $0x20,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_label_y_left>:
add    $0x1,%edi
movslq %edi,%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
lea    0x30(%rcx),%edx
mov    %dl,(%rsi)
mov    %ecx,%edx
add    %edx,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%eax
add    $0x30,%al
mov    %al,0x1(%rsi)
movb   $0x0,0x2(%rsi)
test   %cl,%cl
je     1136 <get_label_y_left+0x36>
ret
movb   $0x20,(%rsi)
ret

LLVM IR (-O0):
define void @get_label_y_left(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = add nsw i32 %5, 1
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = sdiv i32 %7, 10
%9 = add nsw i32 %8, 48
%10 = trunc i32 %9 to i8
%11 = load i8*, i8** %4
%12 = getelementptr inbounds i8, i8* %11, i64 0
store i8 %10, i8* %12
%13 = load i32, i32* %3
%14 = srem i32 %13, 10
%15 = add nsw i32 %14, 48
%16 = trunc i32 %15 to i8
%17 = load i8*, i8** %4
%18 = getelementptr inbounds i8, i8* %17, i64 1
store i8 %16, i8* %18
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i64 2
store i8 0, i8* %20
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 48
br i1 %25, label %26, label %29
26: ; preds = %2
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i64 0
store i8 32, i8* %28
br label %29
29: ; preds = %26, %2
ret void
}

LLVM IR (-O2):
define void @get_label_y_left(i32 %0, i8* nocapture %1) {
%3 = add nsw i32 %0, 1
%4 = sdiv i32 %3, 10
%5 = trunc i32 %4 to i8
%6 = add i8 %5, 48
store i8 %6, i8* %1
%7 = srem i32 %3, 10
%8 = trunc i32 %7 to i8
%9 = add nsw i8 %8, 48
%10 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %9, i8* %10
%11 = getelementptr inbounds i8, i8* %1, i64 2
store i8 0, i8* %11
%12 = icmp eq i8 %5, 0
br i1 %12, label %13, label %14
13: ; preds = %2
store i8 32, i8* %1
br label %14
14: ; preds = %13, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cmd_type(char *);
scalar_t__ get_numvar(char *);
void cmd_no(char *str) {
  if (get_numvar("#MATCHED") == 0) {
    cmd_type(str);
  }
}


x86 assembly (clang, -O0):
<cmd_no>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <get_numvar@plt>
cmp    $0x0,%rax
jne    114b <cmd_no+0x2b>
mov    -0x8(%rbp),%rdi
call   1030 <cmd_type@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_no>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1040 <get_numvar@plt>
test   %rax,%rax
je     1137 <cmd_no+0x17>
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <cmd_type@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"#MATCHED\00"
define void @cmd_no(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i64 @get_numvar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @cmd_type(i8* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"#MATCHED\00"
define void @cmd_no(i8* %0) {
%2 = tail call i64 @get_numvar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @cmd_type(i8* %0)
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
size_t u_width_impl(char const *, size_t, int);
size_t u_width_n(const char *string, size_t n) {
  return u_width_impl(string, n, true);
}


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

x86 assembly (clang, -O2):
<u_width_n>:
mov    $0x1,%edx
jmp    1030 <u_width_impl@plt>

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

LLVM IR (-O2):
define i64 @u_width_n(i8* %0, i64 %1) {
%3 = tail call i64 @u_width_impl(i8* %0, i64 %1, i32 1)
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ gethostname(char *, int);
char *malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  char *name;
  name = malloc(1024);
  gethostname(name, 1024);
  printf("%s\n", name);
  free(name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x400,%edi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x400,%esi
call   1060 <gethostname@plt>
mov    -0x10(%rbp),%rsi
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x400,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x400,%esi
call   1060 <gethostname@plt>
lea    0xe9e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%2 = tail call i32 @gethostname(i8* %1, i32 1024)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = tail call i32 @free(i8* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  char c = 0;
  int i = 0;
  for (i = 0; i <= 255; i++) {
    printf("%c\t", c);
    printf("%d\n", i);
    c++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xff,-0xc(%rbp)
jg     1173 <main+0x63>
movsbl -0x5(%rbp),%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1131 <main+0x21>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee0(%rip),%r14
lea    0xedd(%rip),%r15
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %ebx,%esi
sar    $0x18,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
add    $0x1,%ebp
add    $0x1000000,%ebx
cmp    $0x100,%ebp
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%c\09\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %7, %1 ]
%3 = shl i32 %2, 24
%4 = ashr exact i32 %3, 24
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%7 = add nuw nsw i32 %2, 1
%8 = icmp eq i32 %7, 256
br i1 %8, label %9, label %1
9: ; preds = %1
ret i32 0
}
float gk_vector_evaluate(unsigned int dna) {
  double result = dna;
  result /= (((unsigned int)1) << ((sizeof(unsigned int) * 8) - 1));
  result /= 2.0;
  return (float)(0 + (result * (100 - 0)));
}


x86 assembly (clang, -O0):
<gk_vector_evaluate>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xeef(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xed1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xeb3(%rip),%xmm1
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<gk_vector_evaluate>:
mov    %edi,%eax
cvtsi2sd %rax,%xmm0
mulsd  0xef1(%rip),%xmm0
mulsd  0xef1(%rip),%xmm0
mulsd  0xef1(%rip),%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @gk_vector_evaluate(i32 %0) {
%2 = alloca i32
%3 = alloca double
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = uitofp i32 %4 to double
store double %5, double* %3
%6 = load double, double* %3
%7 = fdiv double %6, 0x41E0000000000000
store double %7, double* %3
%8 = load double, double* %3
%9 = fdiv double %8, 2.000000e+00
store double %9, double* %3
%10 = load double, double* %3
%11 = call double @llvm.fmuladd.f64(double %10, double 1.000000e+02, double 0.000000e+00)
%12 = fptrunc double %11 to float
ret float %12
}

LLVM IR (-O2):
define float @gk_vector_evaluate(i32 %0) {
%2 = uitofp i32 %0 to double
%3 = fmul double %2, 0x3E00000000000000
%4 = fmul double %3, 5.000000e-01
%5 = tail call double @llvm.fmuladd.f64(double %4, double 1.000000e+02, double 0.000000e+00)
%6 = fptrunc double %5 to float
ret float %6
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *get_status_text();
int strlen(char *);
int /*<<< orphan*/ write(int, char *, int);
void wdctl_status(int fd) {
  char *status = NULL;
  int len = 0;
  status = get_status_text();
  len = strlen(status);
  write(fd, status, len);
  free(status);
}


x86 assembly (clang, -O0):
<wdctl_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1060 <get_status_text@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <write@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wdctl_status>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
xor    %eax,%eax
call   1060 <get_status_text@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @wdctl_status(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i32 %0, i32* %2
store i8* null, i8** %3
store i32 0, i32* %4
%5 = call i8* (...) @get_status_text()
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @strlen(i8* %6)
store i32 %7, i32* %4
%8 = load i32, i32* %2
%9 = load i8*, i8** %3
%10 = load i32, i32* %4
%11 = call i32 @write(i32 %8, i8* %9, i32 %10)
%12 = load i8*, i8** %3
%13 = call i32 @free(i8* %12)
ret void
}

LLVM IR (-O2):
define void @wdctl_status(i32 %0) {
%2 = tail call i8* (...) @get_status_text()
%3 = tail call i32 @strlen(i8* %2)
%4 = tail call i32 @write(i32 %0, i8* %2, i32 %3)
%5 = tail call i32 @free(i8* %2)
ret void
}
void ARGBToYJRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @ARGBToYJRow_Any_NEON() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void error(const char *msg, int line) {
  fprintf(stderr, "ERROR [line: %s] \n", msg);
  exit(-1);
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xebd(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<error>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [19 x i8] c"ERROR [line: %s] \0A\00"
define void @error(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"ERROR [line: %s] \0A\00"
define void @error(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @exit(i32 -1)
unreachable
}
unsigned int half(unsigned int num) { return num / 2; }


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

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

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

LLVM IR (-O2):
define i32 @half(i32 %0) {
%2 = lshr i32 %0, 1
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int32_t;

/* Variables and functions */
int /*<<< orphan*/ u8_strlen(int /*<<< orphan*/ *);
int /*<<< orphan*/ *u8_strncpy(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                               int /*<<< orphan*/);
u_int32_t *u8_strcpy(u_int32_t *dest, const u_int32_t *src) {
  return u8_strncpy(dest, src, u8_strlen(dest));
}


x86 assembly (clang, -O0):
<u8_strcpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <u8_strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <u8_strncpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<u8_strcpy>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <u8_strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <u8_strncpy@plt>

LLVM IR (-O0):
define i32* @u8_strcpy(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 = load i32*, i32** %3
%8 = call i32 @u8_strlen(i32* %7)
%9 = call i32* @u8_strncpy(i32* %5, i32* %6, i32 %8)
ret i32* %9
}

LLVM IR (-O2):
define i32* @u8_strcpy(i32* %0, i32* %1) {
%3 = tail call i32 @u8_strlen(i32* %0)
%4 = tail call i32* @u8_strncpy(i32* %0, i32* %1, i32 %3)
ret i32* %4
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, double);
char *sdeco_dbl2txt(double fval) {
  static char buf[40];
  sprintf(buf, "%g", fval);
  return buf;
}


x86 assembly (clang, -O0):
<sdeco_dbl2txt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    0x2f17(%rip),%rdi
lea    0xed0(%rip),%rsi
call   1030 <sprintf@plt>
lea    0x2f04(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sdeco_dbl2txt>:
push   %rbx
lea    0x2f28(%rip),%rbx
lea    0xee1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@sdeco_dbl2txt.buf = internal global [40 x i8] zeroinitializer
@.str = [3 x i8] c"%g\00"
define i8* @sdeco_dbl2txt(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call i32 @sprintf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @sdeco_dbl2txt.buf, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %3)
ret i8* getelementptr inbounds ([40 x i8], [40 x i8]* @sdeco_dbl2txt.buf, i64 0, i64 0)
}

LLVM IR (-O2):
@sdeco_dbl2txt.buf = internal global [40 x i8] zeroinitializer
@.str = [3 x i8] c"%g\00"
define i8* @sdeco_dbl2txt(double %0) {
%2 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @sdeco_dbl2txt.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %0)
ret i8* getelementptr inbounds ([40 x i8], [40 x i8]* @sdeco_dbl2txt.buf, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ o;

/* Variables and functions */
unsigned int string_hash3(char const *, int);
unsigned int int_hash(const void *o) {
  return string_hash3((const char *)&o, sizeof(o));
}


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

x86 assembly (clang, -O2):
<int_hash>:
push   %rax
mov    %rdi,(%rsp)
mov    %rsp,%rdi
mov    $0x8,%esi
call   1030 <string_hash3@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @int_hash(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = bitcast i8** %2 to i8*
%4 = call i32 @string_hash3(i8* %3, i32 8)
ret i32 %4
}

LLVM IR (-O2):
define i32 @int_hash(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = bitcast i8** %2 to i8*
%4 = call i32 @string_hash3(i8* %3, i32 8)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
char *tcp_non_legacy_usage();
void tcp_showusage() { printf("usage : tcp %s", tcp_non_legacy_usage()); }


x86 assembly (clang, -O0):
<tcp_showusage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <tcp_non_legacy_usage@plt>
mov    %rax,%rsi
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcp_showusage>:
push   %rax
xor    %eax,%eax
call   1040 <tcp_non_legacy_usage@plt>
lea    0xed1(%rip),%rdi
mov    %rax,%rsi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"usage : tcp %s\00"
define void @tcp_showusage() {
%1 = call i8* (...) @tcp_non_legacy_usage()
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"usage : tcp %s\00"
define void @tcp_showusage() {
%1 = tail call i8* (...) @tcp_non_legacy_usage()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void help() {
  printf(
      "  -g n    Select the gpio pin to use by its number n (default: 2)\r\n");
  printf("  -d s    Select whether the direction of the pin is in or out "
         "(default: out)\r\n");
  printf("  -v x    Select the value to set (out) or the value to compare with "
         "(in) (default: 1)\r\n");
}


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

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf62(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [68 x i8] c" -g n Select the gpio pin to use by its number n (default: 2)\0D\0A\00"
@.str.1 = [80 x i8] c" -d s Select whether the direction of the pin is in or out (default: out)\0D\0A\00"
@.str.2 = [89 x i8] c" -v x Select the value to set (out) or the value to compare with (in) (default: 1)\0D\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [67 x i8] c" -g n Select the gpio pin to use by its number n (default: 2)\0D\00"
@str.3 = [79 x i8] c" -d s Select whether the direction of the pin is in or out (default: out)\0D\00"
@str.4 = [88 x i8] c" -v x Select the value to set (out) or the value to compare with (in) (default: 1)\0D\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.4, i64 0, i64 0))
ret void
}
void ble_evt_connection_version_ind(
    const struct ble_msg_connection_version_ind_evt_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.ble_msg_connection_version_ind_evt_t = type opaque
define void @ble_evt_connection_version_ind(%struct.ble_msg_connection_version_ind_evt_t* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Bar159(long, long, long, long, unsigned long);
void bar(long x, long y, long w, long h, unsigned long c) {
  Bar159(x, y, w, h, c);
}


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

x86 assembly (clang, -O2):
<bar>:
jmp    1030 <Bar159@plt>

LLVM IR (-O0):
define void @bar(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i64 %0, i64* %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i64, i64* %6
%12 = load i64, i64* %7
%13 = load i64, i64* %8
%14 = load i64, i64* %9
%15 = load i64, i64* %10
%16 = call i32 @Bar159(i64 %11, i64 %12, i64 %13, i64 %14, i64 %15)
ret void
}

LLVM IR (-O2):
define void @bar(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = tail call i32 @Bar159(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4)
ret void
}
/* Variables and functions */
int at_chip_erase();
int at_act_erase() { return at_chip_erase(); }


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

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

LLVM IR (-O0):
define i32 @at_act_erase() {
%1 = call i32 (...) @at_chip_erase()
ret i32 %1
}

LLVM IR (-O2):
define i32 @at_act_erase() {
%1 = tail call i32 (...) @at_chip_erase()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void printRoute(int parentMat[][20], int startV, int endV) {
  if (startV != endV)
    printRoute(parentMat, startV, parentMat[startV][endV]);
  printf(" %d", endV + 1);
}


x86 assembly (clang, -O0):
<printRoute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     1160 <printRoute+0x40>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
call   1040 <printRoute@plt>
mov    -0x10(%rbp),%esi
add    $0x1,%esi
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printRoute>:
push   %rbx
mov    %edx,%ebx
cmp    %edx,%esi
je     1140 <printRoute+0x20>
movslq %esi,%rax
movslq %ebx,%rcx
lea    (%rax,%rax,4),%rax
shl    $0x4,%rax
add    %rdi,%rax
mov    (%rax,%rcx,4),%edx
call   1040 <printRoute@plt>
add    $0x1,%ebx
lea    0xeb6(%rip),%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c" %d\00"
define void @printRoute([20 x i32]* nocapture %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %1, %2
br i1 %4, label %10, label %5
5: ; preds = %3
%6 = sext i32 %1 to i64
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %6, i64 %7
%9 = load i32, i32* %8
tail call void @printRoute([20 x i32]* %0, i32 %1, i32 %9)
br label %10
10: ; preds = %5, %3
%11 = add nsw i32 %2, 1
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %11)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ reset_tannotator();
void Reset_Tiff_Annotator() { reset_tannotator(); }


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

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

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

LLVM IR (-O2):
define void @Reset_Tiff_Annotator() {
%1 = tail call i32 (...) @reset_tannotator()
ret void
}
__attribute__((no)) unsigned long long rxsbg_di_sll(unsigned long long a,
                                                    unsigned long long b) {
  return a ^ (b << 1);
}


x86 assembly (clang, -O0):
<rxsbg_di_sll>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shl    $0x1,%rcx
xor    %rcx,%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @rxsbg_di_sll(i64 %0, i64 %1) {
%3 = shl i64 %1, 1
%4 = xor i64 %3, %0
ret i64 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ siginfo_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
void die(int sig, siginfo_t *siginfo, void *ignore) {
  (void)sig;
  (void)siginfo;
  (void)ignore;
  ;
  exit(1);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x1,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
mov    $0x1,%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
define void @die(i32 %0, i32* nocapture readnone %1, i8* nocapture readnone %2) {
%4 = tail call i32 @exit(i32 1)
unreachable
}
void tzset(void) {
  printf("tcl>>> %s\n", __func__);
  return;
}


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

x86 assembly (clang, -O2):
<tzset>:
lea    0xee9(%rip),%rdi
lea    0xeed(%rip),%rsi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"tcl>>> %s\0A\00"
@__func__.tzset = [6 x i8] c"tzset\00"
define void @tzset() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.tzset, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"tcl>>> %s\0A\00"
@__func__.tzset = [6 x i8] c"tzset\00"
define void @tzset() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.tzset, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef scalar_t__ ssize_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ recv(unsigned int, char *, unsigned int, int /*<<< orphan*/);
unsigned int ffi_recv(unsigned int sock, unsigned int count, char *buffer) {
  ssize_t ret;
  ret = recv(sock, buffer, count, 0);
  if (ret == 0) {
    exit(0);
  }
  if (ret < 0) {
    exit(-1);
  }
  return ret;
}


x86 assembly (clang, -O0):
<ffi_recv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1159 <ffi_recv+0x39>
xor    %edi,%edi
call   1040 <exit@plt>
cmpq   $0x0,-0x18(%rbp)
jge    116e <ffi_recv+0x4e>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffi_recv>:
push   %rax
mov    %esi,%eax
mov    %rdx,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %rax,%rax
je     1138 <ffi_recv+0x18>
js     113f <ffi_recv+0x1f>
pop    %rcx
ret
xor    %edi,%edi
call   1040 <exit@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @ffi_recv(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%8 = load i32, i32* %4
%9 = load i8*, i8** %6
%10 = load i32, i32* %5
%11 = call i64 @recv(i32 %8, i8* %9, i32 %10, i32 0)
store i64 %11, i64* %7
%12 = load i64, i64* %7
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @exit(i32 0)
unreachable
16: ; preds = %3
%17 = load i64, i64* %7
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @exit(i32 -1)
unreachable
21: ; preds = %16
%22 = load i64, i64* %7
%23 = trunc i64 %22 to i32
ret i32 %23
}

LLVM IR (-O2):
define i32 @ffi_recv(i32 %0, i32 %1, i8* %2) {
%4 = tail call i64 @recv(i32 %0, i8* %2, i32 %1, i32 0)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %3
%9 = icmp slt i64 %4, 0
br i1 %9, label %10, label %12
10: ; preds = %8
%11 = tail call i32 @exit(i32 -1)
unreachable
12: ; preds = %8
%13 = trunc i64 %4 to i32
ret i32 %13
}
/* Type definitions */
struct timespec {
  scalar_t__ tv_sec;
  scalar_t__ tv_nsec;
};

/* Variables and functions */
int timespec_eq(const struct timespec *a, const struct timespec *b) {
  return a->tv_sec == b->tv_sec && a->tv_nsec == b->tv_nsec;
}


x86 assembly (clang, -O0):
<timespec_eq>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rdx
xor    %eax,%eax
cmp    (%rdx),%rcx
mov    %al,-0x11(%rbp)
jne    113b <timespec_eq+0x3b>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
mov    -0x10(%rbp),%rcx
cmp    0x8(%rcx),%rax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<timespec_eq>:
mov    (%rdi),%rcx
xor    %eax,%eax
cmp    (%rsi),%rcx
jne    1117 <timespec_eq+0x17>
mov    0x8(%rdi),%rcx
xor    %eax,%eax
cmp    0x8(%rsi),%rcx
sete   %al
ret

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
define i32 @timespec_eq(%struct.timespec* %0, %struct.timespec* %1) {
%3 = alloca %struct.timespec*
%4 = alloca %struct.timespec*
store %struct.timespec* %0, %struct.timespec** %3
store %struct.timespec* %1, %struct.timespec** %4
%5 = load %struct.timespec*, %struct.timespec** %3
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i32 0, i32 0
%7 = load i64, i64* %6
%8 = load %struct.timespec*, %struct.timespec** %4
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %8, i32 0, i32 0
%10 = load i64, i64* %9
%11 = icmp eq i64 %7, %10
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load %struct.timespec*, %struct.timespec** %3
%14 = getelementptr inbounds %struct.timespec, %struct.timespec* %13, i32 0, i32 1
%15 = load i64, i64* %14
%16 = load %struct.timespec*, %struct.timespec** %4
%17 = getelementptr inbounds %struct.timespec, %struct.timespec* %16, i32 0, i32 1
%18 = load i64, i64* %17
%19 = icmp eq i64 %15, %18
br label %20
20: ; preds = %12, %2
%21 = phi i1 [ false, %2 ], [ %19, %12 ]
%22 = zext i1 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
define i32 @timespec_eq(%struct.timespec* nocapture %0, %struct.timespec* nocapture %1) {
%3 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
%4 = load i64, i64* %3
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%6 = load i64, i64* %5
%7 = icmp eq i64 %4, %6
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
%10 = load i64, i64* %9
%11 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%12 = load i64, i64* %11
%13 = icmp eq i64 %10, %12
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %8, %2
%16 = phi i32 [ 0, %2 ], [ %14, %8 ]
ret i32 %16
}
int pathcon_nm3_n_in(void) { return 2; }


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

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

LLVM IR (-O0):
define i32 @pathcon_nm3_n_in() {
ret i32 2
}

LLVM IR (-O2):
define i32 @pathcon_nm3_n_in() {
ret i32 2
}
/* Variables and functions */
int /*<<< orphan*/ fatal_perror(char *, size_t);
void *realloc(void *, size_t);
void *reallock(void *ptr, size_t size) {
  void *m;
  m = realloc(ptr, size);
  if (!m && size)
    fatal_perror("realloc(%u): ", size);
  return m;
}


x86 assembly (clang, -O0):
<reallock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1167 <reallock+0x47>
cmpq   $0x0,-0x10(%rbp)
je     1167 <reallock+0x47>
mov    -0x10(%rbp),%rsi
lea    0xe9e(%rip),%rdi
call   1030 <fatal_perror@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reallock>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
call   1040 <realloc@plt>
mov    %rax,%r14
test   %rbx,%rbx
je     1148 <reallock+0x28>
test   %r14,%r14
jne    1148 <reallock+0x28>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <fatal_perror@plt>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [14 x i8] c"realloc(%u): \00"
define i8* @reallock(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 i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp ne i8* %9, null
br i1 %10, label %17, label %11
11: ; preds = %2
%12 = load i64, i64* %4
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i64, i64* %4
%16 = call i32 @fatal_perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i64 %15)
br label %17
17: ; preds = %14, %11, %2
%18 = load i8*, i8** %5
ret i8* %18
}

LLVM IR (-O2):
@.str = [14 x i8] c"realloc(%u): \00"
define noalias i8* @reallock(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
%5 = icmp ne i64 %1, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @fatal_perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i64 %1)
br label %9
9: ; preds = %7, %2
ret i8* %3
}
void textfeature(type, s) int type;
char *s;
{}


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

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

LLVM IR (-O0):
define void @textfeature(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
ret void
}

LLVM IR (-O2):
define void @textfeature(i32 %0, i8* nocapture %1) {
ret void
}