#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*/, ...);
void vdmsetlinestyle(int lintype, int pattern, int unionstyle) {
  char patt[4], ltip[4], rot[4], espejo[4], in[4];
  vdmprintf("}G%s%s%s%s%s\x1e", vdmnum(lintype, ltip), vdmnum(pattern, patt),
            vdmnum(0, rot), vdmnum(0, espejo), vdmnum(0, in));
  vdmprintf("}F%s", vdmnum(unionstyle, rot));
}


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

x86 assembly (clang, -O2):
<vdmsetlinestyle>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,%r15d
mov    %esi,%ebx
lea    0x10(%rsp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,%r12d
lea    0x14(%rsp),%rsi
mov    %ebx,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r13d
lea    0xc(%rsp),%r14
xor    %edi,%edi
mov    %r14,%rsi
call   1030 <vdmnum@plt>
mov    %eax,%ebp
lea    0x8(%rsp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebx
lea    0x4(%rsp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
lea    0xe7f(%rip),%rdi
mov    %r12d,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %ebx,%r8d
mov    %eax,%r9d
xor    %eax,%eax
call   1040 <vdmprintf@plt>
mov    %r15d,%edi
mov    %r14,%rsi
call   1030 <vdmnum@plt>
lea    0xe66(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <vdmprintf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"}G%s%s%s%s%s\1E\00"
@.str.1 = [5 x i8] c"}F%s\00"
define void @vdmsetlinestyle(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]
%10 = alloca [4 x i8]
%11 = alloca [4 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%12 = load i32, i32* %4
%13 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%14 = call i32 @vdmnum(i32 %12, i8* %13)
%15 = load i32, i32* %5
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%17 = call i32 @vdmnum(i32 %15, i8* %16)
%18 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%19 = call i32 @vdmnum(i32 0, i8* %18)
%20 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%21 = call i32 @vdmnum(i32 0, i8* %20)
%22 = getelementptr inbounds [4 x i8], [4 x i8]* %11, i64 0, i64 0
%23 = call i32 @vdmnum(i32 0, i8* %22)
%24 = call i32 (i8*, i32, ...) @vdmprintf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %17, i32 %19, i32 %21, i32 %23)
%25 = load i32, i32* %6
%26 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%27 = call i32 @vdmnum(i32 %25, i8* %26)
%28 = call i32 (i8*, i32, ...) @vdmprintf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %27)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"}G%s%s%s%s%s\1E\00"
@.str.1 = [5 x i8] c"}F%s\00"
define void @vdmsetlinestyle(i32 %0, i32 %1, i32 %2) {
%4 = alloca [4 x i8]
%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]* %4, i64 0, i64 0
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%14 = call i32 @vdmnum(i32 %0, i8* %10)
%15 = call i32 @vdmnum(i32 %1, i8* %9)
%16 = call i32 @vdmnum(i32 0, i8* %11)
%17 = call i32 @vdmnum(i32 0, i8* %12)
%18 = call i32 @vdmnum(i32 0, i8* %13)
%19 = call i32 (i8*, i32, ...) @vdmprintf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15, i32 %16, i32 %17, i32 %18)
%20 = call i32 @vdmnum(i32 %2, i8* %11)
%21 = call i32 (i8*, i32, ...) @vdmprintf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %20)
ret void
}