#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 */
scalar_t__ f(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int strtod(char *, int /*<<< orphan*/);
int /*<<< orphan*/ u(double, double, double);
int /*<<< orphan*/ v(double, double, double);
int main(int a, char **b) {
  for (double y = -1, s = a > 1 ? strtod(b[1], 0) : 1; y < 0.6;
       y += 0.05 / s, putchar('\n'))
    for (double x = -1; x < 0.6; x += 0.025 / s)
      putchar(" .|/=\\|/=\\| @!"[(int)f(u(x, y, 0.3), v(x, y, 0.3))]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1194 <main+0x44>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %esi,%esi
call   1040 <strtod@plt>
mov    %eax,-0x2c(%rbp)
jmp    11a1 <main+0x51>
mov    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11a1 <main+0x51>
mov    -0x2c(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe53(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1275 <main+0x125>
movsd  0xe38(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe33(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    124a <main+0xfa>
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xe26(%rip),%xmm2
call   1070 <u@plt>
mov    %eax,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xe0c(%rip),%xmm2
call   1050 <v@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%esi
call   1060 <f@plt>
movslq %eax,%rcx
lea    0xe03(%rip),%rax
movsbl (%rax,%rcx,1),%edi
call   1030 <putchar@plt>
movsd  0xdea(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11cd <main+0x7d>
jmp    124f <main+0xff>
movsd  0xdb9(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    11ad <main+0x5d>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jl     116d <main+0x1d>
mov    0x8(%rsi),%rdi
xor    %esi,%esi
call   1040 <strtod@plt>
cvtsi2sd %eax,%xmm0
jmp    1175 <main+0x25>
movsd  0xe8b(%rip),%xmm0
movsd  0xe8b(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0xe81(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xe77(%rip),%xmm0
lea    0xe88(%rip),%r14
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x8(%rsp)
movsd  0xe5a(%rip),%xmm1
xchg   %ax,%ax
movsd  %xmm1,0x10(%rsp)
movaps %xmm1,%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe49(%rip),%xmm2
call   1070 <u@plt>
mov    %eax,%ebx
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe2e(%rip),%xmm2
call   1050 <v@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1060 <f@plt>
cltq
movsbl (%rax,%r14,1),%edi
call   1030 <putchar@plt>
movsd  0x10(%rsp),%xmm1
addsd  0x20(%rsp),%xmm1
movsd  0xe08(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     11c0 <main+0x70>
movsd  0x8(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xdde(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm0
movapd %xmm1,%xmm0
ja     11b0 <main+0x60>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [15 x i8] c" .|/=\\|/=\\| @!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double -1.000000e+00, double* %6
%9 = load i32, i32* %4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @strtod(i8* %14, i32 0)
br label %17
16: ; preds = %2
br label %17
17: ; preds = %16, %11
%18 = phi i32 [ %15, %11 ], [ 1, %16 ]
%19 = sitofp i32 %18 to double
store double %19, double* %7
br label %20
20: ; preds = %46, %17
%21 = load double, double* %6
%22 = fcmp olt double %21, 6.000000e-01
br i1 %22, label %23, label %52
23: ; preds = %20
store double -1.000000e+00, double* %8
br label %24
24: ; preds = %40, %23
%25 = load double, double* %8
%26 = fcmp olt double %25, 6.000000e-01
br i1 %26, label %27, label %45
27: ; preds = %24
%28 = load double, double* %8
%29 = load double, double* %6
%30 = call i32 @u(double %28, double %29, double 3.000000e-01)
%31 = load double, double* %8
%32 = load double, double* %6
%33 = call i32 @v(double %31, double %32, double 3.000000e-01)
%34 = call i64 @f(i32 %30, i32 %33)
%35 = trunc i64 %34 to i32
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [15 x i8], [15 x i8]* @.str, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = call i32 @putchar(i8 signext %38)
br label %40
40: ; preds = %27
%41 = load double, double* %7
%42 = fdiv double 2.500000e-02, %41
%43 = load double, double* %8
%44 = fadd double %43, %42
store double %44, double* %8
br label %24
45: ; preds = %24
br label %46
46: ; preds = %45
%47 = load double, double* %7
%48 = fdiv double 5.000000e-02, %47
%49 = load double, double* %6
%50 = fadd double %49, %48
store double %50, double* %6
%51 = call i32 @putchar(i8 signext 10)
br label %20
52: ; preds = %20
%53 = load i32, i32* %3
ret i32 %53
}

LLVM IR (-O2):
@.str = [15 x i8] c" .|/=\\|/=\\| @!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strtod(i8* %6, i32 0)
%8 = sitofp i32 %7 to double
br label %9
9: ; preds = %2, %4
%10 = phi double [ %8, %4 ], [ 1.000000e+00, %2 ]
%11 = fdiv double 2.500000e-02, %10
%12 = fdiv double 5.000000e-02, %10
br label %13
13: ; preds = %9, %16
%14 = phi double [ -1.000000e+00, %9 ], [ %17, %16 ]
br label %20
15: ; preds = %16
ret i32 0
16: ; preds = %20
%17 = fadd double %12, %14
%18 = tail call i32 @putchar(i8 signext 10)
%19 = fcmp olt double %17, 6.000000e-01
br i1 %19, label %13, label %15
20: ; preds = %13, %20
%21 = phi double [ -1.000000e+00, %13 ], [ %30, %20 ]
%22 = tail call i32 @u(double %21, double %14, double 3.000000e-01)
%23 = tail call i32 @v(double %21, double %14, double 3.000000e-01)
%24 = tail call i64 @f(i32 %22, i32 %23)
%25 = shl i64 %24, 32
%26 = ashr exact i64 %25, 32
%27 = getelementptr inbounds [15 x i8], [15 x i8]* @.str, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = tail call i32 @putchar(i8 signext %28)
%30 = fadd double %11, %21
%31 = fcmp olt double %30, 6.000000e-01
br i1 %31, label %20, label %16
}