#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*/ putchar(char);
float sqrt(int);
int main() {
  float x, y;
  for (y = 1; y >= -1; y -= 0.05f, putchar('\n'))
    for (x = -1; x <= 1; x += 0.025f)
      putchar(x * x + y * y > 1
                  ? 'M'
                  : "@@%#*+=;:. "[(int)(((x + y + sqrt(1 - (x * x + y * y))) *
                                             0.5773502692f +
                                         1) *
                                            5.0f +
                                        0.5f)]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xec9(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movss  0xebb(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1288 <main+0x168>
movss  0xeaa(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe99(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     125e <main+0x13e>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe6b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11ab <main+0x8b>
mov    $0x4d,%eax
mov    %eax,-0x10(%rbp)
jmp    123c <main+0x11c>
movss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xe22(%rip),%xmm0
subss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1040 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x14(%rbp),%xmm0
addss  %xmm1,%xmm0
movss  0xe15(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xdf5(%rip),%xmm1
addss  %xmm1,%xmm0
movss  0xdf5(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xded(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
movslq %eax,%rcx
lea    0xde7(%rip),%rax
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
movss  0xdc9(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    115f <main+0x3f>
jmp    1263 <main+0x143>
movss  -0xc(%rbp),%xmm0
movss  0xd98(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    113c <main+0x1c>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movss  0xed3(%rip),%xmm1
movss  0xecf(%rip),%xmm0
lea    0xee0(%rip),%rbx
movaps %xmm1,%xmm2
jmp    118a <main+0x6a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%rsp),%xmm0
addss  0xebb(%rip),%xmm0
movss  %xmm0,(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  (%rsp),%xmm2
movss  0xe87(%rip),%xmm1
movss  0xe83(%rip),%xmm0
ucomiss %xmm0,%xmm2
jb     1235 <main+0x115>
movss  %xmm2,(%rsp)
mulss  %xmm2,%xmm2
movss  %xmm2,0xc(%rsp)
jmp    11c3 <main+0xa3>
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <putchar@plt>
movss  0xe50(%rip),%xmm1
movss  0x4(%rsp),%xmm0
addss  0xe56(%rip),%xmm0
ucomiss %xmm0,%xmm1
jb     1150 <main+0x30>
movss  %xmm0,0x4(%rsp)
mulss  %xmm0,%xmm0
addss  0xc(%rsp),%xmm0
mov    $0x4d,%al
ucomiss %xmm1,%xmm0
ja     11a0 <main+0x80>
movss  (%rsp),%xmm1
addss  0x4(%rsp),%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xe0d(%rip),%xmm1
subss  %xmm0,%xmm1
cvttss2si %xmm1,%edi
call   1040 <sqrt@plt>
addss  0x8(%rsp),%xmm0
mulss  0xdfa(%rip),%xmm0
addss  0xdea(%rip),%xmm0
mulss  0xdee(%rip),%xmm0
addss  0xdea(%rip),%xmm0
cvttss2si %xmm0,%eax
cltq
movzbl (%rax,%rbx,1),%eax
jmp    11a0 <main+0x80>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"@@%#*+=;:. \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
store float 1.000000e+00, float* %3
br label %4
4: ; preds = %49, %0
%5 = load float, float* %3
%6 = fcmp oge float %5, -1.000000e+00
br i1 %6, label %7, label %53
7: ; preds = %4
store float -1.000000e+00, float* %2
br label %8
8: ; preds = %45, %7
%9 = load float, float* %2
%10 = fcmp ole float %9, 1.000000e+00
br i1 %10, label %11, label %48
11: ; preds = %8
%12 = load float, float* %2
%13 = load float, float* %2
%14 = load float, float* %3
%15 = load float, float* %3
%16 = fmul float %14, %15
%17 = call float @llvm.fmuladd.f32(float %12, float %13, float %16)
%18 = fcmp ogt float %17, 1.000000e+00
br i1 %18, label %19, label %20
19: ; preds = %11
br label %41
20: ; preds = %11
%21 = load float, float* %2
%22 = load float, float* %3
%23 = fadd float %21, %22
%24 = load float, float* %2
%25 = load float, float* %2
%26 = load float, float* %3
%27 = load float, float* %3
%28 = fmul float %26, %27
%29 = call float @llvm.fmuladd.f32(float %24, float %25, float %28)
%30 = fsub float 1.000000e+00, %29
%31 = fptosi float %30 to i32
%32 = call float @sqrt(i32 %31)
%33 = fadd float %23, %32
%34 = call float @llvm.fmuladd.f32(float %33, float 0x3FE279A740000000, float 1.000000e+00)
%35 = call float @llvm.fmuladd.f32(float %34, float 5.000000e+00, float 5.000000e-01)
%36 = fptosi float %35 to i32
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [12 x i8], [12 x i8]* @.str, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
br label %41
41: ; preds = %20, %19
%42 = phi i32 [ 77, %19 ], [ %40, %20 ]
%43 = trunc i32 %42 to i8
%44 = call i32 @putchar(i8 signext %43)
br label %45
45: ; preds = %41
%46 = load float, float* %2
%47 = fadd float %46, 0x3F999999A0000000
store float %47, float* %2
br label %8
48: ; preds = %8
br label %49
49: ; preds = %48
%50 = load float, float* %3
%51 = fsub float %50, 0x3FA99999A0000000
store float %51, float* %3
%52 = call i32 @putchar(i8 signext 10)
br label %4
53: ; preds = %4
%54 = load i32, i32* %1
ret i32 %54
}

LLVM IR (-O2):
@.str = [12 x i8] c"@@%#*+=;:. \00"
define i32 @main() {
br label %1
1: ; preds = %0, %25
%2 = phi float [ 1.000000e+00, %0 ], [ %26, %25 ]
%3 = fmul float %2, %2
br label %4
4: ; preds = %1, %20
%5 = phi float [ -1.000000e+00, %1 ], [ %23, %20 ]
%6 = tail call float @llvm.fmuladd.f32(float %5, float %5, float %3)
%7 = fcmp ogt float %6, 1.000000e+00
br i1 %7, label %20, label %8
8: ; preds = %4
%9 = fadd float %2, %5
%10 = fsub float 1.000000e+00, %6
%11 = fptosi float %10 to i32
%12 = tail call float @sqrt(i32 %11)
%13 = fadd float %9, %12
%14 = tail call float @llvm.fmuladd.f32(float %13, float 0x3FE279A740000000, float 1.000000e+00)
%15 = tail call float @llvm.fmuladd.f32(float %14, float 5.000000e+00, float 5.000000e-01)
%16 = fptosi float %15 to i32
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [12 x i8], [12 x i8]* @.str, i64 0, i64 %17
%19 = load i8, i8* %18
br label %20
20: ; preds = %4, %8
%21 = phi i8 [ %19, %8 ], [ 77, %4 ]
%22 = tail call i32 @putchar(i8 signext %21)
%23 = fadd float %5, 0x3F999999A0000000
%24 = fcmp ugt float %23, 1.000000e+00
br i1 %24, label %25, label %4
25: ; preds = %20
%26 = fadd float %2, 0xBFA99999A0000000
%27 = tail call i32 @putchar(i8 signext 10)
%28 = fcmp ult float %26, -1.000000e+00
br i1 %28, label %29, label %1
29: ; preds = %25
ret i32 0
}