xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ print_results(char *, int);
int /*<<< orphan*/ printf(char *);
int test_tokenize();
int main(int argc, char **argv) {
  int result = 0;
  argc = argc;
  argv = argv;
  result = test_tokenize();
  printf("\n-----------------------------");
  print_results("TOTAL_TESTSUITE:", result);
  printf("-----------------------------\n");
  return result;
}


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)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1050 <test_tokenize@plt>
mov    %eax,-0x14(%rbp)
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1040 <print_results@plt>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1060 <test_tokenize@plt>
mov    %eax,%ebx
lea    0xeaf(%rip),%rdi
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    %ebx,%esi
call   1050 <print_results@plt>
lea    0xe96(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0A-----------------------------\00"
@.str.1 = [17 x i8] c"TOTAL_TESTSUITE:\00"
@.str.2 = [31 x i8] c"-----------------------------\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i32, i32* %4
store i32 %7, i32* %4
%8 = load i8**, i8*** %5
store i8** %8, i8*** %5
%9 = call i32 (...) @test_tokenize()
store i32 %9, i32* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %6
%12 = call i32 @print_results(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* %6
ret i32 %14
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0A-----------------------------\00"
@.str.1 = [17 x i8] c"TOTAL_TESTSUITE:\00"
@str = [30 x i8] c"-----------------------------\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_tokenize()
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @print_results(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 %3
}
__typeof__(strnlen(1, 1)) test_strnlen_197(void) { return strnlen(1, 1); }


x86 assembly (clang, -O0):
<test_strnlen_197>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1030 <strnlen@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_strnlen_197>:
mov    $0x1,%edi
mov    $0x1,%esi
xor    %eax,%eax
jmp    1030 <strnlen@plt>

LLVM IR (-O0):
define i32 @test_strnlen_197() {
%1 = call i32 (i32, i32, ...) bitcast (i32 (...)* @strnlen to i32 (i32, i32, ...)*)(i32 1, i32 1)
ret i32 %1
}

LLVM IR (-O2):
define i32 @test_strnlen_197() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @strnlen to i32 (i32, i32, ...)*)(i32 1, i32 1)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
void task_a(void) {
  unsigned int n = 0;
  while (1) {
    printf("  task a: %i\n", n++);
    volatile int i;
    for (i = 0; i < 10000000; ++i)
      ;
  }
}


x86 assembly (clang, -O0):
<task_a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    $0x989680,%eax
jge    115e <task_a+0x4e>
jmp    1150 <task_a+0x40>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113d <task_a+0x2d>
jmp    111f <task_a+0xf>

x86 assembly (clang, -O2):
<task_a>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
jmp    1123 <task_a+0x13>
nop
add    $0x1,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movl   $0x0,0x4(%rsp)
mov    0x4(%rsp),%eax
cmp    $0x98967f,%eax
jg     1120 <task_a+0x10>
addl   $0x1,0x4(%rsp)
mov    0x4(%rsp),%eax
cmp    $0x989680,%eax
jl     1140 <task_a+0x30>
jmp    1120 <task_a+0x10>

LLVM IR (-O0):
@.str = [14 x i8] c" task a: %i\0A\00"
define void @task_a() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %0, %14
%4 = load i32, i32* %1
%5 = add i32 %4, 1
store i32 %5, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %4)
store volatile i32 0, i32* %2
br label %7
7: ; preds = %11, %3
%8 = load volatile i32, i32* %2
%9 = icmp slt i32 %8, 10000000
br i1 %9, label %10, label %14
10: ; preds = %7
br label %11
11: ; preds = %10
%12 = load volatile i32, i32* %2
%13 = add nsw i32 %12, 1
store volatile i32 %13, i32* %2
br label %7
14: ; preds = %7
br label %3
}

LLVM IR (-O2):
@.str = [14 x i8] c" task a: %i\0A\00"
define void @task_a() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %14, %0
%4 = phi i32 [ 0, %0 ], [ %5, %14 ]
%5 = add i32 %4, 1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %4)
store volatile i32 0, i32* %1
%7 = load volatile i32, i32* %1
%8 = icmp slt i32 %7, 10000000
br i1 %8, label %9, label %14
9: ; preds = %3, %9
%10 = load volatile i32, i32* %1
%11 = add nsw i32 %10, 1
store volatile i32 %11, i32* %1
%12 = load volatile i32, i32* %1
%13 = icmp slt i32 %12, 10000000
br i1 %13, label %9, label %14
14: ; preds = %9, %3
br label %3
}
/* Variables and functions */
int /*<<< orphan*/ clear_RnB();
int /*<<< orphan*/ deselect_chip();
int /*<<< orphan*/ nand_cmd(int);
int /*<<< orphan*/ select_chip();
int /*<<< orphan*/ wait_RnB();
void nand_reset(void) {
  select_chip();
  clear_RnB();
  nand_cmd(0xff);
  wait_RnB();
  deselect_chip();
}


x86 assembly (clang, -O0):
<nand_reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <select_chip@plt>
mov    $0x0,%al
call   1070 <clear_RnB@plt>
mov    $0xff,%edi
call   1040 <nand_cmd@plt>
mov    $0x0,%al
call   1060 <wait_RnB@plt>
mov    $0x0,%al
call   1030 <deselect_chip@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<nand_reset>:
push   %rax
xor    %eax,%eax
call   1050 <select_chip@plt>
xor    %eax,%eax
call   1070 <clear_RnB@plt>
mov    $0xff,%edi
call   1040 <nand_cmd@plt>
xor    %eax,%eax
call   1060 <wait_RnB@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <deselect_chip@plt>

LLVM IR (-O0):
define void @nand_reset() {
%1 = call i32 (...) @select_chip()
%2 = call i32 (...) @clear_RnB()
%3 = call i32 @nand_cmd(i32 255)
%4 = call i32 (...) @wait_RnB()
%5 = call i32 (...) @deselect_chip()
ret void
}

LLVM IR (-O2):
define void @nand_reset() {
%1 = tail call i32 (...) @select_chip()
%2 = tail call i32 (...) @clear_RnB()
%3 = tail call i32 @nand_cmd(i32 255)
%4 = tail call i32 (...) @wait_RnB()
%5 = tail call i32 (...) @deselect_chip()
ret void
}
int test_imm_16uint8_mem(unsigned char *val) {
  return ((*val) & (0x16 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_16uint8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%edx
and    $0x16,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_16uint8_mem>:
testb  $0x16,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_16uint8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = and i32 %5, 22
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_16uint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, 22
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ strcat(char *, char *);
char *displayOk(char *msg) {
  char *response = (char *)malloc(sizeof(char) * 1024);
  memset(response, 0, sizeof(char) * 1024);
  strcat(response, "OK\n");
  return response;
}


x86 assembly (clang, -O0):
<displayOk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x400,%edi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1030 <memset@plt>
mov    -0x10(%rbp),%rdi
lea    0xe9b(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayOk>:
push   %rbx
mov    $0x400,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1030 <memset@plt>
lea    0xeac(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"OK\0A\00"
define i8* @displayOk(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = call i64 @malloc(i32 1024)
%5 = inttoptr i64 %4 to i8*
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @memset(i8* %6, i32 0, i32 1024)
%8 = load i8*, i8** %3
%9 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
@.str = [4 x i8] c"OK\0A\00"
define i8* @displayOk(i8* nocapture readnone %0) {
%2 = tail call i64 @malloc(i32 1024)
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @memset(i8* %3, i32 0, i32 1024)
%5 = tail call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i8* %3
}
int test_imm_05int16_mem(short *val) {
  return ((*val) & (0x05 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_05int16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movswl (%rax),%edx
and    $0x5,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_05int16_mem>:
testb  $0x5,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_05int16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = sext i16 %4 to i32
%6 = and i32 %5, 5
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_05int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 5
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ BadCond(int, char *);
int /*<<< orphan*/ printf(char *);
void TstCond(int K, int Valid, char *T) {
  if (!Valid) {
    BadCond(K, T);
    printf(".\n");
  }
}


x86 assembly (clang, -O0):
<TstCond>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1154 <TstCond+0x34>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <BadCond@plt>
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TstCond>:
test   %esi,%esi
je     1125 <TstCond+0x5>
ret
push   %rax
mov    %rdx,%rsi
call   1030 <BadCond@plt>
lea    0xecb(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

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

LLVM IR (-O2):
@str = [2 x i8] c".\00"
define void @TstCond(i32 %0, i32 %1, i8* %2) {
%4 = icmp eq i32 %1, 0
br i1 %4, label %5, label %8
5: ; preds = %3
%6 = tail call i32 @BadCond(i32 %0, i8* %2)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %8
8: ; preds = %5, %3
ret void
}
/* Variables and functions */
int __internal_syscall(int, long, long, long, long);
int _openat(int dirfd, const char *name, int flags, int mode) {
  return __internal_syscall(56, (long)(dirfd), (long)(name), (long)(flags),
                            (long)(mode));
}


x86 assembly (clang, -O0):
<_openat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movslq -0x4(%rbp),%rsi
mov    -0x10(%rbp),%rdx
movslq -0x14(%rbp),%rcx
movslq -0x18(%rbp),%r8
mov    $0x38,%edi
call   1030 <__internal_syscall@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_openat>:
mov    %rsi,%r9
movslq %edi,%rsi
movslq %edx,%rax
movslq %ecx,%r8
mov    $0x38,%edi
mov    %r9,%rdx
mov    %rax,%rcx
jmp    1030 <__internal_syscall@plt>

LLVM IR (-O0):
define i32 @_openat(i32 %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = load i8*, i8** %6
%12 = ptrtoint i8* %11 to i64
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = load i32, i32* %8
%16 = sext i32 %15 to i64
%17 = call i32 @__internal_syscall(i32 56, i64 %10, i64 %12, i64 %14, i64 %16)
ret i32 %17
}

LLVM IR (-O2):
define i32 @_openat(i32 %0, i8* %1, i32 %2, i32 %3) {
%5 = sext i32 %0 to i64
%6 = ptrtoint i8* %1 to i64
%7 = sext i32 %2 to i64
%8 = sext i32 %3 to i64
%9 = tail call i32 @__internal_syscall(i32 56, i64 %5, i64 %6, i64 %7, i64 %8)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x18() {
  Assert_real((isbdigit(24) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              125, ("isbdigit should be 0 for 0x18"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0x18>:
push   %rax
mov    $0x18,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x7d,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x18\00"
define void @t_isbdigit_0x18() {
%1 = call i64 @isbdigit(i32 24)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 125, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x18\00"
define void @t_isbdigit_0x18() {
%1 = tail call i64 @isbdigit(i32 24)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 125, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t set32_H_1(uint32_t x) { return x |= 0x80000000; }


x86 assembly (clang, -O0):
<set32_H_1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0x80000000,%eax
mov    %eax,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set32_H_1>:
mov    %edi,%eax
or     $0x80000000,%eax
ret

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

LLVM IR (-O2):
define i32 @set32_H_1(i32 %0) {
%2 = or i32 %0, -2147483648
ret i32 %2
}
void byt_ec_evt_unregister_notify(struct notifier_block *nb) {}


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

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

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

LLVM IR (-O2):
%struct.notifier_block = type opaque
define void @byt_ec_evt_unregister_notify(%struct.notifier_block* nocapture %0) {
ret void
}
/* Type definitions */
struct sc_mountinfo_entry {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct sc_mountinfo_entry *);
void sc_free_mountinfo_entry(struct sc_mountinfo_entry *entry) { free(entry); }


x86 assembly (clang, -O0):
<sc_free_mountinfo_entry>:
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):
<sc_free_mountinfo_entry>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.sc_mountinfo_entry = type { i32 }
define void @sc_free_mountinfo_entry(%struct.sc_mountinfo_entry* nocapture %0) {
%2 = tail call i32 @free(%struct.sc_mountinfo_entry* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage_short() {
  fputs("Usage: flash [OPTIONS] MATES_1.FASTQ MATES_2.FASTQ\n"
        "Try `flash -h' for more information.\n",
        stderr);
}


x86 assembly (clang, -O0):
<usage_short>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage_short>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
lea    0xee0(%rip),%rdi
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [89 x i8] c"Usage: flash [OPTIONS] MATES_1.FASTQ MATES_2.FASTQ\0ATry `flash -h' for more information.\0A\00"
@stderr = global i32 0
define void @usage_short() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}

LLVM IR (-O2):
@.str = [89 x i8] c"Usage: flash [OPTIONS] MATES_1.FASTQ MATES_2.FASTQ\0ATry `flash -h' for more information.\0A\00"
@stderr = global i32 0
define void @usage_short() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
float fahrToCels(float fahr) { return (5.0 / 9.0) * (fahr - 32.0); }


x86 assembly (clang, -O0):
<fahrToCels>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeee(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xeda(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fahrToCels>:
cvtss2sd %xmm0,%xmm0
addsd  0xef4(%rip),%xmm0
mulsd  0xef4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @fahrToCels(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fsub double %4, 3.200000e+01
%6 = fmul double 0x3FE1C71C71C71C72, %5
%7 = fptrunc double %6 to float
ret float %7
}

LLVM IR (-O2):
define float @fahrToCels(float %0) {
%2 = fpext float %0 to double
%3 = fadd double %2, -3.200000e+01
%4 = fmul double %3, 0x3FE1C71C71C71C72
%5 = fptrunc double %4 to float
ret float %5
}
void two_symbolic_accesses(int n) {
  int arr[1];
  arr[n] = 0;
  arr[n - 2] = 0;
}


x86 assembly (clang, -O0):
<two_symbolic_accesses>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
movl   $0x0,-0x8(%rbp,%rax,4)
mov    -0x4(%rbp),%eax
sub    $0x2,%eax
cltq
movl   $0x0,-0x8(%rbp,%rax,4)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @two_symbolic_accesses(i32 %0) {
%2 = alloca i32
%3 = alloca [1 x i32]
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [1 x i32], [1 x i32]* %3, i64 0, i64 %5
store i32 0, i32* %6
%7 = load i32, i32* %2
%8 = sub nsw i32 %7, 2
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [1 x i32], [1 x i32]* %3, i64 0, i64 %9
store i32 0, i32* %10
ret void
}

LLVM IR (-O2):
define void @two_symbolic_accesses(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int j;
  int k;
  int n;
  if (!((j == n) && (k == n) && (n > 0)))
    return 0;
  while (j > 0 && n > 0) {
    j--;
    k--;
  }
  assert((k == 0));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1141 <main+0x31>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1141 <main+0x31>
cmpl   $0x0,-0x10(%rbp)
jg     114d <main+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    11aa <main+0x9a>
jmp    1152 <main+0x42>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
jle    116b <main+0x5b>
cmpl   $0x0,-0x10(%rbp)
setg   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    117b <main+0x6b>
jmp    1192 <main+0x82>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1152 <main+0x42>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = load i32, i32* %2
%6 = load i32, i32* %4
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %15
8: ; preds = %0
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, i32* %4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %16, label %15
15: ; preds = %12, %8, %0
store i32 0, i32* %1
br label %35
16: ; preds = %12
br label %17
17: ; preds = %25, %16
%18 = load i32, i32* %2
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br label %23
23: ; preds = %20, %17
%24 = phi i1 [ false, %17 ], [ %22, %20 ]
br i1 %24, label %25, label %30
25: ; preds = %23
%26 = load i32, i32* %2
%27 = add nsw i32 %26, -1
store i32 %27, i32* %2
%28 = load i32, i32* %3
%29 = add nsw i32 %28, -1
store i32 %29, i32* %3
br label %17
30: ; preds = %23
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
store i32 0, i32* %1
br label %35
35: ; preds = %30, %15
%36 = load i32, i32* %1
ret i32 %36
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int cairo_code_draw_lushFreqLabel_get_height() { return 12; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_lushFreqLabel_get_height() {
ret i32 12
}

LLVM IR (-O2):
define i32 @cairo_code_draw_lushFreqLabel_get_height() {
ret i32 12
}
/* Variables and functions */
int /*<<< orphan*/ print_numbers();
int main(int argc, char **argv) {
  print_numbers();
  return 0;
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @RTC_EverySecondHandler() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
void print_newline(int fd) { fputc('\n', (FILE *)fd); }


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

x86 assembly (clang, -O2):
<print_newline>:
movslq %edi,%rsi
mov    $0xa,%edi
jmp    1030 <fputc@plt>

LLVM IR (-O0):
define void @print_newline(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i32*
%6 = call i32 @fputc(i8 signext 10, i32* %5)
ret void
}

LLVM IR (-O2):
define void @print_newline(i32 %0) {
%2 = sext i32 %0 to i64
%3 = inttoptr i64 %2 to i32*
%4 = tail call i32 @fputc(i8 signext 10, i32* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SelectionSort(int *, int);
int __VERIFIER_nondet_int();
scalar_t__ alloca(int);
int main() {
  int array_size = __VERIFIER_nondet_int();
  if (array_size < 1 || array_size >= 2147483647 / sizeof(int)) {
    array_size = 1;
  }
  int *numbers = (int *)alloca(array_size * sizeof(int));
  SelectionSort(numbers, array_size);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jl     1163 <main+0x33>
movslq -0x8(%rbp),%rax
cmp    $0x1fffffff,%rax
jb     116a <main+0x3a>
movl   $0x1,-0x8(%rbp)
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <alloca@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1030 <SelectionSort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <__VERIFIER_nondet_int@plt>
lea    -0x1fffffff(%rax),%ecx
cmp    $0xe0000002,%ecx
mov    $0x1,%ebx
cmovae %eax,%ebx
lea    0x0(,%rbx,4),%edi
call   1040 <alloca@plt>
mov    %rax,%rdi
mov    %ebx,%esi
call   1030 <SelectionSort@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 1
br i1 %6, label %11, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = sext i32 %8 to i64
%10 = icmp uge i64 %9, 536870911
br i1 %10, label %11, label %12
11: ; preds = %7, %0
store i32 1, i32* %2
br label %12
12: ; preds = %11, %7
%13 = load i32, i32* %2
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = trunc i64 %15 to i32
%17 = call i64 @alloca(i32 %16)
%18 = inttoptr i64 %17 to i32*
store i32* %18, i32** %3
%19 = load i32*, i32** %3
%20 = load i32, i32* %2
%21 = call i32 @SelectionSort(i32* %19, i32 %20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = add i32 %1, -536870911
%3 = icmp ult i32 %2, -536870910
%4 = select i1 %3, i32 1, i32 %1
%5 = shl nuw nsw i32 %4, 2
%6 = tail call i64 @alloca(i32 %5)
%7 = inttoptr i64 %6 to i32*
%8 = tail call i32 @SelectionSort(i32* %7, i32 %4)
ret i32 0
}
void d2i_PKCS8_bio(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_PKCS8_bio() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fwrite(char const *, int /*<<< orphan*/, int, void *);
int /*<<< orphan*/ strlen(char const *);
void expr_print_file_helper(void *data, const char *str) {
  fwrite(str, strlen(str), 1, data);
}


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

x86 assembly (clang, -O2):
<expr_print_file_helper>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    %r14,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
define void @expr_print_file_helper(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i8*, i8** %4
%7 = call i32 @strlen(i8* %6)
%8 = load i8*, i8** %3
%9 = call i32 @fwrite(i8* %5, i32 %7, i32 1, i8* %8)
ret void
}

LLVM IR (-O2):
define void @expr_print_file_helper(i8* nocapture %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @fwrite(i8* %1, i32 %3, i32 1, i8* %0)
ret void
}
void FreeMatrix3Double(double ***in) {
  free(in[0][0]);
  free(in[0]);
  free(in);
}


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

x86 assembly (clang, -O2):
<FreeMatrix3Double>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @FreeMatrix3Double(double*** %0) {
%2 = alloca double***
store double*** %0, double**** %2
%3 = load double***, double**** %2
%4 = getelementptr inbounds double**, double*** %3, i64 0
%5 = load double**, double*** %4
%6 = getelementptr inbounds double*, double** %5, i64 0
%7 = load double*, double** %6
%8 = bitcast double* %7 to i8*
%9 = load double***, double**** %2
%10 = getelementptr inbounds double**, double*** %9, i64 0
%11 = load double**, double*** %10
%12 = bitcast double** %11 to i8*
%13 = load double***, double**** %2
%14 = bitcast double*** %13 to i8*
ret void
}

LLVM IR (-O2):
define void @FreeMatrix3Double(double*** nocapture %0) {
%2 = bitcast double*** %0 to i8***
%3 = load i8**, i8*** %2
%4 = load i8*, i8** %3
tail call void @free(i8* %4)
%5 = bitcast double*** %0 to i8**
%6 = load i8*, i8** %5
tail call void @free(i8* %6)
%7 = bitcast double*** %0 to i8*
tail call void @free(i8* %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ b3(int);
void b2(int n) { b3(n); }


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

x86 assembly (clang, -O2):
<b2>:
jmp    1030 <b3@plt>

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

LLVM IR (-O2):
define void @b2(i32 %0) {
%2 = tail call i32 @b3(i32 %0)
ret void
}
/* Type definitions */
struct enode {
  int dummy;
};

/* Variables and functions */
struct enode *create_enode(int, struct enode *, struct enode *,
                           int /*<<< orphan*/);
struct enode *create_enode_op(int type, struct enode *left,
                              struct enode *right) {
  return create_enode(type, left, right, 0);
}


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

x86 assembly (clang, -O2):
<create_enode_op>:
xor    %ecx,%ecx
jmp    1030 <create_enode@plt>

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

LLVM IR (-O2):
%struct.enode = type { i32 }
define %struct.enode* @create_enode_op(i32 %0, %struct.enode* %1, %struct.enode* %2) {
%4 = tail call %struct.enode* @create_enode(i32 %0, %struct.enode* %1, %struct.enode* %2, i32 0)
ret %struct.enode* %4
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ conloop(int *);
scalar_t__ enter_docroot(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ initsocket(int, int *);
void setup(int port, char *path) {
  int fd;
  if (enter_docroot(path))
    exit(EXIT_FAILURE);
  if (initsocket(port, &fd))
    exit(EXIT_FAILURE);
  conloop(&fd);
}


x86 assembly (clang, -O0):
<setup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <enter_docroot@plt>
cmp    $0x0,%rax
je     1170 <setup+0x30>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1050 <initsocket@plt>
cmp    $0x0,%rax
je     1194 <setup+0x54>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
lea    -0x14(%rbp),%rdi
call   1040 <conloop@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    %rsi,%rdi
call   1030 <enter_docroot@plt>
test   %rax,%rax
jne    1175 <setup+0x35>
lea    0xc(%rsp),%rsi
mov    %ebx,%edi
call   1050 <initsocket@plt>
test   %rax,%rax
jne    1175 <setup+0x35>
lea    0xc(%rsp),%rdi
call   1040 <conloop@plt>
add    $0x10,%rsp
pop    %rbx
ret
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
define void @setup(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i64 @enter_docroot(i8* %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, i32* @EXIT_FAILURE
%11 = call i32 @exit(i32 %10)
unreachable
12: ; preds = %2
%13 = load i32, i32* %3
%14 = call i64 @initsocket(i32 %13, i32* %5)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %12
%20 = call i32 @conloop(i32* %5)
ret void
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define void @setup(i32 %0, i8* %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i64 @enter_docroot(i8* %1)
%6 = icmp eq i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %2
%11 = call i64 @initsocket(i32 %0, i32* %3)
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, i32* @EXIT_FAILURE
%15 = call i32 @exit(i32 %14)
unreachable
16: ; preds = %10
%17 = call i32 @conloop(i32* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ltrim(char *);
int rtrim(char *);
int alltrim(char *str) {
  int len;
  ltrim(str);
  len = rtrim(str);
  return len;
}


x86 assembly (clang, -O0):
<alltrim>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <ltrim@plt>
mov    -0x8(%rbp),%rdi
call   1030 <rtrim@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alltrim>:
push   %rbx
mov    %rdi,%rbx
call   1040 <ltrim@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <rtrim@plt>

LLVM IR (-O0):
define i32 @alltrim(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @ltrim(i8* %4)
%6 = load i8*, i8** %2
%7 = call i32 @rtrim(i8* %6)
store i32 %7, i32* %3
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @alltrim(i8* %0) {
%2 = tail call i32 @ltrim(i8* %0)
%3 = tail call i32 @rtrim(i8* %0)
ret i32 %3
}
/* Variables and functions */
int make_bookmark_test();
int make_user_test();
int main(void) { return 0 | make_user_test() | make_bookmark_test(); }


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <make_user_test@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <make_bookmark_test@plt>
or     %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @make_user_test()
%3 = or i32 0, %2
%4 = call i32 (...) @make_bookmark_test()
%5 = or i32 %3, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @make_user_test()
%2 = tail call i32 (...) @make_bookmark_test()
%3 = or i32 %2, %1
ret i32 %3
}
void __attribute__((no, noclone)) foo(int j, int n, int *a) {
  int i;
#pragma omp target
#pragma omp teams
#pragma omp distribute parallel for shared(a) firstprivate(n) private(i)       \
    firstprivate(j)
  for (i = j + 1; i < n; i += 3)
    a[i] = i;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    113f <foo+0x3f>
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x14(%rbp)
jmp    1117 <foo+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
add    $0x1,%edi
cmp    %esi,%edi
jge    111c <foo+0x1c>
movslq %edi,%rax
movslq %esi,%rcx
nopl   (%rax)
mov    %eax,(%rdx,%rax,4)
add    $0x3,%rax
cmp    %rcx,%rax
jl     1110 <foo+0x10>
ret

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

LLVM IR (-O2):
define void @foo(i32 %0, i32 %1, i32* nocapture writeonly %2) {
%4 = add i32 %0, 1
%5 = icmp slt i32 %4, %1
br i1 %5, label %6, label %15
6: ; preds = %3
%7 = sext i32 %4 to i64
%8 = sext i32 %1 to i64
br label %9
9: ; preds = %6, %9
%10 = phi i64 [ %7, %6 ], [ %13, %9 ]
%11 = getelementptr inbounds i32, i32* %2, i64 %10
%12 = trunc i64 %10 to i32
store i32 %12, i32* %11
%13 = add nsw i64 %10, 3
%14 = icmp slt i64 %13, %8
br i1 %14, label %9, label %15
15: ; preds = %9, %3
ret void
}
/* Type definitions */
struct sembuf {
  int sem_op;
  int /*<<< orphan*/ sem_flg;
  scalar_t__ sem_num;
};

/* Variables and functions */
int /*<<< orphan*/ SEM_UNDO;
int semop(int, struct sembuf *, int);
int binary_semaphore_wait(int semid) {
  struct sembuf operations[1];
  operations[0].sem_num = 0;
  operations[0].sem_op = -1;
  operations[0].sem_flg = SEM_UNDO;
  return semop(semid, operations, 1);
}


x86 assembly (clang, -O0):
<binary_semaphore_wait>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0xffffffff,-0x20(%rbp)
mov    0x2ebf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x1,%edx
call   1030 <semop@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<binary_semaphore_wait>:
sub    $0x18,%rsp
movq   $0x0,0x8(%rsp)
movl   $0xffffffff,(%rsp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    %rsp,%rsi
mov    $0x1,%edx
call   1030 <semop@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.sembuf = type { i32, i32, i64 }
@SEM_UNDO = global i32 0
define i32 @binary_semaphore_wait(i32 %0) {
%2 = alloca i32
%3 = alloca [1 x %struct.sembuf]
store i32 %0, i32* %2
%4 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %3, i64 0, i64 0
%5 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %4, i32 0, i32 2
store i64 0, i64* %5
%6 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %3, i64 0, i64 0
%7 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %6, i32 0, i32 0
store i32 -1, i32* %7
%8 = load i32, i32* @SEM_UNDO
%9 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %3, i64 0, i64 0
%10 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %9, i32 0, i32 1
store i32 %8, i32* %10
%11 = load i32, i32* %2
%12 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %3, i64 0, i64 0
%13 = call i32 @semop(i32 %11, %struct.sembuf* %12, i32 1)
ret i32 %13
}

LLVM IR (-O2):
%struct.sembuf = type { i32, i32, i64 }
@SEM_UNDO = global i32 0
define i32 @binary_semaphore_wait(i32 %0) {
%2 = alloca [1 x %struct.sembuf]
%3 = bitcast [1 x %struct.sembuf]* %2 to i8*
%4 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %2, i64 0, i64 0
%5 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %2, i64 0, i64 0, i32 2
store i64 0, i64* %5
%6 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %2, i64 0, i64 0, i32 0
store i32 -1, i32* %6
%7 = load i32, i32* @SEM_UNDO
%8 = getelementptr inbounds [1 x %struct.sembuf], [1 x %struct.sembuf]* %2, i64 0, i64 0, i32 1
store i32 %7, i32* %8
%9 = call i32 @semop(i32 %0, %struct.sembuf* %4, i32 1)
ret i32 %9
}
unsigned long fib(unsigned n) {
  if (n < 2)
    return 1;
  else
    return fib(n - 1) + fib(n - 2);
}


x86 assembly (clang, -O0):
<fib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jae    1132 <fib+0x22>
movq   $0x1,-0x8(%rbp)
jmp    115a <fib+0x4a>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <fib@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
sub    $0x2,%edi
call   1030 <fib@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fib>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%r14d
cmp    $0x2,%edi
jb     1147 <fib+0x37>
mov    %edi,%ebx
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x1(%rbx),%edi
call   1030 <fib@plt>
add    $0xfffffffe,%ebx
add    %rax,%r14
cmp    $0x1,%ebx
ja     1130 <fib+0x20>
add    $0x1,%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i64 @fib(i32 %0) {
%2 = alloca i64
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp ult i32 %4, 2
br i1 %5, label %6, label %7
6: ; preds = %1
store i64 1, i64* %2
br label %15
7: ; preds = %1
%8 = load i32, i32* %3
%9 = sub i32 %8, 1
%10 = call i64 @fib(i32 %9)
%11 = load i32, i32* %3
%12 = sub i32 %11, 2
%13 = call i64 @fib(i32 %12)
%14 = add i64 %10, %13
store i64 %14, i64* %2
br label %15
15: ; preds = %7, %6
%16 = load i64, i64* %2
ret i64 %16
}

LLVM IR (-O2):
define i64 @fib(i32 %0) {
%2 = icmp ult i32 %0, 2
br i1 %2, label %13, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ %0, %1 ]
%5 = phi i64 [ %9, %3 ], [ 0, %1 ]
%6 = add i32 %4, -1
%7 = tail call i64 @fib(i32 %6)
%8 = add i32 %4, -2
%9 = add i64 %7, %5
%10 = icmp ult i32 %8, 2
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = add i64 %9, 1
br label %13
13: ; preds = %11, %1
%14 = phi i64 [ 1, %1 ], [ %12, %11 ]
ret i64 %14
}
long double atan2l(long double y, long double x) {
  long double res;
  asm("fpatan" : "=t"(res) : "u"(y), "0"(x) : "st(1)");
  return res;
}


x86 assembly (clang, -O0):
<atan2l>:
push   %rbp
mov    %rsp,%rbp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
fpatan
fstpt  -0x30(%rbp)
fldt   -0x30(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<atan2l>:
fldt   0x8(%rsp)
fldt   0x18(%rsp)
fpatan
ret

LLVM IR (-O0):
define x86_fp80 @atan2l(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
%5 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%6 = load x86_fp80, x86_fp80* %3
%7 = load x86_fp80, x86_fp80* %4
%8 = call x86_fp80 asm "fpatan", "={st},{st(1)},0,~{st(1)},~{dirflag},~{fpsr},~{flags}"(x86_fp80 %6, x86_fp80 %7)
store x86_fp80 %8, x86_fp80* %5
%9 = load x86_fp80, x86_fp80* %5
ret x86_fp80 %9
}

LLVM IR (-O2):
define x86_fp80 @atan2l(x86_fp80 %0, x86_fp80 %1) {
%3 = tail call x86_fp80 asm "fpatan", "={st},{st(1)},0,~{st(1)},~{dirflag},~{fpsr},~{flags}"(x86_fp80 %0, x86_fp80 %1)
ret x86_fp80 %3
}