xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ cleanup();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void sigintHandler(int s) {
  (void)s;
  (void)printf("%s\n", "ok, ok I exit");
  cleanup();
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<sigintHandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xebe(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <cleanup@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<sigintHandler>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xec5(%rip),%rsi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <cleanup@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [14 x i8] c"ok, ok I exit\00"
@EXIT_FAILURE = global i32 0
define void @sigintHandler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @cleanup()
%6 = load i32, i32* @EXIT_FAILURE
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [14 x i8] c"ok, ok I exit\00"
@EXIT_FAILURE = global i32 0
define void @sigintHandler(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @cleanup()
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int dll_ungetc(int, int /*<<< orphan*/ *);
int __wrap_ungetc(int c, FILE *stream) { return dll_ungetc(c, stream); }


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

x86 assembly (clang, -O2):
<__wrap_ungetc>:
jmp    1030 <dll_ungetc@plt>

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

LLVM IR (-O2):
define i32 @__wrap_ungetc(i32 %0, i32* %1) {
%3 = tail call i32 @dll_ungetc(i32 %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
double pow(double, int);
double berechne_volumen_kugel_mit_durchmesser(double durchmesser) {
  const double pi = 3.141592654;
  double volumen = ((double)1 / 6 * pi) * pow(durchmesser, 3);
  return volumen;
}


x86 assembly (clang, -O0):
<berechne_volumen_kugel_mit_durchmesser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xee3(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xebc(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<berechne_volumen_kugel_mit_durchmesser>:
push   %rax
mov    $0x3,%edi
call   1030 <pow@plt>
mulsd  0xedd(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @berechne_volumen_kugel_mit_durchmesser(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
store double 0x400921FB54524550, double* %3
%5 = load double, double* %2
%6 = call double @pow(double %5, i32 3)
%7 = fmul double 0x3FE0C1523836D8E0, %6
store double %7, double* %4
%8 = load double, double* %4
ret double %8
}

LLVM IR (-O2):
define double @berechne_volumen_kugel_mit_durchmesser(double %0) {
%2 = tail call double @pow(double %0, i32 3)
%3 = fmul double %2, 0x3FE0C1523836D8E0
ret double %3
}
/* Variables and functions */
int O_RDWR;
int o_rdwr() { return O_RDWR; }


x86 assembly (clang, -O0):
<o_rdwr>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@O_RDWR = global i32 0
define i32 @o_rdwr() {
%1 = load i32, i32* @O_RDWR
ret i32 %1
}

LLVM IR (-O2):
@O_RDWR = global i32 0
define i32 @o_rdwr() {
%1 = load i32, i32* @O_RDWR
ret i32 %1
}
/* Variables and functions */
int count(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  printf("input some numbers\n");
  int a, b;
  scanf("%d", &a);
  b = count(a);
  printf(" in %d is %d numbers\n", a, b);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x4(%rbp),%edi
call   1030 <count@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0xeac(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%edi
call   1030 <count@plt>
mov    0x4(%rsp),%esi
lea    0xe91(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [22 x i8] c" in %d is %d numbers\0A\00"
@str = [19 x i8] c"input some numbers\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%3 = bitcast i32* %1 to i8*
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 @count(i32 %5)
%7 = load i32, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ test_parser_sourcefile(char *, char *);
int /*<<< orphan*/ test_parser_verify_entity(int /*<<< orphan*/, char *,
                                             char *);
void test_ebuild_comment_entities() {
  test_parser_verify_entity(test_parser_sourcefile("ebuild", " #comment"),
                            "comment", "#comment");
}


x86 assembly (clang, -O0):
<test_ebuild_comment_entities>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed5(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
lea    0xec1(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_ebuild_comment_entities>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed8(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
lea    0xece(%rip),%rsi
lea    0xec6(%rip),%rdx
mov    %eax,%edi
pop    %rax
jmp    1040 <test_parser_verify_entity@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"ebuild\00"
@.str.1 = [10 x i8] c" #comment\00"
@.str.2 = [8 x i8] c"comment\00"
@.str.3 = [9 x i8] c"#comment\00"
define void @test_ebuild_comment_entities() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_entity(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"ebuild\00"
@.str.1 = [10 x i8] c" #comment\00"
@.str.2 = [8 x i8] c"comment\00"
@.str.3 = [9 x i8] c"#comment\00"
define void @test_ebuild_comment_entities() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_entity(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
ret void
}
/* Variables and functions */
void *malloc(size_t);
void *lfs_malloc(size_t size) { return malloc(size); }


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

x86 assembly (clang, -O2):
<lfs_malloc>:
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define noalias i8* @lfs_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ CreateIcnsFromIconset(char const *);
char *IconsetFromArguments(int, char **);
int main(int argc, char *argv[]) {
  const char *iconset_path = IconsetFromArguments(argc, argv);
  if (!iconset_path)
    return -1;
  if (!CreateIcnsFromIconset(iconset_path))
    return -1;
  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)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <IconsetFromArguments@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    115d <main+0x3d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1182 <main+0x62>
mov    -0x18(%rbp),%rdi
call   1040 <CreateIcnsFromIconset@plt>
cmp    $0x0,%eax
jne    117b <main+0x5b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1182 <main+0x62>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <IconsetFromArguments@plt>
test   %rax,%rax
je     113a <main+0x1a>
mov    %rax,%rdi
call   1040 <CreateIcnsFromIconset@plt>
cmp    $0x1,%eax
sbb    %eax,%eax
pop    %rcx
ret
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
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 i8* @IconsetFromArguments(i32 %7, i8** %8)
store i8* %9, i8** %6
%10 = load i8*, i8** %6
%11 = icmp ne i8* %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 -1, i32* %3
br label %19
13: ; preds = %2
%14 = load i8*, i8** %6
%15 = call i32 @CreateIcnsFromIconset(i8* %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i32 -1, i32* %3
br label %19
18: ; preds = %13
store i32 0, i32* %3
br label %19
19: ; preds = %18, %17, %12
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i8* @IconsetFromArguments(i32 %0, i8** %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i32 @CreateIcnsFromIconset(i8* %3)
%7 = icmp eq i32 %6, 0
%8 = sext i1 %7 to i32
br label %9
9: ; preds = %5, %2
%10 = phi i32 [ -1, %2 ], [ %8, %5 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ define_config(char const *, int, unsigned int);
scalar_t__ is_defined_config(char const *, int, unsigned int);
int /*<<< orphan*/ print_config(char const *, int);
unsigned int strhash(char const *, int);
void use_config(const char *m, int slen) {
  unsigned int hash = strhash(m, slen);
  if (is_defined_config(m, slen, hash)) {
    return;
  }
  define_config(m, slen, hash);
  print_config(m, slen);
}


x86 assembly (clang, -O0):
<use_config>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <strhash@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1050 <is_defined_config@plt>
cmp    $0x0,%rax
je     117c <use_config+0x3c>
jmp    1197 <use_config+0x57>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <define_config@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1060 <print_config@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<use_config>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%rbx
call   1030 <strhash@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <is_defined_config@plt>
test   %rax,%rax
je     1167 <use_config+0x27>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
call   1040 <define_config@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <print_config@plt>

LLVM IR (-O0):
define void @use_config(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @strhash(i8* %6, i32 %7)
store i32 %8, i32* %5
%9 = load i8*, i8** %3
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = call i64 @is_defined_config(i8* %9, i32 %10, i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
br label %23
15: ; preds = %2
%16 = load i8*, i8** %3
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = call i32 @define_config(i8* %16, i32 %17, i32 %18)
%20 = load i8*, i8** %3
%21 = load i32, i32* %4
%22 = call i32 @print_config(i8* %20, i32 %21)
br label %23
23: ; preds = %15, %14
ret void
}

LLVM IR (-O2):
define void @use_config(i8* %0, i32 %1) {
%3 = tail call i32 @strhash(i8* %0, i32 %1)
%4 = tail call i64 @is_defined_config(i8* %0, i32 %1, i32 %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = tail call i32 @define_config(i8* %0, i32 %1, i32 %3)
%8 = tail call i32 @print_config(i8* %0, i32 %1)
br label %9
9: ; preds = %2, %6
ret void
}
int FastIntLog2Clamp0(int x) {
  int result;
  asm("bsr %1,%0 \n\t"
      "cmovz %1,%0 \n\t"
      : "=&abcd"(result)
      : "bcdSDm"(x)
      :);
  return result;
}


x86 assembly (clang, -O0):
<FastIntLog2Clamp0>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
bsr    -0xc(%rbp),%eax
cmove  -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<FastIntLog2Clamp0>:
mov    %edi,-0x4(%rsp)
bsr    -0x4(%rsp),%eax
cmove  -0x4(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @FastIntLog2Clamp0(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 asm "bsr $1,$0 \0A\09cmovz $1,$0 \0A\09", "=&{ax}{bx}{cx}{dx},{bx}{cx}{dx}{si}{di}m,~{dirflag},~{fpsr},~{flags}"(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @FastIntLog2Clamp0(i32 %0) {
%2 = tail call i32 asm "bsr $1,$0 \0A\09cmovz $1,$0 \0A\09", "=&{ax}{bx}{cx}{dx},{bx}{cx}{dx}{si}{di}m,~{dirflag},~{fpsr},~{flags}"(i32 %0)
ret i32 %2
}
/* Type definitions */
struct packet {
  int dummy;
};

/* Variables and functions */
unsigned char *create_kv_packet(unsigned char const *, int,
                                unsigned char const *, size_t, struct packet *,
                                unsigned char *);
unsigned char *create_cl_packet(const unsigned char *cl, size_t cl_sz,
                                struct packet *pkt, unsigned char *ptr) {
  return create_kv_packet((const unsigned char *)"cl", (sizeof("cl") - 1), cl,
                          cl_sz, pkt, ptr);
}


x86 assembly (clang, -O0):
<create_cl_packet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xec1(%rip),%rdi
mov    $0x2,%esi
call   1030 <create_kv_packet@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_cl_packet>:
mov    %rcx,%r9
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
lea    0xedd(%rip),%rdi
mov    $0x2,%esi
jmp    1030 <create_kv_packet@plt>

LLVM IR (-O0):
%struct.packet = type { i32 }
@.str = [3 x i8] c"cl\00"
define i8* @create_cl_packet(i8* %0, i64 %1, %struct.packet* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca %struct.packet*
%8 = alloca i8*
store i8* %0, i8** %5
store i64 %1, i64* %6
store %struct.packet* %2, %struct.packet** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i64, i64* %6
%11 = load %struct.packet*, %struct.packet** %7
%12 = load i8*, i8** %8
%13 = call i8* @create_kv_packet(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2, i8* %9, i64 %10, %struct.packet* %11, i8* %12)
ret i8* %13
}

LLVM IR (-O2):
%struct.packet = type { i32 }
@.str = [3 x i8] c"cl\00"
define i8* @create_cl_packet(i8* %0, i64 %1, %struct.packet* %2, i8* %3) {
%5 = tail call i8* @create_kv_packet(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2, i8* %0, i64 %1, %struct.packet* %2, i8* %3)
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ strtol(char const *, char **, int);
int /*<<< orphan*/ strtoll(char const *, char **, int);
int /*<<< orphan*/ strtoul(char const *, char **, int);
int /*<<< orphan*/ strtoull(char const *, char **, int);
void uninitvar_strtol(void) {
  const char *s;
  char **endp;
  int base;
  (void)strtol(s, endp, base);
  (void)strtoll(s, endp, base);
  (void)strtoul(s, endp, base);
  (void)strtoull(s, endp, base);
}


x86 assembly (clang, -O0):
<uninitvar_strtol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <strtol@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <strtoll@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1060 <strtoul@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <strtoull@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_strtol>:
push   %rax
call   1050 <strtol@plt>
call   1040 <strtoll@plt>
call   1060 <strtoul@plt>
pop    %rax
jmp    1030 <strtoull@plt>

LLVM IR (-O0):
define void @uninitvar_strtol() {
%1 = alloca i8*
%2 = alloca i8**
%3 = alloca i32
%4 = load i8*, i8** %1
%5 = load i8**, i8*** %2
%6 = load i32, i32* %3
%7 = call i32 @strtol(i8* %4, i8** %5, i32 %6)
%8 = load i8*, i8** %1
%9 = load i8**, i8*** %2
%10 = load i32, i32* %3
%11 = call i32 @strtoll(i8* %8, i8** %9, i32 %10)
%12 = load i8*, i8** %1
%13 = load i8**, i8*** %2
%14 = load i32, i32* %3
%15 = call i32 @strtoul(i8* %12, i8** %13, i32 %14)
%16 = load i8*, i8** %1
%17 = load i8**, i8*** %2
%18 = load i32, i32* %3
%19 = call i32 @strtoull(i8* %16, i8** %17, i32 %18)
ret void
}

LLVM IR (-O2):
define void @uninitvar_strtol() {
%1 = tail call i32 @strtol(i8* undef, i8** undef, i32 undef)
%2 = tail call i32 @strtoll(i8* undef, i8** undef, i32 undef)
%3 = tail call i32 @strtoul(i8* undef, i8** undef, i32 undef)
%4 = tail call i32 @strtoull(i8* undef, i8** undef, i32 undef)
ret void
}
int main() { return sizeof(unsigned short int); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 2
}
/* Variables and functions */
int *astGetStatusPtr_();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char const *);
int /*<<< orphan*/ stderr;
void astPutErr_(int status_value, const char *message) {
  int *status = astGetStatusPtr_();
  (void)fprintf(stderr, "%s%s\n", ((*status) == 0) ? "!! " : "!  ", message);
}


x86 assembly (clang, -O0):
<astPutErr_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <astGetStatusPtr_@plt>
mov    %rax,-0x18(%rbp)
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xeba(%rip),%rdx
lea    0xeaf(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rdx
mov    -0x10(%rbp),%rcx
lea    0xe97(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<astPutErr_>:
push   %rbx
mov    %rsi,%rbx
xor    %eax,%eax
call   1030 <astGetStatusPtr_@plt>
mov    0x2eae(%rip),%rcx
mov    (%rcx),%edi
cmpl   $0x0,(%rax)
lea    0xec8(%rip),%rax
lea    0xec5(%rip),%rdx
cmove  %rax,%rdx
lea    0xeb0(%rip),%rsi
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [6 x i8] c"%s%s\0A\00"
@.str.1 = [4 x i8] c"!! \00"
@.str.2 = [4 x i8] c"! \00"
define void @astPutErr_(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = call i32* (...) @astGetStatusPtr_()
store i32* %6, i32** %5
%7 = load i32, i32* @stderr
%8 = load i32*, i32** %5
%9 = load i32, i32* %8
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%13 = load i8*, i8** %4
%14 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [6 x i8] c"%s%s\0A\00"
@.str.1 = [4 x i8] c"!! \00"
@.str.2 = [4 x i8] c"! \00"
define void @astPutErr_(i32 %0, i8* %1) {
%3 = tail call i32* (...) @astGetStatusPtr_()
%4 = load i32, i32* @stderr
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%8 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %1)
ret void
}
float computeTheta(float left, float right) { return (left + right) / 2.0f; }


x86 assembly (clang, -O0):
<computeTheta>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  0xee0(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<computeTheta>:
addss  %xmm1,%xmm0
mulss  0xef4(%rip),%xmm0
ret

LLVM IR (-O0):
define float @computeTheta(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fadd float %5, %6
%8 = fdiv float %7, 2.000000e+00
ret float %8
}

LLVM IR (-O2):
define float @computeTheta(float %0, float %1) {
%3 = fadd float %0, %1
%4 = fmul float %3, 5.000000e-01
ret float %4
}
/* Type definitions */
struct __test_metadata {
  int dummy;
};
struct __fixture_variant_metadata {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ setns_einval(struct __test_metadata *);
void wrapper_setns_einval(struct __test_metadata *_metadata,
                          struct __fixture_variant_metadata *variant) {
  setns_einval(_metadata);
}


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

x86 assembly (clang, -O2):
<wrapper_setns_einval>:
jmp    1030 <setns_einval@plt>

LLVM IR (-O0):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_setns_einval(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* %1) {
%3 = alloca %struct.__test_metadata*
%4 = alloca %struct.__fixture_variant_metadata*
store %struct.__test_metadata* %0, %struct.__test_metadata** %3
store %struct.__fixture_variant_metadata* %1, %struct.__fixture_variant_metadata** %4
%5 = load %struct.__test_metadata*, %struct.__test_metadata** %3
%6 = call i32 @setns_einval(%struct.__test_metadata* %5)
ret void
}

LLVM IR (-O2):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_setns_einval(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* nocapture readnone %1) {
%3 = tail call i32 @setns_einval(%struct.__test_metadata* %0)
ret void
}
/* Type definitions */
struct stat {
  scalar_t__ st_mtime;
};

/* Variables and functions */
int file_newer(const struct stat *left, const struct stat *right) {
  return left->st_mtime <= right->st_mtime;
}


x86 assembly (clang, -O0):
<file_newer>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%rax
setle  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_newer>:
mov    (%rdi),%rcx
xor    %eax,%eax
cmp    (%rsi),%rcx
setle  %al
ret

LLVM IR (-O0):
%struct.stat = type { i64 }
define i32 @file_newer(%struct.stat* %0, %struct.stat* %1) {
%3 = alloca %struct.stat*
%4 = alloca %struct.stat*
store %struct.stat* %0, %struct.stat** %3
store %struct.stat* %1, %struct.stat** %4
%5 = load %struct.stat*, %struct.stat** %3
%6 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 0
%7 = load i64, i64* %6
%8 = load %struct.stat*, %struct.stat** %4
%9 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%10 = load i64, i64* %9
%11 = icmp sle i64 %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
%struct.stat = type { i64 }
define i32 @file_newer(%struct.stat* nocapture %0, %struct.stat* nocapture %1) {
%3 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 0
%4 = load i64, i64* %3
%5 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%6 = load i64, i64* %5
%7 = icmp sle i64 %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
char inb(int);
int /*<<< orphan*/ outb(int, int);
char get_cmos_reg(int reg) {
  outb(0x70, reg);
  return inb(0x71);
}


x86 assembly (clang, -O0):
<get_cmos_reg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x70,%edi
call   1030 <outb@plt>
mov    $0x71,%edi
call   1040 <inb@plt>
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_cmos_reg>:
push   %rax
mov    %edi,%esi
mov    $0x70,%edi
call   1030 <outb@plt>
mov    $0x71,%edi
pop    %rax
jmp    1040 <inb@plt>

LLVM IR (-O0):
define signext i8 @get_cmos_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @outb(i32 112, i32 %3)
%5 = call signext i8 @inb(i32 113)
ret i8 %5
}

LLVM IR (-O2):
define signext i8 @get_cmos_reg(i32 %0) {
%2 = tail call i32 @outb(i32 112, i32 %0)
%3 = tail call signext i8 @inb(i32 113)
ret i8 %3
}
void blankfreefunc(void *v) { return; }


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

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

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

LLVM IR (-O2):
define void @blankfreefunc(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
main() { printf("Hello world"); }


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"Hello world\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"Hello world\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void handle_sigpipe(int sig) { printf("signal: %d\n", sig); }


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

x86 assembly (clang, -O2):
<handle_sigpipe>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [12 x i8] c"signal: %d\0A\00"
define void @handle_sigpipe(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_unpacklo_pi32(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test83(__m64 a, __m64 b) { return _mm_unpacklo_pi32(a, b); }


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

x86 assembly (clang, -O2):
<test83>:
jmp    1030 <_mm_unpacklo_pi32@plt>

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

LLVM IR (-O2):
define i32 @test83(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_unpacklo_pi32(i32 %0, i32 %1)
ret i32 %3
}
int security_msg_queue_associate(struct msg_queue *msq, int msqflg) {
  return 0;
}


x86 assembly (clang, -O0):
<security_msg_queue_associate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.msg_queue = type opaque
define i32 @security_msg_queue_associate(%struct.msg_queue* %0, i32 %1) {
%3 = alloca %struct.msg_queue*
%4 = alloca i32
store %struct.msg_queue* %0, %struct.msg_queue** %3
store i32 %1, i32* %4
ret i32 0
}

LLVM IR (-O2):
%struct.msg_queue = type opaque
define i32 @security_msg_queue_associate(%struct.msg_queue* nocapture readnone %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void *malloc(int);
int /*<<< orphan*/ memcpy(void *, void *, int);
void swap(void *a, void *b, int size) {
  void *c;
  if (a != b) {
    c = malloc(size);
    memcpy(c, a, size);
    memcpy(a, b, size);
    memcpy(b, c, size);
    free(c);
  }
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     1196 <swap+0x66>
mov    -0x14(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
cmp    %rsi,%rdi
je     1187 <swap+0x57>
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %edx,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1040 <memcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1040 <memcpy@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
call   1040 <memcpy@plt>
mov    %r15,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @swap(i8* %0, i8* %1, i32 %2) {
%4 = icmp eq i8* %0, %1
br i1 %4, label %11, label %5
5: ; preds = %3
%6 = tail call i8* @malloc(i32 %2)
%7 = tail call i32 @memcpy(i8* %6, i8* %0, i32 %2)
%8 = tail call i32 @memcpy(i8* %0, i8* %1, i32 %2)
%9 = tail call i32 @memcpy(i8* %1, i8* %6, i32 %2)
%10 = tail call i32 @free(i8* %6)
br label %11
11: ; preds = %5, %3
ret void
}
void xxx(int argc) {
  int x;
#pragma omp simd
  for (int i = 0; i < 10; ++i)
    argc = x;
}


x86 assembly (clang, -O0):
<xxx>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    112c <xxx+0x2c>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110e <xxx+0xe>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @xxx(i32 %0) {
ret void
}
/* Variables and functions */
int set_df(int fd, bool df) {}


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

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

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

LLVM IR (-O2):
define i32 @set_df(i32 %0, i32 %1) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ blinkdash();
int /*<<< orphan*/ blinkdot();
int /*<<< orphan*/ sleep(double);
int blinkQ() {
  int c = 0;
  while (c != 2) {
    blinkdash();
    c++;
  }
  blinkdot();
  blinkdash();
  sleep(1.5);
  return 0;
}


x86 assembly (clang, -O0):
<blinkQ>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     115e <blinkQ+0x2e>
mov    $0x0,%al
call   1040 <blinkdash@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    113f <blinkQ+0xf>
mov    $0x0,%al
call   1030 <blinkdot@plt>
mov    $0x0,%al
call   1040 <blinkdash@plt>
movsd  0xe8c(%rip),%xmm0
call   1050 <sleep@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blinkQ>:
push   %rax
xor    %eax,%eax
call   1040 <blinkdash@plt>
xor    %eax,%eax
call   1040 <blinkdash@plt>
xor    %eax,%eax
call   1030 <blinkdot@plt>
xor    %eax,%eax
call   1040 <blinkdash@plt>
movsd  0xeab(%rip),%xmm0
call   1050 <sleep@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @blinkQ() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %5, %0
%3 = load i32, i32* %1
%4 = icmp ne i32 %3, 2
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = call i32 (...) @blinkdash()
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
br label %2
9: ; preds = %2
%10 = call i32 (...) @blinkdot()
%11 = call i32 (...) @blinkdash()
%12 = call i32 @sleep(double 1.500000e+00)
ret i32 0
}

LLVM IR (-O2):
define i32 @blinkQ() {
%1 = tail call i32 (...) @blinkdash()
%2 = tail call i32 (...) @blinkdash()
%3 = tail call i32 (...) @blinkdot()
%4 = tail call i32 (...) @blinkdash()
%5 = tail call i32 @sleep(double 1.500000e+00)
ret i32 0
}
__attribute__((no, noclone)) unsigned __int128 t101_2add(unsigned char y) {
  unsigned char x = (5);
  unsigned __int128 r;
  if (__builtin_add_overflow(x, y, &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t101_2add>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dil,%al
mov    %al,-0x11(%rbp)
movb   $0x5,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
mov    %eax,%ecx
movzbl -0x11(%rbp),%eax
add    %rax,%rcx
xor    %eax,%eax
mov    %rcx,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
test   $0x1,%al
jne    114a <t101_2add+0x3a>
jmp    1151 <t101_2add+0x41>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t101_2add>:
mov    %edi,%eax
add    $0x5,%rax
xor    %edx,%edx
ret

LLVM IR (-O0):
define { i64, i64 } @t101_2add(i8 zeroext %0) {
%2 = alloca i128
%3 = alloca i8
%4 = alloca i8
%5 = alloca i128
store i8 %0, i8* %3
store i8 5, i8* %4
%6 = load i8, i8* %4
%7 = load i8, i8* %3
%8 = zext i8 %6 to i128
%9 = zext i8 %7 to i128
%10 = call { i128, i1 } @llvm.uadd.with.overflow.i128(i128 %8, i128 %9)
%11 = extractvalue { i128, i1 } %10, 1
%12 = extractvalue { i128, i1 } %10, 0
store i128 %12, i128* %5
br i1 %11, label %13, label %15
13: ; preds = %1
%14 = call i32 (...) @bar()
br label %15
15: ; preds = %13, %1
%16 = load i128, i128* %5
store i128 %16, i128* %2
%17 = bitcast i128* %2 to { i64, i64 }*
%18 = load { i64, i64 }, { i64, i64 }* %17
ret { i64, i64 } %18
}

LLVM IR (-O2):
define { i64, i64 } @t101_2add(i8 zeroext %0) {
%2 = zext i8 %0 to i64
%3 = add nuw nsw i64 %2, 5
%4 = insertvalue { i64, i64 } poison, i64 %3, 0
%5 = insertvalue { i64, i64 } %4, i64 0, 1
ret { i64, i64 } %5
}
void X509_POLICY_NODE_print(void) {}


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

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

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

LLVM IR (-O2):
define void @X509_POLICY_NODE_print() {
ret void
}
int fun1030() { return 1030; }


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

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

LLVM IR (-O0):
define i32 @fun1030() {
ret i32 1030
}

LLVM IR (-O2):
define i32 @fun1030() {
ret i32 1030
}
int fun736() { return 736; }


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

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

LLVM IR (-O0):
define i32 @fun736() {
ret i32 736
}

LLVM IR (-O2):
define i32 @fun736() {
ret i32 736
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void mailimf_domain_literal_free(char *domain_literal) { free(domain_literal); }


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

x86 assembly (clang, -O2):
<mailimf_domain_literal_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @mailimf_domain_literal_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert_int_equal(int /*<<< orphan*/, int);
int /*<<< orphan*/ sw_span(int);
void sw_span_test(void **state) {
  assert_int_equal(sw_span(0x8000000000000000ul),
                   0x8040201008040201ul & ~0xFF00000000000000ul);
}


x86 assembly (clang, -O0):
<sw_span_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
xor    %edi,%edi
call   1030 <sw_span@plt>
mov    %eax,%edi
mov    $0x8040201,%esi
call   1040 <assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sw_span_test>:
push   %rax
xor    %edi,%edi
call   1030 <sw_span@plt>
mov    %eax,%edi
mov    $0x8040201,%esi
pop    %rax
jmp    1040 <assert_int_equal@plt>

LLVM IR (-O0):
define void @sw_span_test(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @sw_span(i32 0)
%4 = call i32 @assert_int_equal(i32 %3, i32 134480385)
ret void
}

LLVM IR (-O2):
define void @sw_span_test(i8** nocapture readnone %0) {
%2 = tail call i32 @sw_span(i32 0)
%3 = tail call i32 @assert_int_equal(i32 %2, i32 134480385)
ret void
}
void nlm_br_read_unlock(unsigned int flags) {}


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

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

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

LLVM IR (-O2):
define void @nlm_br_read_unlock(i32 %0) {
ret void
}
/* Type definitions */
struct vec_header {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct vec_header *);
void vec_del(double *const vector) {
  free(((struct vec_header *)(vector - 1)));
}


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

x86 assembly (clang, -O2):
<vec_del>:
add    $0xfffffffffffffff8,%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.vec_header = type { i32 }
define void @vec_del(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 -1
%5 = bitcast double* %4 to %struct.vec_header*
%6 = call i32 @free(%struct.vec_header* %5)
ret void
}

LLVM IR (-O2):
%struct.vec_header = type { i32 }
define void @vec_del(double* nocapture %0) {
%2 = getelementptr inbounds double, double* %0, i64 -1
%3 = bitcast double* %2 to %struct.vec_header*
%4 = tail call i32 @free(%struct.vec_header* %3)
ret void
}
void val_delete_lexicon(void *v) { (void)v; }


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

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

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

LLVM IR (-O2):
define void @val_delete_lexicon(i8* nocapture %0) {
ret void
}
/* Variables and functions */
char *calloc(scalar_t__, int);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *_strdup(const char *s) {
  char *out = calloc(strlen(s) + 1, sizeof(char));
  strcpy(out, s);
  return out;
}


x86 assembly (clang, -O0):
<_strdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_strdup>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @_strdup(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
%6 = add nsw i64 %5, 1
%7 = call i8* @calloc(i64 %6, i32 1)
store i8* %7, i8** %3
%8 = load i8*, i8** %3
%9 = load i8*, i8** %2
%10 = call i32 @strcpy(i8* %8, i8* %9)
%11 = load i8*, i8** %3
ret i8* %11
}

LLVM IR (-O2):
define i8* @_strdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i8* @calloc(i64 %3, i32 1)
%5 = tail call i32 @strcpy(i8* %4, i8* %0)
ret i8* %4
}
unsigned int hash_func(const char *key) {
  int h = 0;
  while (*key)
    h = 33 * h + *key++;
  return h;
}


x86 assembly (clang, -O0):
<hash_func>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     113c <hash_func+0x3c>
imul   $0x21,-0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movsbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <hash_func+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_func>:
mov    (%rdi),%cl
test   %cl,%cl
je     1128 <hash_func+0x28>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
mov    %eax,%edx
shl    $0x5,%edx
add    %eax,%edx
movsbl %cl,%eax
add    %edx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <hash_func+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @hash_func(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i32 [ %11, %4 ], [ 0, %1 ]
%7 = phi i8* [ %9, %4 ], [ %0, %1 ]
%8 = mul nsw i32 %6, 33
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = sext i8 %5 to i32
%11 = add nsw i32 %8, %10
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %15
}
signed char signed_int_to_signed_char(signed int x) { return x; }


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

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

LLVM IR (-O0):
define signext i8 @signed_int_to_signed_char(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = trunc i32 %3 to i8
ret i8 %4
}

LLVM IR (-O2):
define signext i8 @signed_int_to_signed_char(i32 %0) {
%2 = trunc i32 %0 to i8
ret i8 %2
}