xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ add_command(unsigned int *, int, int);
int /*<<< orphan*/ ipfw_init(int, char **, unsigned int, int /*<<< orphan*/ *,
                             int /*<<< orphan*/);
scalar_t__ optind;
int ipfw_zero(int args, char **arglist) {
  unsigned int command = 0;
  add_command(&command, 0x0080U, 0x0020U);
  ipfw_init(args, arglist, command, NULL, 0);
  optind = 0;
  return (0);
}


x86 assembly (clang, -O0):
<ipfw_zero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x80,%esi
mov    $0x20,%edx
call   1040 <add_command@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
xor    %r8d,%r8d
call   1030 <ipfw_init@plt>
mov    0x2e82(%rip),%rax
movq   $0x0,(%rax)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ipfw_zero>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x80,%esi
mov    $0x20,%edx
call   1040 <add_command@plt>
mov    0x4(%rsp),%edx
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <ipfw_init@plt>
mov    0x2e8a(%rip),%rax
movq   $0x0,(%rax)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@optind = global i64 0
define i32 @ipfw_zero(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 0, i32* %5
%6 = call i32 @add_command(i32* %5, i32 128, i32 32)
%7 = load i32, i32* %3
%8 = load i8**, i8*** %4
%9 = load i32, i32* %5
%10 = call i32 @ipfw_init(i32 %7, i8** %8, i32 %9, i32* null, i32 0)
store i64 0, i64* @optind
ret i32 0
}

LLVM IR (-O2):
@optind = global i64 0
define i32 @ipfw_zero(i32 %0, i8** %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = call i32 @add_command(i32* %3, i32 128, i32 32)
%6 = load i32, i32* %3
%7 = call i32 @ipfw_init(i32 %0, i8** %1, i32 %6, i32* null, i32 0)
store i64 0, i64* @optind
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ usage_display();
void error_options_conflict() {
  fprintf(stderr, "Can't use -ct at the same time.\n");
  usage_display();
}


x86 assembly (clang, -O0):
<error_options_conflict>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x0,%al
call   1040 <usage_display@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<error_options_conflict>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <usage_display@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [33 x i8] c"Can't use -ct at the same time.\0A\00"
define void @error_options_conflict() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @usage_display()
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [33 x i8] c"Can't use -ct at the same time.\0A\00"
define void @error_options_conflict() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @usage_display()
ret void
}
float convertFahrenheitToCelsius(int f) { return (f - 32) * (5.0 / 9.0); }


x86 assembly (clang, -O0):
<convertFahrenheitToCelsius>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x20,%eax
cvtsi2sd %eax,%xmm0
movsd  0xee7(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<convertFahrenheitToCelsius>:
add    $0xffffffe0,%edi
cvtsi2sd %edi,%xmm0
mulsd  0xef1(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @convertFahrenheitToCelsius(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub nsw i32 %3, 32
%5 = sitofp i32 %4 to double
%6 = fmul double %5, 0x3FE1C71C71C71C72
%7 = fptrunc double %6 to float
ret float %7
}

LLVM IR (-O2):
define float @convertFahrenheitToCelsius(i32 %0) {
%2 = add nsw i32 %0, -32
%3 = sitofp i32 %2 to double
%4 = fmul double %3, 0x3FE1C71C71C71C72
%5 = fptrunc double %4 to float
ret float %5
}
int switchVirtualTerminal_BaseScreen(int vt) { return 0; }


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

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

LLVM IR (-O0):
define i32 @switchVirtualTerminal_BaseScreen(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @switchVirtualTerminal_BaseScreen(i32 %0) {
ret i32 0
}
void setup_trace(char *prog) {}


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

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

LLVM IR (-O0):
define void @setup_trace(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret void
}

LLVM IR (-O2):
define void @setup_trace(i8* nocapture %0) {
ret void
}
int str_numeric(const char *s) {
  if (!*s)
    return 0;
  while (*s) {
    if ('0' <= *s && *s <= '9') {
      s++;
      continue;
    }
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<str_numeric>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1121 <str_numeric+0x21>
movl   $0x0,-0x4(%rbp)
jmp    117b <str_numeric+0x7b>
jmp    1126 <str_numeric+0x26>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1174 <str_numeric+0x74>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x30,%eax
cmp    %ecx,%eax
jg     1168 <str_numeric+0x68>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
jg     1168 <str_numeric+0x68>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1126 <str_numeric+0x26>
movl   $0x0,-0x4(%rbp)
jmp    117b <str_numeric+0x7b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_numeric>:
mov    (%rdi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1128 <str_numeric+0x28>
add    $0x1,%rdi
nopl   0x0(%rax)
add    $0xd0,%cl
cmp    $0x9,%cl
ja     1128 <str_numeric+0x28>
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <str_numeric+0x10>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @str_numeric(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %9
%5 = phi i8* [ %10, %9 ], [ %0, %1 ]
%6 = phi i8 [ %11, %9 ], [ %2, %1 ]
%7 = add i8 %6, -48
%8 = icmp ult i8 %7, 10
br i1 %8, label %9, label %13
9: ; preds = %4
%10 = getelementptr inbounds i8, i8* %5, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %9, %1
%14 = phi i32 [ 0, %1 ], [ 0, %4 ], [ 1, %9 ]
ret i32 %14
}
/* Variables and functions */
int write_value_to_fcd(int, unsigned char, int /*<<< orphan*/ *);
int fcdppSetBiasT(unsigned char state) {
  return write_value_to_fcd(126, state, NULL);
}


x86 assembly (clang, -O0):
<fcdppSetBiasT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0x7e,%edi
xor    %eax,%eax
mov    %eax,%edx
movzbl -0x1(%rbp),%esi
call   1030 <write_value_to_fcd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fcdppSetBiasT>:
mov    %edi,%esi
mov    $0x7e,%edi
xor    %edx,%edx
jmp    1030 <write_value_to_fcd@plt>

LLVM IR (-O0):
define i32 @fcdppSetBiasT(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i32 @write_value_to_fcd(i32 126, i8 zeroext %3, i32* null)
ret i32 %4
}

LLVM IR (-O2):
define i32 @fcdppSetBiasT(i8 zeroext %0) {
%2 = tail call i32 @write_value_to_fcd(i32 126, i8 zeroext %0, i32* null)
ret i32 %2
}
unsigned __lshlhi3(unsigned int a, int b) { return a << b; }


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

x86 assembly (clang, -O2):
<__lshlhi3>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @__lshlhi3(i32 %0, i32 %1) {
%3 = shl i32 %0, %1
ret i32 %3
}
unsigned int loop06(int n) {
  static unsigned int ucnt = 0;
  if (n > 0) {
    ucnt++;
    --n;
    loop06(n);
    loop06(n);
  }
  return ucnt;
}


x86 assembly (clang, -O0):
<loop06>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    114d <loop06+0x3d>
mov    0x2f01(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ef8(%rip)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <loop06@plt>
mov    -0x4(%rbp),%edi
call   1030 <loop06@plt>
mov    0x2ed9(%rip),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop06>:
push   %rbx
test   %edi,%edi
jle    112f <loop06+0x1f>
mov    %edi,%ebx
addl   $0x1,0x2f0e(%rip)
add    $0xffffffff,%ebx
mov    %ebx,%edi
call   1030 <loop06@plt>
mov    %ebx,%edi
call   1030 <loop06@plt>
mov    0x2ef7(%rip),%eax
pop    %rbx
ret

LLVM IR (-O0):
@loop06.ucnt = internal global i32 0
define i32 @loop06(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %14
5: ; preds = %1
%6 = load i32, i32* @loop06.ucnt
%7 = add i32 %6, 1
store i32 %7, i32* @loop06.ucnt
%8 = load i32, i32* %2
%9 = add nsw i32 %8, -1
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = call i32 @loop06(i32 %10)
%12 = load i32, i32* %2
%13 = call i32 @loop06(i32 %12)
br label %14
14: ; preds = %5, %1
%15 = load i32, i32* @loop06.ucnt
ret i32 %15
}

LLVM IR (-O2):
@loop06.ucnt = internal unnamed_addr global i32 0
define i32 @loop06(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %9
3: ; preds = %1
%4 = load i32, i32* @loop06.ucnt
%5 = add i32 %4, 1
store i32 %5, i32* @loop06.ucnt
%6 = add nsw i32 %0, -1
%7 = tail call i32 @loop06(i32 %6)
%8 = tail call i32 @loop06(i32 %6)
br label %9
9: ; preds = %3, %1
%10 = load i32, i32* @loop06.ucnt
ret i32 %10
}
/* Variables and functions */
int cfg_processor_get_addr(char *, char *);
int cfg_basic_timer_get_ie_mask(void) {
  return cfg_processor_get_addr("basictimer", "iemask");
}


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

x86 assembly (clang, -O2):
<cfg_basic_timer_get_ie_mask>:
lea    0xee9(%rip),%rdi
lea    0xeed(%rip),%rsi
jmp    1030 <cfg_processor_get_addr@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"basictimer\00"
@.str.1 = [7 x i8] c"iemask\00"
define i32 @cfg_basic_timer_get_ie_mask() {
%1 = call i32 @cfg_processor_get_addr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [11 x i8] c"basictimer\00"
@.str.1 = [7 x i8] c"iemask\00"
define i32 @cfg_basic_timer_get_ie_mask() {
%1 = tail call i32 @cfg_processor_get_addr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 %1
}
void ble_rsp_hardware_adc_read(
    const struct ble_msg_hardware_adc_read_rsp_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.ble_msg_hardware_adc_read_rsp_t = type opaque
define void @ble_rsp_hardware_adc_read(%struct.ble_msg_hardware_adc_read_rsp_t* nocapture %0) {
ret void
}
__int128 sub_128(__int128 *ptr, __int128 val) { return (*ptr - val); }


x86 assembly (clang, -O0):
<sub_128>:
push   %rbp
mov    %rsp,%rbp
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %rdi,-0x28(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
mov    0x8(%rax),%rax
mov    -0x40(%rbp),%rsi
mov    -0x38(%rbp),%rdx
sub    %rsi,%rcx
sbb    %rdx,%rax
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
pop    %rbp
ret

x86 assembly (clang, -O2):
<sub_128>:
mov    (%rdi),%rax
mov    0x8(%rdi),%rcx
sub    %rsi,%rax
sbb    %rdx,%rcx
mov    %rcx,%rdx
ret

LLVM IR (-O0):
define { i64, i64 } @sub_128(i128* %0, i64 %1, i64 %2) {
%4 = alloca i128
%5 = alloca i128
%6 = alloca i128*
%7 = alloca i128
%8 = bitcast i128* %5 to { i64, i64 }*
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %8, i32 0, i32 0
store i64 %1, i64* %9
%10 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %8, i32 0, i32 1
store i64 %2, i64* %10
%11 = load i128, i128* %5
store i128* %0, i128** %6
store i128 %11, i128* %7
%12 = load i128*, i128** %6
%13 = load i128, i128* %12
%14 = load i128, i128* %7
%15 = sub nsw i128 %13, %14
store i128 %15, i128* %4
%16 = bitcast i128* %4 to { i64, i64 }*
%17 = load { i64, i64 }, { i64, i64 }* %16
ret { i64, i64 } %17
}

LLVM IR (-O2):
define { i64, i64 } @sub_128(i128* nocapture %0, i64 %1, i64 %2) {
%4 = zext i64 %2 to i128
%5 = mul i128 %4, -18446744073709551616
%6 = zext i64 %1 to i128
%7 = load i128, i128* %0
%8 = sub i128 %5, %6
%9 = add i128 %8, %7
%10 = trunc i128 %9 to i64
%11 = lshr i128 %9, 64
%12 = trunc i128 %11 to i64
%13 = insertvalue { i64, i64 } poison, i64 %10, 0
%14 = insertvalue { i64, i64 } %13, i64 %12, 1
ret { i64, i64 } %14
}
void gdk_window_register_dnd() {}


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

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

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

LLVM IR (-O2):
define void @gdk_window_register_dnd() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isspace(int);
void t_isspace_0x4a() {
  Assert_real((isspace(74) == 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_isspace.c",
              375, ("isspace should be 0 for J"));
}


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

x86 assembly (clang, -O2):
<t_isspace_0x4a>:
push   %rax
mov    $0x4a,%edi
call   1030 <isspace@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x177,%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_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for J\00"
define void @t_isspace_0x4a() {
%1 = call i64 @isspace(i32 74)
%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 375, i8* getelementptr inbounds ([26 x i8], [26 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_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for J\00"
define void @t_isspace_0x4a() {
%1 = tail call i64 @isspace(i32 74)
%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 375, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void ebur128_get_version(int *major, int *minor, int *patch) {
  *major = 1;
  *minor = 1;
  *patch = 0;
}


x86 assembly (clang, -O0):
<ebur128_get_version>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ebur128_get_version>:
movl   $0x1,(%rdi)
movl   $0x1,(%rsi)
movl   $0x0,(%rdx)
ret

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

LLVM IR (-O2):
define void @ebur128_get_version(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
store i32 1, i32* %0
store i32 1, i32* %1
store i32 0, i32* %2
ret void
}
int main(int argc, char **x) {
  int i = argc;
  i = i++ * i++;
  return i;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
imul   %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
lea    0x1(%rdi),%eax
imul   %edi,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
store i32 %7, i32* %6
%8 = load i32, i32* %6
%9 = add nsw i32 %8, 1
store i32 %9, i32* %6
%10 = load i32, i32* %6
%11 = add nsw i32 %10, 1
store i32 %11, i32* %6
%12 = mul nsw i32 %8, %10
store i32 %12, i32* %6
%13 = load i32, i32* %6
ret i32 %13
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = add nsw i32 %0, 1
%4 = mul nsw i32 %3, %0
ret i32 %4
}
int test() { return 42; }


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

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

LLVM IR (-O0):
define i32 @test() {
ret i32 42
}

LLVM IR (-O2):
define i32 @test() {
ret i32 42
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int c, x, y;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  c = 0;
  while (x >= 0) {
    x = x + 1;
    y = 1;
    while (x > y) {
      y = y + 1;
      c = c + 1;
    }
    x = x - 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1185 <main+0x75>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1177 <main+0x67>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1154 <main+0x44>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <main+0x2a>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %4
store i32 0, i32* %2
br label %7
7: ; preds = %22, %0
%8 = load i32, i32* %3
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
store i32 1, i32* %4
br label %13
13: ; preds = %17, %10
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %4
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %13
22: ; preds = %13
%23 = load i32, i32* %3
%24 = sub nsw i32 %23, 2
store i32 %24, i32* %3
br label %7
25: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ redecl4();
void use125() { redecl4(); }


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

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

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

LLVM IR (-O2):
define void @use125() {
%1 = tail call i32 (...) @redecl4()
ret void
}
void disableLCDPower(void) {
  (*(volatile unsigned int *)(0x7F008084)) &= ~1;
  return;
}


x86 assembly (clang, -O0):
<disableLCDPower>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f008084,%eax
mov    (%rax),%ecx
and    $0xfffffffe,%ecx
mov    $0x7f008084,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<disableLCDPower>:
andl   $0xfffffffe,0x7f008084
fe
ret

LLVM IR (-O0):
define void @disableLCDPower() {
%1 = load volatile i32, i32* inttoptr (i64 2130739332 to i32*)
%2 = and i32 %1, -2
store volatile i32 %2, i32* inttoptr (i64 2130739332 to i32*)
ret void
}

LLVM IR (-O2):
define void @disableLCDPower() {
%1 = load volatile i32, i32* inttoptr (i64 2130739332 to i32*)
%2 = and i32 %1, -2
store volatile i32 %2, i32* inttoptr (i64 2130739332 to i32*)
ret void
}
unsigned int fb_GetMemAvail(int mode) { return 0; }


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

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

LLVM IR (-O0):
define i32 @fb_GetMemAvail(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @fb_GetMemAvail(i32 %0) {
ret i32 0
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int write_multprec_start_system(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(494, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<write_multprec_start_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1ee,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_multprec_start_system>:
mov    $0x1ee,%edi
jmp    1030 <_ada_use_c2phc@plt>

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

LLVM IR (-O2):
define i32 @write_multprec_start_system() {
%1 = tail call i32 @_ada_use_c2phc(i32 494, i32* undef, i32* undef, double* undef)
ret i32 %1
}
unsigned long int cmp_case_ulong(unsigned long check, unsigned long baseline,
                                 unsigned long when_lt, unsigned long when_eq,
                                 unsigned long when_gt) {
  return (((check) <= (baseline))
              ? (((check) < (baseline)) ? (when_lt) : (when_eq))
              : (when_gt));
}


x86 assembly (clang, -O0):
<cmp_case_ulong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
ja     1156 <cmp_case_ulong+0x56>
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1141 <cmp_case_ulong+0x41>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    1149 <cmp_case_ulong+0x49>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    115e <cmp_case_ulong+0x5e>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_case_ulong>:
mov    %rdx,%rax
cmp    %rsi,%rdi
cmovae %rcx,%rax
cmova  %r8,%rax
ret

LLVM IR (-O0):
define i64 @cmp_case_ulong(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i64 %0, i64* %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i64, i64* %6
%12 = load i64, i64* %7
%13 = icmp ule i64 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %5
%15 = load i64, i64* %6
%16 = load i64, i64* %7
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i64, i64* %8
br label %22
20: ; preds = %14
%21 = load i64, i64* %9
br label %22
22: ; preds = %20, %18
%23 = phi i64 [ %19, %18 ], [ %21, %20 ]
br label %26
24: ; preds = %5
%25 = load i64, i64* %10
br label %26
26: ; preds = %24, %22
%27 = phi i64 [ %23, %22 ], [ %25, %24 ]
ret i64 %27
}

LLVM IR (-O2):
define i64 @cmp_case_ulong(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = icmp ugt i64 %0, %1
%7 = icmp ult i64 %0, %1
%8 = select i1 %7, i64 %2, i64 %3
%9 = select i1 %6, i64 %4, i64 %8
ret i64 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ MC_put_mmx(int, int, int /*<<< orphan*/ *,
                              int /*<<< orphan*/ const *, int);
void MC_put_o_16_mmx(uint8_t *dest, const uint8_t *ref, int stride,
                     int height) {
  MC_put_mmx(16, height, dest, ref, stride);
}


x86 assembly (clang, -O0):
<MC_put_o_16_mmx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    $0x10,%edi
call   1030 <MC_put_mmx@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MC_put_o_16_mmx>:
mov    %edx,%r8d
mov    %rsi,%rax
mov    %rdi,%rdx
mov    $0x10,%edi
mov    %ecx,%esi
mov    %rax,%rcx
jmp    1030 <MC_put_mmx@plt>

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

LLVM IR (-O2):
define void @MC_put_o_16_mmx(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = tail call i32 @MC_put_mmx(i32 16, i32 %3, i32* %0, i32* %1, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: stty [-a | -e | -g] [-f file] [arguments]\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"usage: stty [-a | -e | -g] [-f file] [arguments]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"usage: stty [-a | -e | -g] [-f file] [arguments]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int strlen(char *str) {
  int i = 0;
  while (str[i])
    i++;
  return i;
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     112f <strlen+0x2f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1110 <strlen+0x10>
ret

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

LLVM IR (-O2):
define i32 @strlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
/* Variables and functions */
int euler_problem_7();
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("%d\n", euler_problem_7());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <euler_problem_7@plt>
mov    %eax,%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @euler_problem_7()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
int main() {
  int i, n = 20;
  double a = 2, b = 1, s = 0, t;
  for (i = 1; i <= n; i++) {
    s = s + a / b;
    t = a, a = a + b, b = t;
  }
  printf("sum=%16.10f\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0xc(%rbp)
movsd  0xeda(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec5(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11a4 <main+0x94>
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    114f <main+0x3f>
movsd  -0x28(%rbp),%xmm0
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [13 x i8] c"sum=%16.10f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
store i32 20, i32* %3
store double 2.000000e+00, double* %4
store double 1.000000e+00, double* %5
store double 0.000000e+00, double* %6
store i32 1, i32* %2
br label %8
8: ; preds = %23, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load double, double* %6
%14 = load double, double* %4
%15 = load double, double* %5
%16 = fdiv double %14, %15
%17 = fadd double %13, %16
store double %17, double* %6
%18 = load double, double* %4
store double %18, double* %7
%19 = load double, double* %4
%20 = load double, double* %5
%21 = fadd double %19, %20
store double %21, double* %4
%22 = load double, double* %7
store double %22, double* %5
br label %23
23: ; preds = %12
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %8
26: ; preds = %8
%27 = load double, double* %6
%28 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"sum=%16.10f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double 0x404054836D047F93)
ret i32 0
}
/* Type definitions */
struct szl_interp {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ENOMEM;
void *malloc(size_t const);
int /*<<< orphan*/ szl_set_last_strerror(struct szl_interp *,
                                         int /*<<< orphan*/);
void *szl_malloc(struct szl_interp *interp, const size_t len) {
  void *p;
  p = malloc(len);
  if (!p && interp)
    szl_set_last_strerror(interp, ENOMEM);
  return p;
}


x86 assembly (clang, -O0):
<szl_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1165 <szl_malloc+0x45>
cmpq   $0x0,-0x8(%rbp)
je     1165 <szl_malloc+0x45>
mov    -0x8(%rbp),%rdi
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
call   1030 <szl_set_last_strerror@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<szl_malloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %r14,%r14
je     114d <szl_malloc+0x2d>
test   %rbx,%rbx
jne    114d <szl_malloc+0x2d>
mov    0x2e9d(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1030 <szl_set_last_strerror@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.szl_interp = type { i32 }
@ENOMEM = global i32 0
define i8* @szl_malloc(%struct.szl_interp* %0, i64 %1) {
%3 = alloca %struct.szl_interp*
%4 = alloca i64
%5 = alloca i8*
store %struct.szl_interp* %0, %struct.szl_interp** %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = call i8* @malloc(i64 %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %17, label %10
10: ; preds = %2
%11 = load %struct.szl_interp*, %struct.szl_interp** %3
%12 = icmp ne %struct.szl_interp* %11, null
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load %struct.szl_interp*, %struct.szl_interp** %3
%15 = load i32, i32* @ENOMEM
%16 = call i32 @szl_set_last_strerror(%struct.szl_interp* %14, i32 %15)
br label %17
17: ; preds = %13, %10, %2
%18 = load i8*, i8** %5
ret i8* %18
}

LLVM IR (-O2):
%struct.szl_interp = type { i32 }
@ENOMEM = global i32 0
define noalias i8* @szl_malloc(%struct.szl_interp* %0, i64 %1) {
%3 = tail call i8* @malloc(i64 %1)
%4 = icmp eq i8* %3, null
%5 = icmp ne %struct.szl_interp* %0, null
%6 = and i1 %5, %4
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, i32* @ENOMEM
%9 = tail call i32 @szl_set_last_strerror(%struct.szl_interp* %0, i32 %8)
br label %10
10: ; preds = %7, %2
ret i8* %3
}
int countCharsAndStripNewline(char *line) {
  int charCount = 0;
  while ((line[charCount] != '\n' && line[charCount] != '\r')) {
    charCount++;
  }
  line[charCount] = '\0';
  return charCount;
}


x86 assembly (clang, -O0):
<countCharsAndStripNewline>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0xd(%rbp)
je     113e <countCharsAndStripNewline+0x3e>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    114e <countCharsAndStripNewline+0x4e>
jmp    115c <countCharsAndStripNewline+0x5c>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <countCharsAndStripNewline+0xf>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<countCharsAndStripNewline>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rdi,%rax,1),%ecx
cmp    $0xa,%cl
je     1124 <countCharsAndStripNewline+0x24>
cmp    $0xd,%cl
je     1124 <countCharsAndStripNewline+0x24>
add    $0x1,%rax
jmp    1110 <countCharsAndStripNewline+0x10>
mov    %eax,%ecx
movb   $0x0,(%rdi,%rcx,1)
ret

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

LLVM IR (-O2):
define i32 @countCharsAndStripNewline(i8* nocapture %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i64 [ %7, %6 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
switch i8 %5, label %6 [
i8 10, label %8
i8 13, label %8
]
6: ; preds = %2
%7 = add nuw i64 %3, 1
br label %2
8: ; preds = %2, %2
%9 = trunc i64 %3 to i32
%10 = and i64 %3, 4294967295
%11 = getelementptr inbounds i8, i8* %0, i64 %10
store i8 0, i8* %11
ret i32 %9
}
int main() {
  const char *string = "Hello world!";
  printf("[%.*s]\n", 5, string);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdx
lea    0xed8(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [13 x i8] c"Hello world!\00"
@.str.1 = [8 x i8] c"[%.*s]\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void strzalka(int linia) {
  if (linia == 1) {
    printf(" *** \n");
  } else if (linia == 2) {
    printf("*****\n");
  } else {
    printf("  *  \n");
  }
}


x86 assembly (clang, -O0):
<strzalka>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    1136 <strzalka+0x26>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
jmp    1162 <strzalka+0x52>
cmpl   $0x2,-0x4(%rbp)
jne    1151 <strzalka+0x41>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
jmp    115d <strzalka+0x4d>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
jmp    1162 <strzalka+0x52>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strzalka>:
cmp    $0x2,%edi
lea    0xeec(%rip),%rax
lea    0xedf(%rip),%rcx
cmove  %rax,%rcx
cmp    $0x1,%edi
lea    0xedd(%rip),%rdi
cmovne %rcx,%rdi
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@str = [6 x i8] c" * \00"
@str.3 = [6 x i8] c"*****\00"
@str.4 = [6 x i8] c" *** \00"
define void @strzalka(i32 %0) {
%2 = icmp eq i32 %0, 2
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0)
%4 = icmp eq i32 %0, 1
%5 = select i1 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.4, i64 0, i64 0), i8* %3
%6 = tail call i32 @puts(i8* dereferenceable(1) %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ IO_get_le16();
int /*<<< orphan*/ put_argument4(char *, int /*<<< orphan*/, char *);
int am_abs_y16(void) {
  put_argument4(" L", IO_get_le16(), ", y");
  return 3;
}


x86 assembly (clang, -O0):
<am_abs_y16>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <IO_get_le16@plt>
mov    %eax,%esi
lea    0xecc(%rip),%rdi
lea    0xec8(%rip),%rdx
call   1040 <put_argument4@plt>
mov    $0x3,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<am_abs_y16>:
push   %rax
xor    %eax,%eax
call   1030 <IO_get_le16@plt>
lea    0xed1(%rip),%rdi
lea    0xecd(%rip),%rdx
mov    %eax,%esi
call   1040 <put_argument4@plt>
mov    $0x3,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c" L\00"
@.str.1 = [4 x i8] c", y\00"
define i32 @am_abs_y16() {
%1 = call i32 (...) @IO_get_le16()
%2 = call i32 @put_argument4(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret i32 3
}

LLVM IR (-O2):
@.str = [3 x i8] c" L\00"
@.str.1 = [4 x i8] c", y\00"
define i32 @am_abs_y16() {
%1 = tail call i32 (...) @IO_get_le16()
%2 = tail call i32 @put_argument4(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret i32 3
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
unsigned size_uint32(uint32_t v) {
  if (v < (1 << 7))
    return 1;
  else if (v < (1 << 14))
    return 2;
  else if (v < (1 << 21))
    return 3;
  else if (v < (1 << 28))
    return 4;
  else
    return 5;
}


x86 assembly (clang, -O0):
<size_uint32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x80,-0x8(%rbp)
jge    1120 <size_uint32+0x20>
movl   $0x1,-0x4(%rbp)
jmp    1172 <size_uint32+0x72>
cmpl   $0x4000,-0x8(%rbp)
jge    1139 <size_uint32+0x39>
movl   $0x2,-0x4(%rbp)
jmp    1172 <size_uint32+0x72>
cmpl   $0x200000,-0x8(%rbp)
jge    1152 <size_uint32+0x52>
movl   $0x3,-0x4(%rbp)
jmp    1172 <size_uint32+0x72>
cmpl   $0x10000000,-0x8(%rbp)
jge    116b <size_uint32+0x6b>
movl   $0x4,-0x4(%rbp)
jmp    1172 <size_uint32+0x72>
movl   $0x5,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<size_uint32>:
mov    $0x1,%eax
cmp    $0x80,%edi
jl     1135 <size_uint32+0x35>
mov    $0x2,%eax
cmp    $0x4000,%edi
jb     1135 <size_uint32+0x35>
mov    $0x3,%eax
cmp    $0x200000,%edi
jb     1135 <size_uint32+0x35>
cmp    $0x10000000,%edi
mov    $0x5,%eax
sbb    $0x0,%eax
ret

LLVM IR (-O0):
define i32 @size_uint32(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 128
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, i32* %2
br label %20
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 16384
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 2, i32* %2
br label %20
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 2097152
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 3, i32* %2
br label %20
15: ; preds = %11
%16 = load i32, i32* %3
%17 = icmp slt i32 %16, 268435456
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 4, i32* %2
br label %20
19: ; preds = %15
store i32 5, i32* %2
br label %20
20: ; preds = %19, %18, %14, %10, %6
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @size_uint32(i32 %0) {
%2 = icmp slt i32 %0, 128
br i1 %2, label %10, label %3
3: ; preds = %1
%4 = icmp ult i32 %0, 16384
br i1 %4, label %10, label %5
5: ; preds = %3
%6 = icmp ult i32 %0, 2097152
br i1 %6, label %10, label %7
7: ; preds = %5
%8 = icmp ult i32 %0, 268435456
%9 = select i1 %8, i32 4, i32 5
br label %10
10: ; preds = %7, %5, %3, %1
%11 = phi i32 [ 1, %1 ], [ 2, %3 ], [ 3, %5 ], [ %9, %7 ]
ret i32 %11
}