xunge/DecIR huggingface dataset:
__attribute__((__noreturn__, __nothrow__)) void _Exit(int status) {
  __asm__ __volatile__("syscall" ::"a"(60), "D"(status));
  __builtin_unreachable();
}


x86 assembly (clang, -O0):
<_Exit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x3c,%eax
syscall

x86 assembly (clang, -O2):
<_Exit>:
mov    $0x3c,%eax
syscall

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

LLVM IR (-O2):
define void @_Exit(i32 %0) {
tail call void asm sideeffect "syscall", "{ax},{di},~{dirflag},~{fpsr},~{flags}"(i32 60, i32 %0)
unreachable
}
void rop3_203_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = *D & S;
  stk2 = T | stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_203_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_203_0_0>:
mov    (%rdi),%al
and    %sil,%al
or     %dl,%al
xor    %sil,%al
not    %al
mov    %al,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_203_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = and i8 %4, %1
%6 = or i8 %5, %2
%7 = xor i8 %6, %1
%8 = xor i8 %7, -1
store i8 %8, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, void const *);
void printPointer(const void *p) {
  void **o = (void **)p;
  printf("-... %p \n", *o);
  printf("... %p \n", p);
}


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

x86 assembly (clang, -O2):
<printPointer>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rsi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"-... %p \0A\00"
@.str.1 = [9 x i8] c"... %p \0A\00"
define void @printPointer(i8* %0) {
%2 = alloca i8*
%3 = alloca i8**
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i8**
store i8** %5, i8*** %3
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"-... %p \0A\00"
@.str.1 = [9 x i8] c"... %p \0A\00"
define void @printPointer(i8* %0) {
%2 = bitcast i8* %0 to i8**
%3 = load i8*, i8** %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}
int dlm_create_debugfs_root(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @dlm_create_debugfs_root() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ put8(int);
void fadd_preg32_dword(int reg32) {
  put8(0xD8);
  put8(reg32);
}


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

x86 assembly (clang, -O2):
<fadd_preg32_dword>:
push   %rbx
mov    %edi,%ebx
mov    $0xd8,%edi
call   1030 <put8@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <put8@plt>

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

LLVM IR (-O2):
define void @fadd_preg32_dword(i32 %0) {
%2 = tail call i32 @put8(i32 216)
%3 = tail call i32 @put8(i32 %0)
ret void
}
long long OPM_power0(long long i, long long j) {
  long long _o_result;
  long long k, p;
  k = 1;
  p = i;
  do {
    p = p * i;
    k += 1;
  } while (!(k == j));
  _o_result = p;
  return _o_result;
}


x86 assembly (clang, -O0):
<OPM_power0>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
imul   -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
sete   %al
xor    $0xff,%al
test   $0x1,%al
jne    111c <OPM_power0+0x1c>
mov    -0x28(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<OPM_power0>:
lea    -0x1(%rsi),%rdx
add    $0xfffffffffffffffe,%rsi
mov    %edx,%ecx
and    $0x7,%ecx
mov    %rdi,%rax
cmp    $0x7,%rsi
jb     1146 <OPM_power0+0x46>
and    $0xfffffffffffffff8,%rdx
mov    %rdi,%rax
nopl   (%rax)
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
imul   %rdi,%rax
add    $0xfffffffffffffff8,%rdx
jne    1120 <OPM_power0+0x20>
test   %rcx,%rcx
je     115a <OPM_power0+0x5a>
nopl   0x0(%rax,%rax,1)
imul   %rdi,%rax
add    $0xffffffffffffffff,%rcx
jne    1150 <OPM_power0+0x50>
ret

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

LLVM IR (-O2):
define i64 @OPM_power0(i64 %0, i64 %1) {
%3 = add i64 %1, -1
%4 = add i64 %1, -2
%5 = and i64 %3, 7
%6 = icmp ult i64 %4, 7
br i1 %6, label %22, label %7
7: ; preds = %2
%8 = and i64 %3, -8
br label %9
9: ; preds = %9, %7
%10 = phi i64 [ %0, %7 ], [ %19, %9 ]
%11 = phi i64 [ 0, %7 ], [ %20, %9 ]
%12 = mul nsw i64 %10, %0
%13 = mul nsw i64 %12, %0
%14 = mul nsw i64 %13, %0
%15 = mul nsw i64 %14, %0
%16 = mul nsw i64 %15, %0
%17 = mul nsw i64 %16, %0
%18 = mul nsw i64 %17, %0
%19 = mul nsw i64 %18, %0
%20 = add i64 %11, 8
%21 = icmp eq i64 %20, %8
br i1 %21, label %22, label %9
22: ; preds = %9, %2
%23 = phi i64 [ undef, %2 ], [ %19, %9 ]
%24 = phi i64 [ %0, %2 ], [ %19, %9 ]
%25 = icmp eq i64 %5, 0
br i1 %25, label %32, label %26
26: ; preds = %22, %26
%27 = phi i64 [ %29, %26 ], [ %24, %22 ]
%28 = phi i64 [ %30, %26 ], [ 0, %22 ]
%29 = mul nsw i64 %27, %0
%30 = add i64 %28, 1
%31 = icmp eq i64 %30, %5
br i1 %31, label %32, label %26
32: ; preds = %26, %22
%33 = phi i64 [ %23, %22 ], [ %29, %26 ]
ret i64 %33
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x51() {
  Assert_real((isbdigit(81) == 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",
              410, ("isbdigit should be 0 for Q"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0x51>:
push   %rax
mov    $0x51,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x19a,%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 Q\00"
define void @t_isbdigit_0x51() {
%1 = call i64 @isbdigit(i32 81)
%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 410, 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 Q\00"
define void @t_isbdigit_0x51() {
%1 = tail call i64 @isbdigit(i32 81)
%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 410, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
char EOF;
unsigned char _is_eof_char(char c) { return (c == EOF); }


x86 assembly (clang, -O0):
<_is_eof_char>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
mov    0x2ed3(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_is_eof_char>:
mov    0x2ee1(%rip),%rax
cmp    %dil,(%rax)
sete   %al
ret

LLVM IR (-O0):
@EOF = global i8 0
define zeroext i8 @_is_eof_char(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = load i8, i8* @EOF
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %4, %6
%8 = zext i1 %7 to i32
%9 = trunc i32 %8 to i8
ret i8 %9
}

LLVM IR (-O2):
@EOF = global i8 0
define zeroext i8 @_is_eof_char(i8 signext %0) {
%2 = load i8, i8* @EOF
%3 = icmp eq i8 %2, %0
%4 = zext i1 %3 to i8
ret i8 %4
}
int hexToNibble(char theValue) {
  if ((theValue >= '0') && (theValue <= '9'))
    return theValue - 48;
  else if ((theValue >= 'A') && (theValue <= 'F'))
    return theValue - 55;
  return -1;
}


x86 assembly (clang, -O0):
<hexToNibble>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1133 <hexToNibble+0x33>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1133 <hexToNibble+0x33>
movsbl -0x5(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x4(%rbp)
jmp    1168 <hexToNibble+0x68>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     115c <hexToNibble+0x5c>
movsbl -0x5(%rbp),%eax
cmp    $0x46,%eax
jg     115c <hexToNibble+0x5c>
movsbl -0x5(%rbp),%eax
sub    $0x37,%eax
mov    %eax,-0x4(%rbp)
jmp    1168 <hexToNibble+0x68>
jmp    1161 <hexToNibble+0x61>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hexToNibble>:
mov    %edi,%eax
lea    -0x30(%rax),%ecx
cmp    $0x9,%cl
ja     110e <hexToNibble+0xe>
add    $0xffffffd0,%eax
ret
lea    -0x41(%rax),%ecx
add    $0xffffffc9,%eax
cmp    $0x6,%cl
mov    $0xffffffff,%ecx
cmovb  %eax,%ecx
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @hexToNibble(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
store i32 %14, i32* %2
br label %29
15: ; preds = %7, %1
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 65
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 70
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i8, i8* %3
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 55
store i32 %26, i32* %2
br label %29
27: ; preds = %19, %15
br label %28
28: ; preds = %27
store i32 -1, i32* %2
br label %29
29: ; preds = %28, %23, %11
%30 = load i32, i32* %2
ret i32 %30
}

LLVM IR (-O2):
define i32 @hexToNibble(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add i8 %0, -48
%4 = icmp ult i8 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = add nsw i32 %2, -48
br label %12
7: ; preds = %1
%8 = add i8 %0, -65
%9 = icmp ult i8 %8, 6
%10 = add nsw i32 %2, -55
%11 = select i1 %9, i32 %10, i32 -1
br label %12
12: ; preds = %7, %5
%13 = phi i32 [ %6, %5 ], [ %11, %7 ]
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
typedef int /*<<< orphan*/ ASN1_UTCTIME;

/* Variables and functions */
int /*<<< orphan*/ *ASN1_TIME_adj_internal(int /*<<< orphan*/ *,
                                           int /*<<< orphan*/, int, long,
                                           int /*<<< orphan*/);
int /*<<< orphan*/ V_ASN1_UTCTIME;
ASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t, int offset_day,
                               long offset_sec) {
  return (ASN1_TIME_adj_internal(s, t, offset_day, offset_sec, V_ASN1_UTCTIME));
}


x86 assembly (clang, -O0):
<ASN1_UTCTIME_adj>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    0x2ea5(%rip),%rax
mov    (%rax),%r8d
call   1030 <ASN1_TIME_adj_internal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ASN1_UTCTIME_adj>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%r8d
jmp    1030 <ASN1_TIME_adj_internal@plt>

LLVM IR (-O0):
@V_ASN1_UTCTIME = global i32 0
define i32* @ASN1_UTCTIME_adj(i32* %0, i32 %1, i32 %2, i64 %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32* %0, i32** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i64 %3, i64* %8
%9 = load i32*, i32** %5
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = load i64, i64* %8
%13 = load i32, i32* @V_ASN1_UTCTIME
%14 = call i32* @ASN1_TIME_adj_internal(i32* %9, i32 %10, i32 %11, i64 %12, i32 %13)
ret i32* %14
}

LLVM IR (-O2):
@V_ASN1_UTCTIME = global i32 0
define i32* @ASN1_UTCTIME_adj(i32* %0, i32 %1, i32 %2, i64 %3) {
%5 = load i32, i32* @V_ASN1_UTCTIME
%6 = tail call i32* @ASN1_TIME_adj_internal(i32* %0, i32 %1, i32 %2, i64 %3, i32 %5)
ret i32* %6
}
void RTBldCfgTargetDotArch(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_text_attributes_unref() {
ret void
}
/* Variables and functions */
scalar_t__ Pop();
int /*<<< orphan*/ Push(int);
int CmdNE(void) {
  Push(Pop() != Pop());
  return 0;
}


x86 assembly (clang, -O0):
<CmdNE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <Pop@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <Pop@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
cmp    %rcx,%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <Push@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdNE>:
push   %rbx
xor    %eax,%eax
call   1030 <Pop@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <Pop@plt>
xor    %edi,%edi
cmp    %rax,%rbx
setne  %dil
call   1040 <Push@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @CmdNE() {
%1 = call i64 (...) @Pop()
%2 = call i64 (...) @Pop()
%3 = icmp ne i64 %1, %2
%4 = zext i1 %3 to i32
%5 = call i32 @Push(i32 %4)
ret i32 0
}

LLVM IR (-O2):
define i32 @CmdNE() {
%1 = tail call i64 (...) @Pop()
%2 = tail call i64 (...) @Pop()
%3 = icmp ne i64 %1, %2
%4 = zext i1 %3 to i32
%5 = tail call i32 @Push(i32 %4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ procedimento();
void main() { procedimento(); }


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

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

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

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @procedimento()
ret void
}
double cuadrado(double a) { return (a * a); }


x86 assembly (clang, -O0):
<cuadrado>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<cuadrado>:
mulsd  %xmm0,%xmm0
ret

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

LLVM IR (-O2):
define double @cuadrado(double %0) {
%2 = fmul double %0, %0
ret double %2
}
void deleteDictionary(char **dictionary, int *countingArray, int wordCount) {
  for (int i = 0; i < wordCount; i++) {
    free(dictionary[i]);
  }
  free(dictionary);
  free(countingArray);
}


x86 assembly (clang, -O0):
<deleteDictionary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1155 <deleteDictionary+0x45>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    112a <deleteDictionary+0x1a>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deleteDictionary>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r15
test   %edx,%edx
jle    1142 <deleteDictionary+0x32>
mov    %edx,%r12d
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1130 <deleteDictionary+0x20>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @deleteDictionary(i8** nocapture %0, i32* nocapture %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = zext i32 %2 to i64
br label %10
7: ; preds = %10, %3
%8 = bitcast i8** %0 to i8*
tail call void @free(i8* %8)
%9 = bitcast i32* %1 to i8*
tail call void @free(i8* %9)
ret void
10: ; preds = %5, %10
%11 = phi i64 [ 0, %5 ], [ %14, %10 ]
%12 = getelementptr inbounds i8*, i8** %0, i64 %11
%13 = load i8*, i8** %12
tail call void @free(i8* %13)
%14 = add nuw nsw i64 %11, 1
%15 = icmp eq i64 %14, %6
br i1 %15, label %7, label %10
}
void hssl_module_destroy(void) { return; }


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

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

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

LLVM IR (-O2):
define void @hssl_module_destroy() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_error(char *, int);
int /*<<< orphan*/ print_type(char *, int);
void gen_int16() {
  if (sizeof(short) == 2)
    print_type("short", 16);
  else
    print_error("short", sizeof(short));
}


x86 assembly (clang, -O0):
<gen_int16>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x10,%esi
call   1030 <print_type@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_int16>:
lea    0xee9(%rip),%rdi
mov    $0x10,%esi
jmp    1030 <print_type@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"short\00"
define void @gen_int16() {
%1 = call i32 @print_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 16)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"short\00"
define void @gen_int16() {
%1 = tail call i32 @print_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 16)
ret void
}
/* Variables and functions */
int length(char *);
char *malloc(int);
int /*<<< orphan*/ strcopy(char *, char *);
void insertString(char **area, char *content) {
  int size = length(content) + 1;
  (*area) = malloc(size * sizeof(char));
  strcopy(*area, content);
}


x86 assembly (clang, -O0):
<insertString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <length@plt>
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <strcopy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<insertString>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <length@plt>
lea    0x1(%rax),%edi
call   1040 <malloc@plt>
mov    %rax,(%r14)
mov    %rax,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <strcopy@plt>

LLVM IR (-O0):
define void @insertString(i8** %0, i8* %1) {
%3 = alloca i8**
%4 = alloca i8*
%5 = alloca i32
store i8** %0, i8*** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i32 @length(i8* %6)
%8 = add nsw i32 %7, 1
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 1
%12 = trunc i64 %11 to i32
%13 = call i8* @malloc(i32 %12)
%14 = load i8**, i8*** %3
store i8* %13, i8** %14
%15 = load i8**, i8*** %3
%16 = load i8*, i8** %15
%17 = load i8*, i8** %4
%18 = call i32 @strcopy(i8* %16, i8* %17)
ret void
}

LLVM IR (-O2):
define void @insertString(i8** nocapture writeonly %0, i8* %1) {
%3 = tail call i32 @length(i8* %1)
%4 = add nsw i32 %3, 1
%5 = tail call i8* @malloc(i32 %4)
store i8* %5, i8** %0
%6 = tail call i32 @strcopy(i8* %5, i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char const *);
scalar_t__ strncmp(char const *, char const *, int /*<<< orphan*/);
int str_has_prefix(const char *str, const char *prefix) {
  return strncmp(prefix, str, strlen(prefix)) == 0;
}


x86 assembly (clang, -O0):
<str_has_prefix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_has_prefix>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @str_has_prefix(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 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i64 @strncmp(i8* %5, i8* %6, i32 %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @str_has_prefix(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i64 @strncmp(i8* %1, i8* %0, i32 %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
int test_14(int a, int b) { return !((a >= 0) ^ (b < 0)) ? -20 : -40; }


x86 assembly (clang, -O0):
<test_14>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x8(%rbp)
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
xor    %ecx,%eax
cmp    $0x0,%eax
setne  %dl
xor    $0xff,%dl
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_14>:
xor    %esi,%edi
mov    $0xffffffec,%ecx
mov    $0xffffffd8,%eax
cmovs  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_14(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = icmp sge i32 %5, 0
%7 = zext i1 %6 to i32
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 0
%10 = zext i1 %9 to i32
%11 = xor i32 %7, %10
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 -20, i32 -40
ret i32 %15
}

LLVM IR (-O2):
define i32 @test_14(i32 %0, i32 %1) {
%3 = xor i32 %1, %0
%4 = icmp slt i32 %3, 0
%5 = select i1 %4, i32 -20, i32 -40
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;
typedef int /*<<< orphan*/ cpu_set_t;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) {
  __set_errno(ENOSYS);
  return -1;
}


x86 assembly (clang, -O0):
<sched_setaffinity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2ebe(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sched_setaffinity>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
define i32 @sched_setaffinity(i32 %0, i64 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32*
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32* %2, i32** %6
%7 = load i32, i32* @ENOSYS
%8 = call i32 @__set_errno(i32 %7)
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
define i32 @sched_setaffinity(i32 %0, i64 %1, i32* nocapture readnone %2) {
%4 = load i32, i32* @ENOSYS
%5 = tail call i32 @__set_errno(i32 %4)
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char const *const);
scalar_t__ strlen(char const *const);
scalar_t__ vlmcsd_malloc(scalar_t__);
char *allocateStringArgument(const char *const argument) {
  char *result = (char *)vlmcsd_malloc(strlen(argument) + 1);
  strcpy(result, argument);
  return result;
}


x86 assembly (clang, -O0):
<allocateStringArgument>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <vlmcsd_malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<allocateStringArgument>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <vlmcsd_malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @allocateStringArgument(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @vlmcsd_malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
%9 = load i8*, i8** %3
%10 = load i8*, i8** %2
%11 = call i32 @strcpy(i8* %9, i8* %10)
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
define i8* @allocateStringArgument(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i64 @vlmcsd_malloc(i64 %3)
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 @strcpy(i8* %5, i8* %0)
ret i8* %5
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int towide_dbcs(int /*<<< orphan*/ *, char const *, unsigned int);
int towide_gbk(wchar_t *wc, const char *mb, unsigned n) {
  return (towide_dbcs(wc, mb, n));
}


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

x86 assembly (clang, -O2):
<towide_gbk>:
jmp    1030 <towide_dbcs@plt>

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

LLVM IR (-O2):
define i32 @towide_gbk(i32* %0, i8* %1, i32 %2) {
%4 = tail call i32 @towide_dbcs(i32* %0, i8* %1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ FIO_FlushOutErr();
void _M2_FIO_finish(__attribute__((unused)) int argc,
                    __attribute__((unused)) char *argv[]) {
  FIO_FlushOutErr();
}


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

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

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

LLVM IR (-O2):
define void @_M2_FIO_finish(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @FIO_FlushOutErr()
ret void
}
void X509_CRL_free(void) {}


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

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

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

LLVM IR (-O2):
define void @X509_CRL_free() {
ret void
}
void McASPPinMcASPSet(unsigned int baseAddr, unsigned int pinMask) {
  (*((volatile unsigned int *)(baseAddr + (0x10)))) &= ~pinMask;
}


x86 assembly (clang, -O0):
<McASPPinMcASPSet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edx
xor    $0xffffffff,%edx
mov    -0x4(%rbp),%eax
add    $0x10,%eax
mov    %eax,%eax
mov    (%rax),%ecx
and    %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<McASPPinMcASPSet>:
not    %esi
add    $0x10,%edi
and    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @McASPPinMcASPSet(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = xor i32 %5, -1
%7 = load i32, i32* %3
%8 = add i32 %7, 16
%9 = zext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load volatile i32, i32* %10
%12 = and i32 %11, %6
store volatile i32 %12, i32* %10
ret void
}

LLVM IR (-O2):
define void @McASPPinMcASPSet(i32 %0, i32 %1) {
%3 = xor i32 %1, -1
%4 = add i32 %0, 16
%5 = zext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = and i32 %7, %3
store volatile i32 %8, i32* %6
ret void
}
/* Variables and functions */
char *get_arg(char **);
int /*<<< orphan*/ printc_err(char *);
int process_file(char *, int);
int cmd_read(char **arg) {
  char *filename = get_arg(arg);
  if (!filename) {
    printc_err("read: filename must be specified\n");
    return -1;
  }
  return process_file(filename, 1);
}


x86 assembly (clang, -O0):
<cmd_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <get_arg@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    116c <cmd_read+0x3c>
lea    0xea5(%rip),%rdi
call   1030 <printc_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    117d <cmd_read+0x4d>
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1040 <process_file@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_read>:
push   %rax
call   1050 <get_arg@plt>
test   %rax,%rax
je     1149 <cmd_read+0x19>
mov    %rax,%rdi
mov    $0x1,%esi
pop    %rax
jmp    1040 <process_file@plt>
lea    0xeb0(%rip),%rdi
call   1030 <printc_err@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"read: filename must be specified\0A\00"
define i32 @cmd_read(i8** %0) {
%2 = alloca i32
%3 = alloca i8**
%4 = alloca i8*
store i8** %0, i8*** %3
%5 = load i8**, i8*** %3
%6 = call i8* @get_arg(i8** %5)
store i8* %6, i8** %4
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @printc_err(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %2
br label %14
11: ; preds = %1
%12 = load i8*, i8** %4
%13 = call i32 @process_file(i8* %12, i32 1)
store i32 %13, i32* %2
br label %14
14: ; preds = %11, %9
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@.str = [34 x i8] c"read: filename must be specified\0A\00"
define i32 @cmd_read(i8** %0) {
%2 = tail call i8* @get_arg(i8** %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @printc_err(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 @process_file(i8* %2, i32 1)
br label %8
8: ; preds = %6, %4
%9 = phi i32 [ %7, %6 ], [ -1, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() { printf("hello, soc FPGA\n"); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"hello, soc FPGA\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [16 x i8] c"hello, soc FPGA\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct item {
  int dummy;
};

/* Variables and functions */
bool exists(struct item *head, int value) { return false; }


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

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

LLVM IR (-O0):
%struct.item = type { i32 }
define i32 @exists(%struct.item* %0, i32 %1) {
%3 = alloca %struct.item*
%4 = alloca i32
store %struct.item* %0, %struct.item** %3
store i32 %1, i32* %4
ret i32 0
}

LLVM IR (-O2):
%struct.item = type { i32 }
define i32 @exists(%struct.item* nocapture readnone %0, i32 %1) {
ret i32 0
}
char or (char one, char two) { return (one == '1' || two == '1') ? '1' : '0'; }


x86 assembly (clang, -O0):
<or>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x31,%ecx
mov    %al,-0x3(%rbp)
je     112f <or+0x2f>
movsbl -0x2(%rbp),%eax
cmp    $0x31,%eax
sete   %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%dl
mov    $0x30,%eax
mov    $0x31,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<or>:
cmp    $0x31,%dil
sete   %cl
cmp    $0x31,%sil
sete   %al
or     %cl,%al
or     $0x30,%al
ret

LLVM IR (-O0):
define signext i8 @or(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 49
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i8, i8* %4
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 49
br label %12
12: ; preds = %8, %2
%13 = phi i1 [ true, %2 ], [ %11, %8 ]
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 49, i32 48
%16 = trunc i32 %15 to i8
ret i8 %16
}

LLVM IR (-O2):
define signext i8 @or(i8 signext %0, i8 signext %1) {
%3 = icmp eq i8 %0, 49
%4 = icmp eq i8 %1, 49
%5 = or i1 %3, %4
%6 = select i1 %5, i8 49, i8 48
ret i8 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
uint8_t recv_diag_get_page_code(uint8_t *data) { return data[0]; }


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

x86 assembly (clang, -O2):
<recv_diag_get_page_code>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @recv_diag_get_page_code(i32* nocapture %0) {
%2 = load i32, i32* %0
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ getbits(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ ntohs(int /*<<< orphan*/);
uint16_t pak_get_bits_uint16(uint16_t value, uint8_t position,
                             uint8_t no_bits) {
  uint16_t i16;
  i16 = ntohs(value);
  return getbits(i16, position, no_bits);
}


x86 assembly (clang, -O0):
<pak_get_bits_uint16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <ntohs@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <getbits@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pak_get_bits_uint16>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
call   1040 <ntohs@plt>
mov    %eax,%edi
mov    %ebp,%esi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <getbits@plt>

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

LLVM IR (-O2):
define i32 @pak_get_bits_uint16(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @ntohs(i32 %0)
%5 = tail call i32 @getbits(i32 %4, i32 %1, i32 %2)
ret i32 %5
}
/* Variables and functions */
char *date_get_now_date_hhmm(int);
char *date_get_now_hhmm(int utc_offset) {
  return date_get_now_date_hhmm(utc_offset);
}


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

x86 assembly (clang, -O2):
<date_get_now_hhmm>:
jmp    1030 <date_get_now_date_hhmm@plt>

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

LLVM IR (-O2):
define i8* @date_get_now_hhmm(i32 %0) {
%2 = tail call i8* @date_get_now_date_hhmm(i32 %0)
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int myfgetc(int /*<<< orphan*/ *);
int fgetc(FILE *stream) { return myfgetc(stream); }


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

x86 assembly (clang, -O2):
<fgetc>:
jmp    1030 <myfgetc@plt>

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

LLVM IR (-O2):
define i32 @fgetc(i32* %0) {
%2 = tail call i32 @myfgetc(i32* %0)
ret i32 %2
}
/* Variables and functions */
scalar_t__ calloc(int, int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ freaduntil(char *, int, char, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
char getUserInput() {
  char *buffer = (char *)calloc(256, sizeof(char));
  fflush(stdout);
  freaduntil(buffer, 200, '\n', stdin);
  return buffer[0];
}


x86 assembly (clang, -O0):
<getUserInput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x100,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,-0x8(%rbp)
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e84(%rip),%rax
mov    (%rax),%ecx
mov    $0xc8,%esi
mov    $0xa,%edx
call   1040 <freaduntil@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getUserInput>:
push   %rbx
mov    $0x100,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%ecx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    $0xa,%edx
call   1040 <freaduntil@plt>
mov    (%rbx),%al
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@stdin = global i32 0
define signext i8 @getUserInput() {
%1 = alloca i8*
%2 = call i64 @calloc(i32 256, i32 1)
%3 = inttoptr i64 %2 to i8*
store i8* %3, i8** %1
%4 = load i32, i32* @stdout
%5 = call i32 @fflush(i32 %4)
%6 = load i8*, i8** %1
%7 = load i32, i32* @stdin
%8 = call i32 @freaduntil(i8* %6, i32 200, i8 signext 10, i32 %7)
%9 = load i8*, i8** %1
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
ret i8 %11
}

LLVM IR (-O2):
@stdout = global i32 0
@stdin = global i32 0
define signext i8 @getUserInput() {
%1 = tail call i64 @calloc(i32 256, i32 1)
%2 = inttoptr i64 %1 to i8*
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
%5 = load i32, i32* @stdin
%6 = tail call i32 @freaduntil(i8* %2, i32 200, i8 signext 10, i32 %5)
%7 = load i8, i8* %2
ret i8 %7
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0x73() {
  Assert_real((isxdigit(115) == 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_isxdigit.c",
              580, ("isxdigit should be 0 for s"));
}


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

x86 assembly (clang, -O2):
<t_isxdigit_0x73>:
push   %rax
mov    $0x73,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x244,%edx
pop    %rax
jmp    1040 <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_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 0 for s\00"
define void @t_isxdigit_0x73() {
%1 = call i64 @isxdigit(i32 115)
%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 580, 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_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 0 for s\00"
define void @t_isxdigit_0x73() {
%1 = tail call i64 @isxdigit(i32 115)
%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 580, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int callee(int n, int m) { return n + m; }


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

x86 assembly (clang, -O2):
<callee>:
lea    (%rdi,%rsi,1),%eax
ret

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

LLVM IR (-O2):
define i32 @callee(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}