#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*/ drawOval(int, int, int, int);
int main() {
  int i = 1;
  for (i; i < 10; i++) {
    int width = 500 - i * 50;
    int height = 300 - i * 40;
    drawOval(250 - (int)width / 2, 150 - (int)height / 2, width, height);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1189 <main+0x79>
imul   $0x32,-0x8(%rbp),%ecx
mov    $0x1f4,%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
imul   $0x28,-0x8(%rbp),%ecx
mov    $0x12c,%eax
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0xfa,%edi
sub    %eax,%edi
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x96,%esi
sub    %eax,%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1030 <drawOval@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x104,%ebx
mov    $0x1c2,%ebp
nopl   (%rax)
mov    %ebp,%eax
shr    %eax
and    $0x7fff,%eax
mov    $0xfa,%edi
sub    %eax,%edi
movzwl %bx,%eax
shr    $0xf,%eax
add    %ebx,%eax
cwtl
sar    %eax
mov    $0x96,%ecx
sub    %eax,%ecx
movswl %cx,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
call   1030 <drawOval@plt>
add    $0xffffffd8,%ebx
add    $0xffffffce,%ebp
cmp    $0xffffff9c,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%5 = load i32, i32* %2
br label %6
6: ; preds = %25, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %28
9: ; preds = %6
%10 = load i32, i32* %2
%11 = mul nsw i32 %10, 50
%12 = sub nsw i32 500, %11
store i32 %12, i32* %3
%13 = load i32, i32* %2
%14 = mul nsw i32 %13, 40
%15 = sub nsw i32 300, %14
store i32 %15, i32* %4
%16 = load i32, i32* %3
%17 = sdiv i32 %16, 2
%18 = sub nsw i32 250, %17
%19 = load i32, i32* %4
%20 = sdiv i32 %19, 2
%21 = sub nsw i32 150, %20
%22 = load i32, i32* %3
%23 = load i32, i32* %4
%24 = call i32 @drawOval(i32 %18, i32 %21, i32 %22, i32 %23)
br label %25
25: ; preds = %9
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
store i32 %27, i32* %2
br label %6
28: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %15, %1 ]
%3 = mul nsw i32 %2, -50
%4 = add nsw i32 %3, 500
%5 = mul nsw i32 %2, -40
%6 = add nsw i32 %5, 300
%7 = lshr exact i32 %4, 1
%8 = and i32 %7, 32767
%9 = sub nsw i32 250, %8
%10 = trunc i32 %6 to i16
%11 = sdiv i16 %10, -2
%12 = add nsw i16 %11, 150
%13 = sext i16 %12 to i32
%14 = tail call i32 @drawOval(i32 %9, i32 %13, i32 %4, i32 %6)
%15 = add nuw nsw i32 %2, 1
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %1
17: ; preds = %1
ret i32 0
}