#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 *, ...);
double sqrt(float);
int main() {
  int trigger = 1;
  float row, col;
  for (row = -1.00; row < 10; row += 1) {
    if (trigger-- > 0)
      printf("Number \t");
    else
      printf("%.1f \t", row);
    for (col = 0; col < 1; col += 0.1) {
      if (row == -1.00)
        printf("%02.1f \t", col);
      else
        printf("%.2f \t", sqrt(row + col));
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movss  0xec2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xeb9(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1254 <main+0x134>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
jle    117c <main+0x5c>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1193 <main+0x73>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe9d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xe65(%rip),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    122f <main+0x10f>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe52(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ea <main+0xca>
jp     11ea <main+0xca>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe52(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1207 <main+0xe7>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
call   1040 <sqrt@plt>
lea    0xe39(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    120c <main+0xec>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdfb(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    119b <main+0x7b>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xdc3(%rip),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1143 <main+0x23>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1,%ebp
mov    $0xffffffff,%ebx
lea    0xf24(%rip),%r14
lea    0xf2d(%rip),%r15
lea    0xf2f(%rip),%r13
lea    0xf18(%rip),%r12
jmp    1238 <main+0x108>
cs nopw 0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xea0(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe96(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe8c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe82(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe78(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe6e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe64(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe5a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
movsd  0xe50(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
add    $0xffffffff,%ebp
cmp    $0xa,%ebx
je     138f <main+0x25f>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
test   %ebp,%ebp
movss  %xmm0,0x4(%rsp)
jle    1260 <main+0x130>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xffffffff,%ebx
jne    1277 <main+0x147>
jmp    1170 <main+0x40>
nopl   (%rax)
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmp    $0xffffffff,%ebx
je     1170 <main+0x40>
movss  0x4(%rsp),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xd66(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xd4d(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xd34(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xd1b(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xd02(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xce9(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xcd0(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xcb7(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
addss  0xc9e(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %r13,%rdi
jmp    1218 <main+0xe8>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Number \09\00"
@.str.1 = [7 x i8] c"%.1f \09\00"
@.str.2 = [9 x i8] c"%02.1f \09\00"
@.str.3 = [7 x i8] c"%.2f \09\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
store i32 1, i32* %2
store float -1.000000e+00, float* %3
br label %5
5: ; preds = %44, %0
%6 = load float, float* %3
%7 = fcmp olt float %6, 1.000000e+01
br i1 %7, label %8, label %47
8: ; preds = %5
%9 = load i32, i32* %2
%10 = add nsw i32 %9, -1
store i32 %10, i32* %2
%11 = icmp sgt i32 %9, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %18
14: ; preds = %8
%15 = load float, float* %3
%16 = fpext float %15 to double
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %16)
br label %18
18: ; preds = %14, %12
store float 0.000000e+00, float* %4
br label %19
19: ; preds = %37, %18
%20 = load float, float* %4
%21 = fcmp olt float %20, 1.000000e+00
br i1 %21, label %22, label %42
22: ; preds = %19
%23 = load float, float* %3
%24 = fpext float %23 to double
%25 = fcmp oeq double %24, -1.000000e+00
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load float, float* %4
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %28)
br label %36
30: ; preds = %22
%31 = load float, float* %3
%32 = load float, float* %4
%33 = fadd float %31, %32
%34 = call double @sqrt(float %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %34)
br label %36
36: ; preds = %30, %26
br label %37
37: ; preds = %36
%38 = load float, float* %4
%39 = fpext float %38 to double
%40 = fadd double %39, 1.000000e-01
%41 = fptrunc double %40 to float
store float %41, float* %4
br label %19
42: ; preds = %19
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %44
44: ; preds = %42
%45 = load float, float* %3
%46 = fadd float %45, 1.000000e+00
store float %46, float* %3
br label %5
47: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"Number \09\00"
@.str.1 = [7 x i8] c"%.1f \09\00"
@.str.2 = [9 x i8] c"%02.1f \09\00"
@.str.3 = [7 x i8] c"%.2f \09\00"
define i32 @main() {
br label %1
1: ; preds = %0, %55
%2 = phi i32 [ -1, %0 ], [ %57, %55 ]
%3 = phi i32 [ 1, %0 ], [ %5, %55 ]
%4 = sitofp i32 %2 to float
%5 = add nsw i32 %3, -1
%6 = icmp sgt i32 %3, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %12
9: ; preds = %1
%10 = fpext float %4 to double
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %10)
br label %12
12: ; preds = %9, %7
%13 = icmp eq i32 %2, -1
br i1 %13, label %44, label %14
14: ; preds = %12
%15 = tail call double @sqrt(float %4)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %15)
%17 = fadd float %4, 0x3FB99999A0000000
%18 = tail call double @sqrt(float %17)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %18)
%20 = fadd float %4, 0x3FC99999A0000000
%21 = tail call double @sqrt(float %20)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %21)
%23 = fadd float %4, 0x3FD3333340000000
%24 = tail call double @sqrt(float %23)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %24)
%26 = fadd float %4, 0x3FD99999A0000000
%27 = tail call double @sqrt(float %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %27)
%29 = fadd float %4, 5.000000e-01
%30 = tail call double @sqrt(float %29)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %30)
%32 = fadd float %4, 0x3FE3333340000000
%33 = tail call double @sqrt(float %32)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %33)
%35 = fadd float %4, 0x3FE6666680000000
%36 = tail call double @sqrt(float %35)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %36)
%38 = fadd float %4, 0x3FE99999C0000000
%39 = tail call double @sqrt(float %38)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %39)
%41 = fadd float %4, 0x3FECCCCD00000000
%42 = tail call double @sqrt(float %41)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %42)
br label %55
44: ; preds = %12
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0.000000e+00)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FB99999A0000000)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FC99999A0000000)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FD3333340000000)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FD99999A0000000)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 5.000000e-01)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FE3333340000000)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FE6666680000000)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FE99999C0000000)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x3FECCCCD00000000)
br label %55
55: ; preds = %44, %14
%56 = tail call i32 @putchar(i32 10)
%57 = add nsw i32 %2, 1
%58 = icmp eq i32 %57, 10
br i1 %58, label %59, label %1
59: ; preds = %55
ret i32 0
}