xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int _hex_nib(char const);
uint8_t fmt_hex_byte(const char *hex) {
  return (_hex_nib(hex[0]) << 4) | _hex_nib(hex[1]);
}


x86 assembly (clang, -O0):
<fmt_hex_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <_hex_nib@plt>
shl    $0x4,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%edi
call   1030 <_hex_nib@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmt_hex_byte>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
movsbl (%rdi),%edi
call   1030 <_hex_nib@plt>
mov    %eax,%ebp
shl    $0x4,%ebp
movsbl 0x1(%rbx),%edi
call   1030 <_hex_nib@plt>
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fmt_hex_byte(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = call i32 @_hex_nib(i8 signext %5)
%7 = shl i32 %6, 4
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i64 1
%10 = load i8, i8* %9
%11 = call i32 @_hex_nib(i8 signext %10)
%12 = or i32 %7, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @fmt_hex_byte(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = tail call i32 @_hex_nib(i8 signext %2)
%4 = shl i32 %3, 4
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = tail call i32 @_hex_nib(i8 signext %6)
%8 = or i32 %7, %4
ret i32 %8
}
/* Variables and functions */
int pyi_setenv(char *, char const *);
int set_dynamic_library_path(const char *path) {
  int rc = 0;
  rc = pyi_setenv("LD_LIBRARY_PATH", path);
  ;
  return rc;
}


x86 assembly (clang, -O0):
<set_dynamic_library_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed2(%rip),%rdi
call   1030 <pyi_setenv@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_dynamic_library_path>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <pyi_setenv@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"LD_LIBRARY_PATH\00"
define i32 @set_dynamic_library_path(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
%4 = load i8*, i8** %2
%5 = call i32 @pyi_setenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
@.str = [16 x i8] c"LD_LIBRARY_PATH\00"
define i32 @set_dynamic_library_path(i8* %0) {
%2 = tail call i32 @pyi_setenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ Token(char *);
void NeedToken(char *token) {
  if (!Token(token)) {
  }
}


x86 assembly (clang, -O0):
<NeedToken>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <Token@plt>
cmp    $0x0,%eax
jne    1133 <NeedToken+0x23>
jmp    1133 <NeedToken+0x23>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NeedToken>:
jmp    1030 <Token@plt>

LLVM IR (-O0):
define void @NeedToken(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @Token(i8* %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %1
br label %7
7: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @NeedToken(i8* %0) {
%2 = tail call i32 @Token(i8* %0)
ret void
}
void SDCard_TX_ISR(void) {}


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

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

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

LLVM IR (-O2):
define void @SDCard_TX_ISR() {
ret void
}
/* Variables and functions */
unsigned char *ziplistDelete(unsigned char *, unsigned char **);
unsigned char *zzlDelete(unsigned char *zl, unsigned char *eptr) {
  unsigned char *p = eptr;
  zl = ziplistDelete(zl, &p);
  zl = ziplistDelete(zl, &p);
  return zl;
}


x86 assembly (clang, -O0):
<zzlDelete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <ziplistDelete@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <ziplistDelete@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zzlDelete>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,0x8(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
call   1030 <ziplistDelete@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <ziplistDelete@plt>
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @zzlDelete(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
store i8* %1, i8** %3
%5 = call i8* @ziplistDelete(i8* %0, i8** %3)
%6 = call i8* @ziplistDelete(i8* %5, i8** %3)
ret i8* %6
}
int compareDouble(const void *data1, const void *data2) {
  if (*((double *)data1) == *((double *)data2))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<compareDouble>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
ucomisd (%rax),%xmm0
jne    1134 <compareDouble+0x34>
jp     1134 <compareDouble+0x34>
movl   $0x0,-0x4(%rbp)
jmp    113b <compareDouble+0x3b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compareDouble>:
movsd  (%rsi),%xmm0
cmpneqsd (%rdi),%xmm0
movq   %xmm0,%rax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @compareDouble(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %4
%7 = bitcast i8* %6 to double*
%8 = load double, double* %7
%9 = load i8*, i8** %5
%10 = bitcast i8* %9 to double*
%11 = load double, double* %10
%12 = fcmp oeq double %8, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, i32* %3
br label %15
14: ; preds = %2
store i32 1, i32* %3
br label %15
15: ; preds = %14, %13
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @compareDouble(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to double*
%4 = load double, double* %3
%5 = bitcast i8* %1 to double*
%6 = load double, double* %5
%7 = fcmp une double %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
long get_num(char *, char *);
char *long2str(char *, int /*<<< orphan*/);
int /*<<< orphan*/ tt_howmanyRemarks(int, long);
char *macttHowmanyRemarks(char *arg) {
  int tbl;
  long top;
  top = get_num("ttHowmanyRemarks", arg);
  tbl = (int)get_num("ttHowmanyRemarks", arg);
  return long2str(arg, tt_howmanyRemarks(tbl, top));
}


x86 assembly (clang, -O0):
<macttHowmanyRemarks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1040 <get_num@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xea5(%rip),%rdi
call   1040 <get_num@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <tt_howmanyRemarks@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%esi
call   1050 <long2str@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<macttHowmanyRemarks>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xec1(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <get_num@plt>
mov    %rax,%r15
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <get_num@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1030 <tt_howmanyRemarks@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <long2str@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"ttHowmanyRemarks\00"
define i8* @macttHowmanyRemarks(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i64
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i64 @get_num(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %5)
store i64 %6, i64* %4
%7 = load i8*, i8** %2
%8 = call i64 @get_num(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %3
%10 = load i8*, i8** %2
%11 = load i32, i32* %3
%12 = load i64, i64* %4
%13 = call i32 @tt_howmanyRemarks(i32 %11, i64 %12)
%14 = call i8* @long2str(i8* %10, i32 %13)
ret i8* %14
}

LLVM IR (-O2):
@.str = [17 x i8] c"ttHowmanyRemarks\00"
define i8* @macttHowmanyRemarks(i8* %0) {
%2 = tail call i64 @get_num(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i64 @get_num(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = trunc i64 %3 to i32
%5 = tail call i32 @tt_howmanyRemarks(i32 %4, i64 %2)
%6 = tail call i8* @long2str(i8* %0, i32 %5)
ret i8* %6
}
int register_dcbevent_notifier(struct notifier_block *nb) { return 0; }


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

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

LLVM IR (-O0):
%struct.notifier_block = type opaque
define i32 @register_dcbevent_notifier(%struct.notifier_block* %0) {
%2 = alloca %struct.notifier_block*
store %struct.notifier_block* %0, %struct.notifier_block** %2
ret i32 0
}

LLVM IR (-O2):
%struct.notifier_block = type opaque
define i32 @register_dcbevent_notifier(%struct.notifier_block* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int do_protectedmain();
int /*<<< orphan*/ lua_closefile();
int /*<<< orphan*/ lua_message(char *);
char *lua_openfile(char *);
int lua_dofile(char *filename) {
  int status;
  char *message = lua_openfile(filename);
  if (message) {
    lua_message(message);
    return 1;
  }
  status = do_protectedmain();
  lua_closefile();
  return status;
}


x86 assembly (clang, -O0):
<lua_dofile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <lua_openfile@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1179 <lua_dofile+0x39>
mov    -0x20(%rbp),%rdi
call   1040 <lua_message@plt>
movl   $0x1,-0x4(%rbp)
jmp    1190 <lua_dofile+0x50>
mov    $0x0,%al
call   1050 <do_protectedmain@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <lua_closefile@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lua_dofile>:
push   %rbx
call   1030 <lua_openfile@plt>
test   %rax,%rax
je     115a <lua_dofile+0x1a>
mov    %rax,%rdi
call   1040 <lua_message@plt>
mov    $0x1,%eax
pop    %rbx
ret
xor    %eax,%eax
call   1050 <do_protectedmain@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1060 <lua_closefile@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @lua_dofile(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = call i8* @lua_openfile(i8* %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8*, i8** %5
%12 = call i32 @lua_message(i8* %11)
store i32 1, i32* %2
br label %17
13: ; preds = %1
%14 = call i32 (...) @do_protectedmain()
store i32 %14, i32* %4
%15 = call i32 (...) @lua_closefile()
%16 = load i32, i32* %4
store i32 %16, i32* %2
br label %17
17: ; preds = %13, %10
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @lua_dofile(i8* %0) {
%2 = tail call i8* @lua_openfile(i8* %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @lua_message(i8* %2)
br label %9
6: ; preds = %1
%7 = tail call i32 (...) @do_protectedmain()
%8 = tail call i32 (...) @lua_closefile()
br label %9
9: ; preds = %6, %4
%10 = phi i32 [ 1, %4 ], [ %7, %6 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int scanf(char *, int *);
int /*<<< orphan*/ stderr;
void checkInput(int *N) {
  printf("Enter number: ");
  if ((scanf("%d", N)) != 1) {
    fprintf(stderr, "Wrong input values!");
    exit(EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<checkInput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xeac(%rip),%rdi
call   1050 <scanf@plt>
cmp    $0x1,%eax
je     1194 <checkInput+0x54>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkInput>:
push   %rbx
mov    %rdi,%rbx
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
jne    1166 <checkInput+0x26>
pop    %rbx
ret
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
lea    0xe9c(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Enter number: \00"
@.str.1 = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"Wrong input values!\00"
@EXIT_FAILURE = global i32 0
define void @checkInput(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = load i32*, i32** %2
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = icmp ne i32 %5, 1
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @EXIT_FAILURE
%11 = call i32 @exit(i32 %10)
unreachable
12: ; preds = %1
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"Enter number: \00"
@.str.1 = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"Wrong input values!\00"
@EXIT_FAILURE = global i32 0
define void @checkInput(i32* %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %0)
%4 = icmp eq i32 %3, 1
br i1 %4, label %10, label %5
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %1
ret void
}
void func(int x) {
  if (x) {
  }
  do {
    if (0) {
    }
  } while (0);
  do {
    if (!x) {
    }
  } while (0);
  do {
    if (x) {
    }
  } while (0);
  do {
    do {
      if (x) {
      }
    } while (0);
  } while (0);
  if (((x) && (x))) {
  }
  if (((x) || (x))) {
  }
  if (((x) + (x))) {
  }
  if ((x)) {
  }
}


x86 assembly (clang, -O0):
<func>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1116 <func+0x16>
jmp    1116 <func+0x16>
jmp    111b <func+0x1b>
jmp    1120 <func+0x20>
jmp    1125 <func+0x25>
cmpl   $0x0,-0x4(%rbp)
jne    1134 <func+0x34>
jmp    1134 <func+0x34>
jmp    1139 <func+0x39>
jmp    113e <func+0x3e>
cmpl   $0x0,-0x4(%rbp)
je     114d <func+0x4d>
jmp    114d <func+0x4d>
jmp    1152 <func+0x52>
jmp    1157 <func+0x57>
jmp    115c <func+0x5c>
cmpl   $0x0,-0x4(%rbp)
je     116b <func+0x6b>
jmp    116b <func+0x6b>
jmp    1170 <func+0x70>
jmp    1175 <func+0x75>
cmpl   $0x0,-0x4(%rbp)
je     118e <func+0x8e>
cmpl   $0x0,-0x4(%rbp)
je     118e <func+0x8e>
jmp    118e <func+0x8e>
cmpl   $0x0,-0x4(%rbp)
jne    11a2 <func+0xa2>
cmpl   $0x0,-0x4(%rbp)
je     11a7 <func+0xa7>
jmp    11a7 <func+0xa7>
mov    -0x4(%rbp),%eax
add    -0x4(%rbp),%eax
cmp    $0x0,%eax
je     11bb <func+0xbb>
jmp    11bb <func+0xbb>
cmpl   $0x0,-0x4(%rbp)
je     11ca <func+0xca>
jmp    11ca <func+0xca>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @func(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %6
6: ; preds = %5, %1
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
br label %9
9: ; preds = %8
%10 = load i32, i32* %2
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %9
br label %13
13: ; preds = %12, %9
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = load i32, i32* %2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
br label %19
19: ; preds = %18, %15
br label %20
20: ; preds = %19
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %22
br label %26
26: ; preds = %25, %22
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = load i32, i32* %2
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = load i32, i32* %2
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
br label %35
35: ; preds = %34, %31, %28
%36 = load i32, i32* %2
%37 = icmp ne i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = load i32, i32* %2
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %38, %35
br label %42
42: ; preds = %41, %38
%43 = load i32, i32* %2
%44 = load i32, i32* %2
%45 = add nsw i32 %43, %44
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %42
br label %48
48: ; preds = %47, %42
%49 = load i32, i32* %2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
br label %52
52: ; preds = %51, %48
ret void
}

LLVM IR (-O2):
define void @func(i32 %0) {
ret void
}
/* Variables and functions */
scalar_t__ isupper(int);
int tolower(int character) {
  return (isupper(character) ? (character - 'A' + 'a') : character);
}


x86 assembly (clang, -O0):
<tolower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <isupper@plt>
cmp    $0x0,%rax
je     113e <tolower+0x2e>
mov    -0x4(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <tolower+0x34>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tolower>:
push   %rbx
mov    %edi,%ebx
call   1030 <isupper@plt>
lea    0x20(%rbx),%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @tolower(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @isupper(i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %2
%8 = sub nsw i32 %7, 65
%9 = add nsw i32 %8, 97
br label %12
10: ; preds = %1
%11 = load i32, i32* %2
br label %12
12: ; preds = %10, %6
%13 = phi i32 [ %9, %6 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @tolower(i32 %0) {
%2 = tail call i64 @isupper(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_cvolume_min_mask() {
  printf("NOT IMPLEMENTED:"
         "pa_cvolume_min_mask"
         "\n");
}


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

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

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

LLVM IR (-O2):
@str = [36 x i8] c"NOT IMPLEMENTED:pa_cvolume_min_mask\00"
define i32 @pa_cvolume_min_mask() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
int HelpItem10(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @HelpItem10() {
ret i32 0
}
int test_imm_59uint16_mem(unsigned short *val) {
  return ((*val) & (0x59 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_59uint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 89
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ log_error(char *);
void oom() {
  log_error("Out of memory\n");
  exit(1);
}


x86 assembly (clang, -O0):
<oom>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <log_error@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<oom>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <log_error@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Out of memory\0A\00"
define void @oom() {
%1 = call i32 @log_error(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [15 x i8] c"Out of memory\0A\00"
define void @oom() {
%1 = tail call i32 @log_error(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ UPnPResponse_DimmingService_GetMinLevel(void *, int);
int /*<<< orphan*/ printf(char *);
void DimmingService_GetMinLevel(void *upnptoken) {
  printf("UPnP Invoke: DimmingService_GetMinLevel();\r\n");
  UPnPResponse_DimmingService_GetMinLevel(upnptoken, 250);
}


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

x86 assembly (clang, -O2):
<DimmingService_GetMinLevel>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0xfa,%esi
pop    %rbx
jmp    1030 <UPnPResponse_DimmingService_GetMinLevel@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"UPnP Invoke: DimmingService_GetMinLevel();\0D\0A\00"
define void @DimmingService_GetMinLevel(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @UPnPResponse_DimmingService_GetMinLevel(i8* %4, i32 250)
ret void
}

LLVM IR (-O2):
@str = [44 x i8] c"UPnP Invoke: DimmingService_GetMinLevel();\0D\00"
define void @DimmingService_GetMinLevel(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @UPnPResponse_DimmingService_GetMinLevel(i8* %0, i32 250)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void l1_instruction_read(void) {
  int *i = (void *)0xffa10000;
  printf("%i\n", *i);
}


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

x86 assembly (clang, -O2):
<l1_instruction_read>:
mov    $0xffa10000,%eax
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
define void @l1_instruction_read() {
%1 = load i32, i32* inttoptr (i64 4288741376 to i32*)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
void jpeg_fdct_ifast(void) {}


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

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

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

LLVM IR (-O2):
define void @jpeg_fdct_ifast() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalpha(int);
void t_isalpha_0xff() {
  Assert_real((isalpha(255) == 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_isalpha.c",
              1280, ("isalpha should be 0 for 0xff"));
}


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

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

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xff\00"
define void @t_isalpha_0xff() {
%1 = tail call i64 @isalpha(i32 255)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1280, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *progname) {
  fprintf(stderr,
          "usage:  %s [-v]\n"
          "Where:\n\t"
          "-v Print binder version.\n",
          progname);
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"usage: %s [-v]\0AWhere:\0A\09-v Print binder version.\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"usage: %s [-v]\0AWhere:\0A\09-v Print binder version.\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 -1)
unreachable
}
/* Variables and functions */
char *getenv(char *);
char *getHomeDir(void) { return getenv("HOME"); }


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

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

LLVM IR (-O0):
@.str = [5 x i8] c"HOME\00"
define i8* @getHomeDir() {
%1 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [5 x i8] c"HOME\00"
define i8* @getHomeDir() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
void g5_set_range(double xmin, double xmax, double mmin) {}


x86 assembly (clang, -O0):
<g5_set_range>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @g5_set_range(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
ret void
}

LLVM IR (-O2):
define void @g5_set_range(double %0, double %1, double %2) {
ret void
}
/* Variables and functions */
float fastpow2(float);
float fastexp(float p) { return fastpow2(1.442695040f * p); }


x86 assembly (clang, -O0):
<fastexp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  0xedb(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
call   1030 <fastpow2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fastexp>:
mulss  0xee8(%rip),%xmm0
jmp    1030 <fastpow2@plt>

LLVM IR (-O0):
define float @fastexp(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fmul float 0x3FF7154760000000, %3
%5 = call float @fastpow2(float %4)
ret float %5
}

LLVM IR (-O2):
define float @fastexp(float %0) {
%2 = fmul float %0, 0x3FF7154760000000
%3 = tail call float @fastpow2(float %2)
ret float %3
}
/* Variables and functions */
int fabs(double const);
char f_div(double *a, const double *b) {
  if (fabs(*b) < 1E-30) {
    return (1);
  } else {
    *a = (*a) / (*b);
  }
  return (0);
}


x86 assembly (clang, -O0):
<f_div>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xec7(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    114c <f_div+0x3c>
movb   $0x1,-0x1(%rbp)
jmp    1168 <f_div+0x58>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movb   $0x0,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_div>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
movsd  (%rsi),%xmm0
call   1030 <fabs@plt>
test   %eax,%eax
jle    1139 <f_div+0x29>
movsd  (%r14),%xmm0
divsd  (%rbx),%xmm0
movsd  %xmm0,(%r14)
xor    %eax,%eax
jmp    113b <f_div+0x2b>
mov    $0x1,%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define signext i8 @f_div(double* %0, double* %1) {
%3 = alloca i8
%4 = alloca double*
%5 = alloca double*
store double* %0, double** %4
store double* %1, double** %5
%6 = load double*, double** %5
%7 = load double, double* %6
%8 = call i32 @fabs(double %7)
%9 = sitofp i32 %8 to double
%10 = fcmp olt double %9, 1.000000e-30
br i1 %10, label %11, label %12
11: ; preds = %2
store i8 1, i8* %3
br label %20
12: ; preds = %2
%13 = load double*, double** %4
%14 = load double, double* %13
%15 = load double*, double** %5
%16 = load double, double* %15
%17 = fdiv double %14, %16
%18 = load double*, double** %4
store double %17, double* %18
br label %19
19: ; preds = %12
store i8 0, i8* %3
br label %20
20: ; preds = %19, %11
%21 = load i8, i8* %3
ret i8 %21
}

LLVM IR (-O2):
define signext i8 @f_div(double* nocapture %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = tail call i32 @fabs(double %3)
%5 = icmp slt i32 %4, 1
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load double, double* %0
%8 = load double, double* %1
%9 = fdiv double %7, %8
store double %9, double* %0
br label %10
10: ; preds = %2, %6
%11 = phi i8 [ 0, %6 ], [ 1, %2 ]
ret i8 %11
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int clear_multprec_tracker(void) {
  int fail, *a, *b;
  double *c;
  fail = _ada_use_c2phc4c(515, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<clear_multprec_tracker>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x203,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_multprec_tracker>:
mov    $0x203,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @clear_multprec_tracker() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 515, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
void gtk_tree_view_unset_rows_drag_source() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ fh_dump_value(struct fh_value *);
int /*<<< orphan*/ printf(char *, ...);
void dump_val(char *label, struct fh_value *val) {
  printf("%s", label);
  fh_dump_value(val);
  printf("\n");
}


x86 assembly (clang, -O0):
<dump_val>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <fh_dump_value@plt>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_val>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rsi
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <fh_dump_value@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
%struct.fh_value = type { i32 }
@.str = [3 x i8] c"%s\00"
define void @dump_val(i8* %0, %struct.fh_value* %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @fh_dump_value(%struct.fh_value* %1)
%5 = tail call i32 @putchar(i32 10)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ strtoull(char *, int /*<<< orphan*/, int /*<<< orphan*/);
uint64_t atoi_any(char *arg) {
  int value;
  return strtoull(arg, 0, 0);
}


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

x86 assembly (clang, -O2):
<atoi_any>:
xor    %esi,%esi
xor    %edx,%edx
jmp    1030 <strtoull@plt>

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

LLVM IR (-O2):
define i32 @atoi_any(i8* %0) {
%2 = tail call i32 @strtoull(i8* %0, i32 0, i32 0)
ret i32 %2
}
int isprint(int x) {
  unsigned char c = x & 0xff;
  return (c >= 32 && c <= 126) || (c >= 160);
}


x86 assembly (clang, -O0):
<isprint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x5(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x20,%eax
jl     1131 <isprint+0x31>
movzbl -0x5(%rbp),%ecx
mov    $0x1,%al
cmp    $0x7e,%ecx
mov    %al,-0x6(%rbp)
jle    1140 <isprint+0x40>
movzbl -0x5(%rbp),%eax
cmp    $0xa0,%eax
setge  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isprint>:
movzbl %dil,%eax
lea    -0x20(%rax),%ecx
cmp    $0x5f,%ecx
setb   %cl
cmp    $0xa0,%eax
setae  %al
or     %cl,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @isprint(i32 %0) {
%2 = alloca i32
%3 = alloca i8
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = and i32 %4, 255
%6 = trunc i32 %5 to i8
store i8 %6, i8* %3
%7 = load i8, i8* %3
%8 = zext i8 %7 to i32
%9 = icmp sge i32 %8, 32
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = icmp sle i32 %12, 126
br i1 %13, label %18, label %14
14: ; preds = %10, %1
%15 = load i8, i8* %3
%16 = zext i8 %15 to i32
%17 = icmp sge i32 %16, 160
br label %18
18: ; preds = %14, %10
%19 = phi i1 [ true, %10 ], [ %17, %14 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
define i32 @isprint(i32 %0) {
%2 = and i32 %0, 255
%3 = add nsw i32 %2, -32
%4 = icmp ult i32 %3, 95
%5 = icmp ugt i32 %2, 159
%6 = or i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ shell_bufferclear();
int /*<<< orphan*/ terminal_clearscreen();
void shell_exit() {
  shell_bufferclear();
  terminal_clearscreen();
}


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

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

LLVM IR (-O0):
define void @shell_exit() {
%1 = call i32 (...) @shell_bufferclear()
%2 = call i32 (...) @terminal_clearscreen()
ret void
}

LLVM IR (-O2):
define void @shell_exit() {
%1 = tail call i32 (...) @shell_bufferclear()
%2 = tail call i32 (...) @terminal_clearscreen()
ret void
}
int kolibri_get_height_bitmap(void *bitmap) {}


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

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

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

LLVM IR (-O2):
define i32 @kolibri_get_height_bitmap(i8* nocapture readnone %0) {
ret i32 undef
}
void ps3av_cmd_av_hw_conf_dump(const struct ps3av_pkt_av_get_hw_conf *hw_conf) {
}


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

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

LLVM IR (-O0):
%struct.ps3av_pkt_av_get_hw_conf = type opaque
define void @ps3av_cmd_av_hw_conf_dump(%struct.ps3av_pkt_av_get_hw_conf* %0) {
%2 = alloca %struct.ps3av_pkt_av_get_hw_conf*
store %struct.ps3av_pkt_av_get_hw_conf* %0, %struct.ps3av_pkt_av_get_hw_conf** %2
ret void
}

LLVM IR (-O2):
%struct.ps3av_pkt_av_get_hw_conf = type opaque
define void @ps3av_cmd_av_hw_conf_dump(%struct.ps3av_pkt_av_get_hw_conf* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ user_cmd_is_white_space(char);
char *user_cmd_find_end_of_word(char *buffer) {
  char *p = buffer;
  while (!user_cmd_is_white_space(*p) && (*p != '\0')) {
    p++;
  }
  return p;
}


x86 assembly (clang, -O0):
<user_cmd_find_end_of_word>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <user_cmd_is_white_space@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
jne    1150 <user_cmd_find_end_of_word+0x40>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1160 <user_cmd_find_end_of_word+0x50>
jmp    1171 <user_cmd_find_end_of_word+0x61>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <user_cmd_find_end_of_word+0x14>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<user_cmd_find_end_of_word>:
push   %rbx
mov    %rdi,%rbx
movsbl (%rdi),%edi
nopw   0x0(%rax,%rax,1)
call   1030 <user_cmd_is_white_space@plt>
test   %eax,%eax
jne    1138 <user_cmd_find_end_of_word+0x28>
cmpb   $0x0,(%rbx)
je     1138 <user_cmd_find_end_of_word+0x28>
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
jmp    1120 <user_cmd_find_end_of_word+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @user_cmd_find_end_of_word(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 = %17, %1
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = call i32 @user_cmd_is_white_space(i8 signext %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %15, label %10
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %10, %5
%16 = phi i1 [ false, %5 ], [ %14, %10 ]
br i1 %16, label %17, label %20
17: ; preds = %15
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %3
br label %5
20: ; preds = %15
%21 = load i8*, i8** %3
ret i8* %21
}

LLVM IR (-O2):
define i8* @user_cmd_find_end_of_word(i8* %0) {
%2 = load i8, i8* %0
%3 = tail call i32 @user_cmd_is_white_space(i8 signext %2)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %14
5: ; preds = %1, %9
%6 = phi i8* [ %10, %9 ], [ %0, %1 ]
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = getelementptr inbounds i8, i8* %6, i64 1
%11 = load i8, i8* %10
%12 = tail call i32 @user_cmd_is_white_space(i8 signext %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %5, label %14
14: ; preds = %5, %9, %1
%15 = phi i8* [ %0, %1 ], [ %10, %9 ], [ %6, %5 ]
ret i8* %15
}
int test_imm_39int64_lowword_reg(long long val) {
  return ((val) & (0x39 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_39int64_lowword_reg>:
test   $0x39,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_39int64_lowword_reg(i64 %0) {
%2 = and i64 %0, 57
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int cfunc(void) {
  printf("Hello from cfunc!\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [19 x i8] c"Hello from cfunc!\0A\00"
define i32 @cfunc() {
%1 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"Hello from cfunc!\00"
define i32 @cfunc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ vga_terminal_putchar(int /*<<< orphan*/);
void puts(const char *str) {
  while (*str != 0)
    vga_terminal_putchar(*str++);
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1148 <puts+0x38>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <vga_terminal_putchar@plt>
jmp    111c <puts+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <puts+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <vga_terminal_putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <puts+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @puts(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = tail call i32 @vga_terminal_putchar(i32 %7)
%10 = load i8, i8* %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}