xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
yyerror(char *str) { fprintf(stderr, "%s\n", str); }


x86 assembly (clang, -O0):
<yyerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yyerror>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @yyerror(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i32, i32* @stderr
%5 = load i8*, i8** %3
%6 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* %2
ret i32 %7
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @yyerror(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 undef
}
/* Variables and functions */
int EOF;
int /*<<< orphan*/ printf(char *, int);
void main(void) {
  int eof = EOF;
  printf("value of EOF is %d.\n", eof);
}


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

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

LLVM IR (-O0):
@EOF = global i32 0
@.str = [21 x i8] c"value of EOF is %d.\0A\00"
define void @main() {
%1 = alloca i32
%2 = load i32, i32* @EOF
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
@.str = [21 x i8] c"value of EOF is %d.\0A\00"
define void @main() {
%1 = load i32, i32* @EOF
%2 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ netnamestr;
typedef int /*<<< orphan*/ bool_t;
typedef int /*<<< orphan*/ XDR;

/* Variables and functions */
int /*<<< orphan*/ FALSE;
int /*<<< orphan*/ MAXNETNAMELEN;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ xdr_string(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                              int /*<<< orphan*/);
bool_t xdr_netnamestr(register XDR *xdrs, netnamestr *objp) {
  if (!xdr_string(xdrs, objp, MAXNETNAMELEN))
    return (FALSE);
  return (TRUE);
}


x86 assembly (clang, -O0):
<xdr_netnamestr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    0x2ea1(%rip),%rax
mov    (%rax),%edx
call   1030 <xdr_string@plt>
cmp    $0x0,%eax
jne    1150 <xdr_netnamestr+0x40>
mov    0x2e92(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    115c <xdr_netnamestr+0x4c>
mov    0x2e91(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xdr_netnamestr>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edx
call   1030 <xdr_string@plt>
test   %eax,%eax
jne    112c <xdr_netnamestr+0x1c>
mov    0x2eae(%rip),%rax
jmp    1133 <xdr_netnamestr+0x23>
mov    0x2eb5(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@MAXNETNAMELEN = global i32 0
@FALSE = global i32 0
@TRUE = global i32 0
define i32 @xdr_netnamestr(i32* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
%6 = load i32*, i32** %4
%7 = load i32*, i32** %5
%8 = load i32, i32* @MAXNETNAMELEN
%9 = call i32 @xdr_string(i32* %6, i32* %7, i32 %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = load i32, i32* @FALSE
store i32 %12, i32* %3
br label %15
13: ; preds = %2
%14 = load i32, i32* @TRUE
store i32 %14, i32* %3
br label %15
15: ; preds = %13, %11
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
@MAXNETNAMELEN = global i32 0
@FALSE = global i32 0
@TRUE = global i32 0
define i32 @xdr_netnamestr(i32* %0, i32* %1) {
%3 = load i32, i32* @MAXNETNAMELEN
%4 = tail call i32 @xdr_string(i32* %0, i32* %1, i32 %3)
%5 = icmp eq i32 %4, 0
%6 = load i32, i32* @FALSE
%7 = load i32, i32* @TRUE
%8 = select i1 %5, i32 %6, i32 %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ strcmp(char const *, char *);
int libamg_sip_get_transport_code(const char *transport_name) {
  if (!strcmp(transport_name, "tcp"))
    return 1;
  else if (!strcmp(transport_name, "udp"))
    return 0;
  else
    return -1;
}


x86 assembly (clang, -O0):
<libamg_sip_get_transport_code>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1141 <libamg_sip_get_transport_code+0x31>
movl   $0x1,-0x4(%rbp)
jmp    116d <libamg_sip_get_transport_code+0x5d>
mov    -0x10(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1166 <libamg_sip_get_transport_code+0x56>
movl   $0x0,-0x4(%rbp)
jmp    116d <libamg_sip_get_transport_code+0x5d>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<libamg_sip_get_transport_code>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1139 <libamg_sip_get_transport_code+0x29>
lea    0xed9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"tcp\00"
@.str.1 = [4 x i8] c"udp\00"
define i32 @libamg_sip_get_transport_code(i8* nocapture %0) {
%2 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp ne i32 %5, 0
%7 = sext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char const *const, size_t);
void saveSentence(const char *const data, size_t N, char *target, unsigned *p) {
  memcpy(target + *p, data, N);
  (*p) += N;
}


x86 assembly (clang, -O0):
<saveSentence>:
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    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
add    %rax,%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <memcpy@plt>
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
add    %rdx,%rcx
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<saveSentence>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rsi,%rbx
mov    %rdi,%rsi
mov    (%rcx),%edi
add    %rdx,%rdi
mov    %rbx,%rdx
call   1030 <memcpy@plt>
add    %ebx,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @saveSentence(i8* %0, i64 %1, i8* %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32*
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i32* %3, i32** %8
%9 = load i8*, i8** %7
%10 = load i32*, i32** %8
%11 = load i32, i32* %10
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %9, i64 %12
%14 = load i8*, i8** %5
%15 = load i64, i64* %6
%16 = call i32 @memcpy(i8* %13, i8* %14, i64 %15)
%17 = load i64, i64* %6
%18 = load i32*, i32** %8
%19 = load i32, i32* %18
%20 = zext i32 %19 to i64
%21 = add i64 %20, %17
%22 = trunc i64 %21 to i32
store i32 %22, i32* %18
ret void
}

LLVM IR (-O2):
define void @saveSentence(i8* %0, i64 %1, i8* %2, i32* nocapture %3) {
%5 = load i32, i32* %3
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %2, i64 %6
%8 = tail call i32 @memcpy(i8* %7, i8* %0, i64 %1)
%9 = load i32, i32* %3
%10 = trunc i64 %1 to i32
%11 = add i32 %9, %10
store i32 %11, i32* %3
ret void
}
void UART0_TX_intr(void) {}


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

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

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

LLVM IR (-O2):
define void @UART0_TX_intr() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i = 0;
  int result = 1;
  for (i = 1; i <= 10; i++) {
    result = result * i;
  }
  printf("%d\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1156 <main+0x46>
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
mov    -0xc(%rbp),%esi
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3628800)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
int main(void) {
  printf("%E\n", 12.48);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"%E\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 1.248000e+01)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%E\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 1.248000e+01)
ret i32 0
}
/* Type definitions */
struct socket {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ sksetstate(struct socket *, int);
struct socket *sockpair(int /*<<< orphan*/);
struct socket *netsockpipe(void) {
  struct socket *sk;
  sk = sockpair(0);
  sksetstate(sk, 1);
  return (sk);
}


x86 assembly (clang, -O0):
<netsockpipe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
call   1040 <sockpair@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
call   1030 <sksetstate@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<netsockpipe>:
push   %rbx
xor    %edi,%edi
call   1040 <sockpair@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x1,%esi
call   1030 <sksetstate@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.socket = type { i32 }
define %struct.socket* @netsockpipe() {
%1 = alloca %struct.socket*
%2 = call %struct.socket* @sockpair(i32 0)
store %struct.socket* %2, %struct.socket** %1
%3 = load %struct.socket*, %struct.socket** %1
%4 = call i32 @sksetstate(%struct.socket* %3, i32 1)
%5 = load %struct.socket*, %struct.socket** %1
ret %struct.socket* %5
}

LLVM IR (-O2):
%struct.socket = type { i32 }
define %struct.socket* @netsockpipe() {
%1 = tail call %struct.socket* @sockpair(i32 0)
%2 = tail call i32 @sksetstate(%struct.socket* %1, i32 1)
ret %struct.socket* %1
}
/* Type definitions */
struct rcps_solver {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct rcps_solver *);
void rcps_solver_free(struct rcps_solver *s) { free(s); }


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

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

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

LLVM IR (-O2):
%struct.rcps_solver = type { i32 }
define void @rcps_solver_free(%struct.rcps_solver* nocapture %0) {
%2 = tail call i32 @free(%struct.rcps_solver* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ int16_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ ntohs(int /*<<< orphan*/);
int16_t unserial_int16(uint8_t **const ptr) {
  int16_t vo;
  memcpy(&vo, *ptr, sizeof vo);
  *ptr += sizeof vo;
  return ntohs(vo);
}


x86 assembly (clang, -O0):
<unserial_int16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    -0xc(%rbp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x10,%rcx
mov    %rcx,(%rax)
mov    -0xc(%rbp),%edi
call   1040 <ntohs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unserial_int16>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    (%rdi),%rsi
lea    0xc(%rsp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
addq   $0x10,(%rbx)
mov    0xc(%rsp),%edi
call   1040 <ntohs@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @unserial_int16(i32** %0) {
%2 = alloca i32**
%3 = alloca i32
store i32** %0, i32*** %2
%4 = load i32**, i32*** %2
%5 = load i32*, i32** %4
%6 = call i32 @memcpy(i32* %3, i32* %5, i32 4)
%7 = load i32**, i32*** %2
%8 = load i32*, i32** %7
%9 = getelementptr inbounds i32, i32* %8, i64 4
store i32* %9, i32** %7
%10 = load i32, i32* %3
%11 = call i32 @ntohs(i32 %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @unserial_int16(i32** nocapture %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = load i32*, i32** %0
%5 = call i32 @memcpy(i32* %2, i32* %4, i32 4)
%6 = load i32*, i32** %0
%7 = getelementptr inbounds i32, i32* %6, i64 4
store i32* %7, i32** %0
%8 = load i32, i32* %2
%9 = call i32 @ntohs(i32 %8)
ret i32 %9
}
int f(a) { return a; }


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

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

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

LLVM IR (-O2):
define i32 @f(i32 returned %0) {
ret i32 %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_help() {
  printf("mark target options:\n"
         " --set-mark value     : Set nfmark value\n"
         " --mark-target target : ACCEPT, DROP, RETURN or CONTINUE\n");
}


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

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

LLVM IR (-O0):
@.str = [120 x i8] c"mark target options:\0A --set-mark value : Set nfmark value\0A --mark-target target : ACCEPT, DROP, RETURN or CONTINUE\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [119 x i8] c"mark target options:\0A --set-mark value : Set nfmark value\0A --mark-target target : ACCEPT, DROP, RETURN or CONTINUE\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([119 x i8], [119 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PRIO_PROCESS;
int getpriority(int /*<<< orphan*/, int /*<<< orphan*/);
int get_priority(void) { return getpriority(PRIO_PROCESS, 0); }


x86 assembly (clang, -O0):
<get_priority>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1030 <getpriority@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_priority>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
jmp    1030 <getpriority@plt>

LLVM IR (-O0):
@PRIO_PROCESS = global i32 0
define i32 @get_priority() {
%1 = load i32, i32* @PRIO_PROCESS
%2 = call i32 @getpriority(i32 %1, i32 0)
ret i32 %2
}

LLVM IR (-O2):
@PRIO_PROCESS = global i32 0
define i32 @get_priority() {
%1 = load i32, i32* @PRIO_PROCESS
%2 = tail call i32 @getpriority(i32 %1, i32 0)
ret i32 %2
}
int leftIntY(int currentY, int currentDir) {
  if (currentDir == 1)
    return currentY - 1;
  else if (currentDir == 3)
    return currentY + 1;
  else
    return currentY;
}


x86 assembly (clang, -O0):
<leftIntY>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jne    1122 <leftIntY+0x22>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1140 <leftIntY+0x40>
cmpl   $0x3,-0xc(%rbp)
jne    113a <leftIntY+0x3a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1140 <leftIntY+0x40>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<leftIntY>:
mov    %edi,%eax
cmp    $0x3,%esi
je     1110 <leftIntY+0x10>
cmp    $0x1,%esi
jne    1113 <leftIntY+0x13>
add    $0xffffffff,%eax
ret
add    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @leftIntY(i32 %0, i32 %1) {
switch i32 %1, label %7 [
i32 1, label %3
i32 3, label %5
]
3: ; preds = %2
%4 = add nsw i32 %0, -1
br label %7
5: ; preds = %2
%6 = add nsw i32 %0, 1
br label %7
7: ; preds = %2, %5, %3
%8 = phi i32 [ %4, %3 ], [ %6, %5 ], [ %0, %2 ]
ret i32 %8
}
/* Type definitions */
struct piece {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct piece *);
void delete_piece(struct piece *self) { free(self); }


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

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

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

LLVM IR (-O2):
%struct.piece = type { i32 }
define void @delete_piece(%struct.piece* nocapture %0) {
%2 = tail call i32 @free(%struct.piece* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CompileWord(int, long);
scalar_t__ DecodeLiteral();
void DoEquals(void) {
  CompileWord(50, (DecodeLiteral() == DecodeLiteral() ? 1L : 0L));
}


x86 assembly (clang, -O0):
<DoEquals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <DecodeLiteral@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <DecodeLiteral@plt>
mov    -0x8(%rbp),%rcx
mov    %rax,%rdx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x1,%eax
cmp    %rdx,%rcx
cmove  %rax,%rsi
mov    $0x32,%edi
call   1030 <CompileWord@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DoEquals>:
push   %rbx
xor    %eax,%eax
call   1040 <DecodeLiteral@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1040 <DecodeLiteral@plt>
xor    %esi,%esi
cmp    %rax,%rbx
sete   %sil
mov    $0x32,%edi
pop    %rbx
jmp    1030 <CompileWord@plt>

LLVM IR (-O0):
define void @DoEquals() {
%1 = call i64 (...) @DecodeLiteral()
%2 = call i64 (...) @DecodeLiteral()
%3 = icmp eq i64 %1, %2
%4 = zext i1 %3 to i64
%5 = select i1 %3, i64 1, i64 0
%6 = call i32 @CompileWord(i32 50, i64 %5)
ret void
}

LLVM IR (-O2):
define void @DoEquals() {
%1 = tail call i64 (...) @DecodeLiteral()
%2 = tail call i64 (...) @DecodeLiteral()
%3 = icmp eq i64 %1, %2
%4 = zext i1 %3 to i64
%5 = tail call i32 @CompileWord(i32 50, i64 %4)
ret void
}
void XkbSetIgnoreLockMods() {}


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

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

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

LLVM IR (-O2):
define void @XkbSetIgnoreLockMods() {
ret void
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int mult(int, int);
int main() {
  int m = __VERIFIER_nondet_int();
  int n = __VERIFIER_nondet_int();
  int res = mult(m, n);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <mult@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %2
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = call i32 @mult(i32 %7, i32 %8)
store i32 %9, i32* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 @mult(i32 %1, i32 %2)
ret i32 0
}
/* Type definitions */
struct pattern {
  int dummy;
};

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


x86 assembly (clang, -O0):
<autohelperowl_attackpat173>:
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    $0xffffffff,%edi
xor    %esi,%esi
call   1030 <offset@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <countlib@plt>
cmp    $0x2,%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<autohelperowl_attackpat173>:
push   %rax
mov    %esi,%ecx
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1030 <offset@plt>
mov    %eax,%edi
call   1040 <countlib@plt>
xor    %ecx,%ecx
cmp    $0x3,%eax
setl   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.pattern = type { i32 }
define i32 @autohelperowl_attackpat173(%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 -1, i32 0, i32 %15, i32 %16)
store i32 %17, i32* %11
%18 = load i32, i32* %11
%19 = call i32 @countlib(i32 %18)
%20 = icmp sle i32 %19, 2
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
%struct.pattern = type { i32 }
define i32 @autohelperowl_attackpat173(%struct.pattern* nocapture readnone %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @offset(i32 -1, i32 0, i32 %2, i32 %1)
%7 = tail call i32 @countlib(i32 %6)
%8 = icmp slt i32 %7, 3
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
struct http_session {
  int dummy;
};

/* Variables and functions */
scalar_t__ read_stream(struct http_session *, char *, int, int, int *);
int read_char(struct http_session *ps, int sec_timeout) {
  unsigned char ch;
  int len;
  if (read_stream(ps, (char *)&ch, 1, sec_timeout, &len))
    return -1;
  else
    return ch;
}


x86 assembly (clang, -O0):
<read_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%ecx
lea    -0x15(%rbp),%rsi
mov    $0x1,%edx
lea    -0x1c(%rbp),%r8
call   1030 <read_stream@plt>
cmp    $0x0,%rax
je     114e <read_char+0x3e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1155 <read_char+0x45>
movzbl -0x15(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_char>:
push   %rax
mov    %esi,%ecx
lea    0x3(%rsp),%rsi
lea    0x4(%rsp),%r8
mov    $0x1,%edx
call   1030 <read_stream@plt>
movzbl 0x3(%rsp),%ecx
neg    %rax
sbb    %eax,%eax
or     %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.http_session = type { i32 }
define i32 @read_char(%struct.http_session* %0, i32 %1) {
%3 = alloca i32
%4 = alloca %struct.http_session*
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
store %struct.http_session* %0, %struct.http_session** %4
store i32 %1, i32* %5
%8 = load %struct.http_session*, %struct.http_session** %4
%9 = load i32, i32* %5
%10 = call i64 @read_stream(%struct.http_session* %8, i8* %6, i32 1, i32 %9, i32* %7)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, i32* %3
br label %16
13: ; preds = %2
%14 = load i8, i8* %6
%15 = zext i8 %14 to i32
store i32 %15, i32* %3
br label %16
16: ; preds = %13, %12
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
%struct.http_session = type { i32 }
define i32 @read_char(%struct.http_session* %0, i32 %1) {
%3 = alloca i8
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = call i64 @read_stream(%struct.http_session* %0, i8* %3, i32 1, i32 %1, i32* %4)
%7 = icmp eq i64 %6, 0
%8 = load i8, i8* %3
%9 = zext i8 %8 to i32
%10 = select i1 %7, i32 %9, i32 -1
ret i32 %10
}
int ft_isprint(int c) {
  if ((c >= 040 && c <= 0176))
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<ft_isprint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
jl     1127 <ft_isprint+0x27>
cmpl   $0x7e,-0x8(%rbp)
jg     1127 <ft_isprint+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <ft_isprint+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_isprint>:
add    $0xffffffe0,%edi
xor    %eax,%eax
cmp    $0x5f,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @ft_isprint(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 32
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 126
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 1, i32* %2
br label %11
10: ; preds = %6, %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @ft_isprint(i32 %0) {
%2 = add i32 %0, -32
%3 = icmp ult i32 %2, 95
%4 = zext i1 %3 to i32
ret i32 %4
}
void copy1(char *s1, const char *s2) {
  int i;
  for (i = 0; (s1[i] = s2[i]) != '\0'; i++) {
    ;
  }
}


x86 assembly (clang, -O0):
<copy1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
mov    %al,(%rcx,%rdx,1)
movsbl %al,%eax
cmp    $0x0,%eax
je     1148 <copy1+0x48>
jmp    113a <copy1+0x3a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <copy1+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy1>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rsi,%rax,1),%ecx
mov    %cl,(%rdi,%rax,1)
add    $0x1,%rax
test   %cl,%cl
jne    1110 <copy1+0x10>
ret

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

LLVM IR (-O2):
define void @copy1(i8* nocapture writeonly %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i64 [ %9, %3 ], [ 0, %2 ]
%5 = getelementptr inbounds i8, i8* %1, i64 %4
%6 = load i8, i8* %5
%7 = getelementptr inbounds i8, i8* %0, i64 %4
store i8 %6, i8* %7
%8 = icmp eq i8 %6, 0
%9 = add nuw i64 %4, 1
br i1 %8, label %10, label %3
10: ; preds = %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
char *strdup(char *);
char *vertical_new_button_one_element_name(char *vertical_new_button_one_prefix,
                                           char *one_folder_name) {
  char element_name[128];
  sprintf(element_name, "%s%s", vertical_new_button_one_prefix,
          one_folder_name);
  return strdup(element_name);
}


x86 assembly (clang, -O0):
<vertical_new_button_one_element_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x90(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xeb7(%rip),%rsi
call   1030 <sprintf@plt>
lea    -0x90(%rbp),%rdi
call   1040 <strdup@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vertical_new_button_one_element_name>:
push   %rbx
sub    $0x80,%rsp
mov    %rsi,%rcx
mov    %rdi,%rdx
lea    0xecb(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <strdup@plt>
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
define i8* @vertical_new_button_one_element_name(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [128 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%7 = load i8*, i8** %3
%8 = load i8*, i8** %4
%9 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8)
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%11 = call i8* @strdup(i8* %10)
ret i8* %11
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
define noalias i8* @vertical_new_button_one_element_name(i8* %0, i8* %1) {
%3 = alloca [128 x i8]
%4 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%5 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%6 = call i8* @strdup(i8* %4)
ret i8* %6
}
void foo_2_2_2_2_1_2_2_2_1() {}


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

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

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

LLVM IR (-O2):
define void @foo_2_2_2_2_1_2_2_2_1() {
ret void
}
/* Variables and functions */
void *sspi_InitSecurityInterfaceW();
void *InitSecurityInterfaceW(void) { return sspi_InitSecurityInterfaceW(); }


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

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

LLVM IR (-O0):
define i8* @InitSecurityInterfaceW() {
%1 = call i8* (...) @sspi_InitSecurityInterfaceW()
ret i8* %1
}

LLVM IR (-O2):
define i8* @InitSecurityInterfaceW() {
%1 = tail call i8* (...) @sspi_InitSecurityInterfaceW()
ret i8* %1
}
int t2uprot(unsigned int prot) {
  register unsigned tprot, uprot;
  register int tshift;
  {
    for (tshift = 12, uprot = 0; tshift >= 0; tshift -= 6) {
      tprot = prot >> tshift;
      uprot <<= 3;
      uprot |= (tprot >> 3) & 07;
    }
  }
  return uprot;
}


x86 assembly (clang, -O0):
<t2uprot>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0xc,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     1150 <t2uprot+0x50>
mov    -0x4(%rbp),%eax
mov    -0x10(%rbp),%ecx
shr    %cl,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x3,%eax
and    $0x7,%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
sub    $0x6,%eax
mov    %eax,-0x10(%rbp)
jmp    1115 <t2uprot+0x15>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<t2uprot>:
mov    %edi,%eax
shr    $0x9,%eax
mov    %edi,%ecx
shr    $0xc,%ecx
and    $0x38,%ecx
and    $0x7,%eax
or     %ecx,%eax
shr    $0x3,%edi
and    $0x7,%edi
lea    (%rdi,%rax,8),%eax
ret

LLVM IR (-O0):
define i32 @t2uprot(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
store i32 12, i32* %5
store i32 0, i32* %4
br label %6
6: ; preds = %20, %1
%7 = load i32, i32* %5
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load i32, i32* %2
%11 = load i32, i32* %5
%12 = lshr i32 %10, %11
store i32 %12, i32* %3
%13 = load i32, i32* %4
%14 = shl i32 %13, 3
store i32 %14, i32* %4
%15 = load i32, i32* %3
%16 = lshr i32 %15, 3
%17 = and i32 %16, 7
%18 = load i32, i32* %4
%19 = or i32 %18, %17
store i32 %19, i32* %4
br label %20
20: ; preds = %9
%21 = load i32, i32* %5
%22 = sub nsw i32 %21, 6
store i32 %22, i32* %5
br label %6
23: ; preds = %6
%24 = load i32, i32* %4
ret i32 %24
}

LLVM IR (-O2):
define i32 @t2uprot(i32 %0) {
%2 = lshr i32 %0, 9
%3 = lshr i32 %0, 12
%4 = and i32 %3, 56
%5 = and i32 %2, 7
%6 = or i32 %5, %4
%7 = shl nuw nsw i32 %6, 3
%8 = lshr i32 %0, 3
%9 = and i32 %8, 7
%10 = or i32 %9, %7
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void grpcsharp_batch_context_recv_message_length() {
  fprintf(stderr, "Should never reach here");
  abort();
}


x86 assembly (clang, -O0):
<grpcsharp_batch_context_recv_message_length>:
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_batch_context_recv_message_length>:
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_batch_context_recv_message_length() {
%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_batch_context_recv_message_length() {
%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 */
struct ll {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ EFAULT;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ lldel(struct ll *);
int /*<<< orphan*/ lllen(struct ll *);
void llclean(struct ll *p) {
  if (!p)
    exit(EFAULT);
  if (!lllen(p))
    return;
  lldel(p);
  llclean(p);
}


x86 assembly (clang, -O0):
<llclean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1165 <llclean+0x25>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
mov    -0x8(%rbp),%rdi
call   1040 <lllen@plt>
cmp    $0x0,%eax
jne    117c <llclean+0x3c>
jmp    118e <llclean+0x4e>
mov    -0x8(%rbp),%rdi
call   1050 <lldel@plt>
mov    -0x8(%rbp),%rdi
call   1030 <llclean@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<llclean>:
push   %rbx
test   %rdi,%rdi
je     1158 <llclean+0x28>
mov    %rdi,%rbx
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <lllen@plt>
test   %eax,%eax
je     1156 <llclean+0x26>
mov    %rbx,%rdi
call   1040 <lldel@plt>
jmp    1140 <llclean+0x10>
pop    %rbx
ret
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
%struct.ll = type { i32 }
@EFAULT = global i32 0
define void @llclean(%struct.ll* %0) {
%2 = alloca %struct.ll*
store %struct.ll* %0, %struct.ll** %2
%3 = load %struct.ll*, %struct.ll** %2
%4 = icmp ne %struct.ll* %3, null
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, i32* @EFAULT
%7 = call i32 @exit(i32 %6)
unreachable
8: ; preds = %1
%9 = load %struct.ll*, %struct.ll** %2
%10 = call i32 @lllen(%struct.ll* %9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
br label %17
13: ; preds = %8
%14 = load %struct.ll*, %struct.ll** %2
%15 = call i32 @lldel(%struct.ll* %14)
%16 = load %struct.ll*, %struct.ll** %2
br label %17
17: ; preds = %13, %12
ret void
}

LLVM IR (-O2):
%struct.ll = type { i32 }
@EFAULT = global i32 0
define void @llclean(%struct.ll* %0) {
%2 = icmp eq %struct.ll* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = tail call i32 @lllen(%struct.ll* %0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %13, label %9
6: ; preds = %1
%7 = load i32, i32* @EFAULT
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %3, %9
%10 = tail call i32 @lldel(%struct.ll* %0)
%11 = tail call i32 @lllen(%struct.ll* %0)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %9
13: ; preds = %9, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Test PASSED\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"Test PASSED\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [12 x i8] c"Test PASSED\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void do_fld1(void *p) {
  asm __volatile__("fninit");
  asm __volatile__("fld1");
  asm __volatile__("fstpl (%0)" : : "r"(p) : "memory");
}


x86 assembly (clang, -O0):
<do_fld1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
fninit
fld1
mov    -0x8(%rbp),%rax
fstpl  (%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_fld1>:
fninit
fld1
fstpl  (%rdi)
ret

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

LLVM IR (-O2):
define void @do_fld1(i8* %0) {
tail call void asm sideeffect "fninit", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect "fld1", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect "fstpl ($0)", "r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ ft_strncmp(char const *, char const *, size_t);
int ft_strnequ(const char *s1, const char *s2, size_t n) {
  if (ft_strncmp(s1, s2, n) == 0)
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<ft_strnequ>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <ft_strncmp@plt>
cmp    $0x0,%rax
jne    114b <ft_strnequ+0x3b>
movl   $0x1,-0x4(%rbp)
jmp    1152 <ft_strnequ+0x42>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_strnequ>:
push   %rax
call   1030 <ft_strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @ft_strnequ(i8* %0, i8* %1, i64 %2) {
%4 = tail call i64 @ft_strncmp(i8* %0, i8* %1, i64 %2)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void PutCopyBond(FILE *f) { fprintf(f, "ITEM: COPYBONDS\n"); }


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

x86 assembly (clang, -O2):
<PutCopyBond>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
jmp    1030 <fwrite@plt>

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

LLVM IR (-O2):
@.str = [17 x i8] c"ITEM: COPYBONDS\0A\00"
define void @PutCopyBond(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i64 16, i64 1, i32* %0)
ret void
}
double DenseSize(int n, double sum_nw) {
  return (sum_nw * 8 + n * 8) / 1024.;
  ;
}


x86 assembly (clang, -O0):
<DenseSize>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
cvtsi2sd %eax,%xmm1
movsd  0xee5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xecd(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<DenseSize>:
shl    $0x3,%edi
cvtsi2sd %edi,%xmm1
mulsd  0xef1(%rip),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xeed(%rip),%xmm0
ret

LLVM IR (-O0):
define double @DenseSize(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
store i32 %0, i32* %3
store double %1, double* %4
%5 = load double, double* %4
%6 = load i32, i32* %3
%7 = mul nsw i32 %6, 8
%8 = sitofp i32 %7 to double
%9 = call double @llvm.fmuladd.f64(double %5, double 8.000000e+00, double %8)
%10 = fdiv double %9, 1.024000e+03
ret double %10
}

LLVM IR (-O2):
define double @DenseSize(i32 %0, double %1) {
%3 = shl nsw i32 %0, 3
%4 = sitofp i32 %3 to double
%5 = tail call double @llvm.fmuladd.f64(double %1, double 8.000000e+00, double %4)
%6 = fmul double %5, 0x3F50000000000000
ret double %6
}
/* Variables and functions */
int syscall(int, int volatile *, int, int, void *);
int __futex(volatile int *addr, int op, int val, void *ts) {
  return syscall(240, addr, op, val, ts);
}


x86 assembly (clang, -O0):
<__futex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    $0xf0,%edi
call   1030 <syscall@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__futex>:
mov    %rcx,%r8
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0xf0,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i32 @__futex(i32* %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
store i32* %0, i32** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i32*, i32** %5
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = load i8*, i8** %8
%13 = call i32 @syscall(i32 240, i32* %9, i32 %10, i32 %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @__futex(i32* %0, i32 %1, i32 %2, i8* %3) {
%5 = tail call i32 @syscall(i32 240, i32* %0, i32 %1, i32 %2, i8* %3)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ ezdWaitForKeyPress();
void viewWindow() { ezdWaitForKeyPress(); }


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

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

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

LLVM IR (-O2):
define void @viewWindow() {
%1 = tail call i32 (...) @ezdWaitForKeyPress()
ret void
}
float inv_q30_to_float(long q30) { return (float)q30 / ((float)(1L << 30)); }


x86 assembly (clang, -O0):
<inv_q30_to_float>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cvtsi2ssq -0x8(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<inv_q30_to_float>:
cvtsi2ss %rdi,%xmm0
mulss  0xef3(%rip),%xmm0
ret

LLVM IR (-O0):
define float @inv_q30_to_float(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = sitofp i64 %3 to float
%5 = fdiv float %4, 0x41D0000000000000
ret float %5
}

LLVM IR (-O2):
define float @inv_q30_to_float(i64 %0) {
%2 = sitofp i64 %0 to float
%3 = fmul float %2, 0x3E10000000000000
ret float %3
}