#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*/ printf(char *);
void show_pinout() {
  printf("DB-25 and DE-9 pinout\n\n");
  printf("25-pin  9-pin  Description                           Direction\n");
  printf(" 1             Protective Ground (PG)\n");
  printf(" 2      3      Transmitted Data (TxD)                DCE <- DTE\n");
  printf(" 3      2      Received Data (RxD)                   DCE -> DTE\n");
  printf(" 4      7      Request To Send (RTS)                 DCE <- DTE\n");
  printf(" 5      8      Clear To Send (CTS)                   DCE -> DTE\n");
  printf(" 6      6      Data Set Ready (DSR)                  DCE -> DTE\n");
  printf(" 7      5      Signal Ground (SG)\n");
  printf(" 8      1      Data Carrier Detect (DCD)             DCE -> DTE\n");
  printf("12             Secondary Data Carrier Detect (SDCD)  DCE -> DTE\n");
  printf("13             Secondary Clear To Send (SCTS)        DCE -> DTE\n");
  printf("14             Secondary Transmitted Data (STD)      DCE <- DTE\n");
  printf("16             Secondary Received Data (SRD)         DCE -> DTE\n");
  printf("19             Secondary Request To Send (SRTS)      DCE <- DTE\n");
  printf("20      4      Data Terminal Ready (DTR)             DCE <- DTE\n");
  printf("22      9      Ring Indicator (RI)                   DCE -> DTE\n");
}


x86 assembly (clang, -O0):
<show_pinout>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1014(%rip),%rdi
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
call   1030 <printf@plt>
lea    0x1060(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ca(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ff(%rip),%rdi
call   1030 <printf@plt>
lea    0x1134(%rip),%rdi
call   1030 <printf@plt>
lea    0x1169(%rip),%rdi
call   1030 <printf@plt>
lea    0x119e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_pinout>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x108e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f6(%rip),%rdi
call   1030 <puts@plt>
lea    0x112a(%rip),%rdi
call   1030 <puts@plt>
lea    0x115e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1192(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c6(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"DB-25 and DE-9 pinout\0A\0A\00"
@.str.1 = [64 x i8] c"25-pin 9-pin Description Direction\0A\00"
@.str.2 = [39 x i8] c" 1 Protective Ground (PG)\0A\00"
@.str.3 = [65 x i8] c" 2 3 Transmitted Data (TxD) DCE <- DTE\0A\00"
@.str.4 = [65 x i8] c" 3 2 Received Data (RxD) DCE -> DTE\0A\00"
@.str.5 = [65 x i8] c" 4 7 Request To Send (RTS) DCE <- DTE\0A\00"
@.str.6 = [65 x i8] c" 5 8 Clear To Send (CTS) DCE -> DTE\0A\00"
@.str.7 = [65 x i8] c" 6 6 Data Set Ready (DSR) DCE -> DTE\0A\00"
@.str.8 = [35 x i8] c" 7 5 Signal Ground (SG)\0A\00"
@.str.9 = [65 x i8] c" 8 1 Data Carrier Detect (DCD) DCE -> DTE\0A\00"
@.str.10 = [65 x i8] c"12 Secondary Data Carrier Detect (SDCD) DCE -> DTE\0A\00"
@.str.11 = [65 x i8] c"13 Secondary Clear To Send (SCTS) DCE -> DTE\0A\00"
@.str.12 = [65 x i8] c"14 Secondary Transmitted Data (STD) DCE <- DTE\0A\00"
@.str.13 = [65 x i8] c"16 Secondary Received Data (SRD) DCE -> DTE\0A\00"
@.str.14 = [65 x i8] c"19 Secondary Request To Send (SRTS) DCE <- DTE\0A\00"
@.str.15 = [65 x i8] c"20 4 Data Terminal Ready (DTR) DCE <- DTE\0A\00"
@.str.16 = [65 x i8] c"22 9 Ring Indicator (RI) DCE -> DTE\0A\00"
define void @show_pinout() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"DB-25 and DE-9 pinout\0A\00"
@str.17 = [63 x i8] c"25-pin 9-pin Description Direction\00"
@str.18 = [38 x i8] c" 1 Protective Ground (PG)\00"
@str.19 = [64 x i8] c" 2 3 Transmitted Data (TxD) DCE <- DTE\00"
@str.20 = [64 x i8] c" 3 2 Received Data (RxD) DCE -> DTE\00"
@str.21 = [64 x i8] c" 4 7 Request To Send (RTS) DCE <- DTE\00"
@str.22 = [64 x i8] c" 5 8 Clear To Send (CTS) DCE -> DTE\00"
@str.23 = [64 x i8] c" 6 6 Data Set Ready (DSR) DCE -> DTE\00"
@str.24 = [34 x i8] c" 7 5 Signal Ground (SG)\00"
@str.25 = [64 x i8] c" 8 1 Data Carrier Detect (DCD) DCE -> DTE\00"
@str.26 = [64 x i8] c"12 Secondary Data Carrier Detect (SDCD) DCE -> DTE\00"
@str.27 = [64 x i8] c"13 Secondary Clear To Send (SCTS) DCE -> DTE\00"
@str.28 = [64 x i8] c"14 Secondary Transmitted Data (STD) DCE <- DTE\00"
@str.29 = [64 x i8] c"16 Secondary Received Data (SRD) DCE -> DTE\00"
@str.30 = [64 x i8] c"19 Secondary Request To Send (SRTS) DCE <- DTE\00"
@str.31 = [64 x i8] c"20 4 Data Terminal Ready (DTR) DCE <- DTE\00"
@str.32 = [64 x i8] c"22 9 Ring Indicator (RI) DCE -> DTE\00"
define void @show_pinout() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.32, i64 0, i64 0))
ret void
}