xunge/DecIR huggingface dataset:
void transfer_RGB888_to_BGR888(unsigned char *(*output), unsigned char *input) {
  *(*output)++ = input[2];
  *(*output)++ = input[1];
  *(*output)++ = input[0];
}


x86 assembly (clang, -O0):
<transfer_RGB888_to_BGR888>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x8(%rbp),%rdx
mov    (%rdx),%rax
mov    %rax,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0x8(%rbp),%rdx
mov    (%rdx),%rax
mov    %rax,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x8(%rbp),%rdx
mov    (%rdx),%rax
mov    %rax,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<transfer_RGB888_to_BGR888>:
mov    0x2(%rsi),%al
mov    (%rdi),%rcx
lea    0x1(%rcx),%rdx
mov    %rdx,(%rdi)
mov    %al,(%rcx)
mov    0x1(%rsi),%al
mov    (%rdi),%rcx
lea    0x1(%rcx),%rdx
mov    %rdx,(%rdi)
mov    %al,(%rcx)
mov    (%rsi),%al
mov    (%rdi),%rcx
lea    0x1(%rcx),%rdx
mov    %rdx,(%rdi)
mov    %al,(%rcx)
ret

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

LLVM IR (-O2):
define void @transfer_RGB888_to_BGR888(i8** nocapture %0, i8* nocapture %1) {
%3 = getelementptr inbounds i8, i8* %1, i64 2
%4 = load i8, i8* %3
%5 = load i8*, i8** %0
%6 = getelementptr inbounds i8, i8* %5, i64 1
store i8* %6, i8** %0
store i8 %4, i8* %5
%7 = getelementptr inbounds i8, i8* %1, i64 1
%8 = load i8, i8* %7
%9 = load i8*, i8** %0
%10 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %10, i8** %0
store i8 %8, i8* %9
%11 = load i8, i8* %1
%12 = load i8*, i8** %0
%13 = getelementptr inbounds i8, i8* %12, i64 1
store i8* %13, i8** %0
store i8 %11, i8* %12
ret void
}
void IRC_OnChannelOwner(const struct instance_data *pID,
                        const struct userinfo *pUI, const char *szChannel,
                        const char *szTargetNick) {}


x86 assembly (clang, -O0):
<IRC_OnChannelOwner>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.instance_data = type opaque
%struct.userinfo = type opaque
define void @IRC_OnChannelOwner(%struct.instance_data* %0, %struct.userinfo* %1, i8* %2, i8* %3) {
%5 = alloca %struct.instance_data*
%6 = alloca %struct.userinfo*
%7 = alloca i8*
%8 = alloca i8*
store %struct.instance_data* %0, %struct.instance_data** %5
store %struct.userinfo* %1, %struct.userinfo** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
ret void
}

LLVM IR (-O2):
%struct.instance_data = type opaque
%struct.userinfo = type opaque
define void @IRC_OnChannelOwner(%struct.instance_data* nocapture %0, %struct.userinfo* nocapture %1, i8* nocapture %2, i8* nocapture %3) {
ret void
}
int test_imm_CAint64_highword_mem(long long *val) {
  return ((*val >> 32) & (0xCA << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_CAint64_highword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
sar    $0x20,%rdx
and    $0xca,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @test_imm_CAint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 867583393792
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
const char *mz_version(void) { return "10.2.0"; }


x86 assembly (clang, -O0):
<mz_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mz_version>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"10.2.0\00"
define i8* @mz_version() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [7 x i8] c"10.2.0\00"
define i8* @mz_version() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ foo2(int);
int main() { foo2(2); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
call   1030 <foo2@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @foo2(i32 2)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @foo2(i32 2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *);
void terminate(const char *msg) {
  printf("%s\n", msg);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<terminate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<terminate>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@EXIT_FAILURE = global i32 0
define void @terminate(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
scalar_t__ irmo_string_nocase_compare(char *, char *);
int irmo_string_nocase_equal(void *string1, void *string2) {
  return irmo_string_nocase_compare((char *)string1, (char *)string2) == 0;
}


x86 assembly (clang, -O0):
<irmo_string_nocase_equal>:
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 <irmo_string_nocase_compare@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @irmo_string_nocase_equal(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 i64 @irmo_string_nocase_compare(i8* %5, i8* %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @irmo_string_nocase_equal(i8* %0, i8* %1) {
%3 = tail call i64 @irmo_string_nocase_compare(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/
UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs(void *,
                                                                   char *);
int /*<<< orphan*/ printf(char *);
void UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs(
    void *upnptoken) {
  printf("Invoke: "
         "UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs();\r\n");
  UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs(
      upnptoken, "Sample String");
}


x86 assembly (clang, -O0):
<UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf04(%rip),%rsi
call   1040 <UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs>:
push   %rbx
mov    %rdi,%rbx
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"Invoke: UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs();\0D\0A\00"
@.str.1 = [14 x i8] c"Sample String\00"
define void @UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"Sample String\00"
@str = [70 x i8] c"Invoke: UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs();\0D\00"
define void @UpnpMediaServer_ConnectionManager_GetCurrentConnectionIDs(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @UpnpResponse_MediaServer_ConnectionManager_GetCurrentConnectionIDs(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned char cast_ushort_uchar(unsigned short int x) {
  return (unsigned char)x;
}


x86 assembly (clang, -O0):
<cast_ushort_uchar>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%ax
movzbl %al,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define zeroext i8 @cast_ushort_uchar(i16 zeroext %0) {
%2 = trunc i16 %0 to i8
ret i8 %2
}
/* Type definitions */
struct proxyy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct proxyy *);
void free_proxy(struct proxyy *proxy) { free(proxy); }


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

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

LLVM IR (-O2):
%struct.proxyy = type { i32 }
define void @free_proxy(%struct.proxyy* nocapture %0) {
%2 = tail call i32 @free(%struct.proxyy* %0)
ret void
}
adrreg0adr1(r0, r1, x0, x1, p0, p1) int r0, r1;
int *p0, *p1;
{
  if ((p0[10000000]) <= (*((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
jg     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
setle  %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 sle 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 sle i32 %8, %9
%11 = zext i1 %10 to i32
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ putchar(int);
void filecopy(FILE *fp) {
  register int c;
  while ((c = getc(fp)) != EOF)
    putchar(c);
}


x86 assembly (clang, -O0):
<filecopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    %eax,-0xc(%rbp)
mov    0x2ea9(%rip),%rcx
cmp    (%rcx),%eax
je     1154 <filecopy+0x34>
mov    -0xc(%rbp),%edi
call   1030 <putchar@plt>
jmp    112c <filecopy+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<filecopy>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <getc@plt>
mov    0x2eb5(%rip),%r14
cmp    (%r14),%eax
je     1154 <filecopy+0x34>
nopl   0x0(%rax,%rax,1)
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
cmp    (%r14),%eax
jne    1140 <filecopy+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@EOF = global i32 0
define void @filecopy(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
br label %4
4: ; preds = %9, %1
%5 = load i32*, i32** %2
%6 = call i32 @getc(i32* %5)
store i32 %6, i32* %3
%7 = load i32, i32* @EOF
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, i32* %3
%11 = call i32 @putchar(i32 %10)
br label %4
12: ; preds = %4
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
define void @filecopy(i32* nocapture %0) {
%2 = tail call i32 @getc(i32* %0)
%3 = load i32, i32* @EOF
%4 = icmp eq i32 %2, %3
br i1 %4, label %11, label %5
5: ; preds = %1, %5
%6 = phi i32 [ %8, %5 ], [ %2, %1 ]
%7 = tail call i32 @putchar(i32 %6)
%8 = tail call i32 @getc(i32* %0)
%9 = load i32, i32* @EOF
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %5
11: ; preds = %5, %1
ret void
}
int test_imm_00uint8_mem(unsigned char *val) {
  return ((*val) & (0x00 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
mov    $0xffffffd8,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_00uint8_mem(i8* nocapture readnone %0) {
ret i32 -40
}
unsigned int bcm2835_version(void) { return 10066; }


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

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

LLVM IR (-O0):
define i32 @bcm2835_version() {
ret i32 10066
}

LLVM IR (-O2):
define i32 @bcm2835_version() {
ret i32 10066
}
void pari_err_PREC() {}


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

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

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

LLVM IR (-O2):
define void @pari_err_PREC() {
ret void
}
/* Type definitions */
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int apc_nothing(void *cls, const struct sockaddr *addr, socklen_t addrlen) {
  (void)cls;
  (void)addr;
  (void)addrlen;
  return 0;
}


x86 assembly (clang, -O0):
<apc_nothing>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
%struct.sockaddr = type { i32 }
define i32 @apc_nothing(i8* nocapture readnone %0, %struct.sockaddr* nocapture readnone %1, i32 %2) {
ret i32 0
}
/* Variables and functions */
double acos(double);
double Dacos(double x) { return acos(x); }


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

x86 assembly (clang, -O2):
<Dacos>:
jmp    1030 <acos@plt>

LLVM IR (-O0):
define double @Dacos(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @acos(double %3)
ret double %4
}

LLVM IR (-O2):
define double @Dacos(double %0) {
%2 = tail call double @acos(double %0)
ret double %2
}
void AUTHORITY_KEYID_new(void) {}


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

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

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

LLVM IR (-O2):
define void @AUTHORITY_KEYID_new() {
ret void
}
/* Type definitions */
struct wpa_ctrl {
  int dummy;
};

/* Variables and functions */
int wpa_ctrl_command(struct wpa_ctrl *, char *);
int wpa_cli_cmd_reconnect(struct wpa_ctrl *ctrl, int argc, const char *argv[]) {
  return wpa_ctrl_command(ctrl, "RECONNECT");
}


x86 assembly (clang, -O0):
<wpa_cli_cmd_reconnect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed2(%rip),%rsi
call   1030 <wpa_ctrl_command@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wpa_cli_cmd_reconnect>:
lea    0xee9(%rip),%rsi
jmp    1030 <wpa_ctrl_command@plt>

LLVM IR (-O0):
%struct.wpa_ctrl = type { i32 }
@.str = [10 x i8] c"RECONNECT\00"
define i32 @wpa_cli_cmd_reconnect(%struct.wpa_ctrl* %0, i32 %1, i8** %2) {
%4 = alloca %struct.wpa_ctrl*
%5 = alloca i32
%6 = alloca i8**
store %struct.wpa_ctrl* %0, %struct.wpa_ctrl** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%7 = load %struct.wpa_ctrl*, %struct.wpa_ctrl** %4
%8 = call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 %8
}

LLVM IR (-O2):
%struct.wpa_ctrl = type { i32 }
@.str = [10 x i8] c"RECONNECT\00"
define i32 @wpa_cli_cmd_reconnect(%struct.wpa_ctrl* %0, i32 %1, i8** nocapture readnone %2) {
%4 = tail call i32 @wpa_ctrl_command(%struct.wpa_ctrl* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ find_insn(unsigned char *);
int is_known_insn(unsigned char *code) { return !!find_insn(code); }


x86 assembly (clang, -O0):
<is_known_insn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <find_insn@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @is_known_insn(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @find_insn(i8* %3)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = xor i1 %6, true
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @is_known_insn(i8* %0) {
%2 = tail call i32 @find_insn(i8* %0)
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
int fn2(int n) { return (1 & (1 << n)) != 0; }


x86 assembly (clang, -O0):
<fn2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn2>:
xor    %eax,%eax
test   %edi,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @fn2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = shl i32 1, %3
%5 = and i32 1, %4
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @fn2(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
scalar_t__ __infer_nondet_int();
int /*<<< orphan*/ exit(int);
void FN_loop_once_exit_bad() {
  while (__infer_nondet_int()) {
    exit(2);
  }
}


x86 assembly (clang, -O0):
<FN_loop_once_exit_bad>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <FN_loop_once_exit_bad+0x9>
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
cmp    $0x0,%rax
je     1144 <FN_loop_once_exit_bad+0x24>
mov    $0x2,%edi
call   1040 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<FN_loop_once_exit_bad>:
push   %rax
xor    %eax,%eax
call   1030 <__infer_nondet_int@plt>
test   %rax,%rax
jne    112f <FN_loop_once_exit_bad+0xf>
pop    %rax
ret
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @FN_loop_once_exit_bad() {
br label %1
1: ; preds = %0
%2 = call i64 (...) @__infer_nondet_int()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = call i32 @exit(i32 2)
unreachable
6: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @FN_loop_once_exit_bad() {
%1 = tail call i64 (...) @__infer_nondet_int()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @exit(i32 2)
unreachable
5: ; preds = %0
ret void
}
void XListProperties() {}


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

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

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

LLVM IR (-O2):
define void @XListProperties() {
ret void
}
/* Variables and functions */
int flash_image(void *, unsigned int, char *);
int flash_splashscreen_image1(void *data, unsigned sz) {
  return flash_image(data, sz, "splashscreen");
}


x86 assembly (clang, -O0):
<flash_splashscreen_image1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
lea    0xed3(%rip),%rdx
call   1030 <flash_image@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<flash_splashscreen_image1>:
lea    0xee9(%rip),%rdx
jmp    1030 <flash_image@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"splashscreen\00"
define i32 @flash_splashscreen_image1(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i32 @flash_image(i8* %5, i32 %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 %7
}

LLVM IR (-O2):
@.str = [13 x i8] c"splashscreen\00"
define i32 @flash_splashscreen_image1(i8* %0, i32 %1) {
%3 = tail call i32 @flash_image(i8* %0, i32 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 %3
}
/* Variables and functions */
int read(int /*<<< orphan*/, char *, int);
int console_read(char *buf, int count) {
  int result;
  result = read(0, buf, count);
  return result;
}


x86 assembly (clang, -O0):
<console_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
xor    %edi,%edi
call   1030 <read@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<console_read>:
mov    %esi,%edx
mov    %rdi,%rsi
xor    %edi,%edi
jmp    1030 <read@plt>

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

LLVM IR (-O2):
define i32 @console_read(i8* nocapture %0, i32 %1) {
%3 = tail call i32 @read(i32 0, i8* %0, i32 %1)
ret i32 %3
}
void radio_df_ant_switch_pattern_clear(void) {}


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

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

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

LLVM IR (-O2):
define void @radio_df_ant_switch_pattern_clear() {
ret void
}
void fc163(int n) {
  {
    typedef int(*b)[n];
    {
      typedef int(*c)[n];
      0;
    }
    {
      typedef int(*d)[n];
      0;
    };
    typedef int(*e)[n];
    0;
  };
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      goto a;
      0;
    };
  a : {
    typedef int(*h)[n];
    0;
  };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


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

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

LLVM IR (-O0):
define void @fc163(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = zext i32 %3 to i64
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
%7 = load i32, i32* %2
%8 = zext i32 %7 to i64
%9 = load i32, i32* %2
%10 = zext i32 %9 to i64
%11 = load i32, i32* %2
%12 = zext i32 %11 to i64
%13 = load i32, i32* %2
%14 = zext i32 %13 to i64
br label %15
15: ; preds = %1
%16 = load i32, i32* %2
%17 = zext i32 %16 to i64
%18 = load i32, i32* %2
%19 = zext i32 %18 to i64
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
ret void
}

LLVM IR (-O2):
define void @fc163(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ report(char const *, char const *, long);
void pubnub_assert_handler_abort(char const *s, char const *file, long line) {
  report(s, file, line);
  abort();
}


x86 assembly (clang, -O0):
<pubnub_assert_handler_abort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <report@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<pubnub_assert_handler_abort>:
push   %rax
call   1040 <report@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @pubnub_assert_handler_abort(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i32 @report(i8* %7, i8* %8, i64 %9)
%11 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @pubnub_assert_handler_abort(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 @report(i8* %0, i8* %1, i64 %2)
%5 = tail call i32 (...) @abort()
unreachable
}
unsigned long get_current_timestamp(void) { return 0; }


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

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

LLVM IR (-O0):
define i64 @get_current_timestamp() {
ret i64 0
}

LLVM IR (-O2):
define i64 @get_current_timestamp() {
ret i64 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
void abend(char *pnam, char *ers, int ern) {
  fprintf(stderr, "%s: Error %s. (%d)\n", pnam, ers, ern);
  perror("Aborting");
  exit(ern);
}


x86 assembly (clang, -O0):
<abend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%r8d
lea    0xea1(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xea9(%rip),%rdi
call   1040 <perror@plt>
mov    -0x14(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<abend>:
push   %rbx
mov    %edx,%ebx
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
mov    %ebx,%r8d
call   1030 <fprintf@plt>
lea    0xebc(%rip),%rdi
call   1040 <perror@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"%s: Error %s. (%d)\0A\00"
@.str.1 = [9 x i8] c"Aborting\00"
define void @abend(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9, i32 %10)
%12 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* %6
%14 = call i32 @exit(i32 %13)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"%s: Error %s. (%d)\0A\00"
@.str.1 = [9 x i8] c"Aborting\00"
define void @abend(i8* %0, i8* %1, i32 %2) {
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i32 %2)
%6 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @exit(i32 %2)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ alien_offset(int /*<<< orphan*/);
int /*<<< orphan*/ dpeek();
int /*<<< orphan*/ drepl(int /*<<< orphan*/);
int /*<<< orphan*/ from_u32_string(int /*<<< orphan*/);
int /*<<< orphan*/ tag_object(int /*<<< orphan*/);
void primitive_alien_to_u32_string_impl(void) {
  drepl(tag_object(from_u32_string(alien_offset(dpeek()))));
}


x86 assembly (clang, -O0):
<primitive_alien_to_u32_string_impl>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <dpeek@plt>
mov    %eax,%edi
call   1070 <alien_offset@plt>
mov    %eax,%edi
call   1050 <from_u32_string@plt>
mov    %eax,%edi
call   1040 <tag_object@plt>
mov    %eax,%edi
call   1060 <drepl@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<primitive_alien_to_u32_string_impl>:
push   %rax
xor    %eax,%eax
call   1030 <dpeek@plt>
mov    %eax,%edi
call   1070 <alien_offset@plt>
mov    %eax,%edi
call   1050 <from_u32_string@plt>
mov    %eax,%edi
call   1040 <tag_object@plt>
mov    %eax,%edi
pop    %rax
jmp    1060 <drepl@plt>

LLVM IR (-O0):
define void @primitive_alien_to_u32_string_impl() {
%1 = call i32 (...) @dpeek()
%2 = call i32 @alien_offset(i32 %1)
%3 = call i32 @from_u32_string(i32 %2)
%4 = call i32 @tag_object(i32 %3)
%5 = call i32 @drepl(i32 %4)
ret void
}

LLVM IR (-O2):
define void @primitive_alien_to_u32_string_impl() {
%1 = tail call i32 (...) @dpeek()
%2 = tail call i32 @alien_offset(i32 %1)
%3 = tail call i32 @from_u32_string(i32 %2)
%4 = tail call i32 @tag_object(i32 %3)
%5 = tail call i32 @drepl(i32 %4)
ret void
}
/* Variables and functions */
scalar_t__ INT_MIN;
unsigned int test4u(unsigned int x) {
  return (x ^ 0x1234) + (unsigned int)INT_MIN;
}


x86 assembly (clang, -O0):
<test4u>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
xor    $0x1234,%eax
mov    0x2ed2(%rip),%rcx
mov    (%rcx),%rcx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test4u>:
mov    %edi,%eax
xor    $0x1234,%eax
mov    0x2eda(%rip),%rcx
add    (%rcx),%eax
ret

LLVM IR (-O0):
@INT_MIN = global i64 0
define i32 @test4u(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = xor i32 %3, 4660
%5 = load i64, i64* @INT_MIN
%6 = trunc i64 %5 to i32
%7 = add i32 %4, %6
ret i32 %7
}

LLVM IR (-O2):
@INT_MIN = global i64 0
define i32 @test4u(i32 %0) {
%2 = xor i32 %0, 4660
%3 = load i64, i64* @INT_MIN
%4 = trunc i64 %3 to i32
%5 = add i32 %2, %4
ret i32 %5
}
/* Type definitions */
struct ndm_strmap_t {
  int dummy;
};

/* Variables and functions */
int ndm_strmap_nhas(struct ndm_strmap_t *, char const *const,
                    int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *const);
bool ndm_strmap_has(struct ndm_strmap_t *map, const char *const key) {
  return ndm_strmap_nhas(map, key, strlen(key));
}


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

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

LLVM IR (-O0):
%struct.ndm_strmap_t = type { i32 }
define i32 @ndm_strmap_has(%struct.ndm_strmap_t* %0, i8* %1) {
%3 = alloca %struct.ndm_strmap_t*
%4 = alloca i8*
store %struct.ndm_strmap_t* %0, %struct.ndm_strmap_t** %3
store i8* %1, i8** %4
%5 = load %struct.ndm_strmap_t*, %struct.ndm_strmap_t** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @ndm_strmap_nhas(%struct.ndm_strmap_t* %5, i8* %6, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.ndm_strmap_t = type { i32 }
define i32 @ndm_strmap_has(%struct.ndm_strmap_t* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @ndm_strmap_nhas(%struct.ndm_strmap_t* %0, i8* %1, i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ clear_stdin();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, unsigned int *);
int /*<<< orphan*/ stdout;
unsigned int get_unum(void) {
  unsigned int res = 0;
  fflush(stdout);
  scanf("%u", &res);
  clear_stdin();
  return res;
}


x86 assembly (clang, -O0):
<get_unum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeac(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1050 <scanf@plt>
mov    $0x0,%al
call   1030 <clear_stdin@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_unum>:
push   %rax
movl   $0x0,0x4(%rsp)
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeb2(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
xor    %eax,%eax
call   1030 <clear_stdin@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [3 x i8] c"%u\00"
define i32 @get_unum() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @stdout
%3 = call i32 @fflush(i32 %2)
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = call i32 (...) @clear_stdin()
%6 = load i32, i32* %1
ret i32 %6
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [3 x i8] c"%u\00"
define i32 @get_unum() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 (...) @clear_stdin()
%7 = load i32, i32* %1
ret i32 %7
}
unsigned short encode_hires_altitude(float alt) {
  alt *= 100;
  if (alt > 65535.0)
    return 65535U;
  if (alt < 0)
    return 0;
  else
    return (unsigned short)alt;
}


x86 assembly (clang, -O0):
<encode_hires_altitude>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  0xef7(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xed4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1141 <encode_hires_altitude+0x41>
movw   $0xffff,-0x2(%rbp)
jmp    1162 <encode_hires_altitude+0x62>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1159 <encode_hires_altitude+0x59>
movw   $0x0,-0x2(%rbp)
jmp    1162 <encode_hires_altitude+0x62>
cvttss2si -0x8(%rbp),%eax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<encode_hires_altitude>:
mulss  0xef8(%rip),%xmm0
mov    $0xffff,%ax
ucomiss 0xef1(%rip),%xmm0
ja     1124 <encode_hires_altitude+0x24>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1120 <encode_hires_altitude+0x20>
xor    %eax,%eax
ret
cvttss2si %xmm0,%eax
ret

LLVM IR (-O0):
define zeroext i16 @encode_hires_altitude(float %0) {
%2 = alloca i16
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fmul float %4, 1.000000e+02
store float %5, float* %3
%6 = load float, float* %3
%7 = fpext float %6 to double
%8 = fcmp ogt double %7, 6.553500e+04
br i1 %8, label %9, label %10
9: ; preds = %1
store i16 -1, i16* %2
br label %17
10: ; preds = %1
%11 = load float, float* %3
%12 = fcmp olt float %11, 0.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %10
store i16 0, i16* %2
br label %17
14: ; preds = %10
%15 = load float, float* %3
%16 = fptoui float %15 to i16
store i16 %16, i16* %2
br label %17
17: ; preds = %14, %13, %9
%18 = load i16, i16* %2
ret i16 %18
}

LLVM IR (-O2):
define zeroext i16 @encode_hires_altitude(float %0) {
%2 = fmul float %0, 1.000000e+02
%3 = fcmp ogt float %2, 6.553500e+04
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = fcmp olt float %2, 0.000000e+00
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = fptoui float %2 to i16
br label %8
8: ; preds = %4, %1, %6
%9 = phi i16 [ %7, %6 ], [ -1, %1 ], [ 0, %4 ]
ret i16 %9
}
unsigned int GetU16(unsigned char *pSource) {
  unsigned int a, b;
  a = pSource[0];
  b = pSource[1];
  return a | (b << 8);
}


x86 assembly (clang, -O0):
<GetU16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x10(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetU16>:
movzwl (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @GetU16(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i64 0
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
store i32 %8, i32* %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
store i32 %12, i32* %4
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = shl i32 %14, 8
%16 = or i32 %13, %15
ret i32 %16
}

LLVM IR (-O2):
define i32 @GetU16(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = zext i8 %2 to i32
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = shl nuw nsw i32 %6, 8
%8 = or i32 %7, %3
ret i32 %8
}
/* Type definitions */
typedef scalar_t__ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *gmtime(scalar_t__ *);
scalar_t__ const timezone;
int /*<<< orphan*/ tzset();
struct tm *localtime(const time_t *time) {
  tzset();
  time_t local = *time - timezone;
  return gmtime(&local);
}


x86 assembly (clang, -O0):
<localtime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <tzset@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    0x2e9f(%rip),%rcx
sub    (%rcx),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
call   1040 <gmtime@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<localtime>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <tzset@plt>
mov    (%rbx),%rax
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1040 <gmtime@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@timezone = constant i64 0
define %struct.tm* @localtime(i64* %0) {
%2 = alloca i64*
%3 = alloca i64
store i64* %0, i64** %2
%4 = call i32 (...) @tzset()
%5 = load i64*, i64** %2
%6 = load i64, i64* %5
%7 = load i64, i64* @timezone
%8 = sub nsw i64 %6, %7
store i64 %8, i64* %3
%9 = call %struct.tm* @gmtime(i64* %3)
ret %struct.tm* %9
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@timezone = constant i64 0
define %struct.tm* @localtime(i64* nocapture %0) {
%2 = alloca i64
%3 = tail call i32 (...) @tzset()
%4 = bitcast i64* %2 to i8*
%5 = load i64, i64* %0
store i64 %5, i64* %2
%6 = call %struct.tm* @gmtime(i64* %2)
ret %struct.tm* %6
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
size_t strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void cur_date_str(char *date_str, int s_sz, char *fmt) {
  struct tm *tm;
  time_t current_time;
  size_t sz;
  *date_str = '\0';
  current_time = time(NULL);
  tm = localtime(&current_time);
  sz = strftime(date_str, s_sz, fmt, tm);
  return;
}


x86 assembly (clang, -O0):
<cur_date_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,-0x24(%rbp)
lea    -0x24(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1050 <strftime@plt>
mov    %rax,-0x30(%rbp)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cur_date_str>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
movb   $0x0,(%rdi)
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14,%rdx
mov    %rax,%rcx
call   1050 <strftime@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
define void @cur_date_str(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca %struct.tm*
%8 = alloca i32
%9 = alloca i64
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%10 = load i8*, i8** %4
store i8 0, i8* %10
%11 = call i32 @time(i32* null)
store i32 %11, i32* %8
%12 = call %struct.tm* @localtime(i32* %8)
store %struct.tm* %12, %struct.tm** %7
%13 = load i8*, i8** %4
%14 = load i32, i32* %5
%15 = load i8*, i8** %6
%16 = load %struct.tm*, %struct.tm** %7
%17 = call i64 @strftime(i8* %13, i32 %14, i8* %15, %struct.tm* %16)
store i64 %17, i64* %9
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
define void @cur_date_str(i8* %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
store i8 0, i8* %0
%6 = tail call i32 @time(i32* null)
store i32 %6, i32* %4
%7 = call %struct.tm* @localtime(i32* %4)
%8 = call i64 @strftime(i8* %0, i32 %1, i8* %2, %struct.tm* %7)
ret void
}
unsigned xrop3_53_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = D ^ S;
  stk3 = ~stk3;
  stk2 = T | stk3;
  stk1 = S ^ stk2;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_53_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_53_0_0>:
mov    %edi,%ecx
shl    $0x8,%ecx
or     %edi,%ecx
mov    %esi,%edx
shl    $0x8,%edx
or     %esi,%edx
mov    %ecx,%eax
xor    $0xffffff00,%eax
or     %edx,%eax
xor    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_53_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %5
%24 = load i32, i32* %6
%25 = xor i32 %23, %24
store i32 %25, i32* %10
%26 = load i32, i32* %10
%27 = xor i32 %26, -1
store i32 %27, i32* %10
%28 = load i32, i32* %7
%29 = load i32, i32* %10
%30 = or i32 %28, %29
store i32 %30, i32* %9
%31 = load i32, i32* %6
%32 = load i32, i32* %9
%33 = xor i32 %31, %32
store i32 %33, i32* %8
%34 = load i32, i32* %8
ret i32 %34
}

LLVM IR (-O2):
define i32 @xrop3_53_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = xor i32 %4, -256
%8 = or i32 %6, %7
%9 = xor i32 %8, %4
ret i32 %9
}
void *PerfxAtomicPtr_Get(void **ptr) {
  __sync_synchronize();
  return (void *)*ptr;
}


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

x86 assembly (clang, -O2):
<PerfxAtomicPtr_Get>:
mfence
mov    (%rdi),%rax
ret

LLVM IR (-O0):
define i8* @PerfxAtomicPtr_Get(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
fence seq_cst
%3 = load i8**, i8*** %2
%4 = load i8*, i8** %3
ret i8* %4
}

LLVM IR (-O2):
define i8* @PerfxAtomicPtr_Get(i8** nocapture %0) {
fence seq_cst
%2 = load i8*, i8** %0
ret i8* %2
}
void test84_MPT2_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @test84_MPT2_targetInit__I() {
ret void
}