xunge/DecIR huggingface dataset:
int open(const char *pathname, int flags, ...) {
  char i = *pathname;
  return 0;
}


x86 assembly (clang, -O0):
<open>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    %al,-0xd(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @open(i8* nocapture readnone %0, i32 %1, ...) {
ret i32 0
}
int test_imm_F2int64_lowword_mem(long long *val) {
  return ((*val) & (0xF2 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_F2int64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 242
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ ArgItem();
int /*<<< orphan*/ ArgNum();
void Act_RopeNext(void) {
  ArgItem();
  ArgNum();
}


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

x86 assembly (clang, -O2):
<Act_RopeNext>:
push   %rax
xor    %eax,%eax
call   1040 <ArgItem@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <ArgNum@plt>

LLVM IR (-O0):
define void @Act_RopeNext() {
%1 = call i32 (...) @ArgItem()
%2 = call i32 (...) @ArgNum()
ret void
}

LLVM IR (-O2):
define void @Act_RopeNext() {
%1 = tail call i32 (...) @ArgItem()
%2 = tail call i32 (...) @ArgNum()
ret void
}
void EC_GF2m_simple_method(void) {}


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

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

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

LLVM IR (-O2):
define void @EC_GF2m_simple_method() {
ret void
}
/* Variables and functions */
char const *version_get_version();
const char *plugin_api_info_version_cb(const void *pointer, void *data,
                                       const char *info_name,
                                       const char *arguments) {
  (void)pointer;
  (void)data;
  (void)info_name;
  (void)arguments;
  return version_get_version();
}


x86 assembly (clang, -O0):
<plugin_api_info_version_cb>:
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    $0x0,%al
call   1030 <version_get_version@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i8* @plugin_api_info_version_cb(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
%5 = tail call i8* (...) @version_get_version()
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x3d() {
  Assert_real((isbdigit(61) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              310, ("isbdigit should be 0 for ="));
}


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

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

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

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [27 x i8] c"isbdigit should be 0 for =\00"
define void @t_isbdigit_0x3d() {
%1 = tail call i64 @isbdigit(i32 61)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 310, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int noise(int x) {
  x = (x << 13) ^ x;
  return 1.0 - ((x * (x * x * 15731 + 789221) + 1376312589) & 0x7fffffff) /
                   1073741824.0;
}


x86 assembly (clang, -O0):
<noise>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0xd,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
imul   -0x4(%rbp),%ecx
imul   $0x3d73,%ecx,%ecx
add    $0xc0ae5,%ecx
imul   %ecx,%eax
add    $0x5208dd0d,%eax
and    $0x7fffffff,%eax
cvtsi2sd %eax,%xmm1
movsd  0xec6(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xeb2(%rip),%xmm0
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<noise>:
mov    %edi,%eax
shl    $0xd,%eax
xor    %edi,%eax
mov    %eax,%ecx
imul   %eax,%ecx
imul   $0x3d73,%ecx,%ecx
add    $0xc0ae5,%ecx
imul   %eax,%ecx
add    $0x5208dd0d,%ecx
and    $0x7fffffff,%ecx
cvtsi2sd %ecx,%xmm0
mulsd  0xecd(%rip),%xmm0
addsd  0xecd(%rip),%xmm0
cvttsd2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @noise(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = shl i32 %3, 13
%5 = load i32, i32* %2
%6 = xor i32 %4, %5
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = mul nsw i32 %8, %9
%11 = mul nsw i32 %10, 15731
%12 = add nsw i32 %11, 789221
%13 = mul nsw i32 %7, %12
%14 = add nsw i32 %13, 1376312589
%15 = and i32 %14, 2147483647
%16 = sitofp i32 %15 to double
%17 = fdiv double %16, 0x41D0000000000000
%18 = fsub double 1.000000e+00, %17
%19 = fptosi double %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @noise(i32 %0) {
%2 = shl i32 %0, 13
%3 = xor i32 %2, %0
%4 = mul i32 %3, 15731
%5 = mul i32 %4, %3
%6 = add nuw nsw i32 %5, 789221
%7 = mul nsw i32 %6, %3
%8 = add nsw i32 %7, 1376312589
%9 = and i32 %8, 2147483647
%10 = sitofp i32 %9 to double
%11 = fmul double %10, 0x3E10000000000000
%12 = fsub double 1.000000e+00, %11
%13 = fptosi double %12 to i32
ret i32 %13
}
void lib_ring_buffer_tick_nohz_stop(void) {}


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

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

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

LLVM IR (-O2):
define void @lib_ring_buffer_tick_nohz_stop() {
ret void
}
/* Type definitions */
typedef scalar_t__ const wchar_t;

/* Variables and functions */
int /*<<< orphan*/ wcsspn(scalar_t__ const *, scalar_t__ const *);
wchar_t *(wcspcbrk)(const wchar_t *string, const wchar_t *skipset) {
  string += wcsspn(string, skipset);
  return *string ? string : NULL;
}


x86 assembly (clang, -O0):
<wcspcbrk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <wcsspn@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     115c <wcspcbrk+0x4c>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1167 <wcspcbrk+0x57>
xor    %eax,%eax
mov    %rax,-0x18(%rbp)
jmp    1167 <wcspcbrk+0x57>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcspcbrk>:
push   %rbx
mov    %rdi,%rbx
call   1030 <wcsspn@plt>
movslq %eax,%rcx
lea    (%rbx,%rcx,8),%rax
mov    (%rbx,%rcx,8),%rcx
test   %rcx,%rcx
cmove  %rcx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64* @wcspcbrk(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%5 = load i64*, i64** %3
%6 = load i64*, i64** %4
%7 = call i32 @wcsspn(i64* %5, i64* %6)
%8 = load i64*, i64** %3
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i64, i64* %8, i64 %9
store i64* %10, i64** %3
%11 = load i64*, i64** %3
%12 = load i64, i64* %11
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = load i64*, i64** %3
br label %17
16: ; preds = %2
br label %17
17: ; preds = %16, %14
%18 = phi i64* [ %15, %14 ], [ null, %16 ]
ret i64* %18
}

LLVM IR (-O2):
define i64* @wcspcbrk(i64* %0, i64* %1) {
%3 = tail call i32 @wcsspn(i64* %0, i64* %1)
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i64, i64* %0, i64 %4
%6 = load i64, i64* %5
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i64* null, i64* %5
ret i64* %8
}
int get_string_len(char *string) {
  unsigned char ctr = 0;
  while (string[ctr++] != '\0')
    ;
  return ctr;
}


x86 assembly (clang, -O0):
<get_string_len>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movb   $0x0,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x9(%rbp),%cl
mov    %cl,%dl
add    $0x1,%dl
mov    %dl,-0x9(%rbp)
movzbl %cl,%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1130 <get_string_len+0x30>
jmp    110c <get_string_len+0xc>
movzbl -0x9(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_string_len>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl %al,%ecx
add    $0x1,%al
cmpb   $0x0,(%rdi,%rcx,1)
jne    1110 <get_string_len+0x10>
movzbl %al,%eax
ret

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

LLVM IR (-O2):
define i32 @get_string_len(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8 [ 0, %1 ], [ %4, %2 ]
%4 = add i8 %3, 1
%5 = zext i8 %3 to i64
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
br i1 %8, label %9, label %2
9: ; preds = %2
%10 = zext i8 %4 to i32
ret i32 %10
}
const char *X509_get_default_cert_dir(void) {
  return ("/etc/ssl"
          "/certs");
}


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

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

LLVM IR (-O0):
@.str = [15 x i8] c"/etc/ssl/certs\00"
define i8* @X509_get_default_cert_dir() {
ret i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [15 x i8] c"/etc/ssl/certs\00"
define i8* @X509_get_default_cert_dir() {
ret i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
scalar_t__ getpid();
int /*<<< orphan*/ stdout;
void printPrompt() {
  fprintf(stdout, "Shell(pid=%i)> ", (int)getpid());
  fflush(stdout);
}


x86 assembly (clang, -O0):
<printPrompt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x4(%rbp),%edi
mov    %eax,%edx
lea    0xea9(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printPrompt>:
push   %r14
push   %rbx
push   %rax
mov    0x2ea5(%rip),%r14
mov    (%r14),%ebx
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xeb4(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
call   1040 <fprintf@plt>
mov    (%r14),%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <fflush@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [16 x i8] c"Shell(pid=%i)> \00"
define void @printPrompt() {
%1 = load i32, i32* @stdout
%2 = call i64 (...) @getpid()
%3 = trunc i64 %2 to i32
%4 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [16 x i8] c"Shell(pid=%i)> \00"
define void @printPrompt() {
%1 = load i32, i32* @stdout
%2 = tail call i64 (...) @getpid()
%3 = trunc i64 %2 to i32
%4 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fflush(i32 %5)
ret void
}
/* Type definitions */
typedef unsigned long u_long;

/* Variables and functions */
scalar_t__ RAND_MAX;
int do_rand(unsigned long *ctx) {
  return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));
}


x86 assembly (clang, -O0):
<do_rand>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x41c64e6d,(%rax),%rax
add    $0x3039,%rax
mov    -0x8(%rbp),%rcx
mov    %rax,(%rcx)
mov    0x2ec1(%rip),%rcx
mov    (%rcx),%rcx
add    $0x1,%rcx
xor    %edx,%edx
div    %rcx
mov    %edx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_rand>:
imul   $0x41c64e6d,(%rdi),%rax
add    $0x3039,%rax
mov    %rax,(%rdi)
mov    0x2ed1(%rip),%rcx
mov    (%rcx),%rcx
add    $0x1,%rcx
mov    %rax,%rdx
or     %rcx,%rdx
shr    $0x20,%rdx
je     1133 <do_rand+0x33>
xor    %edx,%edx
div    %rcx
mov    %rdx,%rax
ret
xor    %edx,%edx
div    %ecx
mov    %edx,%eax
ret

LLVM IR (-O0):
@RAND_MAX = global i64 0
define i32 @do_rand(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = mul i64 %4, 1103515245
%6 = add i64 %5, 12345
%7 = load i64*, i64** %2
store i64 %6, i64* %7
%8 = load i64, i64* @RAND_MAX
%9 = add i64 %8, 1
%10 = urem i64 %6, %9
%11 = trunc i64 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
@RAND_MAX = global i64 0
define i32 @do_rand(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = mul i64 %2, 1103515245
%4 = add i64 %3, 12345
store i64 %4, i64* %0
%5 = load i64, i64* @RAND_MAX
%6 = add i64 %5, 1
%7 = urem i64 %4, %6
%8 = trunc i64 %7 to i32
ret i32 %8
}
unsigned long PWMGenFaultStatus(unsigned long ulBase, unsigned long ulGen,
                                unsigned long ulGroup) {
  ;
  ;
  ;
  if (ulGroup == 0) {
    return ((*((volatile unsigned long *)(((ulBase) + 0x00000800 +
                                           ((ulGen)-0x00000040) * 2) +
                                          0x00000004))));
  } else {
    return ((*((volatile unsigned long *)(((ulBase) + 0x00000800 +
                                           ((ulGen)-0x00000040) * 2) +
                                          0x00000008))));
  }
}


x86 assembly (clang, -O0):
<PWMGenFaultStatus>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1141 <PWMGenFaultStatus+0x41>
mov    -0x10(%rbp),%rax
add    $0x800,%rax
mov    -0x18(%rbp),%rcx
sub    $0x40,%rcx
shl    $0x1,%rcx
add    %rcx,%rax
mov    0x4(%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    1162 <PWMGenFaultStatus+0x62>
mov    -0x10(%rbp),%rax
add    $0x800,%rax
mov    -0x18(%rbp),%rcx
sub    $0x40,%rcx
shl    $0x1,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<PWMGenFaultStatus>:
xor    %eax,%eax
test   %rdx,%rdx
setne  %al
lea    (%rdi,%rax,4),%rax
mov    0x784(%rax,%rsi,2),%rax
ret

LLVM IR (-O0):
define i64 @PWMGenFaultStatus(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
%8 = load i64, i64* %7
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %20
10: ; preds = %3
%11 = load i64, i64* %5
%12 = add i64 %11, 2048
%13 = load i64, i64* %6
%14 = sub i64 %13, 64
%15 = mul i64 %14, 2
%16 = add i64 %12, %15
%17 = add i64 %16, 4
%18 = inttoptr i64 %17 to i64*
%19 = load volatile i64, i64* %18
store i64 %19, i64* %4
br label %30
20: ; preds = %3
%21 = load i64, i64* %5
%22 = add i64 %21, 2048
%23 = load i64, i64* %6
%24 = sub i64 %23, 64
%25 = mul i64 %24, 2
%26 = add i64 %22, %25
%27 = add i64 %26, 8
%28 = inttoptr i64 %27 to i64*
%29 = load volatile i64, i64* %28
store i64 %29, i64* %4
br label %30
30: ; preds = %20, %10
%31 = load i64, i64* %4
ret i64 %31
}

LLVM IR (-O2):
define i64 @PWMGenFaultStatus(i64 %0, i64 %1, i64 %2) {
%4 = icmp eq i64 %2, 0
%5 = shl i64 %1, 1
%6 = select i1 %4, i64 1924, i64 1928
%7 = add i64 %6, %0
%8 = add i64 %7, %5
%9 = inttoptr i64 %8 to i64*
%10 = load volatile i64, i64* %9
ret i64 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long);
int main() {
  long l = (long)1U;
  printf("%ld\n", l);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xece(%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    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 1)
ret i32 0
}
void go() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @av_find_best_pix_fmt_of_2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(void) { printf("./pbuilder [-c config] [create|show] [LAR]\n"); }


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

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

LLVM IR (-O0):
@.str = [44 x i8] c"./pbuilder [-c config] [create|show] [LAR]\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [43 x i8] c"./pbuilder [-c config] [create|show] [LAR]\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ xlFmtError(char *);
void badiop(void) { xlFmtError("bad integer operation"); }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"bad integer operation\00"
define void @badiop() {
%1 = call i32 @xlFmtError(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"bad integer operation\00"
define void @badiop() {
%1 = tail call i32 @xlFmtError(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct iovec {
  int dummy;
};
struct io_uring_sqe {
  int dummy;
};
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int /*<<< orphan*/ io_uring_prep_rw(int, struct io_uring_sqe *, int,
                                    struct iovec *, unsigned int,
                                    int /*<<< orphan*/);
void io_uring_prep_writev(struct io_uring_sqe *sqe, int fd,
                          struct iovec *iovecs, unsigned nr_vecs,
                          off_t offset) {
  io_uring_prep_rw(2, sqe, fd, iovecs, nr_vecs, offset);
}


x86 assembly (clang, -O0):
<io_uring_prep_writev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    $0x2,%edi
call   1030 <io_uring_prep_rw@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_uring_prep_writev>:
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    %rdx,%rcx
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0x2,%edi
jmp    1030 <io_uring_prep_rw@plt>

LLVM IR (-O0):
%struct.io_uring_sqe = type { i32 }
%struct.iovec = type { i32 }
define void @io_uring_prep_writev(%struct.io_uring_sqe* %0, i32 %1, %struct.iovec* %2, i32 %3, i32 %4) {
%6 = alloca %struct.io_uring_sqe*
%7 = alloca i32
%8 = alloca %struct.iovec*
%9 = alloca i32
%10 = alloca i32
store %struct.io_uring_sqe* %0, %struct.io_uring_sqe** %6
store i32 %1, i32* %7
store %struct.iovec* %2, %struct.iovec** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load %struct.io_uring_sqe*, %struct.io_uring_sqe** %6
%12 = load i32, i32* %7
%13 = load %struct.iovec*, %struct.iovec** %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @io_uring_prep_rw(i32 2, %struct.io_uring_sqe* %11, i32 %12, %struct.iovec* %13, i32 %14, i32 %15)
ret void
}

LLVM IR (-O2):
%struct.io_uring_sqe = type { i32 }
%struct.iovec = type { i32 }
define void @io_uring_prep_writev(%struct.io_uring_sqe* %0, i32 %1, %struct.iovec* %2, i32 %3, i32 %4) {
%6 = tail call i32 @io_uring_prep_rw(i32 2, %struct.io_uring_sqe* %0, i32 %1, %struct.iovec* %2, i32 %3, i32 %4)
ret void
}
/* Variables and functions */
int nqueens_min_board_size();
int valid_nqueens_args(int board_size) {
  return (board_size >= nqueens_min_board_size()) && (board_size <= 2147483647);
}


x86 assembly (clang, -O0):
<valid_nqueens_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nqueens_min_board_size@plt>
mov    -0xc(%rbp),%ecx
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x5(%rbp)
jl     1147 <valid_nqueens_args+0x37>
cmpl   $0x7fffffff,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<valid_nqueens_args>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <nqueens_min_board_size@plt>
xor    %ecx,%ecx
cmp    %ebx,%eax
setle  %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @valid_nqueens_args(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (...) @nqueens_min_board_size()
%5 = icmp sge i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 2147483647
br label %9
9: ; preds = %6, %1
%10 = phi i1 [ false, %1 ], [ %8, %6 ]
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @valid_nqueens_args(i32 %0) {
%2 = tail call i32 (...) @nqueens_min_board_size()
%3 = icmp sle i32 %2, %0
%4 = zext i1 %3 to i32
ret i32 %4
}
int wext_proc_init(void) { return 0; }


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

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

LLVM IR (-O0):
define i32 @wext_proc_init() {
ret i32 0
}

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

/* Variables and functions */
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
void fputc2(int c1, int c2, FILE *f) {
  fputc(c1, f);
  fputc(c2, f);
}


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

x86 assembly (clang, -O2):
<fputc2>:
push   %rbp
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %esi,%ebp
mov    %rdx,%rsi
call   1030 <fputc@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <fputc@plt>

LLVM IR (-O0):
define void @fputc2(i32 %0, i32 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i32, i32* %4
%8 = load i32*, i32** %6
%9 = call i32 @fputc(i32 %7, i32* %8)
%10 = load i32, i32* %5
%11 = load i32*, i32** %6
%12 = call i32 @fputc(i32 %10, i32* %11)
ret void
}

LLVM IR (-O2):
define void @fputc2(i32 %0, i32 %1, i32* nocapture %2) {
%4 = tail call i32 @fputc(i32 %0, i32* %2)
%5 = tail call i32 @fputc(i32 %1, i32* %2)
ret void
}
void UpperStr(char *str) {
  while (*str) {
    if (*str >= 'a' && *str <= 'z')
      *str += 'A' - 'a';
    str++;
  }
}


x86 assembly (clang, -O0):
<UpperStr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1152 <UpperStr+0x52>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jl     1141 <UpperStr+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7a,%eax
jg     1141 <UpperStr+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
add    $0xffffffe0,%ecx
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <UpperStr+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<UpperStr>:
mov    (%rdi),%al
test   %al,%al
je     112a <UpperStr+0x2a>
add    $0x1,%rdi
jmp    111b <UpperStr+0x1b>
nopl   0x0(%rax)
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
je     112a <UpperStr+0x2a>
lea    -0x61(%rax),%ecx
cmp    $0x19,%cl
ja     1110 <UpperStr+0x10>
add    $0xe0,%al
mov    %al,-0x1(%rdi)
jmp    1110 <UpperStr+0x10>
ret

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

LLVM IR (-O2):
define void @UpperStr(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %11
%5 = phi i8 [ %13, %11 ], [ %2, %1 ]
%6 = phi i8* [ %12, %11 ], [ %0, %1 ]
%7 = add i8 %5, -97
%8 = icmp ult i8 %7, 26
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = add nsw i8 %5, -32
store i8 %10, i8* %6
br label %11
11: ; preds = %9, %4
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %11, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *title) {
  printf("Usage: %s [-is] <publisher> <property-name>\n", title);
  printf("        -i           - int property\n");
  printf("        -s           - string property\n");
  exit(1);
}


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

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

LLVM IR (-O0):
@.str = [45 x i8] c"Usage: %s [-is] <publisher> <property-name>\0A\00"
@.str.1 = [37 x i8] c" -i - int property\0A\00"
@.str.2 = [40 x i8] c" -s - string property\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [45 x i8] c"Usage: %s [-is] <publisher> <property-name>\0A\00"
@str = [36 x i8] c" -i - int property\00"
@str.3 = [39 x i8] c" -s - string property\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.3, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}
void ff_hevc_put_hevc_bi_w_epel_hv64_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_w_epel_hv64_10_sse4() {
ret void
}
const char *rp_app_desc() { return "Red Pitaya SDR transceiver.\n"; }


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

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

LLVM IR (-O0):
@.str = [29 x i8] c"Red Pitaya SDR transceiver.\0A\00"
define i8* @rp_app_desc() {
ret i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [29 x i8] c"Red Pitaya SDR transceiver.\0A\00"
define i8* @rp_app_desc() {
ret i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
struct string {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ string_init(struct string *);
int /*<<< orphan*/ string_set(struct string *, char const *);
void string_init_txt(struct string *str, char const *txt) {
  string_init(str);
  string_set(str, txt);
}


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

x86 assembly (clang, -O2):
<string_init_txt>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <string_init@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <string_set@plt>

LLVM IR (-O0):
%struct.string = type { i32 }
define void @string_init_txt(%struct.string* %0, i8* %1) {
%3 = alloca %struct.string*
%4 = alloca i8*
store %struct.string* %0, %struct.string** %3
store i8* %1, i8** %4
%5 = load %struct.string*, %struct.string** %3
%6 = call i32 @string_init(%struct.string* %5)
%7 = load %struct.string*, %struct.string** %3
%8 = load i8*, i8** %4
%9 = call i32 @string_set(%struct.string* %7, i8* %8)
ret void
}

LLVM IR (-O2):
%struct.string = type { i32 }
define void @string_init_txt(%struct.string* %0, i8* %1) {
%3 = tail call i32 @string_init(%struct.string* %0)
%4 = tail call i32 @string_set(%struct.string* %0, i8* %1)
ret void
}
unsigned getval_134() { return 3252717896U; }


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

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

LLVM IR (-O0):
define i32 @getval_134() {
ret i32 -1042249400
}

LLVM IR (-O2):
define i32 @getval_134() {
ret i32 -1042249400
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int quaddobl_diagonal_homotopy(int a, int b) {
  int fail;
  double *c;
  fail = _ada_use_c2phc(290, &a, &b, c);
  return fail;
}


x86 assembly (clang, -O0):
<quaddobl_diagonal_homotopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0x122,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_diagonal_homotopy>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x122,%edi
call   1030 <_ada_use_c2phc@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @quaddobl_diagonal_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @_ada_use_c2phc(i32 290, i32* %3, i32* %4, double* undef)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ all_moves_base(int /*<<< orphan*/);
void all_moves() { all_moves_base(0); }


x86 assembly (clang, -O0):
<all_moves>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <all_moves_base@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<all_moves>:
xor    %edi,%edi
jmp    1030 <all_moves_base@plt>

LLVM IR (-O0):
define void @all_moves() {
%1 = call i32 @all_moves_base(i32 0)
ret void
}

LLVM IR (-O2):
define void @all_moves() {
%1 = tail call i32 @all_moves_base(i32 0)
ret void
}
float celcius2fahrenheit(float celcius) { return (celcius * 1.8f) + 32; }


x86 assembly (clang, -O0):
<celcius2fahrenheit>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xee2(%rip),%xmm1
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<celcius2fahrenheit>:
mulss  0xef8(%rip),%xmm0
addss  0xef4(%rip),%xmm0
ret

LLVM IR (-O0):
define float @celcius2fahrenheit(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @llvm.fmuladd.f32(float %3, float 0x3FFCCCCCC0000000, float 3.200000e+01)
ret float %4
}

LLVM IR (-O2):
define float @celcius2fahrenheit(float %0) {
%2 = tail call float @llvm.fmuladd.f32(float %0, float 0x3FFCCCCCC0000000, float 3.200000e+01)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void miImpresionHolaMake(void) {
  printf("Hola Makefiles\n");
  return;
}


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

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

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

LLVM IR (-O2):
@str = [15 x i8] c"Hola Makefiles\00"
define void @miImpresionHolaMake() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned int pack(unsigned char, unsigned char, unsigned char, unsigned char);
int /*<<< orphan*/ unpackWithMask(unsigned int);
int /*<<< orphan*/ unpackWithShift(unsigned int);
int main(void) {
  unsigned char red = 255;
  unsigned char green = 135;
  unsigned char blue = 111;
  unsigned char alpha = 100;
  unsigned int result = 0;
  result = pack(red, green, blue, alpha);
  unpackWithShift(result);
  unpackWithMask(result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0xff,-0x5(%rbp)
movb   $0x87,-0x6(%rbp)
movb   $0x6f,-0x7(%rbp)
movb   $0x64,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x5(%rbp),%dl
mov    -0x6(%rbp),%cl
mov    -0x7(%rbp),%al
movzbl %dl,%edi
movzbl %cl,%esi
movzbl %al,%edx
movzbl -0x8(%rbp),%ecx
call   1050 <pack@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <unpackWithShift@plt>
mov    -0xc(%rbp),%edi
call   1030 <unpackWithMask@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xff,%edi
mov    $0x87,%esi
mov    $0x6f,%edx
mov    $0x64,%ecx
call   1050 <pack@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1040 <unpackWithShift@plt>
mov    %ebx,%edi
call   1030 <unpackWithMask@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i32
store i32 0, i32* %1
store i8 -1, i8* %2
store i8 -121, i8* %3
store i8 111, i8* %4
store i8 100, i8* %5
store i32 0, i32* %6
%7 = load i8, i8* %2
%8 = load i8, i8* %3
%9 = load i8, i8* %4
%10 = load i8, i8* %5
%11 = call i32 @pack(i8 zeroext %7, i8 zeroext %8, i8 zeroext %9, i8 zeroext %10)
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = call i32 @unpackWithShift(i32 %12)
%14 = load i32, i32* %6
%15 = call i32 @unpackWithMask(i32 %14)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @pack(i8 zeroext -1, i8 zeroext -121, i8 zeroext 111, i8 zeroext 100)
%2 = tail call i32 @unpackWithShift(i32 %1)
%3 = tail call i32 @unpackWithMask(i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void caml_gr_remember_mode() { exit(1); }


x86 assembly (clang, -O0):
<caml_gr_remember_mode>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<caml_gr_remember_mode>:
push   %rax
mov    $0x1,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @caml_gr_remember_mode() {
%1 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @caml_gr_remember_mode() {
%1 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
scalar_t__ isupper(char);
char tolower(char);
char *strlwr(char *str) {
  char *ret = str;
  while (*str != '\0') {
    if (isupper(*str))
      *str = tolower(*str);
    ++str;
  }
  return ret;
}


x86 assembly (clang, -O0):
<strlwr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     117f <strlwr+0x5f>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     116e <strlwr+0x4e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <tolower@plt>
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1134 <strlwr+0x14>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlwr>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%al
test   %al,%al
je     1165 <strlwr+0x45>
mov    %r14,%rbx
jmp    114c <strlwr+0x2c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1165 <strlwr+0x45>
movsbl %al,%edi
call   1040 <isupper@plt>
test   %rax,%rax
je     1140 <strlwr+0x20>
movsbl (%rbx),%edi
call   1030 <tolower@plt>
mov    %al,(%rbx)
jmp    1140 <strlwr+0x20>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @strlwr(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1, %12
%5 = phi i8 [ %14, %12 ], [ %2, %1 ]
%6 = phi i8* [ %13, %12 ], [ %0, %1 ]
%7 = tail call i64 @isupper(i8 signext %5)
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %4
%10 = load i8, i8* %6
%11 = tail call signext i8 @tolower(i8 signext %10)
store i8 %11, i8* %6
br label %12
12: ; preds = %9, %4
%13 = getelementptr inbounds i8, i8* %6, i64 1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4
16: ; preds = %12, %1
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ gcd(int, int);
int main() {
  int a = 60534384, b = 35717371;
  gcd(a, b);
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 60534384, i32* %2
store i32 35717371, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = call i32 @gcd(i32 %4, i32 %5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @gcd(i32 60534384, i32 35717371)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ a();
int main(int argc, char **argv) {
  a();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @a()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ setv(int, int *, int *, int *);
int /*<<< orphan*/ test_assert(int);
int main(void) {
  int a, b, c;
  setv(3, &a, &b, &c);
  test_assert(a == 13);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3,%edi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1030 <setv@plt>
cmpl   $0xd,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <test_assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xc(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    $0x3,%edi
call   1030 <setv@plt>
xor    %edi,%edi
cmpl   $0xd,0xc(%rsp)
sete   %dil
call   1040 <test_assert@plt>
xor    %eax,%eax
add    $0x18,%rsp
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 @setv(i32 3, i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 13
%8 = zext i1 %7 to i32
%9 = call i32 @test_assert(i32 %8)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @setv(i32 3, i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 13
%10 = zext i1 %9 to i32
%11 = call i32 @test_assert(i32 %10)
ret i32 0
}
void av_append_packet() {}


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

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

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

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