#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*/ vdmnum(int, char *);
int /*<<< orphan*/ vdmprintf(char *, int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/);
void vdmcircle(int centerx, int centery, int radius) {
  char x[4], y[4], rad[4];
  vdmprintf("5%s%s%s\x1e", vdmnum(centerx, x), vdmnum(centery, y),
            vdmnum(radius, rad));
}


x86 assembly (clang, -O0):
<vdmcircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x10(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x18(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
lea    0xe96(%rip),%rdi
call   1040 <vdmprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdmcircle>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edx,%r14d
mov    %esi,%ebp
lea    0xc(%rsp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,%ebx
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebp
lea    0x4(%rsp),%rsi
mov    %r14d,%edi
call   1030 <vdmnum@plt>
lea    0xea5(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   1040 <vdmprintf@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"5%s%s%s\1E\00"
define void @vdmcircle(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [4 x i8]
%8 = alloca [4 x i8]
%9 = alloca [4 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = load i32, i32* %4
%11 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%12 = call i32 @vdmnum(i32 %10, i8* %11)
%13 = load i32, i32* %5
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%15 = call i32 @vdmnum(i32 %13, i8* %14)
%16 = load i32, i32* %6
%17 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%18 = call i32 @vdmnum(i32 %16, i8* %17)
%19 = call i32 @vdmprintf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %15, i32 %18)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"5%s%s%s\1E\00"
define void @vdmcircle(i32 %0, i32 %1, i32 %2) {
%4 = alloca [4 x i8]
%5 = alloca [4 x i8]
%6 = alloca [4 x i8]
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 0
%10 = call i32 @vdmnum(i32 %0, i8* %7)
%11 = call i32 @vdmnum(i32 %1, i8* %8)
%12 = call i32 @vdmnum(i32 %2, i8* %9)
%13 = call i32 @vdmprintf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11, i32 %12)
ret void
}