#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 *, int, int);
int main() {
  int i, j, k = 1, l = 0, m = 1, n = 0;
  double a = .2;
  while (1) {
    for (i = 0; i < 3; i++) {
      printf("I=%d J=%d\n", l, m++);
    }
    for (j = 0; j < 4; j++) {
      for (k = 1; k <= 3; k++) {
        printf("I=%.1lf J=%.1lf\n", l + a, k + a + n);
      }
      a += .2;
    }
    l++;
    a = .2;
    n++;
    m = m - 2;
    if (l == 2) {
      break;
    }
  }
  for (i = 0; i < 3; i++) {
    printf("I=%d J=%d\n", l, m++);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movsd  0xebd(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1181 <main+0x71>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    114f <main+0x3f>
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    1202 <main+0xf2>
movl   $0x1,-0x10(%rbp)
cmpl   $0x3,-0x10(%rbp)
jg     11e2 <main+0xd2>
cvtsi2sdl -0x14(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
cvtsi2sdl -0x10(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1199 <main+0x89>
movsd  0xe16(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1188 <main+0x78>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movsd  0xded(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x2,-0x14(%rbp)
jne    1239 <main+0x129>
jmp    123e <main+0x12e>
jmp    1148 <main+0x38>
movl   $0x0,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1277 <main+0x167>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xda4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1245 <main+0x135>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
mov    $0x1,%ebx
xor    %ebp,%ebp
lea    0xf55(%rip),%r14
lea    0xf59(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
lea    0x1(%rbx),%r15d
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
call   1030 <printf@plt>
add    $0x2,%ebx
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,0x8(%rsp)
addsd  0xe7f(%rip),%xmm0
cvttsd2si %xmm0,%ebx
movsd  (%rsp),%xmm0
addsd  0xe76(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe63(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe50(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe3c(%rip),%xmm0
cvttsd2si %xmm0,%ebx
movsd  (%rsp),%xmm0
addsd  0xe33(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe20(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe0d(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xdf9(%rip),%xmm0
cvttsd2si %xmm0,%ebx
movsd  (%rsp),%xmm0
addsd  0xdf0(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xddd(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xdca(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xdb6(%rip),%xmm0
cvttsd2si %xmm0,%ebx
movsd  (%rsp),%xmm0
addsd  0xdad(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xd9a(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xd87(%rip),%xmm0
cvttsd2si %xmm0,%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xd74(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x1,%ebp
mov    %r15d,%ebx
cmp    $0x3,%r15d
jne    1140 <main+0x30>
lea    0xd5e(%rip),%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x4,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x5,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"I=%d J=%d\0A\00"
@.str.1 = [17 x i8] c"I=%.1lf J=%.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
store i32 0, i32* %1
store i32 1, i32* %4
store i32 0, i32* %5
store i32 1, i32* %6
store i32 0, i32* %7
store double 2.000000e-01, double* %8
br label %9
9: ; preds = %0, %63
store i32 0, i32* %2
br label %10
10: ; preds = %18, %9
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = add nsw i32 %15, 1
store i32 %16, i32* %6
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15)
br label %18
18: ; preds = %13
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
br label %10
21: ; preds = %10
store i32 0, i32* %3
br label %22
22: ; preds = %50, %21
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 4
br i1 %24, label %25, label %53
25: ; preds = %22
store i32 1, i32* %4
br label %26
26: ; preds = %44, %25
%27 = load i32, i32* %4
%28 = icmp sle i32 %27, 3
br i1 %28, label %29, label %47
29: ; preds = %26
%30 = load i32, i32* %5
%31 = sitofp i32 %30 to double
%32 = load double, double* %8
%33 = fadd double %31, %32
%34 = fptosi double %33 to i32
%35 = load i32, i32* %4
%36 = sitofp i32 %35 to double
%37 = load double, double* %8
%38 = fadd double %36, %37
%39 = load i32, i32* %7
%40 = sitofp i32 %39 to double
%41 = fadd double %38, %40
%42 = fptosi double %41 to i32
%43 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %34, i32 %42)
br label %44
44: ; preds = %29
%45 = load i32, i32* %4
%46 = add nsw i32 %45, 1
store i32 %46, i32* %4
br label %26
47: ; preds = %26
%48 = load double, double* %8
%49 = fadd double %48, 2.000000e-01
store double %49, double* %8
br label %50
50: ; preds = %47
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %22
53: ; preds = %22
%54 = load i32, i32* %5
%55 = add nsw i32 %54, 1
store i32 %55, i32* %5
store double 2.000000e-01, double* %8
%56 = load i32, i32* %7
%57 = add nsw i32 %56, 1
store i32 %57, i32* %7
%58 = load i32, i32* %6
%59 = sub nsw i32 %58, 2
store i32 %59, i32* %6
%60 = load i32, i32* %5
%61 = icmp eq i32 %60, 2
br i1 %61, label %62, label %63
62: ; preds = %53
br label %64
63: ; preds = %53
br label %9
64: ; preds = %62
store i32 0, i32* %2
br label %65
65: ; preds = %73, %64
%66 = load i32, i32* %2
%67 = icmp slt i32 %66, 3
br i1 %67, label %68, label %76
68: ; preds = %65
%69 = load i32, i32* %5
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
%72 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %69, i32 %70)
br label %73
73: ; preds = %68
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %65
76: ; preds = %65
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"I=%d J=%d\0A\00"
@.str.1 = [17 x i8] c"I=%.1lf J=%.1lf\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 1, %1 ], [ 0, %0 ]
%3 = phi i32 [ %5, %1 ], [ 1, %0 ]
%4 = phi i32 [ %56, %1 ], [ 0, %0 ]
%5 = add nuw nsw i32 %3, 1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3)
%7 = add nuw nsw i32 %3, 2
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %5)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %7)
%10 = sitofp i32 %2 to double
%11 = sitofp i32 %4 to double
%12 = fadd double %10, 2.000000e-01
%13 = fptosi double %12 to i32
%14 = fadd double %11, 1.200000e+00
%15 = fptosi double %14 to i32
%16 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %15)
%17 = fadd double %11, 2.200000e+00
%18 = fptosi double %17 to i32
%19 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %18)
%20 = fadd double %11, 3.200000e+00
%21 = fptosi double %20 to i32
%22 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %21)
%23 = fadd double %10, 4.000000e-01
%24 = fptosi double %23 to i32
%25 = fadd double %11, 1.400000e+00
%26 = fptosi double %25 to i32
%27 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %26)
%28 = fadd double %11, 2.400000e+00
%29 = fptosi double %28 to i32
%30 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %29)
%31 = fadd double %11, 3.400000e+00
%32 = fptosi double %31 to i32
%33 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %32)
%34 = fadd double %10, 0x3FE3333333333334
%35 = fptosi double %34 to i32
%36 = fadd double %11, 1.600000e+00
%37 = fptosi double %36 to i32
%38 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %35, i32 %37)
%39 = fadd double %11, 2.600000e+00
%40 = fptosi double %39 to i32
%41 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %35, i32 %40)
%42 = fadd double %11, 3.600000e+00
%43 = fptosi double %42 to i32
%44 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %35, i32 %43)
%45 = fadd double %10, 8.000000e-01
%46 = fptosi double %45 to i32
%47 = fadd double %11, 1.800000e+00
%48 = fptosi double %47 to i32
%49 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %48)
%50 = fadd double %11, 2.800000e+00
%51 = fptosi double %50 to i32
%52 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %51)
%53 = fadd double %11, 3.800000e+00
%54 = fptosi double %53 to i32
%55 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %54)
%56 = add nuw nsw i32 %4, 1
%57 = icmp eq i32 %56, 2
br i1 %57, label %58, label %1
58: ; preds = %1
%59 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i32 3)
%60 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i32 4)
%61 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i32 5)
ret i32 0
}