#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 a = x * x + y * y - 1;
      putchar(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ' ');
    }
    putchar('\n');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%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    1222 <main+0x112>
movss  0xeba(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xea9(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11fd <main+0xed>
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),%xmm1
mulss  -0x10(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
mov    $0x20,%eax
mov    $0x2a,%ecx
ucomiss %xmm1,%xmm0
cmovae %ecx,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
movss  0xe22(%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  0xdf4(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    112c <main+0x1c>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movss  0xee4(%rip),%xmm0
movss  0xee0(%rip),%xmm1
jmp    1159 <main+0x49>
cs nopw 0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0xc(%rsp),%xmm0
addss  0xec8(%rip),%xmm0
movss  0xeb4(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11e3 <main+0xd3>
movss  %xmm0,0xc(%rsp)
mulss  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movaps %xmm1,%xmm0
jmp    1193 <main+0x83>
xchg   %ax,%ax
call   1030 <putchar@plt>
movss  0x14(%rsp),%xmm1
addss  0xe89(%rip),%xmm1
movss  0xe75(%rip),%xmm0
ucomiss %xmm1,%xmm0
movaps %xmm1,%xmm0
jbe    1130 <main+0x20>
movss  %xmm0,0x14(%rsp)
mulss  %xmm0,%xmm0
movss  0xc(%rsp),%xmm3
movaps %xmm3,%xmm1
mulss  %xmm0,%xmm1
addss  0x10(%rsp),%xmm0
addss  0xe50(%rip),%xmm0
movaps %xmm0,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm3,%xmm1
mulss  %xmm3,%xmm1
mulss  %xmm0,%xmm2
subss  %xmm1,%xmm2
xorps  %xmm0,%xmm0
ucomiss %xmm2,%xmm0
mov    $0x2a,%edi
jae    1170 <main+0x60>
mov    $0x20,%edi
jmp    1170 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
store float 1.500000e+00, float* %2
br label %5
5: ; preds = %45, %0
%6 = load float, float* %2
%7 = fcmp ogt float %6, -1.500000e+00
br i1 %7, label %8, label %48
8: ; preds = %5
store float -1.500000e+00, float* %3
br label %9
9: ; preds = %40, %8
%10 = load float, float* %3
%11 = fcmp olt float %10, 1.500000e+00
br i1 %11, label %12, label %43
12: ; preds = %9
%13 = load float, float* %3
%14 = load float, float* %3
%15 = load float, float* %2
%16 = load float, float* %2
%17 = fmul float %15, %16
%18 = call float @llvm.fmuladd.f32(float %13, float %14, float %17)
%19 = fsub float %18, 1.000000e+00
store float %19, float* %4
%20 = load float, float* %4
%21 = load float, float* %4
%22 = fmul float %20, %21
%23 = load float, float* %4
%24 = load float, float* %3
%25 = load float, float* %3
%26 = fmul float %24, %25
%27 = load float, float* %2
%28 = fmul float %26, %27
%29 = load float, float* %2
%30 = fmul float %28, %29
%31 = load float, float* %2
%32 = fmul float %30, %31
%33 = fneg float %32
%34 = call float @llvm.fmuladd.f32(float %22, float %23, float %33)
%35 = fcmp ole float %34, 0.000000e+00
%36 = zext i1 %35 to i64
%37 = select i1 %35, i32 42, i32 32
%38 = trunc i32 %37 to i8
%39 = call i32 @putchar(i8 signext %38)
br label %40
40: ; preds = %12
%41 = load float, float* %3
%42 = fadd float %41, 0x3FA99999A0000000
store float %42, float* %3
br label %9
43: ; preds = %9
%44 = call i32 @putchar(i8 signext 10)
br label %45
45: ; preds = %43
%46 = load float, float* %2
%47 = fsub float %46, 0x3FB99999A0000000
store float %47, float* %2
br label %5
48: ; preds = %5
%49 = load i32, i32* %1
ret i32 %49
}

LLVM IR (-O2):
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 = %9
%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, %9
%10 = phi float [ -1.500000e+00, %1 ], [ %23, %9 ]
%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 ole float %19, 0.000000e+00
%21 = select i1 %20, i8 42, i8 32
%22 = tail call i32 @putchar(i8 signext %21)
%23 = fadd float %10, 0x3FA99999A0000000
%24 = fcmp olt float %23, 1.500000e+00
br i1 %24, label %9, label %5
}