#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*/, int /*<<< orphan*/);
void vdmrectangle(int origx, int origy, int dstx, int dsty) {
  char xcoord[4], ycoord[4], sdstx[4], sdsty[4];
  vdmprintf("}:%s%s%s%s\x1e\n", vdmnum(origx, xcoord), vdmnum(dstx, sdstx),
            vdmnum(origy, ycoord), vdmnum(dsty, sdsty));
}


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

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

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

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