xunge/DecIR huggingface dataset:
/* Type definitions */
struct netent {
  int n_net;
};

/* Variables and functions */
int _netid_error(char const *, int);
struct netent *getnetbyname(char const *);
int /*<<< orphan*/ printf(char *, int);
int _netid(char const *network) {
  struct netent *ne;
  if ((ne = getnetbyname(network)) == NULL)
    return -_netid_error(network, 1);
  printf("%u\n", ne->n_net);
  return 0;
}


x86 assembly (clang, -O0):
<_netid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <getnetbyname@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    116f <_netid+0x3f>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1050 <_netid_error@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    1188 <_netid+0x58>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
lea    0xe84(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_netid>:
push   %rbx
mov    %rdi,%rbx
call   1030 <getnetbyname@plt>
test   %rax,%rax
je     1150 <_netid+0x20>
mov    (%rax),%esi
lea    0xeb9(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <_netid_error@plt>
neg    %eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.netent = type { i32 }
@.str = [4 x i8] c"%u\0A\00"
define i32 @_netid(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.netent*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call %struct.netent* @getnetbyname(i8* %5)
store %struct.netent* %6, %struct.netent** %4
%7 = icmp eq %struct.netent* %6, null
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @_netid_error(i8* %9, i32 1)
%11 = sub nsw i32 0, %10
store i32 %11, i32* %2
br label %17
12: ; preds = %1
%13 = load %struct.netent*, %struct.netent** %4
%14 = getelementptr inbounds %struct.netent, %struct.netent* %13, i32 0, i32 0
%15 = load i32, i32* %14
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
store i32 0, i32* %2
br label %17
17: ; preds = %12, %8
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
%struct.netent = type { i32 }
@.str = [4 x i8] c"%u\0A\00"
define i32 @_netid(i8* %0) {
%2 = tail call %struct.netent* @getnetbyname(i8* %0)
%3 = icmp eq %struct.netent* %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @_netid_error(i8* %0, i32 1)
%6 = sub nsw i32 0, %5
br label %11
7: ; preds = %1
%8 = getelementptr inbounds %struct.netent, %struct.netent* %2, i64 0, i32 0
%9 = load i32, i32* %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
br label %11
11: ; preds = %7, %4
%12 = phi i32 [ %6, %4 ], [ 0, %7 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0x0e() {
  Assert_real((isodigit(14) == 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_isodigit.c",
              75, ("isodigit should be 0 for 0x0e"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0x0e>:
push   %rax
mov    $0xe,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x4b,%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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0x0e\00"
define void @t_isodigit_0x0e() {
%1 = call i64 @isodigit(i32 14)
%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 75, 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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0x0e\00"
define void @t_isodigit_0x0e() {
%1 = tail call i64 @isodigit(i32 14)
%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 75, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void call1c(unsigned int ui, unsigned long ul, unsigned char uc,
            unsigned short us) {
  uc = 5;
  us = 6;
  ui = 7;
  ul = 8;
}


x86 assembly (clang, -O0):
<call1c>:
push   %rbp
mov    %rsp,%rbp
mov    %cx,%ax
mov    %dl,%cl
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %cl,-0x11(%rbp)
mov    %ax,-0x14(%rbp)
movb   $0x5,-0x11(%rbp)
movw   $0x6,-0x14(%rbp)
movl   $0x7,-0x4(%rbp)
movq   $0x8,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @call1c(i32 %0, i64 %1, i8 zeroext %2, i16 zeroext %3) {
%5 = alloca i32
%6 = alloca i64
%7 = alloca i8
%8 = alloca i16
store i32 %0, i32* %5
store i64 %1, i64* %6
store i8 %2, i8* %7
store i16 %3, i16* %8
store i8 5, i8* %7
store i16 6, i16* %8
store i32 7, i32* %5
store i64 8, i64* %6
ret void
}

LLVM IR (-O2):
define void @call1c(i32 %0, i64 %1, i8 zeroext %2, i16 zeroext %3) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ F_GET_SEALS;
int /*<<< orphan*/ abort();
int fcntl(int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
unsigned int mfd_assert_get_seals(int fd) {
  int r;
  r = fcntl(fd, F_GET_SEALS);
  if (r < 0) {
    printf("GET_SEALS(%d) failed: %m\n", fd);
    abort();
  }
  return (unsigned int)r;
}


x86 assembly (clang, -O0):
<mfd_assert_get_seals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
call   1040 <fcntl@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    116f <mfd_assert_get_seals+0x3f>
mov    -0x4(%rbp),%esi
lea    0xe9d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mfd_assert_get_seals>:
push   %rbx
mov    %edi,%ebx
mov    0x2ea6(%rip),%rax
mov    (%rax),%esi
call   1040 <fcntl@plt>
test   %eax,%eax
js     1147 <mfd_assert_get_seals+0x17>
pop    %rbx
ret
lea    0xeb2(%rip),%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@F_GET_SEALS = global i32 0
@.str = [26 x i8] c"GET_SEALS(%d) failed: %m\0A\00"
define i32 @mfd_assert_get_seals(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = load i32, i32* @F_GET_SEALS
%6 = call i32 @fcntl(i32 %4, i32 %5)
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, i32* %2
%11 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = call i32 (...) @abort()
unreachable
13: ; preds = %1
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
@F_GET_SEALS = global i32 0
@.str = [26 x i8] c"GET_SEALS(%d) failed: %m\0A\00"
define i32 @mfd_assert_get_seals(i32 %0) {
%2 = load i32, i32* @F_GET_SEALS
%3 = tail call i32 @fcntl(i32 %0, i32 %2)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %0)
%7 = tail call i32 (...) @abort()
unreachable
8: ; preds = %1
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ serial_sendbyte(int /*<<< orphan*/);
void putChar(uint8_t byte) { serial_sendbyte(byte); }


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

x86 assembly (clang, -O2):
<putChar>:
jmp    1030 <serial_sendbyte@plt>

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

LLVM IR (-O2):
define void @putChar(i32 %0) {
%2 = tail call i32 @serial_sendbyte(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void print_menu() {
  printf(
      "%s",
      "\nu*) Uncover cell\nf*) Flag cell as mine\ng*) Mark cell as guess\nU*) "
      "Unmark cell\nq ) Quit\n\n*: cmd x-coord y-coord\n\nChoice? ");
}


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

x86 assembly (clang, -O2):
<print_menu>:
lea    0xee9(%rip),%rdi
lea    0xee5(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [122 x i8] c"\0Au*) Uncover cell\0Af*) Flag cell as mine\0Ag*) Mark cell as guess\0AU*) Unmark cell\0Aq ) Quit\0A\0A*: cmd x-coord y-coord\0A\0AChoice? \00"
define void @print_menu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [122 x i8] c"\0Au*) Uncover cell\0Af*) Flag cell as mine\0Ag*) Mark cell as guess\0AU*) Unmark cell\0Aq ) Quit\0A\0A*: cmd x-coord y-coord\0A\0AChoice? \00"
define void @print_menu() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ fwrite(unsigned char *, int, int, int /*<<< orphan*/ *);
void stbiw__write_dump_data(FILE *f, int length, unsigned char *data) {
  unsigned char lengthbyte = (unsigned char)(length & 0xff);
  assert(length <= 128);
  fwrite(&lengthbyte, 1, 1, f);
  fwrite(data, length, 1, f);
}


x86 assembly (clang, -O0):
<stbiw__write_dump_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0xc(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x19(%rbp)
cmpl   $0x80,-0xc(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <fwrite@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fwrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stbiw__write_dump_data>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %edi,%edi
cmp    $0x81,%esi
setl   %dil
call   1040 <assert@plt>
movsbl %bpl,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
define void @stbiw__write_dump_data(i32* %0, i32 %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8
store i32* %0, i32** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%8 = load i32, i32* %5
%9 = and i32 %8, 255
%10 = trunc i32 %9 to i8
store i8 %10, i8* %7
%11 = load i32, i32* %5
%12 = icmp sle i32 %11, 128
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = load i32*, i32** %4
%16 = call i32 @fwrite(i8* %7, i32 1, i32 1, i32* %15)
%17 = load i8*, i8** %6
%18 = load i32, i32* %5
%19 = load i32*, i32** %4
%20 = call i32 @fwrite(i8* %17, i32 %18, i32 1, i32* %19)
ret void
}

LLVM IR (-O2):
define void @stbiw__write_dump_data(i32* nocapture %0, i32 %1, i8* nocapture %2) {
%4 = icmp slt i32 %1, 129
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5)
%7 = shl i32 %1, 24
%8 = ashr exact i32 %7, 24
%9 = tail call i32 @fputc(i32 %8, i32* %0)
%10 = tail call i32 @fwrite(i8* %2, i32 %1, i32 1, i32* %0)
ret void
}
/* Variables and functions */
scalar_t__ foo();
int main(void) {
  int a = -100;
  int b = 2;
  int c = 3;
  while (a) {
    if (foo())
      a += b;
    else
      a += c;
    b++;
    c++;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffff9c,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     117d <main+0x6d>
mov    $0x0,%al
call   1030 <foo@plt>
cmp    $0x0,%rax
je     115d <main+0x4d>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1166 <main+0x56>
mov    -0x10(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <main+0x24>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffff9c,%ebp
mov    $0x3,%ebx
jmp    1127 <main+0x17>
nop
add    $0x1,%ebx
add    %ecx,%ebp
je     113a <main+0x2a>
xor    %eax,%eax
call   1030 <foo@plt>
mov    %ebx,%ecx
test   %rax,%rax
je     1120 <main+0x10>
lea    -0x1(%rbx),%ecx
jmp    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 3, %0 ], [ %10, %1 ]
%3 = phi i32 [ 2, %0 ], [ %9, %1 ]
%4 = phi i32 [ -100, %0 ], [ %8, %1 ]
%5 = tail call i64 (...) @foo()
%6 = icmp eq i64 %5, 0
%7 = select i1 %6, i32 %2, i32 %3
%8 = add nsw i32 %7, %4
%9 = add nuw nsw i32 %3, 1
%10 = add nuw nsw i32 %2, 1
%11 = icmp eq i32 %8, 0
br i1 %11, label %12, label %1
12: ; preds = %1
ret i32 0
}
void sighand(int signum) {
  printf("\n %s: \n", __func__);
  printf(" I have to wake up my boss now\n");
  alarm(5);
}


x86 assembly (clang, -O0):
<sighand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
lea    0xecf(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x5,%edi
mov    $0x0,%al
call   1040 <alarm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sighand>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xec9(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
xor    %eax,%eax
pop    %rcx
jmp    1050 <alarm@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"\0A %s: \0A\00"
@__func__.sighand = [8 x i8] c"sighand\00"
@.str.1 = [32 x i8] c" I have to wake up my boss now\0A\00"
define void @sighand(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__func__.sighand, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i32, ...) bitcast (i32 (...)* @alarm to i32 (i32, ...)*)(i32 5)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"\0A %s: \0A\00"
@__func__.sighand = [8 x i8] c"sighand\00"
@str = [31 x i8] c" I have to wake up my boss now\00"
define void @sighand(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__func__.sighand, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @alarm to i32 (i32, ...)*)(i32 5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TWI_Write(int, int);
int /*<<< orphan*/ TWI_WriteBit(int, int, int);
void imu_init() {
  TWI_Write(0x6B, 0x01);
  TWI_Write(0x1B, 0x08);
  TWI_Write(0x1C, 0x18);
  TWI_Write(0x1A, 0x00);
  TWI_Write(0x19, 0x3);
  TWI_WriteBit(0x6B, 3, 1);
  TWI_WriteBit(0x6B, 6, 0);
}


x86 assembly (clang, -O0):
<imu_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6b,%edi
mov    $0x1,%esi
call   1040 <TWI_Write@plt>
mov    $0x1b,%edi
mov    $0x8,%esi
call   1040 <TWI_Write@plt>
mov    $0x1c,%edi
mov    $0x18,%esi
call   1040 <TWI_Write@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   1040 <TWI_Write@plt>
mov    $0x19,%edi
mov    $0x3,%esi
call   1040 <TWI_Write@plt>
mov    $0x6b,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1030 <TWI_WriteBit@plt>
mov    $0x6b,%edi
mov    $0x6,%esi
xor    %edx,%edx
call   1030 <TWI_WriteBit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<imu_init>:
push   %rax
mov    $0x6b,%edi
mov    $0x1,%esi
call   1040 <TWI_Write@plt>
mov    $0x1b,%edi
mov    $0x8,%esi
call   1040 <TWI_Write@plt>
mov    $0x1c,%edi
mov    $0x18,%esi
call   1040 <TWI_Write@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   1040 <TWI_Write@plt>
mov    $0x19,%edi
mov    $0x3,%esi
call   1040 <TWI_Write@plt>
mov    $0x6b,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1030 <TWI_WriteBit@plt>
mov    $0x6b,%edi
mov    $0x6,%esi
xor    %edx,%edx
pop    %rax
jmp    1030 <TWI_WriteBit@plt>

LLVM IR (-O0):
define void @imu_init() {
%1 = call i32 @TWI_Write(i32 107, i32 1)
%2 = call i32 @TWI_Write(i32 27, i32 8)
%3 = call i32 @TWI_Write(i32 28, i32 24)
%4 = call i32 @TWI_Write(i32 26, i32 0)
%5 = call i32 @TWI_Write(i32 25, i32 3)
%6 = call i32 @TWI_WriteBit(i32 107, i32 3, i32 1)
%7 = call i32 @TWI_WriteBit(i32 107, i32 6, i32 0)
ret void
}

LLVM IR (-O2):
define void @imu_init() {
%1 = tail call i32 @TWI_Write(i32 107, i32 1)
%2 = tail call i32 @TWI_Write(i32 27, i32 8)
%3 = tail call i32 @TWI_Write(i32 28, i32 24)
%4 = tail call i32 @TWI_Write(i32 26, i32 0)
%5 = tail call i32 @TWI_Write(i32 25, i32 3)
%6 = tail call i32 @TWI_WriteBit(i32 107, i32 3, i32 1)
%7 = tail call i32 @TWI_WriteBit(i32 107, i32 6, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dr_dag_node_stack_fini(int /*<<< orphan*/);
int /*<<< orphan*/ dr_dag_node_stack_init(int /*<<< orphan*/);
int /*<<< orphan*/ dr_dag_node_stack_pop(int /*<<< orphan*/);
int /*<<< orphan*/ dr_dag_node_stack_push(int /*<<< orphan*/,
                                          int /*<<< orphan*/);
int /*<<< orphan*/ dr_dag_node_stack_push_children(int /*<<< orphan*/,
                                                   int /*<<< orphan*/);
void use_unused() {
  dr_dag_node_stack_init(0);
  dr_dag_node_stack_fini(0);
  dr_dag_node_stack_push(0, 0);
  dr_dag_node_stack_push_children(0, 0);
  dr_dag_node_stack_pop(0);
}


x86 assembly (clang, -O0):
<use_unused>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1070 <dr_dag_node_stack_init@plt>
xor    %edi,%edi
call   1030 <dr_dag_node_stack_fini@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <dr_dag_node_stack_push@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1060 <dr_dag_node_stack_push_children@plt>
xor    %edi,%edi
call   1040 <dr_dag_node_stack_pop@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<use_unused>:
push   %rax
xor    %edi,%edi
call   1070 <dr_dag_node_stack_init@plt>
xor    %edi,%edi
call   1030 <dr_dag_node_stack_fini@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1050 <dr_dag_node_stack_push@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1060 <dr_dag_node_stack_push_children@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <dr_dag_node_stack_pop@plt>

LLVM IR (-O0):
define void @use_unused() {
%1 = call i32 @dr_dag_node_stack_init(i32 0)
%2 = call i32 @dr_dag_node_stack_fini(i32 0)
%3 = call i32 @dr_dag_node_stack_push(i32 0, i32 0)
%4 = call i32 @dr_dag_node_stack_push_children(i32 0, i32 0)
%5 = call i32 @dr_dag_node_stack_pop(i32 0)
ret void
}

LLVM IR (-O2):
define void @use_unused() {
%1 = tail call i32 @dr_dag_node_stack_init(i32 0)
%2 = tail call i32 @dr_dag_node_stack_fini(i32 0)
%3 = tail call i32 @dr_dag_node_stack_push(i32 0, i32 0)
%4 = tail call i32 @dr_dag_node_stack_push_children(i32 0, i32 0)
%5 = tail call i32 @dr_dag_node_stack_pop(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Print();
int /*<<< orphan*/ load();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
int main() {
  Print();
  printf("Game goes here..\n");
  system("clear");
  load();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <Print@plt>
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
call   1030 <system@plt>
mov    $0x0,%al
call   1050 <load@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <Print@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xea5(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
call   1050 <load@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Game goes here..\0A\00"
@.str.1 = [6 x i8] c"clear\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @Print()
%3 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @load()
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"clear\00"
@str = [17 x i8] c"Game goes here..\00"
define i32 @main() {
%1 = tail call i32 (...) @Print()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @load()
ret i32 0
}
double estimate_switching_CIBC(double btr_opt, double switching_CL) {
  return switching_CL * (1. + 1. / (1. - 1. / btr_opt));
}


x86 assembly (clang, -O0):
<estimate_switching_CIBC>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xee5(%rip),%xmm2
divsd  -0x8(%rbp),%xmm2
movsd  0xed8(%rip),%xmm1
subsd  %xmm2,%xmm1
movsd  0xecc(%rip),%xmm2
divsd  %xmm1,%xmm2
movsd  0xec0(%rip),%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<estimate_switching_CIBC>:
movsd  0xef8(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
movapd %xmm2,%xmm4
subsd  %xmm3,%xmm4
movapd %xmm2,%xmm0
divsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @estimate_switching_CIBC(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %4
%6 = load double, double* %3
%7 = fdiv double 1.000000e+00, %6
%8 = fsub double 1.000000e+00, %7
%9 = fdiv double 1.000000e+00, %8
%10 = fadd double 1.000000e+00, %9
%11 = fmul double %5, %10
ret double %11
}

LLVM IR (-O2):
define double @estimate_switching_CIBC(double %0, double %1) {
%3 = fdiv double 1.000000e+00, %0
%4 = fsub double 1.000000e+00, %3
%5 = fdiv double 1.000000e+00, %4
%6 = fadd double %5, 1.000000e+00
%7 = fmul double %6, %1
ret double %7
}
int compare_bytes(const void *pa, const void *pb) {
  int a = *(char *)pa;
  int b = *(char *)pb;
  if (a < b) {
    return -1;
  } else if (a == b) {
    return 0;
  } else {
    return 1;
  }
}


x86 assembly (clang, -O0):
<compare_bytes>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1138 <compare_bytes+0x38>
movl   $0xffffffff,-0x4(%rbp)
jmp    1157 <compare_bytes+0x57>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    1150 <compare_bytes+0x50>
movl   $0x0,-0x4(%rbp)
jmp    1157 <compare_bytes+0x57>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare_bytes>:
mov    (%rdi),%al
xor    %ecx,%ecx
cmp    (%rsi),%al
setne  %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @compare_bytes(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = load i8, i8* %1
%5 = icmp slt i8 %3, %4
%6 = icmp ne i8 %3, %4
%7 = zext i1 %6 to i32
%8 = select i1 %5, i32 -1, i32 %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ F_OK;
int access(char *, int /*<<< orphan*/);
int is_file(char *s) {
  if (access(s, F_OK) == -1) {
    return -1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<is_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
call   1030 <access@plt>
cmp    $0xffffffff,%eax
jne    1143 <is_file+0x33>
movl   $0xffffffff,-0x4(%rbp)
jmp    114a <is_file+0x3a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_file>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
call   1030 <access@plt>
xor    %ecx,%ecx
cmp    $0xffffffff,%eax
sete   %cl
neg    %ecx
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@F_OK = global i32 0
define i32 @is_file(i8* nocapture %0) {
%2 = load i32, i32* @F_OK
%3 = tail call i32 @access(i8* %0, i32 %2)
%4 = icmp eq i32 %3, -1
%5 = sext i1 %4 to i32
ret i32 %5
}
int ade7753_probe_trigger(struct iio_dev *indio_dev) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.iio_dev = type opaque
define i32 @ade7753_probe_trigger(%struct.iio_dev* nocapture readnone %0) {
ret i32 0
}
void rdrs_(dx, dy, dz) short *dx, *dy, *dz;
{ rdr((float)*dx, (float)*dy, (float)*dz); }


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

x86 assembly (clang, -O2):
<rdrs_>:
movswl (%rdi),%eax
cvtsi2sd %eax,%xmm0
movswl (%rsi),%eax
cvtsi2sd %eax,%xmm1
movswl (%rdx),%eax
cvtsi2sd %eax,%xmm2
mov    $0x3,%al
jmp    1030 <rdr@plt>

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

LLVM IR (-O2):
define void @rdrs_(i16* nocapture %0, i16* nocapture %1, i16* nocapture %2) {
%4 = load i16, i16* %0
%5 = sitofp i16 %4 to double
%6 = load i16, i16* %1
%7 = sitofp i16 %6 to double
%8 = load i16, i16* %2
%9 = sitofp i16 %8 to double
%10 = tail call i32 (double, double, double, ...) bitcast (i32 (...)* @rdr to i32 (double, double, double, ...)*)(double %5, double %7, double %9)
ret void
}
void ff_h264qpel_init_mips() {}


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

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

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

LLVM IR (-O2):
define void @ff_h264qpel_init_mips() {
ret void
}
int test_imm_28uint8_mem(unsigned char *val) {
  return ((*val) & (-0x28 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_28uint8_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, -40
%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_28uint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -40
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void kill_usage(void) {
  fprintf(stderr,
          "Usage:\n"
          "  kill pid ...              Send SIGTERM to every process listed.\n"
          "  kill signal pid ...       Send a signal to every process listed.\n"
          "  kill -s signal pid ...    Send a signal to every process listed.\n"
          "  kill -l                   List all signal names.\n"
          "  kill -L                   List all signal names in a nice table.\n"
          "  kill -l signal            Convert a signal number into a name.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<kill_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<kill_usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [391 x i8] c"Usage:\0A kill pid ... Send SIGTERM to every process listed.\0A kill signal pid ... Send a signal to every process listed.\0A kill -s signal pid ... Send a signal to every process listed.\0A kill -l List all signal names.\0A kill -L List all signal names in a nice table.\0A kill -l signal Convert a signal number into a name.\0A\00"
define void @kill_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([391 x i8], [391 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [391 x i8] c"Usage:\0A kill pid ... Send SIGTERM to every process listed.\0A kill signal pid ... Send a signal to every process listed.\0A kill -s signal pid ... Send a signal to every process listed.\0A kill -l List all signal names.\0A kill -L List all signal names in a nice table.\0A kill -l signal Convert a signal number into a name.\0A\00"
define void @kill_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([391 x i8], [391 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ die(char *, int /*<<< orphan*/ *, void *);
scalar_t__ setsid();
void setsess(void) {
  if (setsid() < 0)
    die("setsid failed", NULL, ((void *)-1));
}


x86 assembly (clang, -O0):
<setsess>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <setsid@plt>
cmp    $0x0,%rax
jge    114c <setsess+0x2c>
lea    0xec4(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xffffffffffffffff,%rdx
call   1040 <die@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<setsess>:
push   %rax
xor    %eax,%eax
call   1030 <setsid@plt>
test   %rax,%rax
js     112f <setsess+0xf>
pop    %rax
ret
lea    0xeca(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffffffffffff,%rdx
pop    %rax
jmp    1040 <die@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"setsid failed\00"
define void @setsess() {
%1 = call i64 (...) @setsid()
%2 = icmp slt i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @die(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32* null, i8* inttoptr (i64 -1 to i8*))
br label %5
5: ; preds = %3, %0
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"setsid failed\00"
define void @setsess() {
%1 = tail call i64 (...) @setsid()
%2 = icmp slt i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @die(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32* null, i8* inttoptr (i64 -1 to i8*))
br label %5
5: ; preds = %3, %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128d;

/* Variables and functions */
int /*<<< orphan*/ _mm_andnot_pd(int /*<<< orphan*/, int /*<<< orphan*/);
__m128d test_mm_andnot_pd(__m128d A, __m128d B) { return _mm_andnot_pd(A, B); }


x86 assembly (clang, -O0):
<test_mm_andnot_pd>:
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_andnot_pd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_mm_andnot_pd>:
jmp    1030 <_mm_andnot_pd@plt>

LLVM IR (-O0):
define i32 @test_mm_andnot_pd(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_andnot_pd(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_andnot_pd(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_andnot_pd(i32 %0, i32 %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ barrier_write();
void _atomic_set_u32(uint32_t *ptr, uint32_t value) {
  barrier_write();
  *ptr = value;
}


x86 assembly (clang, -O0):
<_atomic_set_u32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <barrier_write@plt>
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_atomic_set_u32>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <barrier_write@plt>
mov    %ebp,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define void @_atomic_set_u32(i32* nocapture writeonly %0, i32 %1) {
%3 = tail call i32 (...) @barrier_write()
store i32 %1, i32* %0
ret void
}
/* Variables and functions */
double arccsc(double);
double aoffcsc(double n, int offset) {
  return arccsc(n) + 2 * 3.14159265358979323846 * offset;
}


x86 assembly (clang, -O0):
<aoffcsc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <arccsc@plt>
movaps %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xec6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aoffcsc>:
push   %rbx
mov    %edi,%ebx
call   1030 <arccsc@plt>
cvtsi2sd %ebx,%xmm1
mulsd  0xedc(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @aoffcsc(double %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
store double %0, double* %3
store i32 %1, i32* %4
%5 = load double, double* %3
%6 = call double @arccsc(double %5)
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to double
%9 = call double @llvm.fmuladd.f64(double 0x401921FB54442D18, double %8, double %6)
ret double %9
}

LLVM IR (-O2):
define double @aoffcsc(double %0, i32 %1) {
%3 = tail call double @arccsc(double %0)
%4 = sitofp i32 %1 to double
%5 = tail call double @llvm.fmuladd.f64(double %4, double 0x401921FB54442D18, double %3)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ WriteInstruction(char *);
void CR_SpriteUp(void) { WriteInstruction("dec (ix+8)"); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"dec (ix+8)\00"
define void @CR_SpriteUp() {
%1 = call i32 @WriteInstruction(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"dec (ix+8)\00"
define void @CR_SpriteUp() {
%1 = tail call i32 @WriteInstruction(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
void lerVetor(int v[], int n) {}


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

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

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

LLVM IR (-O2):
define void @lerVetor(i32* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pr_warn(char *);
void xio_read_logging_level(void) { pr_warn("xio_read_logging_level\n"); }


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

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

LLVM IR (-O0):
@.str = [24 x i8] c"xio_read_logging_level\0A\00"
define void @xio_read_logging_level() {
%1 = call i32 @pr_warn(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"xio_read_logging_level\0A\00"
define void @xio_read_logging_level() {
%1 = tail call i32 @pr_warn(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret void
}
int main() {
  _Bool x = 1;
  assert(x);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x1,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 1, i8* %2
%3 = load i8, i8* %2
%4 = trunc i8 %3 to i1
%5 = zext i1 %4 to i32
%6 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ fild_Close(int);
int fild_Open(char const *, int /*<<< orphan*/, int /*<<< orphan*/);
int fild_CheckFileExistence(const char *pathname) {
  int fd = -1;
  fd = fild_Open(pathname, O_RDONLY, 0);
  if (fd != -1) {
    fild_Close(fd);
  }
  return fd;
}


x86 assembly (clang, -O0):
<fild_CheckFileExistence>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eaa(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <fild_Open@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
je     115c <fild_CheckFileExistence+0x3c>
mov    -0xc(%rbp),%edi
call   1040 <fild_Close@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fild_CheckFileExistence>:
push   %rbx
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <fild_Open@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
je     113f <fild_CheckFileExistence+0x1f>
mov    %ebx,%edi
call   1040 <fild_Close@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@O_RDONLY = global i32 0
define i32 @fild_CheckFileExistence(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 -1, i32* %3
%4 = load i8*, i8** %2
%5 = load i32, i32* @O_RDONLY
%6 = call i32 @fild_Open(i8* %4, i32 %5, i32 0)
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = icmp ne i32 %7, -1
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i32, i32* %3
%11 = call i32 @fild_Close(i32 %10)
br label %12
12: ; preds = %9, %1
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
define i32 @fild_CheckFileExistence(i8* %0) {
%2 = load i32, i32* @O_RDONLY
%3 = tail call i32 @fild_Open(i8* %0, i32 %2, i32 0)
%4 = icmp eq i32 %3, -1
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @fild_Close(i32 %3)
br label %7
7: ; preds = %5, %1
ret i32 %3
}
void UpnpSetLogFileNames(const char *ErrFileName, const char *InfoFileName) {
  return;
  ErrFileName = ErrFileName;
  InfoFileName = InfoFileName;
}


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

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

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

LLVM IR (-O2):
define void @UpnpSetLogFileNames(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *arg0) {
  printf("Usage: %s size commonname\n", arg0);
  printf("\tsize: modulus size, in bits\n");
  printf("\tcommonname: common name for certificate, either a hostname or "
         "email\n\n");
  exit(-1);
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Usage: %s size commonname\0A\00"
@.str.1 = [30 x i8] c"\09size: modulus size, in bits\0A\00"
@.str.2 = [71 x i8] c"\09commonname: common name for certificate, either a hostname or email\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [27 x i8] c"Usage: %s size commonname\0A\00"
@str = [29 x i8] c"\09size: modulus size, in bits\00"
@str.3 = [70 x i8] c"\09commonname: common name for certificate, either a hostname or email\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.3, i64 0, i64 0))
%5 = tail call i32 @exit(i32 -1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ Msp430GpioC__7__GeneralIO__toggle();
void LedsP__Led0__toggle(void) { Msp430GpioC__7__GeneralIO__toggle(); }


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

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

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

LLVM IR (-O2):
define void @LedsP__Led0__toggle() {
%1 = tail call i32 (...) @Msp430GpioC__7__GeneralIO__toggle()
ret void
}