#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, long double);
int main(int argc, const char *argv[]) {
  long double f = 10;
  if (argc < 100) {
    f = f + argc;
    if (f > 50.125) {
      printf("f = %Lf", f);
    } else {
      f = 50.125;
    }
  } else {
    f = 40.225;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
flds   0xed4(%rip)
fstpt  -0x20(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    118b <main+0x7b>
fldt   -0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x24(%rbp)
fildl  -0x24(%rbp)
faddp  %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
flds   0xeb1(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    117d <main+0x6d>
jmp    1164 <main+0x54>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
jmp    1186 <main+0x76>
flds   0xe81(%rip)
fstpt  -0x20(%rbp)
jmp    1194 <main+0x84>
fldl   0xe77(%rip)
fstpt  -0x20(%rbp)
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
cmp    $0x63,%edi
fldz
jg     114a <main+0x3a>
fstp   %st(0)
mov    %edi,0x14(%rsp)
fildl  0x14(%rsp)
fadds  0xed5(%rip)
flds   0xed3(%rip)
fxch   %st(1)
fucomi %st(1),%st
fstp   %st(1)
jbe    114a <main+0x3a>
fstpt  (%rsp)
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
fldz
fstp   %st(0)
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"f = %Lf\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store x86_fp80 0xK4002A000000000000000, x86_fp80* %6
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 100
br i1 %8, label %9, label %21
9: ; preds = %2
%10 = load x86_fp80, x86_fp80* %6
%11 = load i32, i32* %4
%12 = sitofp i32 %11 to x86_fp80
%13 = fadd x86_fp80 %10, %12
store x86_fp80 %13, x86_fp80* %6
%14 = load x86_fp80, x86_fp80* %6
%15 = fcmp ogt x86_fp80 %14, 0xK4004C880000000000000
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = load x86_fp80, x86_fp80* %6
%18 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), x86_fp80 %17)
br label %20
19: ; preds = %9
store x86_fp80 0xK4004C880000000000000, x86_fp80* %6
br label %20
20: ; preds = %19, %16
br label %22
21: ; preds = %2
store x86_fp80 0xK4004A0E6666666666800, x86_fp80* %6
br label %22
22: ; preds = %21, %20
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"f = %Lf\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp slt i32 %0, 100
br i1 %3, label %4, label %10
4: ; preds = %2
%5 = sitofp i32 %0 to x86_fp80
%6 = fadd x86_fp80 %5, 0xK4002A000000000000000
%7 = fcmp ogt x86_fp80 %6, 0xK4004C880000000000000
br i1 %7, label %8, label %10
8: ; preds = %4
%9 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), x86_fp80 %6)
br label %10
10: ; preds = %2, %4, %8
ret i32 0
}