#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);
int main() {
  for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
    for (float x = -1.5f; x < 1.5f; x += 0.05f) {
      float z = x * x + y * y - 1;
      float f = z * z * z - x * x * y * y * y;
      putchar(f <= 0.0f ? ".:-=+*#%@"[(int)(f * -8.0f)] : ' ');
    }
    putchar('\n');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xecb(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1258 <main+0x148>
movss  0xeba(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xea9(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1233 <main+0x123>
movss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe87(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     1204 <main+0xf4>
movss  0xe2b(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
cvttss2si %xmm0,%eax
movslq %eax,%rcx
lea    0xe20(%rip),%rax
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x18(%rbp)
jmp    1211 <main+0x101>
mov    $0x20,%eax
mov    %eax,-0x18(%rbp)
jmp    1211 <main+0x101>
mov    -0x18(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
movss  0xdf0(%rip),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    114f <main+0x3f>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  -0x8(%rbp),%xmm0
movss  0xdbe(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    112c <main+0x1c>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movss  0xee3(%rip),%xmm0
movss  0xedf(%rip),%xmm1
lea    0xef0(%rip),%rbx
jmp    1159 <main+0x49>
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x4(%rsp),%xmm0
addss  0xecc(%rip),%xmm0
movss  0xeb4(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11ed <main+0xdd>
movss  %xmm0,0x4(%rsp)
mulss  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
jmp    1193 <main+0x83>
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <putchar@plt>
movss  0xc(%rsp),%xmm1
addss  0xe8a(%rip),%xmm1
movss  0xe72(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    1130 <main+0x20>
movss  %xmm1,0xc(%rsp)
mulss  %xmm1,%xmm1
movss  0x4(%rsp),%xmm3
movaps %xmm3,%xmm2
mulss  %xmm1,%xmm2
addss  0x8(%rsp),%xmm1
addss  0xe50(%rip),%xmm1
movaps %xmm1,%xmm0
mulss  %xmm1,%xmm0
mulss  %xmm3,%xmm2
mulss  %xmm3,%xmm2
mulss  %xmm1,%xmm0
subss  %xmm2,%xmm0
mov    $0x20,%al
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jb     1170 <main+0x60>
mulss  0xe2b(%rip),%xmm0
cvttss2si %xmm0,%eax
cltq
movzbl (%rax,%rbx,1),%eax
jmp    1170 <main+0x60>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

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