#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(unsigned char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
scalar_t__ point_in_circle(int, int, int, int, int);
int main(void) {
  FILE *image_file;
  int x, y;
  unsigned char r, g, b;
  image_file = fopen("image-file-1.pnm", "wb");
  fputs("P6\n", image_file);
  fputs("500 500\n", image_file);
  fputs("255\n", image_file);
  for (y = 0; y < 500; y++)
    for (x = 0; x < 500; x++) {
      (point_in_circle(x, y, 319, 196, 65) && y < 220)
          ? ((point_in_circle(x, y, 362, 155, 26)) ? (b = g = r = 0)
                                                   : (b = g = r = 0xFF))
      : (point_in_circle(x, y, 319, 196, 76) && y < 231) ? (b = g = r = 0)
      : (point_in_circle(x, y, 109, 196, 65) && y < 220)
          ? (point_in_circle(x, y, 137, 155, 26) ? (b = g = r = 0)
                                                 : (b = g = r = 0xFF))
      : (point_in_circle(x, y, 109, 196, 76) && y < 231) ? (b = g = r = 0)
      : (point_in_circle(x, y, 220, 297, 128) && y > 289)
          ? (point_in_circle(x, y, 276, 448, 82)
                 ? ((r = 251) + (g = 192) + (b = 223))
                 : ((r = 135) + (g = 25) + (b = 69)))
      : (point_in_circle(x, y, 220, 297, 139) && y > 289 - 11) ? (b = g = r = 0)
      : (point_in_circle(x, y, 250, 250, 229))
          ? ((r = 254) + (g = 222) + (b = 88))
      : (point_in_circle(x, y, 250, 250, 250))
          ? (b = g = r = 0)
          : ((r = 0) + (g = (x * y) / 70) + (b = 200));
      fputc(r, image_file);
      fputc(g, image_file);
      fputc(b, image_file);
    }
  fclose(image_file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xea4(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe93(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x10(%rbp),%rsi
lea    0xe87(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x10(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1f4,-0x18(%rbp)
jge    1559 <main+0x409>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f4,-0x14(%rbp)
jge    1546 <main+0x3f6>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x13f,%edx
mov    $0xc4,%ecx
mov    $0x41,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     1257 <main+0x107>
cmpl   $0xdc,-0x18(%rbp)
jge    1257 <main+0x107>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x16a,%edx
mov    $0x9b,%ecx
mov    $0x1a,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     123b <main+0xeb>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x20(%rbp)
jmp    124f <main+0xff>
movb   $0xff,-0x19(%rbp)
movb   $0xff,-0x1a(%rbp)
movb   $0xff,-0x1b(%rbp)
mov    $0xff,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
jmp    150b <main+0x3bb>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x13f,%edx
mov    $0xc4,%ecx
mov    $0x4c,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     129f <main+0x14f>
cmpl   $0xe7,-0x18(%rbp)
jge    129f <main+0x14f>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x24(%rbp)
jmp    1508 <main+0x3b8>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x6d,%edx
mov    $0xc4,%ecx
mov    $0x41,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     132b <main+0x1db>
cmpl   $0xdc,-0x18(%rbp)
jge    132b <main+0x1db>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x89,%edx
mov    $0x9b,%ecx
mov    $0x1a,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     130c <main+0x1bc>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x28(%rbp)
jmp    1320 <main+0x1d0>
movb   $0xff,-0x19(%rbp)
movb   $0xff,-0x1a(%rbp)
movb   $0xff,-0x1b(%rbp)
mov    $0xff,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1502 <main+0x3b2>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x6d,%edx
mov    $0xc4,%ecx
mov    $0x4c,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     1373 <main+0x223>
cmpl   $0xe7,-0x18(%rbp)
jge    1373 <main+0x223>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x30(%rbp)
jmp    14fc <main+0x3ac>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0xdc,%edx
mov    $0x129,%ecx
mov    $0x80,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     1402 <main+0x2b2>
cmpl   $0x121,-0x18(%rbp)
jle    1402 <main+0x2b2>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0x114,%edx
mov    $0x1c0,%ecx
mov    $0x52,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     13e3 <main+0x293>
movb   $0xfb,-0x19(%rbp)
movb   $0xc0,-0x1a(%rbp)
movb   $0xdf,-0x1b(%rbp)
mov    $0x29a,%eax
mov    %eax,-0x34(%rbp)
jmp    13f7 <main+0x2a7>
movb   $0x87,-0x19(%rbp)
movb   $0x19,-0x1a(%rbp)
movb   $0x45,-0x1b(%rbp)
mov    $0xe5,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    14f6 <main+0x3a6>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0xdc,%edx
mov    $0x129,%ecx
mov    $0x8b,%r8d
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     144a <main+0x2fa>
cmpl   $0x116,-0x18(%rbp)
jle    144a <main+0x2fa>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x3c(%rbp)
jmp    14f0 <main+0x3a0>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0xfa,%ecx
mov    $0xe5,%r8d
mov    %ecx,%edx
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     1485 <main+0x335>
movb   $0xfe,-0x19(%rbp)
movb   $0xde,-0x1a(%rbp)
movb   $0x58,-0x1b(%rbp)
mov    $0x234,%eax
mov    %eax,-0x40(%rbp)
jmp    14ea <main+0x39a>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    $0xfa,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1060 <point_in_circle@plt>
cmp    $0x0,%rax
je     14bc <main+0x36c>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
xor    %eax,%eax
mov    %eax,-0x44(%rbp)
jmp    14e4 <main+0x394>
movb   $0x0,-0x19(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    $0x46,%ecx
cltd
idiv   %ecx
mov    %al,-0x1a(%rbp)
movzbl %al,%eax
add    $0x0,%eax
movb   $0xc8,-0x1b(%rbp)
add    $0xc8,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x19(%rbp),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1050 <fputc@plt>
mov    -0x1a(%rbp),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1050 <fputc@plt>
mov    -0x1b(%rbp),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1050 <fputc@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11c1 <main+0x71>
jmp    154b <main+0x3fb>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ad <main+0x5d>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe9e(%rip),%rdi
lea    0xea8(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%r14
lea    0xe9c(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1070 <fwrite@plt>
lea    0xe87(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1070 <fwrite@plt>
lea    0xe77(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1070 <fwrite@plt>
xor    %ebp,%ebp
jmp    11cf <main+0x7f>
add    $0x1,%ebp
cmp    $0x1f4,%ebp
je     13fc <main+0x2ac>
xor    %r15d,%r15d
xor    %ebx,%ebx
jmp    1239 <main+0xe9>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0xfa,%edx
mov    $0xfa,%ecx
mov    $0xfa,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     13df <main+0x28f>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
xor    %r12d,%r12d
xor    %r13d,%r13d
movzbl %al,%edi
mov    %r14,%rsi
call   1040 <fputc@plt>
movzbl %r12b,%edi
mov    %r14,%rsi
call   1040 <fputc@plt>
movzbl %r13b,%edi
mov    %r14,%rsi
call   1040 <fputc@plt>
add    $0x1,%ebx
add    %ebp,%r15d
cmp    $0x1f4,%ebx
je     11c0 <main+0x70>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x13f,%edx
mov    $0xc4,%ecx
mov    $0x41,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     1270 <main+0x120>
cmp    $0xdb,%ebp
ja     1270 <main+0x120>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x16a,%edx
jmp    12c9 <main+0x179>
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x13f,%edx
mov    $0xc4,%ecx
mov    $0x4c,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     129a <main+0x14a>
cmp    $0xe7,%ebp
jb     1200 <main+0xb0>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x6d,%edx
mov    $0xc4,%ecx
mov    $0x41,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     12ea <main+0x19a>
cmp    $0xdb,%ebp
ja     12ea <main+0x19a>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x89,%edx
mov    $0x9b,%ecx
mov    $0x1a,%r8d
call   1050 <point_in_circle@plt>
cmp    $0x1,%rax
sbb    %eax,%eax
mov    %eax,%r12d
mov    %eax,%r13d
jmp    1208 <main+0xb8>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x6d,%edx
mov    $0xc4,%ecx
mov    $0x4c,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     1314 <main+0x1c4>
cmp    $0xe7,%ebp
jb     1200 <main+0xb0>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0xdc,%edx
mov    $0x129,%ecx
mov    $0x80,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     1386 <main+0x236>
cmp    $0x122,%ebp
jb     1386 <main+0x236>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x114,%edx
mov    $0x1c0,%ecx
mov    $0x52,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
mov    $0xfb,%eax
mov    $0x87,%ecx
cmove  %ecx,%eax
mov    $0xc0,%r12d
mov    $0x19,%ecx
cmove  %ecx,%r12d
mov    $0xdf,%r13d
mov    $0x45,%ecx
cmove  %ecx,%r13d
jmp    1208 <main+0xb8>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0xdc,%edx
mov    $0x129,%ecx
mov    $0x8b,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     13b0 <main+0x260>
cmp    $0x116,%ebp
ja     1200 <main+0xb0>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0xfa,%edx
mov    $0xfa,%ecx
mov    $0xe5,%r8d
call   1050 <point_in_circle@plt>
test   %rax,%rax
je     11d6 <main+0x86>
mov    $0x58,%r13b
mov    $0xde,%r12b
mov    $0xfe,%al
jmp    1208 <main+0xb8>
mov    %r15d,%r12d
shr    %r12d
mov    $0xea0ea0eb,%eax
imul   %rax,%r12
shr    $0x25,%r12
mov    $0xc8,%r13b
xor    %eax,%eax
jmp    1208 <main+0xb8>
mov    %r14,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"image-file-1.pnm\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [4 x i8] c"P6\0A\00"
@.str.3 = [9 x i8] c"500 500\0A\00"
@.str.4 = [5 x i8] c"255\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %1
%8 = call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %8, i32** %2
%9 = load i32*, i32** %2
%10 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%11 = load i32*, i32** %2
%12 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32* %11)
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32* %13)
store i32 0, i32* %4
br label %15
15: ; preds = %150, %0
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 500
br i1 %17, label %18, label %153
18: ; preds = %15
store i32 0, i32* %3
br label %19
19: ; preds = %146, %18
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 500
br i1 %21, label %22, label %149
22: ; preds = %19
%23 = load i32, i32* %3
%24 = load i32, i32* %4
%25 = call i64 @point_in_circle(i32 %23, i32 %24, i32 319, i32 196, i32 65)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %39
27: ; preds = %22
%28 = load i32, i32* %4
%29 = icmp slt i32 %28, 220
br i1 %29, label %30, label %39
30: ; preds = %27
%31 = load i32, i32* %3
%32 = load i32, i32* %4
%33 = call i64 @point_in_circle(i32 %31, i32 %32, i32 362, i32 155, i32 26)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %30
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %37
36: ; preds = %30
store i8 -1, i8* %5
store i8 -1, i8* %6
store i8 -1, i8* %7
br label %37
37: ; preds = %36, %35
%38 = phi i32 [ 0, %35 ], [ 255, %36 ]
br label %135
39: ; preds = %27, %22
%40 = load i32, i32* %3
%41 = load i32, i32* %4
%42 = call i64 @point_in_circle(i32 %40, i32 %41, i32 319, i32 196, i32 76)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %39
%45 = load i32, i32* %4
%46 = icmp slt i32 %45, 231
br i1 %46, label %47, label %48
47: ; preds = %44
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %133
48: ; preds = %44, %39
%49 = load i32, i32* %3
%50 = load i32, i32* %4
%51 = call i64 @point_in_circle(i32 %49, i32 %50, i32 109, i32 196, i32 65)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %65
53: ; preds = %48
%54 = load i32, i32* %4
%55 = icmp slt i32 %54, 220
br i1 %55, label %56, label %65
56: ; preds = %53
%57 = load i32, i32* %3
%58 = load i32, i32* %4
%59 = call i64 @point_in_circle(i32 %57, i32 %58, i32 137, i32 155, i32 26)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %56
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %63
62: ; preds = %56
store i8 -1, i8* %5
store i8 -1, i8* %6
store i8 -1, i8* %7
br label %63
63: ; preds = %62, %61
%64 = phi i32 [ 0, %61 ], [ 255, %62 ]
br label %131
65: ; preds = %53, %48
%66 = load i32, i32* %3
%67 = load i32, i32* %4
%68 = call i64 @point_in_circle(i32 %66, i32 %67, i32 109, i32 196, i32 76)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i32, i32* %4
%72 = icmp slt i32 %71, 231
br i1 %72, label %73, label %74
73: ; preds = %70
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %129
74: ; preds = %70, %65
%75 = load i32, i32* %3
%76 = load i32, i32* %4
%77 = call i64 @point_in_circle(i32 %75, i32 %76, i32 220, i32 297, i32 128)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %91
79: ; preds = %74
%80 = load i32, i32* %4
%81 = icmp sgt i32 %80, 289
br i1 %81, label %82, label %91
82: ; preds = %79
%83 = load i32, i32* %3
%84 = load i32, i32* %4
%85 = call i64 @point_in_circle(i32 %83, i32 %84, i32 276, i32 448, i32 82)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %82
store i8 -5, i8* %5
store i8 -64, i8* %6
store i8 -33, i8* %7
br label %89
88: ; preds = %82
store i8 -121, i8* %5
store i8 25, i8* %6
store i8 69, i8* %7
br label %89
89: ; preds = %88, %87
%90 = phi i32 [ 666, %87 ], [ 229, %88 ]
br label %127
91: ; preds = %79, %74
%92 = load i32, i32* %3
%93 = load i32, i32* %4
%94 = call i64 @point_in_circle(i32 %92, i32 %93, i32 220, i32 297, i32 139)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %91
%97 = load i32, i32* %4
%98 = icmp sgt i32 %97, 278
br i1 %98, label %99, label %100
99: ; preds = %96
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %125
100: ; preds = %96, %91
%101 = load i32, i32* %3
%102 = load i32, i32* %4
%103 = call i64 @point_in_circle(i32 %101, i32 %102, i32 250, i32 250, i32 229)
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %100
store i8 -2, i8* %5
store i8 -34, i8* %6
store i8 88, i8* %7
br label %123
106: ; preds = %100
%107 = load i32, i32* %3
%108 = load i32, i32* %4
%109 = call i64 @point_in_circle(i32 %107, i32 %108, i32 250, i32 250, i32 250)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %106
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %121
112: ; preds = %106
store i8 0, i8* %5
%113 = load i32, i32* %3
%114 = load i32, i32* %4
%115 = mul nsw i32 %113, %114
%116 = sdiv i32 %115, 70
%117 = trunc i32 %116 to i8
store i8 %117, i8* %6
%118 = zext i8 %117 to i32
%119 = add nsw i32 0, %118
store i8 -56, i8* %7
%120 = add nsw i32 %119, 200
br label %121
121: ; preds = %112, %111
%122 = phi i32 [ 0, %111 ], [ %120, %112 ]
br label %123
123: ; preds = %121, %105
%124 = phi i32 [ 564, %105 ], [ %122, %121 ]
br label %125
125: ; preds = %123, %99
%126 = phi i32 [ 0, %99 ], [ %124, %123 ]
br label %127
127: ; preds = %125, %89
%128 = phi i32 [ %90, %89 ], [ %126, %125 ]
br label %129
129: ; preds = %127, %73
%130 = phi i32 [ 0, %73 ], [ %128, %127 ]
br label %131
131: ; preds = %129, %63
%132 = phi i32 [ %64, %63 ], [ %130, %129 ]
br label %133
133: ; preds = %131, %47
%134 = phi i32 [ 0, %47 ], [ %132, %131 ]
br label %135
135: ; preds = %133, %37
%136 = phi i32 [ %38, %37 ], [ %134, %133 ]
%137 = load i8, i8* %5
%138 = load i32*, i32** %2
%139 = call i32 @fputc(i8 zeroext %137, i32* %138)
%140 = load i8, i8* %6
%141 = load i32*, i32** %2
%142 = call i32 @fputc(i8 zeroext %140, i32* %141)
%143 = load i8, i8* %7
%144 = load i32*, i32** %2
%145 = call i32 @fputc(i8 zeroext %143, i32* %144)
br label %146
146: ; preds = %135
%147 = load i32, i32* %3
%148 = add nsw i32 %147, 1
store i32 %148, i32* %3
br label %19
149: ; preds = %19
br label %150
150: ; preds = %149
%151 = load i32, i32* %4
%152 = add nsw i32 %151, 1
store i32 %152, i32* %4
br label %15
153: ; preds = %15
%154 = load i32*, i32** %2
%155 = call i32 @fclose(i32* %154)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"image-file-1.pnm\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [4 x i8] c"P6\0A\00"
@.str.3 = [9 x i8] c"500 500\0A\00"
@.str.4 = [5 x i8] c"255\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 3, i64 1, i32* %1)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 8, i64 1, i32* %1)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %5
5: ; preds = %0, %69
%6 = phi i32 [ 0, %0 ], [ %70, %69 ]
%7 = icmp ult i32 %6, 220
%8 = icmp ult i32 %6, 231
%9 = icmp ugt i32 %6, 289
%10 = icmp ugt i32 %6, 278
br label %11
11: ; preds = %5, %60
%12 = phi i32 [ 0, %5 ], [ %67, %60 ]
%13 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 319, i32 196, i32 65)
%14 = icmp ne i64 %13, 0
%15 = select i1 %14, i1 %7, i1 false
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 362, i32 155, i32 26)
%18 = icmp eq i64 %17, 0
%19 = sext i1 %18 to i8
br label %60
20: ; preds = %11
%21 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 319, i32 196, i32 76)
%22 = icmp ne i64 %21, 0
%23 = select i1 %22, i1 %8, i1 false
br i1 %23, label %60, label %24
24: ; preds = %20
%25 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 109, i32 196, i32 65)
%26 = icmp ne i64 %25, 0
%27 = select i1 %26, i1 %7, i1 false
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 137, i32 155, i32 26)
%30 = icmp eq i64 %29, 0
%31 = sext i1 %30 to i8
br label %60
32: ; preds = %24
%33 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 109, i32 196, i32 76)
%34 = icmp ne i64 %33, 0
%35 = select i1 %34, i1 %8, i1 false
br i1 %35, label %60, label %36
36: ; preds = %32
%37 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 220, i32 297, i32 128)
%38 = icmp ne i64 %37, 0
%39 = select i1 %38, i1 %9, i1 false
br i1 %39, label %40, label %46
40: ; preds = %36
%41 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 276, i32 448, i32 82)
%42 = icmp eq i64 %41, 0
%43 = select i1 %42, i8 -121, i8 -5
%44 = select i1 %42, i8 25, i8 -64
%45 = select i1 %42, i8 69, i8 -33
br label %60
46: ; preds = %36
%47 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 220, i32 297, i32 139)
%48 = icmp ne i64 %47, 0
%49 = select i1 %48, i1 %10, i1 false
br i1 %49, label %60, label %50
50: ; preds = %46
%51 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 250, i32 250, i32 229)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = tail call i64 @point_in_circle(i32 %12, i32 %6, i32 250, i32 250, i32 250)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = mul nuw nsw i32 %12, %6
%58 = udiv i32 %57, 70
%59 = trunc i32 %58 to i8
br label %60
60: ; preds = %53, %50, %46, %40, %32, %28, %20, %16, %56
%61 = phi i8 [ 0, %56 ], [ %19, %16 ], [ 0, %20 ], [ %31, %28 ], [ 0, %32 ], [ %43, %40 ], [ 0, %46 ], [ -2, %50 ], [ 0, %53 ]
%62 = phi i8 [ %59, %56 ], [ %19, %16 ], [ 0, %20 ], [ %31, %28 ], [ 0, %32 ], [ %44, %40 ], [ 0, %46 ], [ -34, %50 ], [ 0, %53 ]
%63 = phi i8 [ -56, %56 ], [ %19, %16 ], [ 0, %20 ], [ %31, %28 ], [ 0, %32 ], [ %45, %40 ], [ 0, %46 ], [ 88, %50 ], [ 0, %53 ]
%64 = tail call i32 @fputc(i8 zeroext %61, i32* %1)
%65 = tail call i32 @fputc(i8 zeroext %62, i32* %1)
%66 = tail call i32 @fputc(i8 zeroext %63, i32* %1)
%67 = add nuw nsw i32 %12, 1
%68 = icmp eq i32 %67, 500
br i1 %68, label %69, label %11
69: ; preds = %60
%70 = add nuw nsw i32 %6, 1
%71 = icmp eq i32 %70, 500
br i1 %71, label %72, label %5
72: ; preds = %69
%73 = tail call i32 @fclose(i32* %1)
ret i32 0
}