#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*/ draw_pixel(int, int, char, char, char, int);
void draw_circle_circum(int cx, int cy, int x, int y, char r, char g, char b,
                        int screen) {
  int tx, ty;
  if (x == 0) {
    draw_pixel(cx, cy + y, r, g, b, screen);
    draw_pixel(cx, cy - y, r, g, b, screen);
    draw_pixel(cx + y, cy, r, g, b, screen);
    draw_pixel(cx - y, cy, r, g, b, screen);
  }
  if (x == y) {
    draw_pixel(cx + x, cy + y, r, g, b, screen);
    draw_pixel(cx - x, cy + y, r, g, b, screen);
    draw_pixel(cx + x, cy - y, r, g, b, screen);
    draw_pixel(cx - x, cy - y, r, g, b, screen);
  }
  if (x < y) {
    draw_pixel(cx + x, cy + y, r, g, b, screen);
    draw_pixel(cx - x, cy + y, r, g, b, screen);
    draw_pixel(cx + x, cy - y, r, g, b, screen);
    draw_pixel(cx - x, cy - y, r, g, b, screen);
    draw_pixel(cx + y, cy + x, r, g, b, screen);
    draw_pixel(cx - y, cy + x, r, g, b, screen);
    draw_pixel(cx + y, cy - x, r, g, b, screen);
    draw_pixel(cx - y, cy - x, r, g, b, screen);
  }
}


x86 assembly (clang, -O0):
<draw_circle_circum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %r8d,-0x2c(%rbp)
mov    %ecx,%eax
mov    -0x2c(%rbp),%ecx
mov    %eax,-0x28(%rbp)
mov    %edx,%eax
mov    -0x28(%rbp),%edx
mov    %eax,-0x24(%rbp)
mov    %esi,%eax
mov    -0x24(%rbp),%esi
mov    %eax,-0x20(%rbp)
mov    %edi,%r8d
mov    -0x20(%rbp),%edi
mov    %r9b,%al
mov    0x18(%rbp),%r9d
mov    0x10(%rbp),%r9b
mov    %r8d,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %cl,-0x11(%rbp)
mov    %al,-0x12(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    11f6 <draw_circle_circum+0xe6>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
add    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    12a2 <draw_circle_circum+0x192>
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13ee <draw_circle_circum+0x2de>
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
add    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0xc(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0xc(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
add    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0xc(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
sub    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0xc(%rbp),%esi
mov    -0x11(%rbp),%dl
mov    -0x12(%rbp),%cl
mov    0x10(%rbp),%al
mov    0x18(%rbp),%r9d
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
call   1030 <draw_pixel@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_circle_circum>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,%r12d
mov    %edi,%ebx
mov    0x88(%rsp),%r14d
mov    0x80(%rsp),%al
test   %edx,%edx
mov    %rdx,0x28(%rsp)
jne    11ec <draw_circle_circum+0xdc>
lea    (%rcx,%r12,1),%esi
movsbl %r8b,%r11d
mov    %r11d,0xc(%rsp)
movsbl %r9b,%r15d
movsbl %al,%r10d
mov    %r10d,0x20(%rsp)
mov    %ebx,%edi
mov    %r11d,%edx
mov    %rcx,%r13
mov    %r15d,%ecx
mov    %r15d,0x24(%rsp)
mov    %r8d,0x10(%rsp)
mov    %r10d,%r8d
mov    %r9d,0x18(%rsp)
mov    %r14d,%r9d
mov    %al,0x14(%rsp)
call   1030 <draw_pixel@plt>
mov    %r12d,%esi
sub    %r13d,%esi
mov    %ebx,%edi
mov    0xc(%rsp),%ebp
mov    %ebp,%edx
mov    %r15d,%ecx
mov    0x20(%rsp),%r15d
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
lea    (%rbx,%r13,1),%edi
mov    %r12d,%esi
mov    %ebp,%edx
mov    0x24(%rsp),%ebp
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    %ebx,%edi
sub    %r13d,%edi
mov    %r12d,%esi
mov    0xc(%rsp),%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    0x14(%rsp),%al
mov    0x10(%rsp),%r8d
mov    0x18(%rsp),%r9d
mov    %r13,%rcx
mov    0x28(%rsp),%rdx
cmp    %ecx,%edx
mov    %rcx,0x38(%rsp)
mov    %rbx,0x30(%rsp)
jne    12ca <draw_circle_circum+0x1ba>
lea    (%rdx,%rbx,1),%edi
mov    %edi,0x24(%rsp)
lea    (%rdx,%r12,1),%esi
mov    %esi,0xc(%rsp)
movsbl %r8b,%ebx
movsbl %r9b,%r13d
movsbl %al,%ebp
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %r13d,0x44(%rsp)
mov    %r8d,0x10(%rsp)
mov    %ebp,0x20(%rsp)
mov    %ebp,%r8d
mov    %r9d,0x18(%rsp)
mov    %r14d,%r9d
mov    %al,0x14(%rsp)
call   1030 <draw_pixel@plt>
mov    0x30(%rsp),%rax
mov    %eax,%r15d
sub    0x28(%rsp),%r15d
mov    %r15d,%edi
mov    0xc(%rsp),%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    %r14d,0xc(%rsp)
mov    %r12,%rbp
sub    0x28(%rsp),%r12d
mov    0x24(%rsp),%edi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    0x20(%rsp),%r13d
mov    %r13d,%r8d
mov    0xc(%rsp),%r9d
call   1030 <draw_pixel@plt>
mov    %r15d,%edi
mov    %r12d,%esi
mov    %rbp,%r12
mov    0xc(%rsp),%r14d
mov    %ebx,%edx
mov    0x30(%rsp),%rbx
mov    0x44(%rsp),%ecx
mov    %r13d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    0x14(%rsp),%al
mov    0x10(%rsp),%r8d
mov    0x18(%rsp),%r9d
mov    0x38(%rsp),%rcx
mov    0x28(%rsp),%rdx
cmp    %ecx,%edx
jge    13ea <draw_circle_circum+0x2da>
lea    (%rdx,%rbx,1),%edi
mov    %edi,0x10(%rsp)
lea    (%rcx,%r12,1),%esi
mov    %esi,0x14(%rsp)
movsbl %r8b,%r13d
movsbl %r9b,%ebp
movsbl %al,%r15d
mov    %rdx,%rbx
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    %r12,0x18(%rsp)
mov    0x30(%rsp),%rax
mov    %eax,%r12d
sub    %ebx,%r12d
mov    %r12d,%edi
mov    0x14(%rsp),%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    0x18(%rsp),%rax
mov    %eax,%ebx
sub    0x38(%rsp),%ebx
mov    0x10(%rsp),%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    0x30(%rsp),%r12
mov    0x38(%rsp),%rax
lea    (%rax,%r12,1),%edi
mov    %edi,0x10(%rsp)
mov    0x18(%rsp),%rax
mov    0x28(%rsp),%rcx
lea    (%rcx,%rax,1),%ebx
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
sub    0x38(%rsp),%r12d
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    0x18(%rsp),%rbx
sub    0x28(%rsp),%ebx
mov    0x10(%rsp),%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <draw_pixel@plt>
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <draw_pixel@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @draw_circle_circum(i32 %0, i32 %1, i32 %2, i32 %3, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i8 %4, i8* %13
store i8 %5, i8* %14
store i8 %6, i8* %15
store i32 %7, i32* %16
%19 = load i32, i32* %11
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %58
21: ; preds = %8
%22 = load i32, i32* %9
%23 = load i32, i32* %10
%24 = load i32, i32* %12
%25 = add nsw i32 %23, %24
%26 = load i8, i8* %13
%27 = load i8, i8* %14
%28 = load i8, i8* %15
%29 = load i32, i32* %16
%30 = call i32 @draw_pixel(i32 %22, i32 %25, i8 signext %26, i8 signext %27, i8 signext %28, i32 %29)
%31 = load i32, i32* %9
%32 = load i32, i32* %10
%33 = load i32, i32* %12
%34 = sub nsw i32 %32, %33
%35 = load i8, i8* %13
%36 = load i8, i8* %14
%37 = load i8, i8* %15
%38 = load i32, i32* %16
%39 = call i32 @draw_pixel(i32 %31, i32 %34, i8 signext %35, i8 signext %36, i8 signext %37, i32 %38)
%40 = load i32, i32* %9
%41 = load i32, i32* %12
%42 = add nsw i32 %40, %41
%43 = load i32, i32* %10
%44 = load i8, i8* %13
%45 = load i8, i8* %14
%46 = load i8, i8* %15
%47 = load i32, i32* %16
%48 = call i32 @draw_pixel(i32 %42, i32 %43, i8 signext %44, i8 signext %45, i8 signext %46, i32 %47)
%49 = load i32, i32* %9
%50 = load i32, i32* %12
%51 = sub nsw i32 %49, %50
%52 = load i32, i32* %10
%53 = load i8, i8* %13
%54 = load i8, i8* %14
%55 = load i8, i8* %15
%56 = load i32, i32* %16
%57 = call i32 @draw_pixel(i32 %51, i32 %52, i8 signext %53, i8 signext %54, i8 signext %55, i32 %56)
br label %58
58: ; preds = %21, %8
%59 = load i32, i32* %11
%60 = load i32, i32* %12
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %107
62: ; preds = %58
%63 = load i32, i32* %9
%64 = load i32, i32* %11
%65 = add nsw i32 %63, %64
%66 = load i32, i32* %10
%67 = load i32, i32* %12
%68 = add nsw i32 %66, %67
%69 = load i8, i8* %13
%70 = load i8, i8* %14
%71 = load i8, i8* %15
%72 = load i32, i32* %16
%73 = call i32 @draw_pixel(i32 %65, i32 %68, i8 signext %69, i8 signext %70, i8 signext %71, i32 %72)
%74 = load i32, i32* %9
%75 = load i32, i32* %11
%76 = sub nsw i32 %74, %75
%77 = load i32, i32* %10
%78 = load i32, i32* %12
%79 = add nsw i32 %77, %78
%80 = load i8, i8* %13
%81 = load i8, i8* %14
%82 = load i8, i8* %15
%83 = load i32, i32* %16
%84 = call i32 @draw_pixel(i32 %76, i32 %79, i8 signext %80, i8 signext %81, i8 signext %82, i32 %83)
%85 = load i32, i32* %9
%86 = load i32, i32* %11
%87 = add nsw i32 %85, %86
%88 = load i32, i32* %10
%89 = load i32, i32* %12
%90 = sub nsw i32 %88, %89
%91 = load i8, i8* %13
%92 = load i8, i8* %14
%93 = load i8, i8* %15
%94 = load i32, i32* %16
%95 = call i32 @draw_pixel(i32 %87, i32 %90, i8 signext %91, i8 signext %92, i8 signext %93, i32 %94)
%96 = load i32, i32* %9
%97 = load i32, i32* %11
%98 = sub nsw i32 %96, %97
%99 = load i32, i32* %10
%100 = load i32, i32* %12
%101 = sub nsw i32 %99, %100
%102 = load i8, i8* %13
%103 = load i8, i8* %14
%104 = load i8, i8* %15
%105 = load i32, i32* %16
%106 = call i32 @draw_pixel(i32 %98, i32 %101, i8 signext %102, i8 signext %103, i8 signext %104, i32 %105)
br label %107
107: ; preds = %62, %58
%108 = load i32, i32* %11
%109 = load i32, i32* %12
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %200
111: ; preds = %107
%112 = load i32, i32* %9
%113 = load i32, i32* %11
%114 = add nsw i32 %112, %113
%115 = load i32, i32* %10
%116 = load i32, i32* %12
%117 = add nsw i32 %115, %116
%118 = load i8, i8* %13
%119 = load i8, i8* %14
%120 = load i8, i8* %15
%121 = load i32, i32* %16
%122 = call i32 @draw_pixel(i32 %114, i32 %117, i8 signext %118, i8 signext %119, i8 signext %120, i32 %121)
%123 = load i32, i32* %9
%124 = load i32, i32* %11
%125 = sub nsw i32 %123, %124
%126 = load i32, i32* %10
%127 = load i32, i32* %12
%128 = add nsw i32 %126, %127
%129 = load i8, i8* %13
%130 = load i8, i8* %14
%131 = load i8, i8* %15
%132 = load i32, i32* %16
%133 = call i32 @draw_pixel(i32 %125, i32 %128, i8 signext %129, i8 signext %130, i8 signext %131, i32 %132)
%134 = load i32, i32* %9
%135 = load i32, i32* %11
%136 = add nsw i32 %134, %135
%137 = load i32, i32* %10
%138 = load i32, i32* %12
%139 = sub nsw i32 %137, %138
%140 = load i8, i8* %13
%141 = load i8, i8* %14
%142 = load i8, i8* %15
%143 = load i32, i32* %16
%144 = call i32 @draw_pixel(i32 %136, i32 %139, i8 signext %140, i8 signext %141, i8 signext %142, i32 %143)
%145 = load i32, i32* %9
%146 = load i32, i32* %11
%147 = sub nsw i32 %145, %146
%148 = load i32, i32* %10
%149 = load i32, i32* %12
%150 = sub nsw i32 %148, %149
%151 = load i8, i8* %13
%152 = load i8, i8* %14
%153 = load i8, i8* %15
%154 = load i32, i32* %16
%155 = call i32 @draw_pixel(i32 %147, i32 %150, i8 signext %151, i8 signext %152, i8 signext %153, i32 %154)
%156 = load i32, i32* %9
%157 = load i32, i32* %12
%158 = add nsw i32 %156, %157
%159 = load i32, i32* %10
%160 = load i32, i32* %11
%161 = add nsw i32 %159, %160
%162 = load i8, i8* %13
%163 = load i8, i8* %14
%164 = load i8, i8* %15
%165 = load i32, i32* %16
%166 = call i32 @draw_pixel(i32 %158, i32 %161, i8 signext %162, i8 signext %163, i8 signext %164, i32 %165)
%167 = load i32, i32* %9
%168 = load i32, i32* %12
%169 = sub nsw i32 %167, %168
%170 = load i32, i32* %10
%171 = load i32, i32* %11
%172 = add nsw i32 %170, %171
%173 = load i8, i8* %13
%174 = load i8, i8* %14
%175 = load i8, i8* %15
%176 = load i32, i32* %16
%177 = call i32 @draw_pixel(i32 %169, i32 %172, i8 signext %173, i8 signext %174, i8 signext %175, i32 %176)
%178 = load i32, i32* %9
%179 = load i32, i32* %12
%180 = add nsw i32 %178, %179
%181 = load i32, i32* %10
%182 = load i32, i32* %11
%183 = sub nsw i32 %181, %182
%184 = load i8, i8* %13
%185 = load i8, i8* %14
%186 = load i8, i8* %15
%187 = load i32, i32* %16
%188 = call i32 @draw_pixel(i32 %180, i32 %183, i8 signext %184, i8 signext %185, i8 signext %186, i32 %187)
%189 = load i32, i32* %9
%190 = load i32, i32* %12
%191 = sub nsw i32 %189, %190
%192 = load i32, i32* %10
%193 = load i32, i32* %11
%194 = sub nsw i32 %192, %193
%195 = load i8, i8* %13
%196 = load i8, i8* %14
%197 = load i8, i8* %15
%198 = load i32, i32* %16
%199 = call i32 @draw_pixel(i32 %191, i32 %194, i8 signext %195, i8 signext %196, i8 signext %197, i32 %198)
br label %200
200: ; preds = %111, %107
ret void
}

LLVM IR (-O2):
define void @draw_circle_circum(i32 %0, i32 %1, i32 %2, i32 %3, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7) {
%9 = icmp eq i32 %2, 0
br i1 %9, label %10, label %19
10: ; preds = %8
%11 = add nsw i32 %3, %1
%12 = tail call i32 @draw_pixel(i32 %0, i32 %11, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%13 = sub nsw i32 %1, %3
%14 = tail call i32 @draw_pixel(i32 %0, i32 %13, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%15 = add nsw i32 %3, %0
%16 = tail call i32 @draw_pixel(i32 %15, i32 %1, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%17 = sub nsw i32 %0, %3
%18 = tail call i32 @draw_pixel(i32 %17, i32 %1, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
br label %19
19: ; preds = %10, %8
%20 = icmp eq i32 %2, %3
br i1 %20, label %21, label %30
21: ; preds = %19
%22 = add nsw i32 %2, %0
%23 = add nsw i32 %2, %1
%24 = tail call i32 @draw_pixel(i32 %22, i32 %23, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%25 = sub nsw i32 %0, %2
%26 = tail call i32 @draw_pixel(i32 %25, i32 %23, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%27 = sub nsw i32 %1, %2
%28 = tail call i32 @draw_pixel(i32 %22, i32 %27, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%29 = tail call i32 @draw_pixel(i32 %25, i32 %27, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
br label %30
30: ; preds = %21, %19
%31 = icmp slt i32 %2, %3
br i1 %31, label %32, label %49
32: ; preds = %30
%33 = add nsw i32 %2, %0
%34 = add nsw i32 %3, %1
%35 = tail call i32 @draw_pixel(i32 %33, i32 %34, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%36 = sub nsw i32 %0, %2
%37 = tail call i32 @draw_pixel(i32 %36, i32 %34, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%38 = sub nsw i32 %1, %3
%39 = tail call i32 @draw_pixel(i32 %33, i32 %38, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%40 = tail call i32 @draw_pixel(i32 %36, i32 %38, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%41 = add nsw i32 %3, %0
%42 = add nsw i32 %2, %1
%43 = tail call i32 @draw_pixel(i32 %41, i32 %42, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%44 = sub nsw i32 %0, %3
%45 = tail call i32 @draw_pixel(i32 %44, i32 %42, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%46 = sub nsw i32 %1, %2
%47 = tail call i32 @draw_pixel(i32 %41, i32 %46, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
%48 = tail call i32 @draw_pixel(i32 %44, i32 %46, i8 signext %4, i8 signext %5, i8 signext %6, i32 %7)
br label %49
49: ; preds = %32, %30
ret void
}