#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*/ UARTD2_SendData(char *, int);
int strlen(char *);
void PrintOut_Project_Information() {
  UARTD2_SendData("Project : Switch Matrix Controller\n",
                  strlen("Project : Switch Matrix Controller\n") *
                      sizeof(char));
  UARTD2_SendData("MCU : Renesas V850ES/FG3, type : uPD70F3376\n",
                  strlen("MCU : Renesas V850ES/FG3, type : uPD70F3376\n") *
                      sizeof(char));
  UARTD2_SendData(
      "It realizes that :\n1. Controlling switch matrix;\n2. ADC measuring and "
      "DAC outputing;\n3. CAN bus analyzer and transciver;\n4. Digital IN and "
      "OUT.\n",
      strlen("It realizes that :\n1. Controlling switch matrix;\n2. ADC "
             "measuring and DAC outputing;\n3. CAN bus analyzer and "
             "transciver;\n4. Digital IN and OUT.\n") *
          sizeof(char));
  UARTD2_SendData("Development team : \n\tTeam leader : HENRY XING \n\tHW : "
                  "HENRY XING, NEIL WU \n\tSW : XU ZAN\n",
                  strlen("Development team : \n\tTeam leader : HENRY XING "
                         "\n\tHW : HENRY XING, NEIL WU \n\tSW : XU ZAN\n") *
                      sizeof(char));
  UARTD2_SendData("Copyright(C)  2010---2012  Hella (Shanghai) Electronics "
                  "Co., Ltd.\nAll rights reserved.\n",
                  strlen("Copyright(C)  2010---2012  Hella (Shanghai) "
                         "Electronics Co., Ltd.\nAll rights reserved.\n") *
                      sizeof(char));
  return;
}


x86 assembly (clang, -O0):
<PrintOut_Project_Information>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%esi
lea    0xec1(%rip),%rdi
call   1040 <UARTD2_SendData@plt>
lea    0xed9(%rip),%rdi
call   1030 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%esi
lea    0xec5(%rip),%rdi
call   1040 <UARTD2_SendData@plt>
lea    0xee6(%rip),%rdi
call   1030 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%esi
lea    0xed2(%rip),%rdi
call   1040 <UARTD2_SendData@plt>
lea    0xf57(%rip),%rdi
call   1030 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%esi
lea    0xf43(%rip),%rdi
call   1040 <UARTD2_SendData@plt>
lea    0xf8f(%rip),%rdi
call   1030 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%esi
lea    0xf7b(%rip),%rdi
call   1040 <UARTD2_SendData@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintOut_Project_Information>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <UARTD2_SendData@plt>
lea    0xee3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <UARTD2_SendData@plt>
lea    0xef7(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <UARTD2_SendData@plt>
lea    0xf6f(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <UARTD2_SendData@plt>
lea    0xfae(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1040 <UARTD2_SendData@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Project : Switch Matrix Controller\0A\00"
@.str.1 = [45 x i8] c"MCU : Renesas V850ES/FG3, type : uPD70F3376\0A\00"
@.str.2 = [145 x i8] c"It realizes that :\0A1. Controlling switch matrix;\0A2. ADC measuring and DAC outputing;\0A3. CAN bus analyzer and transciver;\0A4. Digital IN and OUT.\0A\00"
@.str.3 = [88 x i8] c"Development team : \0A\09Team leader : HENRY XING \0A\09HW : HENRY XING, NEIL WU \0A\09SW : XU ZAN\0A\00"
@.str.4 = [88 x i8] c"Copyright(C) 2010---2012 Hella (Shanghai) Electronics Co., Ltd.\0AAll rights reserved.\0A\00"
define void @PrintOut_Project_Information() {
%1 = call i32 @strlen(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = sext i32 %1 to i64
%3 = mul i64 %2, 1
%4 = trunc i64 %3 to i32
%5 = call i32 @UARTD2_SendData(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @strlen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 1
%9 = trunc i64 %8 to i32
%10 = call i32 @UARTD2_SendData(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = call i32 @strlen(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0))
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 1
%14 = trunc i64 %13 to i32
%15 = call i32 @UARTD2_SendData(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = call i32 @strlen(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0))
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 1
%19 = trunc i64 %18 to i32
%20 = call i32 @UARTD2_SendData(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = call i32 @strlen(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 1
%24 = trunc i64 %23 to i32
%25 = call i32 @UARTD2_SendData(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0), i32 %24)
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"Project : Switch Matrix Controller\0A\00"
@.str.1 = [45 x i8] c"MCU : Renesas V850ES/FG3, type : uPD70F3376\0A\00"
@.str.2 = [145 x i8] c"It realizes that :\0A1. Controlling switch matrix;\0A2. ADC measuring and DAC outputing;\0A3. CAN bus analyzer and transciver;\0A4. Digital IN and OUT.\0A\00"
@.str.3 = [88 x i8] c"Development team : \0A\09Team leader : HENRY XING \0A\09HW : HENRY XING, NEIL WU \0A\09SW : XU ZAN\0A\00"
@.str.4 = [88 x i8] c"Copyright(C) 2010---2012 Hella (Shanghai) Electronics Co., Ltd.\0AAll rights reserved.\0A\00"
define void @PrintOut_Project_Information() {
%1 = tail call i32 @strlen(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @UARTD2_SendData(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @strlen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @UARTD2_SendData(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @strlen(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @UARTD2_SendData(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @strlen(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @UARTD2_SendData(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 @strlen(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @UARTD2_SendData(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret void
}