xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int /*<<< orphan*/ test_getsockopt(char *, int, void *, int /*<<< orphan*/);
int /*<<< orphan*/ test_setsockopt(char *, int, void *, int /*<<< orphan*/);
void test_sockopt_value_ext(char *test_name, int optname, void *optval,
                            socklen_t optlen, void *expval, socklen_t explen) {
  test_setsockopt(test_name, optname, optval, optlen);
  test_getsockopt(test_name, optname, expval, explen);
}


x86 assembly (clang, -O0):
<test_sockopt_value_ext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1040 <test_setsockopt@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1030 <test_getsockopt@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_sockopt_value_ext>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8,%r15
mov    %esi,%ebp
mov    %rdi,%rbx
call   1040 <test_setsockopt@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15,%rdx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <test_getsockopt@plt>

LLVM IR (-O0):
define void @test_sockopt_value_ext(i8* %0, i32 %1, i8* %2, i32 %3, i8* %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i32 %3, i32* %10
store i8* %4, i8** %11
store i32 %5, i32* %12
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = load i8*, i8** %9
%16 = load i32, i32* %10
%17 = call i32 @test_setsockopt(i8* %13, i32 %14, i8* %15, i32 %16)
%18 = load i8*, i8** %7
%19 = load i32, i32* %8
%20 = load i8*, i8** %11
%21 = load i32, i32* %12
%22 = call i32 @test_getsockopt(i8* %18, i32 %19, i8* %20, i32 %21)
ret void
}

LLVM IR (-O2):
define void @test_sockopt_value_ext(i8* %0, i32 %1, i8* %2, i32 %3, i8* %4, i32 %5) {
%7 = tail call i32 @test_setsockopt(i8* %0, i32 %1, i8* %2, i32 %3)
%8 = tail call i32 @test_getsockopt(i8* %0, i32 %1, i8* %4, i32 %5)
ret void
}
/* Type definitions */
struct comp {
  int dummy;
};
struct BrzVariable_ {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ SEND_ACKDOWN_DELAYED(int, int);
int /*<<< orphan*/ SEND_DATAOFF_DELAYED(int, int /*<<< orphan*/);
void BrzVariable_reqdown(struct comp *comp, int port) {
  struct BrzVariable_ *c = (struct BrzVariable_ *)comp;
  SEND_ACKDOWN_DELAYED(port, 1);
  if (port >= 1) {
    SEND_DATAOFF_DELAYED(port, 0);
  }
}


x86 assembly (clang, -O0):
<BrzVariable_reqdown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1030 <SEND_ACKDOWN_DELAYED@plt>
cmpl   $0x1,-0xc(%rbp)
jl     1158 <BrzVariable_reqdown+0x38>
mov    -0xc(%rbp),%edi
xor    %esi,%esi
call   1040 <SEND_DATAOFF_DELAYED@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BrzVariable_reqdown>:
push   %rbx
mov    %esi,%ebx
mov    %esi,%edi
mov    $0x1,%esi
call   1030 <SEND_ACKDOWN_DELAYED@plt>
test   %ebx,%ebx
jle    113d <BrzVariable_reqdown+0x1d>
mov    %ebx,%edi
xor    %esi,%esi
pop    %rbx
jmp    1040 <SEND_DATAOFF_DELAYED@plt>
pop    %rbx
ret

LLVM IR (-O0):
%struct.comp = type { i32 }
%struct.BrzVariable_ = type { i32 }
define void @BrzVariable_reqdown(%struct.comp* %0, i32 %1) {
%3 = alloca %struct.comp*
%4 = alloca i32
%5 = alloca %struct.BrzVariable_*
store %struct.comp* %0, %struct.comp** %3
store i32 %1, i32* %4
%6 = load %struct.comp*, %struct.comp** %3
%7 = bitcast %struct.comp* %6 to %struct.BrzVariable_*
store %struct.BrzVariable_* %7, %struct.BrzVariable_** %5
%8 = load i32, i32* %4
%9 = call i32 @SEND_ACKDOWN_DELAYED(i32 %8, i32 1)
%10 = load i32, i32* %4
%11 = icmp sge i32 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, i32* %4
%14 = call i32 @SEND_DATAOFF_DELAYED(i32 %13, i32 0)
br label %15
15: ; preds = %12, %2
ret void
}

LLVM IR (-O2):
%struct.comp = type { i32 }
define void @BrzVariable_reqdown(%struct.comp* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @SEND_ACKDOWN_DELAYED(i32 %1, i32 1)
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @SEND_DATAOFF_DELAYED(i32 %1, i32 0)
br label %7
7: ; preds = %5, %2
ret void
}
void serial_putc(const char c) {
  if (c == '\n') {
    while (((*((volatile unsigned *)((0xc8100000 | (0x01 << 10) | (0x30 << 2)) +
                                     (3 << 2)))) &
            (1 << 21)))
      ;
    (*((volatile unsigned *)((0xc8100000 | (0x01 << 10) | (0x30 << 2)) +
                             (0 << 2))) = '\r');
  }
  while (((*((volatile unsigned *)((0xc8100000 | (0x01 << 10) | (0x30 << 2)) +
                                   (3 << 2)))) &
          (1 << 21)))
    ;
  (*((volatile unsigned *)((0xc8100000 | (0x01 << 10) | (0x30 << 2)) +
                           (0 << 2))) = c);
}


x86 assembly (clang, -O0):
<serial_putc>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0xa,%eax
jne    1141 <serial_putc+0x41>
jmp    111c <serial_putc+0x1c>
mov    $0xc81004cc,%eax
mov    (%rax),%eax
and    $0x200000,%eax
cmp    $0x0,%eax
je     1136 <serial_putc+0x36>
jmp    111c <serial_putc+0x1c>
mov    $0xc81004c0,%eax
movl   $0xd,(%rax)
jmp    1146 <serial_putc+0x46>
mov    $0xc81004cc,%eax
mov    (%rax),%eax
and    $0x200000,%eax
cmp    $0x0,%eax
je     1160 <serial_putc+0x60>
jmp    1146 <serial_putc+0x46>
movsbl -0x1(%rbp),%ecx
mov    $0xc81004c0,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_putc>:
mov    $0xc81004c0,%eax
cmp    $0xa,%dil
jne    1120 <serial_putc+0x20>
nopl   0x0(%rax,%rax,1)
testl  $0x200000,0xc(%rax)
jne    1110 <serial_putc+0x10>
movl   $0xd,(%rax)
nop
testl  $0x200000,0xc(%rax)
jne    1120 <serial_putc+0x20>
movsbl %dil,%ecx
mov    %ecx,(%rax)
ret

LLVM IR (-O0):
define void @serial_putc(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 10
br i1 %5, label %6, label %13
6: ; preds = %1
br label %7
7: ; preds = %11, %6
%8 = load volatile i32, i32* inttoptr (i64 3356493004 to i32*)
%9 = and i32 %8, 2097152
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
br label %7
12: ; preds = %7
store volatile i32 13, i32* inttoptr (i64 3356492992 to i32*)
br label %13
13: ; preds = %12, %1
br label %14
14: ; preds = %18, %13
%15 = load volatile i32, i32* inttoptr (i64 3356493004 to i32*)
%16 = and i32 %15, 2097152
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %14
br label %14
19: ; preds = %14
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
store volatile i32 %21, i32* inttoptr (i64 3356492992 to i32*)
ret void
}

LLVM IR (-O2):
define void @serial_putc(i8 signext %0) {
%2 = icmp eq i8 %0, 10
br i1 %2, label %3, label %8
3: ; preds = %1, %3
%4 = load volatile i32, i32* inttoptr (i64 3356493004 to i32*)
%5 = and i32 %4, 2097152
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %3
7: ; preds = %3
store volatile i32 13, i32* inttoptr (i64 3356492992 to i32*)
br label %8
8: ; preds = %7, %1
br label %9
9: ; preds = %8, %9
%10 = load volatile i32, i32* inttoptr (i64 3356493004 to i32*)
%11 = and i32 %10, 2097152
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %9
13: ; preds = %9
%14 = sext i8 %0 to i32
store volatile i32 %14, i32* inttoptr (i64 3356492992 to i32*)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ static_assert(int);
void main(int n) {
  int x = 0;
  while (x < n) {
    x++;
  }
  if (n > 0)
    static_assert(x == n);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    113c <main+0x2c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <main+0x12>
cmpl   $0x0,-0x4(%rbp)
jle    1159 <main+0x49>
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <static_assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
test   %edi,%edi
jle    111e <main+0xe>
mov    $0x1,%edi
jmp    1030 <static_assert@plt>
ret

LLVM IR (-O0):
define void @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %8, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 1
store i32 %10, i32* %3
br label %4
11: ; preds = %4
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = load i32, i32* %3
%16 = load i32, i32* %2
%17 = icmp eq i32 %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @static_assert(i32 %18)
br label %20
20: ; preds = %14, %11
ret void
}

LLVM IR (-O2):
define void @main(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @static_assert(i32 1)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_socket();
void usetup() { init_socket(); }


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

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

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

LLVM IR (-O2):
define void @usetup() {
%1 = tail call i32 (...) @init_socket()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ io_set_pgc(int);
int /*<<< orphan*/ io_set_pgd(int);
int /*<<< orphan*/ io_set_pgm(int);
int /*<<< orphan*/ io_set_vpp(int);
int /*<<< orphan*/ io_usleep(int);
int /*<<< orphan*/ pic32_setmode(int, int);
void pic32_standby(void) {
  pic32_setmode(5, 0x1F);
  io_usleep(500);
  io_set_pgd((0x00));
  io_set_pgc((0x00));
  io_set_vpp((0x00));
  io_set_pgm((0x00));
}


x86 assembly (clang, -O0):
<pic32_standby>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5,%edi
mov    $0x1f,%esi
call   1040 <pic32_setmode@plt>
mov    $0x1f4,%edi
call   1050 <io_usleep@plt>
xor    %edi,%edi
call   1070 <io_set_pgd@plt>
xor    %edi,%edi
call   1080 <io_set_pgc@plt>
xor    %edi,%edi
call   1060 <io_set_vpp@plt>
xor    %edi,%edi
call   1030 <io_set_pgm@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pic32_standby>:
push   %rax
mov    $0x5,%edi
mov    $0x1f,%esi
call   1040 <pic32_setmode@plt>
mov    $0x1f4,%edi
call   1050 <io_usleep@plt>
xor    %edi,%edi
call   1070 <io_set_pgd@plt>
xor    %edi,%edi
call   1080 <io_set_pgc@plt>
xor    %edi,%edi
call   1060 <io_set_vpp@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <io_set_pgm@plt>

LLVM IR (-O0):
define void @pic32_standby() {
%1 = call i32 @pic32_setmode(i32 5, i32 31)
%2 = call i32 @io_usleep(i32 500)
%3 = call i32 @io_set_pgd(i32 0)
%4 = call i32 @io_set_pgc(i32 0)
%5 = call i32 @io_set_vpp(i32 0)
%6 = call i32 @io_set_pgm(i32 0)
ret void
}

LLVM IR (-O2):
define void @pic32_standby() {
%1 = tail call i32 @pic32_setmode(i32 5, i32 31)
%2 = tail call i32 @io_usleep(i32 500)
%3 = tail call i32 @io_set_pgd(i32 0)
%4 = tail call i32 @io_set_pgc(i32 0)
%5 = tail call i32 @io_set_vpp(i32 0)
%6 = tail call i32 @io_set_pgm(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void grpcsharp_call_start_server_streaming() {
  fprintf(stderr, "Should never reach here");
  abort();
}


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

x86 assembly (clang, -O2):
<grpcsharp_call_start_server_streaming>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_call_start_server_streaming() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_call_start_server_streaming() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @abort()
unreachable
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int mcp23s17_read_reg(int, int, int);
uint8_t mcp23s17_read_bit(uint8_t bit_num, uint8_t reg, uint8_t hw_addr,
                          int fd) {
  return (mcp23s17_read_reg(reg, hw_addr, fd) >> bit_num) & 1;
}


x86 assembly (clang, -O0):
<mcp23s17_read_bit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <mcp23s17_read_reg@plt>
mov    -0x4(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mcp23s17_read_bit>:
push   %rbx
mov    %edi,%ebx
mov    %esi,%edi
mov    %edx,%esi
mov    %ecx,%edx
call   1030 <mcp23s17_read_reg@plt>
mov    %ebx,%ecx
shr    %cl,%eax
and    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @mcp23s17_read_bit(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %6
%10 = load i32, i32* %7
%11 = load i32, i32* %8
%12 = call i32 @mcp23s17_read_reg(i32 %9, i32 %10, i32 %11)
%13 = load i32, i32* %5
%14 = ashr i32 %12, %13
%15 = and i32 %14, 1
ret i32 %15
}

LLVM IR (-O2):
define i32 @mcp23s17_read_bit(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @mcp23s17_read_reg(i32 %1, i32 %2, i32 %3)
%6 = lshr i32 %5, %0
%7 = and i32 %6, 1
ret i32 %7
}
/* Variables and functions */
char *getenv(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
char *get_path(char *buffer, char *file) {
  sprintf(buffer, "%s/.config/OPKManager/%s", getenv("HOME"), file);
  return buffer;
}


x86 assembly (clang, -O0):
<get_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x18(%rbp),%rdi
mov    %rax,%rdx
mov    -0x10(%rbp),%rcx
lea    0xeaa(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_path>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xee8(%rip),%rdi
call   1030 <getenv@plt>
lea    0xec3(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
mov    %r14,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [25 x i8] c"%s/.config/OPKManager/%s\00"
@.str.1 = [5 x i8] c"HOME\00"
define i8* @get_path(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = load i8*, i8** %4
%8 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = load i8*, i8** %3
ret i8* %9
}

LLVM IR (-O2):
@.str = [25 x i8] c"%s/.config/OPKManager/%s\00"
@.str.1 = [5 x i8] c"HOME\00"
define i8* @get_path(i8* returned writeonly %0, i8* %1) {
%3 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %1)
ret i8* %0
}
void EVP_CIPHER_asn1_to_param(void) {}


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

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

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

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

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


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

x86 assembly (clang, -O2):
<test41>:
jmp    1030 <_mm_sub_pi8@plt>

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

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

/* Variables and functions */
bool no_permutate(uint8_t localCurrPW[32]) {
  (void)(localCurrPW[32]);
  return false;
}


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

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

LLVM IR (-O0):
define i32 @no_permutate(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 32
%5 = load i32, i32* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @no_permutate(i32* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void *childGreetings(void *param) {
  printf("Greetings from the child thread\n");
  return NULL;
}


x86 assembly (clang, -O0):
<childGreetings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [33 x i8] c"Greetings from the child thread\0A\00"
define i8* @childGreetings(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i8* null
}

LLVM IR (-O2):
@str = [32 x i8] c"Greetings from the child thread\00"
define noalias i8* @childGreetings(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
ret i8* null
}
__attribute__((weak)) int dlclose(void *dl) { return -1; }


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

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

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

LLVM IR (-O2):
define weak i32 @dlclose(i8* %0) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ perror(char *);
void os_perror(char *file) { perror(file); }


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

x86 assembly (clang, -O2):
<os_perror>:
jmp    1030 <perror@plt>

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

LLVM IR (-O2):
define void @os_perror(i8* nocapture %0) {
%2 = tail call i32 @perror(i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ is_leap_year(int);
int first_day(int year) {
  int ret = 4;
  for (; year > 1970; year--)
    ret = (ret + 365 + is_leap_year(year) ? 1 : 0) % 7;
  return ret;
}


x86 assembly (clang, -O0):
<first_day>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
cmpl   $0x7b2,-0x4(%rbp)
jle    1173 <first_day+0x63>
mov    -0x8(%rbp),%eax
add    $0x16d,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <is_leap_year@plt>
mov    -0x10(%rbp),%rdx
add    %rax,%rdx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    1122 <first_day+0x12>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<first_day>:
push   %r14
push   %rbx
push   %rax
mov    $0x4,%eax
cmp    $0x7b3,%edi
jl     115b <first_day+0x4b>
mov    %edi,%r14d
mov    $0x4,%ebx
nopl   0x0(%rax)
add    $0x16d,%ebx
mov    %r14d,%edi
call   1030 <is_leap_year@plt>
mov    %rax,%rcx
xor    %eax,%eax
add    %rbx,%rcx
setne  %al
lea    -0x1(%r14),%ecx
mov    %eax,%ebx
cmp    $0x7b3,%r14d
mov    %ecx,%r14d
ja     1130 <first_day+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @first_day(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 4, i32* %3
br label %4
4: ; preds = %18, %1
%5 = load i32, i32* %2
%6 = icmp sgt i32 %5, 1970
br i1 %6, label %7, label %21
7: ; preds = %4
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 365
%10 = sext i32 %9 to i64
%11 = load i32, i32* %2
%12 = call i64 @is_leap_year(i32 %11)
%13 = add nsw i64 %10, %12
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 1, i32 0
%17 = srem i32 %16, 7
store i32 %17, i32* %3
br label %18
18: ; preds = %7
%19 = load i32, i32* %2
%20 = add nsw i32 %19, -1
store i32 %20, i32* %2
br label %4
21: ; preds = %4
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
define i32 @first_day(i32 %0) {
%2 = icmp sgt i32 %0, 1970
br i1 %2, label %3, label %14
3: ; preds = %1, %3
%4 = phi i32 [ %11, %3 ], [ 4, %1 ]
%5 = phi i32 [ %12, %3 ], [ %0, %1 ]
%6 = add nuw nsw i32 %4, 365
%7 = zext i32 %6 to i64
%8 = tail call i64 @is_leap_year(i32 %5)
%9 = sub nsw i64 0, %7
%10 = icmp ne i64 %8, %9
%11 = zext i1 %10 to i32
%12 = add nsw i32 %5, -1
%13 = icmp ugt i32 %5, 1971
br i1 %13, label %3, label %14
14: ; preds = %3, %1
%15 = phi i32 [ 4, %1 ], [ %11, %3 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int *);
void func(int *pvalue) {
  printf("pvalue = %p\n", pvalue);
  *pvalue = 100;
  return;
}


x86 assembly (clang, -O0):
<func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movl   $0x64,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
movl   $0x64,(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"pvalue = %p\0A\00"
define void @func(i32* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32* %0)
store i32 100, i32* %0
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t storage_get_block_count(void) { return (0x100) + (224); }


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

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

LLVM IR (-O0):
define i32 @storage_get_block_count() {
ret i32 480
}

LLVM IR (-O2):
define i32 @storage_get_block_count() {
ret i32 480
}
/* Variables and functions */
int cdiEncodeDate(int, int, int);
int /*<<< orphan*/ decode_julday(int, int, int *, int *, int *);
int julday_to_date(int calendar, int julday) {
  int date;
  int year, month, day;
  decode_julday(calendar, julday, &year, &month, &day);
  date = cdiEncodeDate(year, month, day);
  return (date);
}


x86 assembly (clang, -O0):
<julday_to_date>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
lea    -0x18(%rbp),%r8
call   1030 <decode_julday@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <cdiEncodeDate@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<julday_to_date>:
sub    $0x18,%rsp
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
call   1030 <decode_julday@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
call   1040 <cdiEncodeDate@plt>
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define i32 @julday_to_date(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = call i32 @decode_julday(i32 %0, i32 %1, i32* %3, i32* %4, i32* %5)
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = call i32 @cdiEncodeDate(i32 %10, i32 %11, i32 %12)
ret i32 %13
}
adrreg0adr1(r0, r1, x0, x1, p0, p1) unsigned int r0, r1;
unsigned int *p0, *p1;
{
  if ((p0[10000000]) <= (*((unsigned int *)11111111)))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adrreg0adr1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    0x2625a00(%rax),%eax
mov    $0xa98ac7,%ecx
cmp    (%rcx),%eax
ja     113b <adrreg0adr1+0x3b>
movl   $0x1,-0x4(%rbp)
jmp    1142 <adrreg0adr1+0x42>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adrreg0adr1>:
mov    0x2625a00(%r8),%ecx
xor    %eax,%eax
cmp    0xa98ac7,%ecx
setbe  %al
ret

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

LLVM IR (-O2):
define i32 @adrreg0adr1(i32 %0, i32 %1, i32 %2, i32 %3, i32* nocapture %4, i32* nocapture readnone %5) {
%7 = getelementptr inbounds i32, i32* %4, i64 10000000
%8 = load i32, i32* %7
%9 = load i32, i32* inttoptr (i64 11111111 to i32*)
%10 = icmp ule i32 %8, %9
%11 = zext i1 %10 to i32
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
char *getcwd(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  printf("%s\n", getcwd(NULL, 0));
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1040 <getcwd@plt>
mov    %rax,%rsi
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1040 <getcwd@plt>
lea    0xebf(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i8* @getcwd(i32* null, i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = load i32, i32* @EXIT_SUCCESS
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ ol(char *);
void savehl(void) { ol("ld\t(saved_hl),hl"); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"ld\09(saved_hl),hl\00"
define void @savehl() {
%1 = call i32 @ol(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"ld\09(saved_hl),hl\00"
define void @savehl() {
%1 = tail call i32 @ol(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct pattern {
  int dummy;
};

/* Variables and functions */
int offset(int, int /*<<< orphan*/, int, int);
int owl_escape_value(int);
int autohelperowl_attackpat42(struct pattern *patt, int transformation,
                              int move, int color, int action) {
  int a;
  (void)patt;
  (void)color;
  (void)action;
  a = offset(-2, 0, move, transformation);
  return owl_escape_value(a) < 1;
}


x86 assembly (clang, -O0):
<autohelperowl_attackpat42>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    $0xfffffffe,%edi
xor    %esi,%esi
call   1040 <offset@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
call   1030 <owl_escape_value@plt>
cmp    $0x1,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<autohelperowl_attackpat42>:
push   %rax
mov    %esi,%ecx
mov    $0xfffffffe,%edi
xor    %esi,%esi
call   1040 <offset@plt>
mov    %eax,%edi
call   1030 <owl_escape_value@plt>
xor    %ecx,%ecx
test   %eax,%eax
setle  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.pattern = type { i32 }
define i32 @autohelperowl_attackpat42(%struct.pattern* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca %struct.pattern*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store %struct.pattern* %0, %struct.pattern** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%12 = load %struct.pattern*, %struct.pattern** %6
%13 = load i32, i32* %9
%14 = load i32, i32* %10
%15 = load i32, i32* %8
%16 = load i32, i32* %7
%17 = call i32 @offset(i32 -2, i32 0, i32 %15, i32 %16)
store i32 %17, i32* %11
%18 = load i32, i32* %11
%19 = call i32 @owl_escape_value(i32 %18)
%20 = icmp slt i32 %19, 1
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
%struct.pattern = type { i32 }
define i32 @autohelperowl_attackpat42(%struct.pattern* nocapture readnone %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @offset(i32 -2, i32 0, i32 %2, i32 %1)
%7 = tail call i32 @owl_escape_value(i32 %6)
%8 = icmp slt i32 %7, 1
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_context_move_sink_input_by_index() {
  printf("NOT IMPLEMENTED:"
         "pa_context_move_sink_input_by_index"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [53 x i8] c"NOT IMPLEMENTED:pa_context_move_sink_input_by_index\0A\00"
define i32 @pa_context_move_sink_input_by_index() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [52 x i8] c"NOT IMPLEMENTED:pa_context_move_sink_input_by_index\00"
define i32 @pa_context_move_sink_input_by_index() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ DoWork();
int main(void) {
  DoWork();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @DoWork()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ LedsP__Leds__led2On();
void TestSerialC__Leds__led2On(void) { LedsP__Leds__led2On(); }


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

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

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

LLVM IR (-O2):
define void @TestSerialC__Leds__led2On() {
%1 = tail call i32 (...) @LedsP__Leds__led2On()
ret void
}
/* Variables and functions */
int values_not_equal_display_error(void const *, void *);
int check_not_value(const void *value, void *check_value_data) {
  return values_not_equal_display_error(value, check_value_data);
}


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

x86 assembly (clang, -O2):
<check_not_value>:
jmp    1030 <values_not_equal_display_error@plt>

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

LLVM IR (-O2):
define i32 @check_not_value(i8* %0, i8* %1) {
%3 = tail call i32 @values_not_equal_display_error(i8* %0, i8* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x0d() {
  Assert_real((ispunct(13) == 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_ispunct.c",
              70, ("ispunct should be 0 for 0x0d"));
}


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

x86 assembly (clang, -O2):
<t_ispunct_0x0d>:
push   %rax
mov    $0xd,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x46,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0x0d\00"
define void @t_ispunct_0x0d() {
%1 = tail call i64 @ispunct(i32 13)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct Var {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ pA(char *, char const *, char const *, char const *);
void __func_mul_sint(struct Var *avar, const char *areg, const char *lreg,
                     const char *rreg) {
  pA("%s = %s * %s;", areg, lreg, rreg);
}


x86 assembly (clang, -O0):
<__func_mul_sint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xec5(%rip),%rdi
call   1030 <pA@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
%struct.Var = type { i32 }
@.str = [14 x i8] c"%s = %s * %s;\00"
define void @__func_mul_sint(%struct.Var* nocapture readnone %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 @pA(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i8* %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int8_t f_scalar_1(int8_t x) { return x; }


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

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

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

LLVM IR (-O2):
define i32 @f_scalar_1(i32 returned %0) {
ret i32 %0
}
double PMPI_Wtick(void) { return 1.0 / (60); }


x86 assembly (clang, -O0):
<PMPI_Wtick>:
push   %rbp
mov    %rsp,%rbp
movsd  0xef4(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<PMPI_Wtick>:
movsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @PMPI_Wtick() {
ret double 0x3F91111111111111
}

LLVM IR (-O2):
define double @PMPI_Wtick() {
ret double 0x3F91111111111111
}
/* Variables and functions */
scalar_t__ isinf(double);
__attribute__((__visibility__("hidden"))) double __math_check_oflow(double y) {
  return isinf(y) ? (y) : y;
}


x86 assembly (clang, -O0):
<__math_check_oflow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <isinf@plt>
cmp    $0x0,%rax
je     1140 <__math_check_oflow+0x30>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    114a <__math_check_oflow+0x3a>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__math_check_oflow>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <isinf@plt>
movsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define hidden double @__math_check_oflow(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call i64 @isinf(double %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load double, double* %2
br label %10
8: ; preds = %1
%9 = load double, double* %2
br label %10
10: ; preds = %8, %6
%11 = phi double [ %7, %6 ], [ %9, %8 ]
ret double %11
}

LLVM IR (-O2):
define hidden double @__math_check_oflow(double returned %0) {
%2 = tail call i64 @isinf(double %0)
ret double %0
}
/* Variables and functions */
scalar_t__ daemon(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
void Detach() {
  if (daemon(0, 0)) {
    perror("labd");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<Detach>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    %esi,%edi
call   1030 <daemon@plt>
cmp    $0x0,%rax
je     115d <Detach+0x2d>
lea    0xeb2(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Detach>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1030 <daemon@plt>
test   %rax,%rax
jne    1141 <Detach+0x11>
pop    %rax
ret
lea    0xeb8(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"labd\00"
define void @Detach() {
%1 = call i64 @daemon(i32 0, i32 0)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
6: ; preds = %0
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"labd\00"
define void @Detach() {
%1 = tail call i64 @daemon(i32 0, i32 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
6: ; preds = %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void grpcsharp_test_override_method() {
  fprintf(stderr, "Should never reach here");
  abort();
}


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

x86 assembly (clang, -O2):
<grpcsharp_test_override_method>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_test_override_method() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_test_override_method() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @abort()
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
int main() {
  char *test = "/var/www/v4l2grab -o /var/www/test.jpg";
  system(test);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [39 x i8] c"/var/www/v4l2grab -o /var/www/test.jpg\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @system(i8* %3)
ret i32 0
}

LLVM IR (-O2):
@.str = [39 x i8] c"/var/www/v4l2grab -o /var/www/test.jpg\00"
define i32 @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void initMatrice(char tab[10][10]) {
  int i, j;
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++) {
      tab[i][j] = '~';
    }
  }
}


x86 assembly (clang, -O0):
<initMatrice>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    1162 <initMatrice+0x62>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    114f <initMatrice+0x4f>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movb   $0x7e,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <initMatrice+0x20>
jmp    1154 <initMatrice+0x54>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <initMatrice+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initMatrice>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,0x50(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm0,0x30(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm0,0x10(%rdi)
movups %xmm0,(%rdi)
movl   $0x7e7e7e7e,0x60(%rdi)
ret

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

LLVM IR (-O2):
define void @initMatrice([10 x i8]* nocapture writeonly %0) {
%2 = getelementptr [10 x i8], [10 x i8]* %0, i64 0, i64 0
ret void
}
/* Variables and functions */
int ss2qas();
int ss2qas_() { return ss2qas(); }


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

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

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

LLVM IR (-O2):
define i32 @ss2qas_() {
%1 = tail call i32 (...) @ss2qas()
ret i32 %1
}