#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 main(void) {
  float y;
  int r, g, b, h, l;
  int B[4] = {32, 96, 159, 223};
  int G[8] = {16, 48, 80, 112, 143, 175, 207, 239};
  int R[7] = {18, 55, 91, 128, 164, 200, 237};
  for (r = 0; r < 7; r++) {
    for (l = 0; l < 2; l++) {
      for (g = 0; g < 8; g++) {
        for (h = 0; h < 2; h++) {
          b = h * 2 + l;
          y = R[r] * 0.3 + G[g] * 0.59 + B[b] * 0.11;
          if (y < 100)
            printf(" ");
          printf("%d ", (int)y);
        }
      }
      printf("\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xefa(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xef7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xef4(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xef1(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xeee(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeeb(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xee8(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xee5(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xee2(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xee0(%rip),%eax
mov    %eax,-0x58(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jge    12b1 <main+0x1a1>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    129e <main+0x18e>
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    1282 <main+0x172>
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    126f <main+0x15f>
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
movslq -0xc(%rbp),%rax
cvtsi2sdl -0x70(%rbp,%rax,4),%xmm1
movslq -0x10(%rbp),%rax
cvtsi2sdl -0x50(%rbp,%rax,4),%xmm0
movsd  0xe21(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  0xe0d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movslq -0x14(%rbp),%rax
cvtsi2sdl -0x30(%rbp,%rax,4),%xmm0
movsd  0xdeb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xdca(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    124e <main+0x13e>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvttss2si -0x8(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c5 <main+0xb5>
jmp    1274 <main+0x164>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11b4 <main+0xa4>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a3 <main+0x93>
jmp    12a3 <main+0x193>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1192 <main+0x82>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xf2c(%rip),%r14
lea    0xf05(%rip),%r15
lea    0xf3a(%rip),%r13
xor    %r12d,%r12d
jmp    1168 <main+0x48>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
cmp    $0x7,%r12
je     132a <main+0x20a>
xorps  %xmm0,%xmm0
cvtsi2sdl (%r14,%r12,4),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %ebx,%ebx
jmp    119c <main+0x7c>
nopl   0x0(%rax,%rax,1)
cvttss2si %xmm1,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x4,%rbx
cmp    $0x20,%rbx
je     1250 <main+0x130>
xorps  %xmm0,%xmm0
cvtsi2sdl (%rbx,%r15,1),%xmm0
mulsd  0xe53(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xe4d(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
addsd  0xe3f(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movss  0xe50(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    11fb <main+0xdb>
mov    $0x20,%edi
movss  %xmm1,0x14(%rsp)
call   1030 <putchar@plt>
movss  0x14(%rsp),%xmm1
cvttss2si %xmm1,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe01(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movss  0xe0a(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    1180 <main+0x60>
mov    $0x20,%edi
movss  %xmm1,0x8(%rsp)
call   1030 <putchar@plt>
movss  0x8(%rsp),%xmm1
jmp    1180 <main+0x60>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %ebx,%ebx
jmp    127c <main+0x15c>
xchg   %ax,%ax
cvttss2si %xmm1,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x4,%rbx
cmp    $0x20,%rbx
je     1150 <main+0x30>
xorps  %xmm0,%xmm0
cvtsi2sdl (%rbx,%r15,1),%xmm0
mulsd  0xd73(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xd6d(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
addsd  0xd6f(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movss  0xd70(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    12db <main+0x1bb>
mov    $0x20,%edi
movss  %xmm1,0x14(%rsp)
call   1030 <putchar@plt>
movss  0x14(%rsp),%xmm1
cvttss2si %xmm1,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd31(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movss  0xd2a(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    1260 <main+0x140>
mov    $0x20,%edi
movss  %xmm1,0x8(%rsp)
call   1030 <putchar@plt>
movss  0x8(%rsp),%xmm1
jmp    1260 <main+0x140>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.B = [4 x i32] [i32 32, i32 96, i32 159, i32 223]
@__const.main.G = [8 x i32] [i32 16, i32 48, i32 80, i32 112, i32 143, i32 175, i32 207, i32 239]
@__const.main.R = [7 x i32] [i32 18, i32 55, i32 91, i32 128, i32 164, i32 200, i32 237]
@.str = [2 x i8] c" \00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [4 x i32]
%9 = alloca [8 x i32]
%10 = alloca [7 x i32]
store i32 0, i32* %1
%11 = bitcast [4 x i32]* %8 to i8*
%12 = bitcast [8 x i32]* %9 to i8*
%13 = bitcast [7 x i32]* %10 to i8*
store i32 0, i32* %3
br label %14
14: ; preds = %74, %0
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 7
br i1 %16, label %17, label %77
17: ; preds = %14
store i32 0, i32* %7
br label %18
18: ; preds = %70, %17
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %73
21: ; preds = %18
store i32 0, i32* %4
br label %22
22: ; preds = %65, %21
%23 = load i32, i32* %4
%24 = icmp slt i32 %23, 8
br i1 %24, label %25, label %68
25: ; preds = %22
store i32 0, i32* %6
br label %26
26: ; preds = %61, %25
%27 = load i32, i32* %6
%28 = icmp slt i32 %27, 2
br i1 %28, label %29, label %64
29: ; preds = %26
%30 = load i32, i32* %6
%31 = mul nsw i32 %30, 2
%32 = load i32, i32* %7
%33 = add nsw i32 %31, %32
store i32 %33, i32* %5
%34 = load i32, i32* %3
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [7 x i32], [7 x i32]* %10, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = sitofp i32 %37 to double
%39 = load i32, i32* %4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = sitofp i32 %42 to double
%44 = fmul double %43, 5.900000e-01
%45 = call double @llvm.fmuladd.f64(double %38, double 3.000000e-01, double %44)
%46 = load i32, i32* %5
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = sitofp i32 %49 to double
%51 = call double @llvm.fmuladd.f64(double %50, double 1.100000e-01, double %45)
%52 = fptrunc double %51 to float
store float %52, float* %2
%53 = load float, float* %2
%54 = fcmp olt float %53, 1.000000e+02
br i1 %54, label %55, label %57
55: ; preds = %29
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %57
57: ; preds = %55, %29
%58 = load float, float* %2
%59 = fptosi float %58 to i32
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %59)
br label %61
61: ; preds = %57
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 1
store i32 %63, i32* %6
br label %26
64: ; preds = %26
br label %65
65: ; preds = %64
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %22
68: ; preds = %22
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %70
70: ; preds = %68
%71 = load i32, i32* %7
%72 = add nsw i32 %71, 1
store i32 %72, i32* %7
br label %18
73: ; preds = %18
br label %74
74: ; preds = %73
%75 = load i32, i32* %3
%76 = add nsw i32 %75, 1
store i32 %76, i32* %3
br label %14
77: ; preds = %14
ret i32 0
}

LLVM IR (-O2):
@__const.main.G = [8 x i32] [i32 16, i32 48, i32 80, i32 112, i32 143, i32 175, i32 207, i32 239]
@__const.main.R = [7 x i32] [i32 18, i32 55, i32 91, i32 128, i32 164, i32 200, i32 237]
@.str.1 = [4 x i8] c"%d \00"
define i32 @main() {
br label %1
1: ; preds = %0, %58
%2 = phi i64 [ 0, %0 ], [ %60, %58 ]
%3 = getelementptr inbounds [7 x i32], [7 x i32]* @__const.main.R, i64 0, i64 %2
%4 = load i32, i32* %3
%5 = sitofp i32 %4 to double
br label %6
6: ; preds = %1, %26
%7 = phi i64 [ 0, %1 ], [ %29, %26 ]
%8 = getelementptr inbounds [8 x i32], [8 x i32]* @__const.main.G, i64 0, i64 %7
%9 = load i32, i32* %8
%10 = sitofp i32 %9 to double
%11 = fmul double %10, 5.900000e-01
%12 = tail call double @llvm.fmuladd.f64(double %5, double 3.000000e-01, double %11)
%13 = fadd double %12, 3.520000e+00
%14 = fptrunc double %13 to float
%15 = fcmp olt float %14, 1.000000e+02
br i1 %15, label %16, label %18
16: ; preds = %6
%17 = tail call i32 @putchar(i32 32)
br label %18
18: ; preds = %16, %6
%19 = fptosi float %14 to i32
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = fadd double %12, 1.749000e+01
%22 = fptrunc double %21 to float
%23 = fcmp olt float %22, 1.000000e+02
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = tail call i32 @putchar(i32 32)
br label %26
26: ; preds = %24, %18
%27 = fptosi float %22 to i32
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %27)
%29 = add nuw nsw i64 %7, 1
%30 = icmp eq i64 %29, 8
br i1 %30, label %31, label %6
31: ; preds = %26
%32 = tail call i32 @putchar(i32 10)
br label %33
33: ; preds = %53, %31
%34 = phi i64 [ 0, %31 ], [ %56, %53 ]
%35 = getelementptr inbounds [8 x i32], [8 x i32]* @__const.main.G, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = sitofp i32 %36 to double
%38 = fmul double %37, 5.900000e-01
%39 = tail call double @llvm.fmuladd.f64(double %5, double 3.000000e-01, double %38)
%40 = fadd double %39, 1.056000e+01
%41 = fptrunc double %40 to float
%42 = fcmp olt float %41, 1.000000e+02
br i1 %42, label %43, label %45
43: ; preds = %33
%44 = tail call i32 @putchar(i32 32)
br label %45
45: ; preds = %43, %33
%46 = fptosi float %41 to i32
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%48 = fadd double %39, 2.453000e+01
%49 = fptrunc double %48 to float
%50 = fcmp olt float %49, 1.000000e+02
br i1 %50, label %51, label %53
51: ; preds = %45
%52 = tail call i32 @putchar(i32 32)
br label %53
53: ; preds = %51, %45
%54 = fptosi float %49 to i32
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %54)
%56 = add nuw nsw i64 %34, 1
%57 = icmp eq i64 %56, 8
br i1 %57, label %58, label %33
58: ; preds = %53
%59 = tail call i32 @putchar(i32 10)
%60 = add nuw nsw i64 %2, 1
%61 = icmp eq i64 %60, 7
br i1 %61, label %62, label %1
62: ; preds = %58
ret i32 0
}