xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ iscntrl(int);
void t_iscntrl_0x19() {
  Assert_real((iscntrl(25)),
              "/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_iscntrl.c",
              130, ("iscntrl should be 1 for 0x19"));
}


x86 assembly (clang, -O0):
<t_iscntrl_0x19>:
push   %rbp
mov    %rsp,%rbp
mov    $0x19,%edi
call   1030 <iscntrl@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x82,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_iscntrl_0x19>:
push   %rax
mov    $0x19,%edi
call   1030 <iscntrl@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x82,%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_iscntrl.c\00"
@.str.1 = [29 x i8] c"iscntrl should be 1 for 0x19\00"
define void @t_iscntrl_0x19() {
%1 = call i32 @iscntrl(i32 25)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00"
@.str.1 = [29 x i8] c"iscntrl should be 1 for 0x19\00"
define void @t_iscntrl_0x19() {
%1 = tail call i32 @iscntrl(i32 25)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts("\"Programming is like building a multilungual puzzle");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [52 x i8] c"\22Programming is like building a multilungual puzzle\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [52 x i8] c"\22Programming is like building a multilungual puzzle\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ bar();
void qux(int x) {
  if (!x)
    bar();
}


x86 assembly (clang, -O0):
<qux>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    112c <qux+0x1c>
mov    $0x0,%al
call   1030 <bar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qux>:
test   %edi,%edi
je     1115 <qux+0x5>
ret
xor    %eax,%eax
jmp    1030 <bar@plt>

LLVM IR (-O0):
define void @qux(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 (...) @bar()
br label %7
7: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @qux(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @bar()
br label %5
5: ; preds = %3, %1
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ tv_nsec;
};
struct stat {
  TYPE_1__ st_atim;
};
typedef int /*<<< orphan*/ stb;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct stat *, int /*<<< orphan*/, int);
int main(int argc, char *argv[]) {
  struct stat stb;
  (void)argc;
  (void)argv;
  memset(&stb, 0, sizeof(stb));
  (void)stb.st_atim.tv_nsec;
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i32 @memset(%struct.stat* %6, i32 0, i32 4)
%10 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%11 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.stat = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = call i32 @memset(%struct.stat* %3, i32 0, i32 4)
%6 = call i32 @exit(i32 0)
unreachable
}
char *hash_plugin_detailed(void) {
  return ("sap - SAP password hashes plugin\n"
          "-------------------------------\n"
          "Use this module to crack SAP R/3 CODVN G hashes\n"
          "Input should be in form: \'user:hash\'\n"
          "Known software that uses this password hashing method:\n"
          "SAP R/3 \n"
          "\nAuthor: Milen Rangelov <gat3way@gat3way.eu>\n");
}


x86 assembly (clang, -O0):
<hash_plugin_detailed>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_plugin_detailed>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [260 x i8] c"sap - SAP password hashes plugin\0A-------------------------------\0AUse this module to crack SAP R/3 CODVN G hashes\0AInput should be in form: 'user:hash'\0AKnown software that uses this password hashing method:\0ASAP R/3 \0A\0AAuthor: Milen Rangelov <gat3way@gat3way.eu>\0A\00"
define i8* @hash_plugin_detailed() {
ret i8* getelementptr inbounds ([260 x i8], [260 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [260 x i8] c"sap - SAP password hashes plugin\0A-------------------------------\0AUse this module to crack SAP R/3 CODVN G hashes\0AInput should be in form: 'user:hash'\0AKnown software that uses this password hashing method:\0ASAP R/3 \0A\0AAuthor: Milen Rangelov <gat3way@gat3way.eu>\0A\00"
define i8* @hash_plugin_detailed() {
ret i8* getelementptr inbounds ([260 x i8], [260 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int dup(int /*<<< orphan*/);
int /*<<< orphan*/ *fdopen(int const, char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int /*<<< orphan*/ freopen(char *, char *, int /*<<< orphan*/ *);
FILE *ct_replacestream(FILE *stream) {
  fflush(stream);
  const int new_stream = dup(fileno(stream));
  freopen("/dev/null", "w", stream);
  return fdopen(new_stream, "w");
}


x86 assembly (clang, -O0):
<ct_replacestream>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <fflush@plt>
mov    -0x8(%rbp),%rdi
call   1050 <fileno@plt>
mov    %eax,%edi
call   1030 <dup@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdx
lea    0xe7d(%rip),%rdi
lea    0xe80(%rip),%rsi
call   1040 <freopen@plt>
mov    -0xc(%rbp),%edi
lea    0xe71(%rip),%rsi
call   1070 <fdopen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ct_replacestream>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
call   1060 <fflush@plt>
mov    %rbx,%rdi
call   1050 <fileno@plt>
mov    %eax,%edi
call   1030 <dup@plt>
mov    %eax,%ebp
lea    0xe8c(%rip),%rdi
lea    0xe8f(%rip),%r14
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <freopen@plt>
mov    %ebp,%edi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <fdopen@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"/dev/null\00"
@.str.1 = [2 x i8] c"w\00"
define i32* @ct_replacestream(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = call i32 @fflush(i32* %4)
%6 = load i32*, i32** %2
%7 = call i32 @fileno(i32* %6)
%8 = call i32 @dup(i32 %7)
store i32 %8, i32* %3
%9 = load i32*, i32** %2
%10 = call i32 @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = load i32, i32* %3
%12 = call i32* @fdopen(i32 %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32* %12
}

LLVM IR (-O2):
@.str = [10 x i8] c"/dev/null\00"
@.str.1 = [2 x i8] c"w\00"
define noalias i32* @ct_replacestream(i32* %0) {
%2 = tail call i32 @fflush(i32* %0)
%3 = tail call i32 @fileno(i32* %0)
%4 = tail call i32 @dup(i32 %3)
%5 = tail call i32 @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %0)
%6 = tail call i32* @fdopen(i32 %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32* %6
}
void VMR3LoadFromStream(void) {}


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

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

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

LLVM IR (-O2):
define void @VMR3LoadFromStream() {
ret void
}
int iscntrl(int c) {
  if ((c >= 0x00) && (c <= 0x1F))
    return 1;
  if (c == 0x7F)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<iscntrl>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1127 <iscntrl+0x27>
cmpl   $0x1f,-0x8(%rbp)
jg     1127 <iscntrl+0x27>
movl   $0x1,-0x4(%rbp)
jmp    1144 <iscntrl+0x44>
cmpl   $0x7f,-0x8(%rbp)
jne    113d <iscntrl+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1144 <iscntrl+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscntrl>:
cmp    $0x20,%edi
setb   %al
cmp    $0x7f,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @iscntrl(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 31
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 1, i32* %2
br label %15
10: ; preds = %6, %1
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 127
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 1, i32* %2
br label %15
14: ; preds = %10
store i32 0, i32* %2
br label %15
15: ; preds = %14, %13, %9
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @iscntrl(i32 %0) {
%2 = icmp ult i32 %0, 32
%3 = icmp eq i32 %0, 127
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
int iswhite(char *s) {
  char *p;
  for (p = s; *p; p++)
    if (*p != ' ' && *p != '\t')
      return (0);
  return (1);
}


x86 assembly (clang, -O0):
<iswhite>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     115f <iswhite+0x5f>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1149 <iswhite+0x49>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1149 <iswhite+0x49>
movl   $0x0,-0x4(%rbp)
jmp    1166 <iswhite+0x66>
jmp    114e <iswhite+0x4e>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1110 <iswhite+0x10>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswhite>:
jmp    1114 <iswhite+0x14>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdi
movzbl (%rdi),%eax
cmp    $0x9,%al
je     1110 <iswhite+0x10>
cmp    $0x20,%al
je     1110 <iswhite+0x10>
test   %al,%al
jne    1129 <iswhite+0x29>
mov    $0x1,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @iswhite(i8* nocapture %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %7 [
i8 0, label %8
i8 32, label %5
i8 9, label %5
]
5: ; preds = %2, %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2
br label %8
8: ; preds = %2, %7
%9 = phi i32 [ 0, %7 ], [ 1, %2 ]
ret i32 %9
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test1();
int /*<<< orphan*/ test2();
int /*<<< orphan*/ test3();
int main() {
  test1();
  test2();
  test3();
  printf("all tests passed\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <test1@plt>
mov    $0x0,%al
call   1060 <test2@plt>
mov    $0x0,%al
call   1030 <test3@plt>
lea    0xe95(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test1@plt>
xor    %eax,%eax
call   1060 <test2@plt>
xor    %eax,%eax
call   1040 <test3@plt>
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"all tests passed\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test1()
%3 = call i32 (...) @test2()
%4 = call i32 (...) @test3()
%5 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_SUCCESS
ret i32 %6
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [17 x i8] c"all tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @test1()
%2 = tail call i32 (...) @test2()
%3 = tail call i32 (...) @test3()
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%5 = load i32, i32* @EXIT_SUCCESS
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
struct jffs2_raw_dirent {
  int dummy;
};

/* Variables and functions */
struct jffs2_raw_dirent *resolvedirent(char *, size_t, int /*<<< orphan*/,
                                       int /*<<< orphan*/, char *,
                                       int /*<<< orphan*/);
struct jffs2_raw_dirent *resolvename(char *o, size_t size, uint32_t pino,
                                     char *name, uint8_t nsize) {
  return resolvedirent(o, size, 0, pino, name, nsize);
}


x86 assembly (clang, -O0):
<resolvename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
xor    %edx,%edx
call   1030 <resolvedirent@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<resolvename>:
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %edx,%ecx
xor    %edx,%edx
jmp    1030 <resolvedirent@plt>

LLVM IR (-O0):
%struct.jffs2_raw_dirent = type { i32 }
define %struct.jffs2_raw_dirent* @resolvename(i8* %0, i64 %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i8* %0, i8** %6
store i64 %1, i64* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = load i64, i64* %7
%13 = load i32, i32* %8
%14 = load i8*, i8** %9
%15 = load i32, i32* %10
%16 = call %struct.jffs2_raw_dirent* @resolvedirent(i8* %11, i64 %12, i32 0, i32 %13, i8* %14, i32 %15)
ret %struct.jffs2_raw_dirent* %16
}

LLVM IR (-O2):
%struct.jffs2_raw_dirent = type { i32 }
define %struct.jffs2_raw_dirent* @resolvename(i8* %0, i64 %1, i32 %2, i8* %3, i32 %4) {
%6 = tail call %struct.jffs2_raw_dirent* @resolvedirent(i8* %0, i64 %1, i32 0, i32 %2, i8* %3, i32 %4)
ret %struct.jffs2_raw_dirent* %6
}
/* Variables and functions */
int /*<<< orphan*/ pnp_write_config(unsigned char, unsigned int, int);
void pnp_set_iobase0(unsigned char port, unsigned iobase) {
  pnp_write_config(port, (iobase >> 8) & 0xff, 0x60);
  pnp_write_config(port, iobase & 0xff, 0x61);
}


x86 assembly (clang, -O0):
<pnp_set_iobase0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x1(%rbp),%al
mov    -0x8(%rbp),%esi
shr    $0x8,%esi
and    $0xff,%esi
mov    $0x60,%edx
movzbl %al,%edi
call   1030 <pnp_write_config@plt>
mov    -0x1(%rbp),%al
mov    -0x8(%rbp),%esi
and    $0xff,%esi
mov    $0x61,%edx
movzbl %al,%edi
call   1030 <pnp_write_config@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pnp_set_iobase0>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
movzbl %bh,%esi
mov    $0x60,%edx
call   1030 <pnp_write_config@plt>
movzbl %bl,%esi
mov    %ebp,%edi
mov    $0x61,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <pnp_write_config@plt>

LLVM IR (-O0):
define void @pnp_set_iobase0(i8 zeroext %0, i32 %1) {
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %3
store i32 %1, i32* %4
%5 = load i8, i8* %3
%6 = load i32, i32* %4
%7 = lshr i32 %6, 8
%8 = and i32 %7, 255
%9 = call i32 @pnp_write_config(i8 zeroext %5, i32 %8, i32 96)
%10 = load i8, i8* %3
%11 = load i32, i32* %4
%12 = and i32 %11, 255
%13 = call i32 @pnp_write_config(i8 zeroext %10, i32 %12, i32 97)
ret void
}

LLVM IR (-O2):
define void @pnp_set_iobase0(i8 zeroext %0, i32 %1) {
%3 = lshr i32 %1, 8
%4 = and i32 %3, 255
%5 = tail call i32 @pnp_write_config(i8 zeroext %0, i32 %4, i32 96)
%6 = and i32 %1, 255
%7 = tail call i32 @pnp_write_config(i8 zeroext %0, i32 %6, i32 97)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIGINT;
scalar_t__ SIG_ERR;
int /*<<< orphan*/ SIG_IGN;
scalar_t__ signal(int /*<<< orphan*/, int /*<<< orphan*/);
int init_signals(void) {
  if (signal(SIGINT, SIG_IGN) == SIG_ERR) {
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<init_signals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e9a(%rip),%rcx
cmp    (%rcx),%rax
jne    114b <init_signals+0x3b>
movl   $0x0,-0x4(%rbp)
jmp    1152 <init_signals+0x42>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_signals>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
mov    0x2ebf(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2ea1(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIG_ERR = global i64 0
define i32 @init_signals() {
%1 = alloca i32
%2 = load i32, i32* @SIGINT
%3 = load i32, i32* @SIG_IGN
%4 = call i64 @signal(i32 %2, i32 %3)
%5 = load i64, i64* @SIG_ERR
%6 = icmp eq i64 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, i32* %1
br label %9
8: ; preds = %0
store i32 1, i32* %1
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %1
ret i32 %10
}

LLVM IR (-O2):
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIG_ERR = global i64 0
define i32 @init_signals() {
%1 = load i32, i32* @SIGINT
%2 = load i32, i32* @SIG_IGN
%3 = tail call i64 @signal(i32 %1, i32 %2)
%4 = load i64, i64* @SIG_ERR
%5 = icmp ne i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int uint8_t;
typedef int int32_t;

/* Variables and functions */
int32_t get_TCP_payload_offset(uint8_t *tcp_packet) {
  return (tcp_packet[12] >> 4) * 4;
}


x86 assembly (clang, -O0):
<get_TCP_payload_offset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%eax
sar    $0x4,%eax
shl    $0x2,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_TCP_payload_offset>:
mov    0x30(%rdi),%eax
sar    $0x2,%eax
and    $0xfffffffc,%eax
ret

LLVM IR (-O0):
define i32 @get_TCP_payload_offset(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 12
%5 = load i32, i32* %4
%6 = ashr i32 %5, 4
%7 = mul nsw i32 %6, 4
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_TCP_payload_offset(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 12
%3 = load i32, i32* %2
%4 = ashr i32 %3, 2
%5 = and i32 %4, -4
ret i32 %5
}
void setGpioOutputs(int val) { *(int *)0xABCD0000 = val; }


x86 assembly (clang, -O0):
<setGpioOutputs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0xabcd0000,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<setGpioOutputs>:
mov    $0xabcd0000,%eax
mov    %edi,(%rax)
ret

LLVM IR (-O0):
define void @setGpioOutputs(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
store i32 %3, i32* inttoptr (i64 2882338816 to i32*)
ret void
}

LLVM IR (-O2):
define void @setGpioOutputs(i32 %0) {
store i32 %0, i32* inttoptr (i64 2882338816 to i32*)
ret void
}
void slashcharclass2VWHITESPACE() {}


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

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

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

LLVM IR (-O2):
define void @slashcharclass2VWHITESPACE() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo();
int p0b(void) {
  foo();
  return 2;
}


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

x86 assembly (clang, -O2):
<p0b>:
push   %rax
xor    %eax,%eax
call   1030 <foo@plt>
mov    $0x2,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @p0b() {
%1 = call i32 (...) @foo()
ret i32 2
}

LLVM IR (-O2):
define i32 @p0b() {
%1 = tail call i32 (...) @foo()
ret i32 2
}
int farkli_elemanlari_bul(int A[], int N, int sonuc[]) { return -1; }


x86 assembly (clang, -O0):
<farkli_elemanlari_bul>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @farkli_elemanlari_bul(i32* %0, i32 %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
ret i32 -1
}

LLVM IR (-O2):
define i32 @farkli_elemanlari_bul(i32* nocapture readnone %0, i32 %1, i32* nocapture readnone %2) {
ret i32 -1
}
void _Block_destructInstance_default(const void *aBlock) {}


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

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

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

LLVM IR (-O2):
define void @_Block_destructInstance_default(i8* nocapture %0) {
ret void
}
int bar(int len) {
  char a[len];
  return 1;
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    $0x1,%eax
mov    %rbp,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @bar(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
%7 = call i8* @llvm.stacksave()
store i8* %7, i8** %3
%8 = alloca i8, i64 %6
store i64 %6, i64* %4
%9 = load i8*, i8** %3
ret i32 1
}

LLVM IR (-O2):
define i32 @bar(i32 %0) {
ret i32 1
}
int __attribute__((target("sse4.2"))) redecl2(void) { return 1; }


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

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

LLVM IR (-O0):
define i32 @redecl2() {
ret i32 1
}

LLVM IR (-O2):
define i32 @redecl2() {
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ read_x8_internal(int /*<<< orphan*/);
uint32_t dbg_memread(uint32_t addr) { return read_x8_internal(addr); }


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

x86 assembly (clang, -O2):
<dbg_memread>:
jmp    1030 <read_x8_internal@plt>

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

LLVM IR (-O2):
define i32 @dbg_memread(i32 %0) {
%2 = tail call i32 @read_x8_internal(i32 %0)
ret i32 %2
}
int nombreCharacteChaine(char *str) {
  int size = 0;
  while (*str != '\0') {
    str++;
    size++;
  }
  return size;
}


x86 assembly (clang, -O0):
<nombreCharacteChaine>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1139 <nombreCharacteChaine+0x39>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <nombreCharacteChaine+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nombreCharacteChaine>:
cmpb   $0x0,(%rdi)
je     111c <nombreCharacteChaine+0x1c>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,0x1(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <nombreCharacteChaine+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @nombreCharacteChaine(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add nuw nsw i32 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int O_ACCMODE;
int S_IRUSR;
int S_IWUSR;
int __gen_tempname(char *, int /*<<< orphan*/, int, int, int);
int mkostemps(char *template, int suffixlen, int flags) {
  flags -= flags & O_ACCMODE;
  return __gen_tempname(template, 0, flags, suffixlen, S_IRUSR | S_IWUSR);
}


x86 assembly (clang, -O0):
<mkostemps>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%ecx
mov    0x2ec4(%rip),%rax
and    (%rax),%ecx
mov    -0x10(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    0x2e89(%rip),%rax
mov    (%rax),%r8d
mov    0x2e8f(%rip),%rax
or     (%rax),%r8d
xor    %esi,%esi
call   1030 <__gen_tempname@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkostemps>:
mov    %esi,%ecx
mov    0x2ed7(%rip),%rax
mov    (%rax),%eax
not    %eax
and    %eax,%edx
mov    0x2eaa(%rip),%rax
mov    0x2eb3(%rip),%rsi
mov    (%rsi),%r8d
or     (%rax),%r8d
xor    %esi,%esi
jmp    1030 <__gen_tempname@plt>

LLVM IR (-O0):
@O_ACCMODE = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
define i32 @mkostemps(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = load i32, i32* @O_ACCMODE
%9 = and i32 %7, %8
%10 = load i32, i32* %6
%11 = sub nsw i32 %10, %9
store i32 %11, i32* %6
%12 = load i8*, i8** %4
%13 = load i32, i32* %6
%14 = load i32, i32* %5
%15 = load i32, i32* @S_IRUSR
%16 = load i32, i32* @S_IWUSR
%17 = or i32 %15, %16
%18 = call i32 @__gen_tempname(i8* %12, i32 0, i32 %13, i32 %14, i32 %17)
ret i32 %18
}

LLVM IR (-O2):
@O_ACCMODE = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
define i32 @mkostemps(i8* %0, i32 %1, i32 %2) {
%4 = load i32, i32* @O_ACCMODE
%5 = xor i32 %4, -1
%6 = and i32 %5, %2
%7 = load i32, i32* @S_IRUSR
%8 = load i32, i32* @S_IWUSR
%9 = or i32 %8, %7
%10 = tail call i32 @__gen_tempname(i8* %0, i32 0, i32 %6, i32 %1, i32 %9)
ret i32 %10
}
int faa_system_value(void) { return 1969; }


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

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

LLVM IR (-O0):
define i32 @faa_system_value() {
ret i32 1969
}

LLVM IR (-O2):
define i32 @faa_system_value() {
ret i32 1969
}
/* Variables and functions */
int ENOTSUP;
int feraiseexcept(int excepts) { return (excepts ? -ENOTSUP : 0); }


x86 assembly (clang, -O0):
<feraiseexcept>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1124 <feraiseexcept+0x24>
xor    %eax,%eax
mov    0x2ece(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x8(%rbp)
jmp    112e <feraiseexcept+0x2e>
xor    %eax,%eax
mov    %eax,-0x8(%rbp)
jmp    112e <feraiseexcept+0x2e>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<feraiseexcept>:
mov    0x2ee1(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
test   %edi,%edi
cmove  %edi,%eax
ret

LLVM IR (-O0):
@ENOTSUP = global i32 0
define i32 @feraiseexcept(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @ENOTSUP
%7 = sub nsw i32 0, %6
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %5
%10 = phi i32 [ %7, %5 ], [ 0, %8 ]
ret i32 %10
}

LLVM IR (-O2):
@ENOTSUP = global i32 0
define i32 @feraiseexcept(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = load i32, i32* @ENOTSUP
%4 = sub nsw i32 0, %3
%5 = select i1 %2, i32 0, i32 %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *);
void Error(const char *msg) {
  printf("Error occurred: %s\n", msg);
  exit(1);
}


x86 assembly (clang, -O0):
<Error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Error>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [20 x i8] c"Error occurred: %s\0A\00"
define void @Error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 1)
unreachable
}
const char *FilterName(void *arg) { return "TestFilter"; }


x86 assembly (clang, -O0):
<FilterName>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    0xef1(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<FilterName>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [11 x i8] c"TestFilter\00"
define i8* @FilterName(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [11 x i8] c"TestFilter\00"
define i8* @FilterName(i8* nocapture readnone %0) {
ret i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main(int argc, char *argv[]) {
  float f = 1.33f;
  printf("%f\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 0x3FF547AE20000000)
ret i32 0
}
/* Type definitions */
struct i8x_object {
  int dummy;
};
struct i8x_note {
  int dummy;
};

/* Variables and functions */
void *i8x_ob_get_userdata(struct i8x_object *);
void *__attribute__((always_)) i8x_note_get_userdata(struct i8x_note *x) {
  return i8x_ob_get_userdata((struct i8x_object *)x);
}


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

x86 assembly (clang, -O2):
<i8x_note_get_userdata>:
jmp    1030 <i8x_ob_get_userdata@plt>

LLVM IR (-O0):
%struct.i8x_note = type { i32 }
%struct.i8x_object = type { i32 }
define i8* @i8x_note_get_userdata(%struct.i8x_note* %0) {
%2 = alloca %struct.i8x_note*
store %struct.i8x_note* %0, %struct.i8x_note** %2
%3 = load %struct.i8x_note*, %struct.i8x_note** %2
%4 = bitcast %struct.i8x_note* %3 to %struct.i8x_object*
%5 = call i8* @i8x_ob_get_userdata(%struct.i8x_object* %4)
ret i8* %5
}

LLVM IR (-O2):
%struct.i8x_note = type { i32 }
%struct.i8x_object = type { i32 }
define i8* @i8x_note_get_userdata(%struct.i8x_note* %0) {
%2 = bitcast %struct.i8x_note* %0 to %struct.i8x_object*
%3 = tail call i8* @i8x_ob_get_userdata(%struct.i8x_object* %2)
ret i8* %3
}
/* Variables and functions */
int IPC_CREAT;
int semget(int, int, int);
int create_semaphore(int key) { return semget(key, 1, 0660 | IPC_CREAT); }


x86 assembly (clang, -O0):
<create_semaphore>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%edx
or     $0x1b0,%edx
mov    $0x1,%esi
call   1030 <semget@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_semaphore>:
mov    0x2ec9(%rip),%rax
mov    $0x1b0,%edx
or     (%rax),%edx
mov    $0x1,%esi
jmp    1030 <semget@plt>

LLVM IR (-O0):
@IPC_CREAT = global i32 0
define i32 @create_semaphore(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @IPC_CREAT
%5 = or i32 432, %4
%6 = call i32 @semget(i32 %3, i32 1, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
@IPC_CREAT = global i32 0
define i32 @create_semaphore(i32 %0) {
%2 = load i32, i32* @IPC_CREAT
%3 = or i32 %2, 432
%4 = tail call i32 @semget(i32 %0, i32 1, i32 %3)
ret i32 %4
}
void SobelXYRow_Any_NEON() {}


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

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

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

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

/* Variables and functions */
int castle_norm_key_dim_get(unsigned char const **);
int /*<<< orphan*/ castle_norm_key_len_get(struct castle_norm_key const *,
                                           unsigned char const **);
int castle_norm_key_nr_dims(const struct castle_norm_key *key) {
  const unsigned char *data;
  castle_norm_key_len_get(key, &data);
  return castle_norm_key_dim_get(&data);
}


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

x86 assembly (clang, -O2):
<castle_norm_key_nr_dims>:
push   %rbx
sub    $0x10,%rsp
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
call   1030 <castle_norm_key_len_get@plt>
mov    %rbx,%rdi
call   1040 <castle_norm_key_dim_get@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.castle_norm_key = type { i32 }
define i32 @castle_norm_key_nr_dims(%struct.castle_norm_key* %0) {
%2 = alloca %struct.castle_norm_key*
%3 = alloca i8*
store %struct.castle_norm_key* %0, %struct.castle_norm_key** %2
%4 = load %struct.castle_norm_key*, %struct.castle_norm_key** %2
%5 = call i32 @castle_norm_key_len_get(%struct.castle_norm_key* %4, i8** %3)
%6 = call i32 @castle_norm_key_dim_get(i8** %3)
ret i32 %6
}

LLVM IR (-O2):
%struct.castle_norm_key = type { i32 }
define i32 @castle_norm_key_nr_dims(%struct.castle_norm_key* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
%4 = call i32 @castle_norm_key_len_get(%struct.castle_norm_key* %0, i8** %2)
%5 = call i32 @castle_norm_key_dim_get(i8** %2)
ret i32 %5
}
/* Variables and functions */
float sqrt(float);
float IsoscelesTriangleInRadius(float a, float h) {
  float a2 = a * a;
  float four_h2 = 4.0f * h * h;
  return (a * (sqrt(a2 + four_h2) - a)) / (4.0f * h);
}


x86 assembly (clang, -O0):
<IsoscelesTriangleInRadius>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xec7(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x14(%rbp),%xmm0
subss  -0x4(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xe86(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsoscelesTriangleInRadius>:
push   %rax
movaps %xmm0,%xmm2
mulss  %xmm0,%xmm0
movss  0xee0(%rip),%xmm3
mulss  %xmm1,%xmm3
mulss  %xmm3,%xmm1
addss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jb     113d <IsoscelesTriangleInRadius+0x2d>
xorps  %xmm0,%xmm0
sqrtss %xmm1,%xmm0
jmp    115b <IsoscelesTriangleInRadius+0x4b>
movaps %xmm1,%xmm0
movss  %xmm2,0x4(%rsp)
movss  %xmm3,(%rsp)
call   1030 <sqrt@plt>
movss  (%rsp),%xmm3
movss  0x4(%rsp),%xmm2
subss  %xmm2,%xmm0
mulss  %xmm2,%xmm0
divss  %xmm3,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @IsoscelesTriangleInRadius(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %3
store float %1, float* %4
%7 = load float, float* %3
%8 = load float, float* %3
%9 = fmul float %7, %8
store float %9, float* %5
%10 = load float, float* %4
%11 = fmul float 4.000000e+00, %10
%12 = load float, float* %4
%13 = fmul float %11, %12
store float %13, float* %6
%14 = load float, float* %3
%15 = load float, float* %5
%16 = load float, float* %6
%17 = fadd float %15, %16
%18 = call float @sqrt(float %17)
%19 = load float, float* %3
%20 = fsub float %18, %19
%21 = fmul float %14, %20
%22 = load float, float* %4
%23 = fmul float 4.000000e+00, %22
%24 = fdiv float %21, %23
ret float %24
}

LLVM IR (-O2):
define float @IsoscelesTriangleInRadius(float %0, float %1) {
%3 = fmul float %0, %0
%4 = fmul float %1, 4.000000e+00
%5 = fmul float %4, %1
%6 = fadd float %3, %5
%7 = tail call float @sqrt(float %6)
%8 = fsub float %7, %0
%9 = fmul float %8, %0
%10 = fdiv float %9, %4
ret float %10
}
void headerfund(void) {
  int a;
  int b;
  int sum;
  sum = a + b;
}


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

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

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

LLVM IR (-O2):
define void @headerfund() {
ret void
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int type;
};
struct TYPE_4__ {
  TYPE_1__ xproperty;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
void set_XEvent_xproperty_type(void *_p, int _v) {
  ((XEvent *)_p)->xproperty.type = (int)_v;
}


x86 assembly (clang, -O0):
<set_XEvent_xproperty_type>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_XEvent_xproperty_type>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
define void @set_XEvent_xproperty_type(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_4__*
%8 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 0
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %8, i32 0, i32 0
store i32 %5, i32* %9
ret void
}

LLVM IR (-O2):
define void @set_XEvent_xproperty_type(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
void X509_REVOKED_add_ext(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @init_function() {
ret void
}
/* Type definitions */
struct timeval {
  scalar_t__ tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double now() {
  struct timeval t;
  gettimeofday(&t, NULL);
  return (double)t.tv_sec + (double)t.tv_usec / 1000000.;
}


x86 assembly (clang, -O0):
<now>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq -0x8(%rbp),%xmm0
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xec7(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<now>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq 0x10(%rsp),%xmm1
cvtsi2sdq 0x8(%rsp),%xmm0
divsd  0xeca(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define double @now() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%4 = load i64, i64* %3
%5 = sitofp i64 %4 to double
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%7 = load i64, i64* %6
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = fadd double %5, %9
ret double %10
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define double @now() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%5 = load i64, i64* %4
%6 = sitofp i64 %5 to double
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%8 = load i64, i64* %7
%9 = sitofp i64 %8 to double
%10 = fdiv double %9, 1.000000e+06
%11 = fadd double %10, %6
ret double %11
}
/* Type definitions */
typedef scalar_t__ uint16_t;

/* Variables and functions */
long SpiMemTest(void) {
  uint16_t pages = 0;
  uint16_t pagesize = 0;
  return (long)pages * (long)pagesize;
}


x86 assembly (clang, -O0):
<SpiMemTest>:
push   %rbp
mov    %rsp,%rbp
movq   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
imul   -0x10(%rbp),%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @SpiMemTest() {
ret i64 0
}
void pmvi_(x, y, z) int *x, *y, *z;
{ pmv((float)*x, (float)*y, (float)*z); }


x86 assembly (clang, -O0):
<pmvi_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x18(%rbp),%rax
cvtsi2ssl (%rax),%xmm2
cvtss2sd %xmm2,%xmm2
mov    $0x3,%al
call   1030 <pmv@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pmvi_>:
cvtsi2ssl (%rdi),%xmm0
cvtsi2ssl (%rsi),%xmm1
cvtsi2ssl (%rdx),%xmm2
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
mov    $0x3,%al
jmp    1030 <pmv@plt>

LLVM IR (-O0):
define void @pmvi_(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = load i32*, i32** %4
%8 = load i32, i32* %7
%9 = sitofp i32 %8 to float
%10 = fpext float %9 to double
%11 = load i32*, i32** %5
%12 = load i32, i32* %11
%13 = sitofp i32 %12 to float
%14 = fpext float %13 to double
%15 = load i32*, i32** %6
%16 = load i32, i32* %15
%17 = sitofp i32 %16 to float
%18 = fpext float %17 to double
%19 = call i32 (double, double, double, ...) bitcast (i32 (...)* @pmv to i32 (double, double, double, ...)*)(double %10, double %14, double %18)
ret void
}

LLVM IR (-O2):
define void @pmvi_(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2) {
%4 = load i32, i32* %0
%5 = sitofp i32 %4 to float
%6 = fpext float %5 to double
%7 = load i32, i32* %1
%8 = sitofp i32 %7 to float
%9 = fpext float %8 to double
%10 = load i32, i32* %2
%11 = sitofp i32 %10 to float
%12 = fpext float %11 to double
%13 = tail call i32 (double, double, double, ...) bitcast (i32 (...)* @pmv to i32 (double, double, double, ...)*)(double %6, double %9, double %12)
ret void
}