#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*/ Display();
int /*<<< orphan*/ drawCircle(int, int, short, int);
int /*<<< orphan*/ usleep(int);
void testdrawcircle() {
  short i = 0;
  for (i = 0; i < 32; i += 2) {
    drawCircle(128 / 2, 32 / 2, i, 1);
    Display();
    usleep(1000);
  }
}


x86 assembly (clang, -O0):
<testdrawcircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movw   $0x0,-0x2(%rbp)
movw   $0x0,-0x2(%rbp)
movswl -0x2(%rbp),%eax
cmp    $0x20,%eax
jge    118a <testdrawcircle+0x5a>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x1,%ecx
movswl -0x2(%rbp),%edx
call   1030 <drawCircle@plt>
mov    $0x0,%al
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
movswl -0x2(%rbp),%eax
add    $0x2,%eax
mov    %ax,-0x2(%rbp)
jmp    1144 <testdrawcircle+0x14>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testdrawcircle>:
push   %rax
mov    $0x40,%edi
mov    $0x10,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x2,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x4,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x6,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x8,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0xa,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0xc,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0xe,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x10,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x12,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x16,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x18,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x1a,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x1c,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
call   1050 <usleep@plt>
mov    $0x40,%edi
mov    $0x10,%esi
mov    $0x1e,%edx
mov    $0x1,%ecx
call   1030 <drawCircle@plt>
xor    %eax,%eax
call   1040 <Display@plt>
mov    $0x3e8,%edi
pop    %rax
jmp    1050 <usleep@plt>

LLVM IR (-O0):
define void @testdrawcircle() {
%1 = alloca i16
store i16 0, i16* %1
store i16 0, i16* %1
br label %2
2: ; preds = %11, %0
%3 = load i16, i16* %1
%4 = sext i16 %3 to i32
%5 = icmp slt i32 %4, 32
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = load i16, i16* %1
%8 = call i32 @drawCircle(i32 64, i32 16, i16 signext %7, i32 1)
%9 = call i32 (...) @Display()
%10 = call i32 @usleep(i32 1000)
br label %11
11: ; preds = %6
%12 = load i16, i16* %1
%13 = sext i16 %12 to i32
%14 = add nsw i32 %13, 2
%15 = trunc i32 %14 to i16
store i16 %15, i16* %1
br label %2
16: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @testdrawcircle() {
%1 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 0, i32 1)
%2 = tail call i32 (...) @Display()
%3 = tail call i32 @usleep(i32 1000)
%4 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 2, i32 1)
%5 = tail call i32 (...) @Display()
%6 = tail call i32 @usleep(i32 1000)
%7 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 4, i32 1)
%8 = tail call i32 (...) @Display()
%9 = tail call i32 @usleep(i32 1000)
%10 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 6, i32 1)
%11 = tail call i32 (...) @Display()
%12 = tail call i32 @usleep(i32 1000)
%13 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 8, i32 1)
%14 = tail call i32 (...) @Display()
%15 = tail call i32 @usleep(i32 1000)
%16 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 10, i32 1)
%17 = tail call i32 (...) @Display()
%18 = tail call i32 @usleep(i32 1000)
%19 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 12, i32 1)
%20 = tail call i32 (...) @Display()
%21 = tail call i32 @usleep(i32 1000)
%22 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 14, i32 1)
%23 = tail call i32 (...) @Display()
%24 = tail call i32 @usleep(i32 1000)
%25 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 16, i32 1)
%26 = tail call i32 (...) @Display()
%27 = tail call i32 @usleep(i32 1000)
%28 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 18, i32 1)
%29 = tail call i32 (...) @Display()
%30 = tail call i32 @usleep(i32 1000)
%31 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 20, i32 1)
%32 = tail call i32 (...) @Display()
%33 = tail call i32 @usleep(i32 1000)
%34 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 22, i32 1)
%35 = tail call i32 (...) @Display()
%36 = tail call i32 @usleep(i32 1000)
%37 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 24, i32 1)
%38 = tail call i32 (...) @Display()
%39 = tail call i32 @usleep(i32 1000)
%40 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 26, i32 1)
%41 = tail call i32 (...) @Display()
%42 = tail call i32 @usleep(i32 1000)
%43 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 28, i32 1)
%44 = tail call i32 (...) @Display()
%45 = tail call i32 @usleep(i32 1000)
%46 = tail call i32 @drawCircle(i32 64, i32 16, i16 signext 30, i32 1)
%47 = tail call i32 (...) @Display()
%48 = tail call i32 @usleep(i32 1000)
ret void
}