#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++) {
      if (point_in_circle(x, y, 319, 196, 65) && y < 220) {
        if (point_in_circle(x, y, 362, 155, 26)) {
          r = 0;
          g = 0;
          b = 0;
        } else {
          r = 0xFF;
          g = 0xFF;
          b = 0xFF;
        }
      } else if (point_in_circle(x, y, 319, 196, 76) && y < 231) {
        r = 0;
        g = 0;
        b = 0;
      } else if (point_in_circle(x, y, 109, 196, 65) && y < 220) {
        if (point_in_circle(x, y, 137, 155, 26)) {
          r = 0;
          g = 0;
          b = 0;
        } else {
          r = 0xFF;
          g = 0xFF;
          b = 0xFF;
        }
      } else if (point_in_circle(x, y, 109, 196, 76) && y < 231) {
        r = 0;
        g = 0;
        b = 0;
      } else if (point_in_circle(x, y, 220, 297, 128) && y > 289) {
        if (point_in_circle(x, y, 276, 448, 82)) {
          r = 251;
          g = 192;
          b = 223;
        } else {
          r = 135;
          g = 25;
          b = 69;
        }
      } else if (point_in_circle(x, y, 220, 297, 139) && y > 289 - 11) {
        r = 0;
        g = 0;
        b = 0;
      } else if (point_in_circle(x, y, 250, 250, 229)) {
        r = 254;
        g = 222;
        b = 88;
      } else if (point_in_circle(x, y, 250, 250, 250)) {
        r = 0;
        g = 0;
        b = 0;
      } else {
        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    $0x20,%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    14f2 <main+0x3a2>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f4,-0x14(%rbp)
jge    14df <main+0x38f>
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     1247 <main+0xf7>
cmpl   $0xdc,-0x18(%rbp)
jge    1247 <main+0xf7>
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     1236 <main+0xe6>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    1242 <main+0xf2>
movb   $0xff,-0x19(%rbp)
movb   $0xff,-0x1a(%rbp)
movb   $0xff,-0x1b(%rbp)
jmp    14a4 <main+0x354>
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     128a <main+0x13a>
cmpl   $0xe7,-0x18(%rbp)
jge    128a <main+0x13a>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    149f <main+0x34f>
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     1303 <main+0x1b3>
cmpl   $0xdc,-0x18(%rbp)
jge    1303 <main+0x1b3>
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     12f2 <main+0x1a2>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    12fe <main+0x1ae>
movb   $0xff,-0x19(%rbp)
movb   $0xff,-0x1a(%rbp)
movb   $0xff,-0x1b(%rbp)
jmp    149a <main+0x34a>
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     1346 <main+0x1f6>
cmpl   $0xe7,-0x18(%rbp)
jge    1346 <main+0x1f6>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    1495 <main+0x345>
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     13bf <main+0x26f>
cmpl   $0x121,-0x18(%rbp)
jle    13bf <main+0x26f>
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     13ae <main+0x25e>
movb   $0xfb,-0x19(%rbp)
movb   $0xc0,-0x1a(%rbp)
movb   $0xdf,-0x1b(%rbp)
jmp    13ba <main+0x26a>
movb   $0x87,-0x19(%rbp)
movb   $0x19,-0x1a(%rbp)
movb   $0x45,-0x1b(%rbp)
jmp    1490 <main+0x340>
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     1402 <main+0x2b2>
cmpl   $0x116,-0x18(%rbp)
jle    1402 <main+0x2b2>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    148b <main+0x33b>
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     1435 <main+0x2e5>
movb   $0xfe,-0x19(%rbp)
movb   $0xde,-0x1a(%rbp)
movb   $0x58,-0x1b(%rbp)
jmp    1486 <main+0x336>
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     1467 <main+0x317>
movb   $0x0,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1b(%rbp)
jmp    1481 <main+0x331>
movb   $0x0,-0x19(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    $0x46,%ecx
cltd
idiv   %ecx
mov    %al,-0x1a(%rbp)
movb   $0xc8,-0x1b(%rbp)
jmp    1486 <main+0x336>
jmp    148b <main+0x33b>
jmp    1490 <main+0x340>
jmp    1495 <main+0x345>
jmp    149a <main+0x34a>
jmp    149f <main+0x34f>
jmp    14a4 <main+0x354>
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    14e4 <main+0x394>
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    $0x20,%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 = %136, %0
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 500
br i1 %17, label %18, label %139
18: ; preds = %15
store i32 0, i32* %3
br label %19
19: ; preds = %132, %18
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 500
br i1 %21, label %22, label %135
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 %38
27: ; preds = %22
%28 = load i32, i32* %4
%29 = icmp slt i32 %28, 220
br i1 %29, label %30, label %38
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
br label %122
38: ; preds = %27, %22
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = call i64 @point_in_circle(i32 %39, i32 %40, i32 319, i32 196, i32 76)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %38
%44 = load i32, i32* %4
%45 = icmp slt i32 %44, 231
br i1 %45, label %46, label %47
46: ; preds = %43
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %121
47: ; preds = %43, %38
%48 = load i32, i32* %3
%49 = load i32, i32* %4
%50 = call i64 @point_in_circle(i32 %48, i32 %49, i32 109, i32 196, i32 65)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %63
52: ; preds = %47
%53 = load i32, i32* %4
%54 = icmp slt i32 %53, 220
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, i32* %3
%57 = load i32, i32* %4
%58 = call i64 @point_in_circle(i32 %56, i32 %57, i32 137, i32 155, i32 26)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %55
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %62
61: ; preds = %55
store i8 -1, i8* %5
store i8 -1, i8* %6
store i8 -1, i8* %7
br label %62
62: ; preds = %61, %60
br label %120
63: ; preds = %52, %47
%64 = load i32, i32* %3
%65 = load i32, i32* %4
%66 = call i64 @point_in_circle(i32 %64, i32 %65, i32 109, i32 196, i32 76)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %63
%69 = load i32, i32* %4
%70 = icmp slt i32 %69, 231
br i1 %70, label %71, label %72
71: ; preds = %68
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %119
72: ; preds = %68, %63
%73 = load i32, i32* %3
%74 = load i32, i32* %4
%75 = call i64 @point_in_circle(i32 %73, i32 %74, i32 220, i32 297, i32 128)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %88
77: ; preds = %72
%78 = load i32, i32* %4
%79 = icmp sgt i32 %78, 289
br i1 %79, label %80, label %88
80: ; preds = %77
%81 = load i32, i32* %3
%82 = load i32, i32* %4
%83 = call i64 @point_in_circle(i32 %81, i32 %82, i32 276, i32 448, i32 82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %80
store i8 -5, i8* %5
store i8 -64, i8* %6
store i8 -33, i8* %7
br label %87
86: ; preds = %80
store i8 -121, i8* %5
store i8 25, i8* %6
store i8 69, i8* %7
br label %87
87: ; preds = %86, %85
br label %118
88: ; preds = %77, %72
%89 = load i32, i32* %3
%90 = load i32, i32* %4
%91 = call i64 @point_in_circle(i32 %89, i32 %90, i32 220, i32 297, i32 139)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %97
93: ; preds = %88
%94 = load i32, i32* %4
%95 = icmp sgt i32 %94, 278
br i1 %95, label %96, label %97
96: ; preds = %93
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %117
97: ; preds = %93, %88
%98 = load i32, i32* %3
%99 = load i32, i32* %4
%100 = call i64 @point_in_circle(i32 %98, i32 %99, i32 250, i32 250, i32 229)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %97
store i8 -2, i8* %5
store i8 -34, i8* %6
store i8 88, i8* %7
br label %116
103: ; preds = %97
%104 = load i32, i32* %3
%105 = load i32, i32* %4
%106 = call i64 @point_in_circle(i32 %104, i32 %105, i32 250, i32 250, i32 250)
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %103
store i8 0, i8* %5
store i8 0, i8* %6
store i8 0, i8* %7
br label %115
109: ; preds = %103
store i8 0, i8* %5
%110 = load i32, i32* %3
%111 = load i32, i32* %4
%112 = mul nsw i32 %110, %111
%113 = sdiv i32 %112, 70
%114 = trunc i32 %113 to i8
store i8 %114, i8* %6
store i8 -56, i8* %7
br label %115
115: ; preds = %109, %108
br label %116
116: ; preds = %115, %102
br label %117
117: ; preds = %116, %96
br label %118
118: ; preds = %117, %87
br label %119
119: ; preds = %118, %71
br label %120
120: ; preds = %119, %62
br label %121
121: ; preds = %120, %46
br label %122
122: ; preds = %121, %37
%123 = load i8, i8* %5
%124 = load i32*, i32** %2
%125 = call i32 @fputc(i8 zeroext %123, i32* %124)
%126 = load i8, i8* %6
%127 = load i32*, i32** %2
%128 = call i32 @fputc(i8 zeroext %126, i32* %127)
%129 = load i8, i8* %7
%130 = load i32*, i32** %2
%131 = call i32 @fputc(i8 zeroext %129, i32* %130)
br label %132
132: ; preds = %122
%133 = load i32, i32* %3
%134 = add nsw i32 %133, 1
store i32 %134, i32* %3
br label %19
135: ; preds = %19
br label %136
136: ; preds = %135
%137 = load i32, i32* %4
%138 = add nsw i32 %137, 1
store i32 %138, i32* %4
br label %15
139: ; preds = %15
%140 = load i32*, i32** %2
%141 = call i32 @fclose(i32* %140)
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
}