#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 CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int /*<<< orphan*/ ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, float, ...);
int main() {
  printf("max signed char=%d\nmin signed char=%d\n", CHAR_MAX, CHAR_MIN);
  printf("max unsigned char=%d\nmin unsigned char=%d\n\n", UCHAR_MAX, 0);
  printf("max signed short=%d\nmin signed short=%d\n", SHRT_MAX, SHRT_MIN);
  printf("max unsigned short=%d\nmin unsigned short=%d\n\n", USHRT_MAX, 0);
  printf("max signed int=%d\nmin signed int=%d\n", INT_MAX, INT_MIN);
  printf("max unsigned int=%d\nmin unsigned int=%d\n\n", UINT_MAX, 0);
  printf("max signed long=%ld\nmin signed long=%ld\n", LONG_MAX, LONG_MIN);
  printf("max unsigned long=%llu\nmin unsigned long=%lld\n", ULONG_MAX, 0);
  float f1 = 1;
  float f2 = 10000;
  while (f2 > f1) {
    f1 *= 10;
    f2 *= 10;
  }
  printf("%f\n", f1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eba(%rip),%rax
cvtsi2ssl (%rax),%xmm0
mov    0x2ea7(%rip),%rax
mov    (%rax),%esi
lea    0xed2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2ea8(%rip),%rax
cvtsi2ssl (%rax),%xmm0
lea    0xee0(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e2d(%rip),%rax
cvtsi2ssl (%rax),%xmm0
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e4b(%rip),%rax
cvtsi2ssl (%rax),%xmm0
lea    0xef8(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e28(%rip),%rax
cvtsi2ssl (%rax),%xmm0
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
lea    0xf02(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2dfe(%rip),%rax
cvtsi2ssl (%rax),%xmm0
lea    0xf0e(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
cvtsi2ssl (%rax),%xmm0
mov    0x2dd0(%rip),%rax
mov    (%rax),%esi
lea    0xf14(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2d81(%rip),%rax
cvtsi2ssl (%rax),%xmm0
lea    0xf24(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xde9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xdd8(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1265 <main+0x155>
movss  0xdc4(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xdb2(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    122d <main+0x11d>
movss  -0x8(%rbp),%xmm0
lea    0xeec(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
cvtsi2ssl (%rax),%xmm0
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
lea    0xef4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2eb6(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
lea    0xeff(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e38(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xf04(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e53(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
lea    0xf11(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e2d(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
mov    0x2e07(%rip),%rax
mov    (%rax),%esi
lea    0xf18(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e00(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
lea    0xf21(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2dc2(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
mov    0x2dcc(%rip),%rax
mov    (%rax),%esi
lea    0xf24(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2d7d(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax),%xmm0
lea    0xf31(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movaps 0xddf(%rip),%xmm1
movaps 0xde8(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
mulps  %xmm2,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
ucomiss %xmm0,%xmm1
ja     1230 <main+0x120>
lea    0xf2b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [39 x i8] c"max signed char=%d\0Amin signed char=%d\0A\00"
@CHAR_MAX = global i32 0
@CHAR_MIN = global i32 0
@.str.1 = [44 x i8] c"max unsigned char=%d\0Amin unsigned char=%d\0A\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [41 x i8] c"max signed short=%d\0Amin signed short=%d\0A\00"
@SHRT_MAX = global i32 0
@SHRT_MIN = global i32 0
@.str.3 = [46 x i8] c"max unsigned short=%d\0Amin unsigned short=%d\0A\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [37 x i8] c"max signed int=%d\0Amin signed int=%d\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@.str.5 = [42 x i8] c"max unsigned int=%d\0Amin unsigned int=%d\0A\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [41 x i8] c"max signed long=%ld\0Amin signed long=%ld\0A\00"
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@.str.7 = [47 x i8] c"max unsigned long=%llu\0Amin unsigned long=%lld\0A\00"
@ULONG_MAX = global i32 0
@.str.8 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = load i32, i32* @CHAR_MAX
%5 = sitofp i32 %4 to float
%6 = load i32, i32* @CHAR_MIN
%7 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), float %5, i32 %6)
%8 = load i32, i32* @UCHAR_MAX
%9 = sitofp i32 %8 to float
%10 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), float %9, i32 0)
%11 = load i32, i32* @SHRT_MAX
%12 = sitofp i32 %11 to float
%13 = load i32, i32* @SHRT_MIN
%14 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), float %12, i32 %13)
%15 = load i32, i32* @USHRT_MAX
%16 = sitofp i32 %15 to float
%17 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), float %16, i32 0)
%18 = load i32, i32* @INT_MAX
%19 = sitofp i32 %18 to float
%20 = load i32, i32* @INT_MIN
%21 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), float %19, i32 %20)
%22 = load i32, i32* @UINT_MAX
%23 = sitofp i32 %22 to float
%24 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), float %23, i32 0)
%25 = load i32, i32* @LONG_MAX
%26 = sitofp i32 %25 to float
%27 = load i32, i32* @LONG_MIN
%28 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), float %26, i32 %27)
%29 = load i32, i32* @ULONG_MAX
%30 = sitofp i32 %29 to float
%31 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), float %30, i32 0)
store float 1.000000e+00, float* %2
store float 1.000000e+04, float* %3
br label %32
32: ; preds = %36, %0
%33 = load float, float* %3
%34 = load float, float* %2
%35 = fcmp ogt float %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load float, float* %2
%38 = fmul float %37, 1.000000e+01
store float %38, float* %2
%39 = load float, float* %3
%40 = fmul float %39, 1.000000e+01
store float %40, float* %3
br label %32
41: ; preds = %32
%42 = load float, float* %2
%43 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), float %42)
%44 = load i32, i32* %1
ret i32 %44
}

LLVM IR (-O2):
@.str = [39 x i8] c"max signed char=%d\0Amin signed char=%d\0A\00"
@CHAR_MAX = global i32 0
@CHAR_MIN = global i32 0
@.str.1 = [44 x i8] c"max unsigned char=%d\0Amin unsigned char=%d\0A\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [41 x i8] c"max signed short=%d\0Amin signed short=%d\0A\00"
@SHRT_MAX = global i32 0
@SHRT_MIN = global i32 0
@.str.3 = [46 x i8] c"max unsigned short=%d\0Amin unsigned short=%d\0A\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [37 x i8] c"max signed int=%d\0Amin signed int=%d\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@.str.5 = [42 x i8] c"max unsigned int=%d\0Amin unsigned int=%d\0A\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [41 x i8] c"max signed long=%ld\0Amin signed long=%ld\0A\00"
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@.str.7 = [47 x i8] c"max unsigned long=%llu\0Amin unsigned long=%lld\0A\00"
@ULONG_MAX = global i32 0
@.str.8 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = load i32, i32* @CHAR_MAX
%2 = sitofp i32 %1 to float
%3 = load i32, i32* @CHAR_MIN
%4 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), float %2, i32 %3)
%5 = load i32, i32* @UCHAR_MAX
%6 = sitofp i32 %5 to float
%7 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), float %6, i32 0)
%8 = load i32, i32* @SHRT_MAX
%9 = sitofp i32 %8 to float
%10 = load i32, i32* @SHRT_MIN
%11 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), float %9, i32 %10)
%12 = load i32, i32* @USHRT_MAX
%13 = sitofp i32 %12 to float
%14 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), float %13, i32 0)
%15 = load i32, i32* @INT_MAX
%16 = sitofp i32 %15 to float
%17 = load i32, i32* @INT_MIN
%18 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), float %16, i32 %17)
%19 = load i32, i32* @UINT_MAX
%20 = sitofp i32 %19 to float
%21 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), float %20, i32 0)
%22 = load i32, i32* @LONG_MAX
%23 = sitofp i32 %22 to float
%24 = load i32, i32* @LONG_MIN
%25 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), float %23, i32 %24)
%26 = load i32, i32* @ULONG_MAX
%27 = sitofp i32 %26 to float
%28 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), float %27, i32 0)
br label %29
29: ; preds = %0, %29
%30 = phi <2 x float> [ <float 1.000000e+04, float 1.000000e+00>, %0 ], [ %31, %29 ]
%31 = fmul <2 x float> %30, <float 1.000000e+01, float 1.000000e+01>
%32 = extractelement <2 x float> %31, i64 0
%33 = extractelement <2 x float> %31, i64 1
%34 = fcmp ogt float %32, %33
br i1 %34, label %29, label %35
35: ; preds = %29
%36 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), float %33)
ret i32 0
}