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

/* Variables and functions */
uint8_t ofc_label_table__offset_hash(unsigned offset) {
  uint32_t h = (offset & 0xFFFFFFFFU);
  h = (h & 0x0000FFFF) ^ (h >> 16U);
  h = (h & 0x000000FF) ^ (h >> 8U);
  return h;
}


x86 assembly (clang, -O0):
<ofc_label_table__offset_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xffff,%eax
mov    -0x8(%rbp),%ecx
sar    $0x10,%ecx
xor    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    -0x8(%rbp),%ecx
sar    $0x8,%ecx
xor    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ofc_label_table__offset_hash>:
movzwl %di,%eax
sar    $0x10,%edi
xor    %edi,%eax
movzbl %al,%ecx
sar    $0x8,%eax
xor    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ofc_label_table__offset_hash(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = and i32 %4, -1
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = and i32 %6, 65535
%8 = load i32, i32* %3
%9 = ashr i32 %8, 16
%10 = xor i32 %7, %9
store i32 %10, i32* %3
%11 = load i32, i32* %3
%12 = and i32 %11, 255
%13 = load i32, i32* %3
%14 = ashr i32 %13, 8
%15 = xor i32 %12, %14
store i32 %15, i32* %3
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @ofc_label_table__offset_hash(i32 %0) {
%2 = and i32 %0, 65535
%3 = ashr i32 %0, 16
%4 = xor i32 %2, %3
%5 = and i32 %4, 255
%6 = ashr i32 %4, 8
%7 = xor i32 %5, %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float acre;
  printf("Acre: ");
  scanf("%f", &acre);
  printf("Metro quadrado: %.2f", acre * 4048.58);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea2(%rip),%xmm1
mulsd  %xmm1,%xmm0
lea    0xea9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xeae(%rip),%xmm0
lea    0xeb9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"Acre: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"Metro quadrado: %.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fmul double %6, 4.048580e+03
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"Acre: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"Metro quadrado: %.2f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fpext float %5 to double
%7 = fmul double %6, 4.048580e+03
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ DumpLong(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
void DumpString(char *s, int size, FILE *D) {
  if (s == NULL)
    DumpLong(0, D);
  else {
    DumpLong(size, D);
    fwrite(s, size, 1, D);
  }
}


x86 assembly (clang, -O0):
<DumpString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    114e <DumpString+0x2e>
mov    -0x18(%rbp),%rsi
xor    %edi,%edi
call   1030 <DumpLong@plt>
jmp    116f <DumpString+0x4f>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <DumpLong@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fwrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DumpString>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbx
test   %rdi,%rdi
je     1153 <DumpString+0x33>
mov    %esi,%r14d
mov    %rdi,%rbp
mov    %esi,%edi
mov    %rbx,%rsi
call   1030 <DumpLong@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <fwrite@plt>
xor    %edi,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <DumpLong@plt>

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

LLVM IR (-O2):
define void @DumpString(i8* %0, i32 %1, i32* %2) {
%4 = icmp eq i8* %0, null
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @DumpLong(i32 0, i32* %2)
br label %10
7: ; preds = %3
%8 = tail call i32 @DumpLong(i32 %1, i32* %2)
%9 = tail call i32 @fwrite(i8* %0, i32 %1, i32 1, i32* %2)
br label %10
10: ; preds = %7, %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128Timer1P__Capture__start();
void Atm128GpioCaptureC__0__Atm128Capture__start(void) {
  HplAtm128Timer1P__Capture__start();
}


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

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

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

LLVM IR (-O2):
define void @Atm128GpioCaptureC__0__Atm128Capture__start() {
%1 = tail call i32 (...) @HplAtm128Timer1P__Capture__start()
ret void
}
/* Variables and functions */
int isIupacLower(int /*<<< orphan*/);
int /*<<< orphan*/ tolower(char);
int isIupac(char c) { return isIupacLower(tolower(c)); }


x86 assembly (clang, -O0):
<isIupac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <tolower@plt>
mov    %eax,%edi
call   1030 <isIupacLower@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isIupac>:
push   %rax
call   1040 <tolower@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <isIupacLower@plt>

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

LLVM IR (-O2):
define i32 @isIupac(i8 signext %0) {
%2 = tail call i32 @tolower(i8 signext %0)
%3 = tail call i32 @isIupacLower(i32 %2)
ret i32 %3
}
/* Variables and functions */
bool nrf53_errata_99(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf53_errata_99() {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct scsi_cmd {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ spc_request_sense(struct scsi_cmd *);
int /*<<< orphan*/ t10k_init_sense(struct scsi_cmd *);
uint8_t t10k_sense(struct scsi_cmd *cmd) {
  t10k_init_sense(cmd);
  return spc_request_sense(cmd);
}


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

x86 assembly (clang, -O2):
<t10k_sense>:
push   %rbx
mov    %rdi,%rbx
call   1030 <t10k_init_sense@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <spc_request_sense@plt>

LLVM IR (-O0):
%struct.scsi_cmd = type { i32 }
define i32 @t10k_sense(%struct.scsi_cmd* %0) {
%2 = alloca %struct.scsi_cmd*
store %struct.scsi_cmd* %0, %struct.scsi_cmd** %2
%3 = load %struct.scsi_cmd*, %struct.scsi_cmd** %2
%4 = call i32 @t10k_init_sense(%struct.scsi_cmd* %3)
%5 = load %struct.scsi_cmd*, %struct.scsi_cmd** %2
%6 = call i32 @spc_request_sense(%struct.scsi_cmd* %5)
ret i32 %6
}

LLVM IR (-O2):
%struct.scsi_cmd = type { i32 }
define i32 @t10k_sense(%struct.scsi_cmd* %0) {
%2 = tail call i32 @t10k_init_sense(%struct.scsi_cmd* %0)
%3 = tail call i32 @spc_request_sense(%struct.scsi_cmd* %0)
ret i32 %3
}
void SteamAPI_ISteamHTMLSurface_MouseDoubleClick(void *self) {
  xlogf("%s(self = %p)\n", __func__, self);
}


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

x86 assembly (clang, -O2):
<SteamAPI_ISteamHTMLSurface_MouseDoubleClick>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
jmp    1030 <xlogf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamHTMLSurface_MouseDoubleClick = [44 x i8] c"SteamAPI_ISteamHTMLSurface_MouseDoubleClick\00"
define void @SteamAPI_ISteamHTMLSurface_MouseDoubleClick(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @__func__.SteamAPI_ISteamHTMLSurface_MouseDoubleClick, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamHTMLSurface_MouseDoubleClick = [44 x i8] c"SteamAPI_ISteamHTMLSurface_MouseDoubleClick\00"
define void @SteamAPI_ISteamHTMLSurface_MouseDoubleClick(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @__func__.SteamAPI_ISteamHTMLSurface_MouseDoubleClick, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_pic();
int /*<<< orphan*/ init_timer(int);
void init_irq(void) {
  init_pic();
  init_timer(20);
}


x86 assembly (clang, -O0):
<init_irq>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <init_pic@plt>
mov    $0x14,%edi
call   1040 <init_timer@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_irq>:
push   %rax
xor    %eax,%eax
call   1030 <init_pic@plt>
mov    $0x14,%edi
pop    %rax
jmp    1040 <init_timer@plt>

LLVM IR (-O0):
define void @init_irq() {
%1 = call i32 (...) @init_pic()
%2 = call i32 @init_timer(i32 20)
ret void
}

LLVM IR (-O2):
define void @init_irq() {
%1 = tail call i32 (...) @init_pic()
%2 = tail call i32 @init_timer(i32 20)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ fenv_t;

/* Variables and functions */
int FE_ALL_EXCEPT;
int /*<<< orphan*/ _FPU_GETCW(int);
int /*<<< orphan*/ feraiseexcept(int);
int /*<<< orphan*/ fesetenv(int /*<<< orphan*/ const *);
int feupdateenv(const fenv_t *envp) {
  int temp;
  _FPU_GETCW(temp);
  temp &= FE_ALL_EXCEPT;
  fesetenv(envp);
  feraiseexcept(temp);
  return 0;
}


x86 assembly (clang, -O0):
<feupdateenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <_FPU_GETCW@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%eax
and    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <fesetenv@plt>
mov    -0xc(%rbp),%edi
call   1040 <feraiseexcept@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<feupdateenv>:
push   %rbx
mov    %rdi,%rbx
call   1030 <_FPU_GETCW@plt>
mov    %rbx,%rdi
call   1050 <fesetenv@plt>
xor    %edi,%edi
call   1040 <feraiseexcept@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@FE_ALL_EXCEPT = global i32 0
define i32 @feupdateenv(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32, i32* %3
%5 = call i32 @_FPU_GETCW(i32 %4)
%6 = load i32, i32* @FE_ALL_EXCEPT
%7 = load i32, i32* %3
%8 = and i32 %7, %6
store i32 %8, i32* %3
%9 = load i32*, i32** %2
%10 = call i32 @fesetenv(i32* %9)
%11 = load i32, i32* %3
%12 = call i32 @feraiseexcept(i32 %11)
ret i32 0
}

LLVM IR (-O2):
@FE_ALL_EXCEPT = global i32 0
define i32 @feupdateenv(i32* %0) {
%2 = tail call i32 @_FPU_GETCW(i32 undef)
%3 = tail call i32 @fesetenv(i32* %0)
%4 = tail call i32 @feraiseexcept(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ gen_e(unsigned char *);
int /*<<< orphan*/ syndrome_asm(unsigned char *, unsigned char const *,
                                unsigned char *);
void encrypt(unsigned char *s, const unsigned char *pk, unsigned char *e) {
  gen_e(e);
  syndrome_asm(s, pk, e);
}


x86 assembly (clang, -O0):
<encrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <gen_e@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <syndrome_asm@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<encrypt>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rdx,%rdi
call   1030 <gen_e@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <syndrome_asm@plt>

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

LLVM IR (-O2):
define void @encrypt(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 @gen_e(i8* %2)
%5 = tail call i32 @syndrome_asm(i8* %0, i8* %1, i8* %2)
ret void
}
/* Variables and functions */
unsigned int ELFHash(unsigned char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strlen(unsigned char *);
int main(int argc, char *argv[]) {
  unsigned char *str = argv[1];
  unsigned int hash = ELFHash(str, strlen(str));
  if (hash == 0xaf9bec9)
    printf("You win!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%esi
call   1050 <ELFHash@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xaf9bec9,-0x1c(%rbp)
jne    118a <main+0x5a>
lea    0xe7b(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x8(%rsi),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <ELFHash@plt>
cmp    $0xaf9bec9,%eax
jne    115a <main+0x2a>
lea    0xeab(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@str = [9 x i8] c"You win!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @strlen(i8* %4)
%6 = tail call i32 @ELFHash(i8* %4, i32 %5)
%7 = icmp eq i32 %6, 184139465
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_162() {
  Assert_real((isqrt(162) == 12),
              "/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/stdlib/isqrt.c",
              815, ("Integer square root of 162 should be 12"));
}


x86 assembly (clang, -O0):
<t_sqrt_162>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa2,%edi
call   1030 <isqrt@plt>
cmp    $0xc,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x32f,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_162>:
push   %rax
mov    $0xa2,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0xc,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x32f,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 162 should be 12\00"
define void @t_sqrt_162() {
%1 = call i32 @isqrt(i32 162)
%2 = icmp eq i32 %1, 12
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 815, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 162 should be 12\00"
define void @t_sqrt_162() {
%1 = tail call i32 @isqrt(i32 162)
%2 = icmp eq i32 %1, 12
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 815, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ fizzbuzz(int);
int main() {
  for (int i = 0; i <= 100; i++) {
    fizzbuzz(i);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     1146 <main+0x36>
mov    -0x8(%rbp),%edi
call   1030 <fizzbuzz@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    0x2e93(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
call   1030 <fizzbuzz@plt>
add    $0x1,%ebx
cmp    $0x65,%ebx
jne    1120 <main+0x10>
mov    0x2eaa(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %9, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 100
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, i32* %2
%8 = call i32 @fizzbuzz(i32 %7)
br label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
br label %3
12: ; preds = %3
%13 = load i32, i32* @EXIT_SUCCESS
ret i32 %13
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
br label %3
1: ; preds = %3
%2 = load i32, i32* @EXIT_SUCCESS
ret i32 %2
3: ; preds = %0, %3
%4 = phi i32 [ 0, %0 ], [ %6, %3 ]
%5 = tail call i32 @fizzbuzz(i32 %4)
%6 = add nuw nsw i32 %4, 1
%7 = icmp eq i32 %6, 101
br i1 %7, label %1, label %3
}
/* Type definitions */
struct Cyc_Lexing_lexbuf {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ Cyc_block_rec(struct Cyc_Lexing_lexbuf *, int);
int Cyc_block(struct Cyc_Lexing_lexbuf *lexbuf) {
  return ({ Cyc_block_rec(lexbuf, 16); });
}


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

x86 assembly (clang, -O2):
<Cyc_block>:
mov    $0x10,%esi
jmp    1030 <Cyc_block_rec@plt>

LLVM IR (-O0):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_block(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = alloca %struct.Cyc_Lexing_lexbuf*
%3 = alloca i32
store %struct.Cyc_Lexing_lexbuf* %0, %struct.Cyc_Lexing_lexbuf** %2
%4 = load %struct.Cyc_Lexing_lexbuf*, %struct.Cyc_Lexing_lexbuf** %2
%5 = call i32 @Cyc_block_rec(%struct.Cyc_Lexing_lexbuf* %4, i32 16)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_block(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = tail call i32 @Cyc_block_rec(%struct.Cyc_Lexing_lexbuf* %0, i32 16)
ret i32 %2
}
/* Type definitions */
typedef enum xprt_stat { ____Placeholder_xprt_stat } xprt_stat;

/* Variables and functions */
int XPRT_IDLE;
enum xprt_stat svcraw_stat() { return (XPRT_IDLE); }


x86 assembly (clang, -O0):
<svcraw_stat>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<svcraw_stat>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@XPRT_IDLE = global i32 0
define i32 @svcraw_stat() {
%1 = load i32, i32* @XPRT_IDLE
ret i32 %1
}

LLVM IR (-O2):
@XPRT_IDLE = global i32 0
define i32 @svcraw_stat() {
%1 = load i32, i32* @XPRT_IDLE
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
scalar_t__ is_known_pin(int);
int /*<<< orphan*/ set_pin2gpio(int, float);
int /*<<< orphan*/ stderr;
void set_pin(int pin, float width) {
  if (is_known_pin(pin)) {
    set_pin2gpio(pin, width);
  } else {
    fprintf(stderr, "GPIO %d is not enabled for pi-blaster\n", pin);
  }
}


x86 assembly (clang, -O0):
<set_pin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <is_known_pin@plt>
cmp    $0x0,%rax
je     1164 <set_pin+0x34>
mov    -0x4(%rbp),%edi
movss  -0x8(%rbp),%xmm0
call   1030 <set_pin2gpio@plt>
jmp    117c <set_pin+0x4c>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xe89(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pin>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0xc(%rsp)
mov    %edi,%ebx
call   1050 <is_known_pin@plt>
test   %rax,%rax
je     1159 <set_pin+0x29>
mov    %ebx,%edi
movss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
jmp    1030 <set_pin2gpio@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xe97(%rip),%rsi
mov    %ebx,%edx
add    $0x10,%rsp
pop    %rbx
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [39 x i8] c"GPIO %d is not enabled for pi-blaster\0A\00"
define void @set_pin(i32 %0, float %1) {
%3 = alloca i32
%4 = alloca float
store i32 %0, i32* %3
store float %1, float* %4
%5 = load i32, i32* %3
%6 = call i64 @is_known_pin(i32 %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, i32* %3
%10 = load float, float* %4
%11 = call i32 @set_pin2gpio(i32 %9, float %10)
br label %16
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load i32, i32* %3
%15 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %12, %8
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [39 x i8] c"GPIO %d is not enabled for pi-blaster\0A\00"
define void @set_pin(i32 %0, float %1) {
%3 = tail call i64 @is_known_pin(i32 %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @set_pin2gpio(i32 %0, float %1)
br label %10
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %10
10: ; preds = %7, %5
ret void
}
int gui_color_get_dogechat_colors_number() { return 17; }


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

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

LLVM IR (-O0):
define i32 @gui_color_get_dogechat_colors_number() {
ret i32 17
}

LLVM IR (-O2):
define i32 @gui_color_get_dogechat_colors_number() {
ret i32 17
}
void sk_value(void) {}


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

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

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

LLVM IR (-O2):
define void @sk_value() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int uspe_action_help() {
  printf("... TPROXY <ip> <port> <fw_mark>\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"... TPROXY <ip> <port> <fw_mark>\0A\00"
define i32 @uspe_action_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [33 x i8] c"... TPROXY <ip> <port> <fw_mark>\00"
define i32 @uspe_action_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ ApplicationLevelInitialization();
int /*<<< orphan*/ Escher_SetFactoryInit(scalar_t__);
int /*<<< orphan*/ Escher_xtUML_run();
int /*<<< orphan*/ InitializeOoaEventPool();
int /*<<< orphan*/ MicrowaveOven_execute_initialization();
int /*<<< orphan*/ UserInitializationCalloutf();
int main(int argc, char **argv) {
  UserInitializationCalloutf();
  Escher_SetFactoryInit((0 + 0));
  InitializeOoaEventPool();
  ApplicationLevelInitialization();
  ;
  MicrowaveOven_execute_initialization();
  ;
  Escher_xtUML_run();
  ;
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <UserInitializationCalloutf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <Escher_SetFactoryInit@plt>
mov    $0x0,%al
call   1050 <InitializeOoaEventPool@plt>
mov    $0x0,%al
call   1040 <ApplicationLevelInitialization@plt>
mov    $0x0,%al
call   1060 <MicrowaveOven_execute_initialization@plt>
mov    $0x0,%al
call   1070 <Escher_xtUML_run@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <UserInitializationCalloutf@plt>
xor    %edi,%edi
call   1080 <Escher_SetFactoryInit@plt>
xor    %eax,%eax
call   1050 <InitializeOoaEventPool@plt>
xor    %eax,%eax
call   1040 <ApplicationLevelInitialization@plt>
xor    %eax,%eax
call   1060 <MicrowaveOven_execute_initialization@plt>
xor    %eax,%eax
call   1070 <Escher_xtUML_run@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @UserInitializationCalloutf()
%7 = call i32 @Escher_SetFactoryInit(i64 0)
%8 = call i32 (...) @InitializeOoaEventPool()
%9 = call i32 (...) @ApplicationLevelInitialization()
%10 = call i32 (...) @MicrowaveOven_execute_initialization()
%11 = call i32 (...) @Escher_xtUML_run()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @UserInitializationCalloutf()
%4 = tail call i32 @Escher_SetFactoryInit(i64 0)
%5 = tail call i32 (...) @InitializeOoaEventPool()
%6 = tail call i32 (...) @ApplicationLevelInitialization()
%7 = tail call i32 (...) @MicrowaveOven_execute_initialization()
%8 = tail call i32 (...) @Escher_xtUML_run()
ret i32 0
}
void relational(unsigned U, signed S) {
  if (S > 10) {
    if (U < S) {
    }
  }
  if (S < -10) {
    if (U < S) {
    }
  }
}


x86 assembly (clang, -O0):
<relational>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jle    112a <relational+0x2a>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1125 <relational+0x25>
jmp    1125 <relational+0x25>
jmp    112a <relational+0x2a>
cmpl   $0xfffffff6,-0x8(%rbp)
jge    114a <relational+0x4a>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1145 <relational+0x45>
jmp    1145 <relational+0x45>
jmp    114a <relational+0x4a>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @relational(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 = icmp sgt i32 %5, 10
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = icmp ult i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %7
br label %12
12: ; preds = %11, %7
br label %13
13: ; preds = %12, %2
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, -10
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = icmp ult i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
br label %21
21: ; preds = %20, %16
br label %22
22: ; preds = %21, %13
ret void
}

LLVM IR (-O2):
define void @relational(i32 %0, i32 %1) {
ret void
}
int test_imm_4Buint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0x4B << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_4Buint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 322122547200
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void destroy_string_type_katcp(void *data) {
  char *o;
  o = data;
  if (o != NULL) {
    free(o);
  }
}


x86 assembly (clang, -O0):
<destroy_string_type_katcp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1138 <destroy_string_type_katcp+0x28>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<destroy_string_type_katcp>:
test   %rdi,%rdi
je     111a <destroy_string_type_katcp+0xa>
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @destroy_string_type_katcp(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void bg_color(int background) { printf("%c[%dm", 0x1B, background + 40); }


x86 assembly (clang, -O0):
<bg_color>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
add    $0x28,%edx
lea    0xed8(%rip),%rdi
mov    $0x1b,%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bg_color>:
lea    0x28(%rdi),%edx
lea    0xee6(%rip),%rdi
mov    $0x1b,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%c[%dm\00"
define void @bg_color(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 40
%5 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 27, i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%c[%dm\00"
define void @bg_color(i32 %0) {
%2 = add nsw i32 %0, 40
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 27, i32 %2)
ret void
}
void g_value_set_string() {}


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

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

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

LLVM IR (-O2):
define void @g_value_set_string() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ExtAccumulator(int);
void OR(void) { ExtAccumulator(6); }


x86 assembly (clang, -O0):
<OR>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%edi
call   1030 <ExtAccumulator@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<OR>:
mov    $0x6,%edi
jmp    1030 <ExtAccumulator@plt>

LLVM IR (-O0):
define void @OR() {
%1 = call i32 @ExtAccumulator(i32 6)
ret void
}

LLVM IR (-O2):
define void @OR() {
%1 = tail call i32 @ExtAccumulator(i32 6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ show_enter();
int /*<<< orphan*/ show_name();
void splash_screen() {
  show_name();
  show_enter();
}


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

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

LLVM IR (-O0):
define void @splash_screen() {
%1 = call i32 (...) @show_name()
%2 = call i32 (...) @show_enter()
ret void
}

LLVM IR (-O2):
define void @splash_screen() {
%1 = tail call i32 (...) @show_name()
%2 = tail call i32 (...) @show_enter()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int /*<<< orphan*/);
int main(int argc, char **argv) {
  printf("TRUE: %d\nFALSE: %d\n", 1, 0);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [20 x i8] c"TRUE: %d\0AFALSE: %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 1, i32 0)
ret i32 0
}
void gtk_rc_property_parse_enum() {}


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

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

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

LLVM IR (-O2):
define void @gtk_rc_property_parse_enum() {
ret void
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
uint16_t signum_fun_uint16_t(uint16_t a) { return (a > 0); }


x86 assembly (clang, -O0):
<signum_fun_uint16_t>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @signum_fun_uint16_t(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @signum_fun_uint16_t(i32 %0) {
%2 = icmp sgt i32 %0, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
void *malloc(int);
void *idrnet_malloc(int size) { return malloc(size); }


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

x86 assembly (clang, -O2):
<idrnet_malloc>:
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define noalias i8* @idrnet_malloc(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
ret i8* %2
}
char *clear_word(char *str, int p, int lp) {
  int c;
  c = lp;
  while (c < p) {
    str[c] = ' ';
    c += 1;
  }
  return (str);
}


x86 assembly (clang, -O0):
<clear_word>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    113a <clear_word+0x3a>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1114 <clear_word+0x14>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_word>:
push   %rbx
mov    %rdi,%rbx
cmp    %esi,%edx
jge    1130 <clear_word+0x20>
movslq %edx,%rdi
add    %rbx,%rdi
not    %edx
add    %esi,%edx
add    $0x1,%rdx
mov    $0x20,%esi
call   1030 <memset@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @clear_word(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
%8 = load i32, i32* %6
store i32 %8, i32* %7
br label %9
9: ; preds = %13, %3
%10 = load i32, i32* %7
%11 = load i32, i32* %5
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %20
13: ; preds = %9
%14 = load i8*, i8** %4
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %14, i64 %16
store i8 32, i8* %17
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
store i32 %19, i32* %7
br label %9
20: ; preds = %9
%21 = load i8*, i8** %4
ret i8* %21
}

LLVM IR (-O2):
define i8* @clear_word(i8* returned writeonly %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %2, %1
br i1 %4, label %5, label %12
5: ; preds = %3
%6 = sext i32 %2 to i64
%7 = getelementptr i8, i8* %0, i64 %6
%8 = xor i32 %2, -1
%9 = add i32 %8, %1
%10 = zext i32 %9 to i64
%11 = add nuw nsw i64 %10, 1
br label %12
12: ; preds = %5, %3
ret i8* %0
}
void areaperi(int r, float *a, float *p) {
  *a = 3.14 * (float)r * (float)r;
  *p = (float)2 * 3.14 * (float)r;
}


x86 assembly (clang, -O0):
<areaperi>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xee8(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2ssl -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
cvtsi2ssl -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeb2(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<areaperi>:
cvtsi2ss %edi,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xef0(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
mulsd  0xee4(%rip),%xmm0
movss  %xmm1,(%rsi)
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rdx)
ret

LLVM IR (-O0):
define void @areaperi(i32 %0, float* %1, float* %2) {
%4 = alloca i32
%5 = alloca float*
%6 = alloca float*
store i32 %0, i32* %4
store float* %1, float** %5
store float* %2, float** %6
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to float
%9 = fpext float %8 to double
%10 = fmul double 3.140000e+00, %9
%11 = load i32, i32* %4
%12 = sitofp i32 %11 to float
%13 = fpext float %12 to double
%14 = fmul double %10, %13
%15 = fptrunc double %14 to float
%16 = load float*, float** %5
store float %15, float* %16
%17 = load i32, i32* %4
%18 = sitofp i32 %17 to float
%19 = fpext float %18 to double
%20 = fmul double 6.280000e+00, %19
%21 = fptrunc double %20 to float
%22 = load float*, float** %6
store float %21, float* %22
ret void
}

LLVM IR (-O2):
define void @areaperi(i32 %0, float* nocapture writeonly %1, float* nocapture writeonly %2) {
%4 = sitofp i32 %0 to float
%5 = fpext float %4 to double
%6 = fmul double %5, 3.140000e+00
%7 = fmul double %6, %5
%8 = fptrunc double %7 to float
store float %8, float* %1
%9 = fmul double %5, 6.280000e+00
%10 = fptrunc double %9 to float
store float %10, float* %2
ret void
}
void fc17(int n) {
a : {
  typedef int(*b)[n];
  goto a;
  {
    typedef int(*c)[n];
    0;
  }
  {
    typedef int(*d)[n];
    0;
  };
  typedef int(*e)[n];
  0;
};
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      0;
    };
    {
      typedef int(*h)[n];
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


x86 assembly (clang, -O0):
<fc17>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fc17+0x7>

x86 assembly (clang, -O2):
<fc17>:
jmp    1100 <fc17>

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

LLVM IR (-O2):
define void @fc17(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int type;
};
typedef TYPE_1__ XResizeRequestEvent;

/* Variables and functions */
void set_XResizeRequestEvent_type(void *_p, int _v) {
  ((XResizeRequestEvent *)_p)->type = (int)_v;
}


x86 assembly (clang, -O0):
<set_XResizeRequestEvent_type>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_XResizeRequestEvent_type>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XResizeRequestEvent_type(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XResizeRequestEvent_type(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
void ble_rsp_gap_set_scan_parameters(
    const struct ble_msg_gap_set_scan_parameters_rsp_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.ble_msg_gap_set_scan_parameters_rsp_t = type opaque
define void @ble_rsp_gap_set_scan_parameters(%struct.ble_msg_gap_set_scan_parameters_rsp_t* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "Usage: atomic_append filename num-bytes [x]\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [45 x i8] c"Usage: atomic_append filename num-bytes [x]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [45 x i8] c"Usage: atomic_append filename num-bytes [x]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret void
}