#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 *, float, float);
int main(void) {
  float i, j;
  for (i = 0.0; i < 2.2; i += 0.2) {
    for (j = 1.0; j < 4.0; j++) {
      if (i == 0.0 || i == 1.0 || i > 1.9) {
        printf("I=%.0f J=%.0f\n", i, j + i);
      } else {
        printf("I=%.1f J=%.1f\n", i, j + i);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xec8(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    124b <main+0x13b>
movss  0xede(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xea8(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1223 <main+0x113>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    118b <main+0x7b>
jp     118b <main+0x7b>
jmp    11cc <main+0xbc>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe7c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11b1 <main+0xa1>
jp     11b1 <main+0xa1>
jmp    11cc <main+0xbc>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe5e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11ec <main+0xdc>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
addss  -0x8(%rbp),%xmm1
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
jmp    1207 <main+0xf7>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
addss  -0x8(%rbp),%xmm1
lea    0xe39(%rip),%rdi
call   1030 <printf@plt>
jmp    120c <main+0xfc>
movss  0xe14(%rip),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    114f <main+0x3f>
jmp    1228 <main+0x118>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd7(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1127 <main+0x17>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
xorpd  %xmm0,%xmm0
lea    0xf04(%rip),%r14
lea    0xf0c(%rip),%r15
xorps  %xmm2,%xmm2
jmp    11dc <main+0xcc>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0xed0(%rip),%xmm0
ucomiss %xmm0,%xmm2
mov    %r14,%rcx
cmovne %rax,%rcx
cmovp  %rax,%rcx
ucomiss 0xec7(%rip),%xmm2
movaps %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    %r14,%rbx
cmovne %rcx,%rbx
cmovp  %rcx,%rbx
mov    %rbx,%rdi
movaps %xmm2,%xmm0
movss  %xmm2,0x4(%rsp)
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm0
movaps %xmm0,%xmm1
addss  0xe8b(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm0
movaps %xmm0,%xmm1
addss  0xe76(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe48(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtsd2ss %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movsd  0xe3a(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    11fb <main+0xeb>
movsd  %xmm0,0x8(%rsp)
ucomisd 0xe16(%rip),%xmm0
mov    %r14,%rax
ja     1140 <main+0x30>
mov    %r15,%rax
jmp    1140 <main+0x30>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [15 x i8] c"I=%.0f J=%.0f\0A\00"
@.str.1 = [15 x i8] c"I=%.1f J=%.1f\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi double [ 0.000000e+00, %0 ], [ %18, %1 ]
%3 = phi float [ 0.000000e+00, %0 ], [ %17, %1 ]
%4 = fcmp oeq float %3, 0.000000e+00
%5 = fcmp oeq float %3, 1.000000e+00
%6 = or i1 %4, %5
%7 = fcmp ogt double %2, 1.900000e+00
%8 = or i1 %6, %7
%9 = fadd float %3, 1.000000e+00
%10 = select i1 %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0)
%11 = tail call i32 @printf(i8* %10, float %3, float %9)
%12 = fadd float %3, 2.000000e+00
%13 = tail call i32 @printf(i8* %10, float %3, float %12)
%14 = fadd float %3, 3.000000e+00
%15 = tail call i32 @printf(i8* %10, float %3, float %14)
%16 = fadd double %2, 2.000000e-01
%17 = fptrunc double %16 to float
%18 = fpext float %17 to double
%19 = fcmp olt double %18, 2.200000e+00
br i1 %19, label %1, label %20
20: ; preds = %1
ret i32 0
}