#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*/ SPC_FREE();
int /*<<< orphan*/ SPC_INIT();
char *SPC_LTrim(char *);
int /*<<< orphan*/ SPC_MSG(int /*<<< orphan*/, char *);
int /*<<< orphan*/ SPC_RTrim(char *);
int /*<<< orphan*/ printf(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int main() {
  SPC_INIT();
  char str[] = "     \tHello World\n";
  char str1[] = "     \tHello World   \t\n";
  char str2[] = "     \tHello World  \t  \r\n";
  char str3[] = "     \tHello World  \t1  \r";
  char str4[] = "\n";
  char str5[] = "\r\n";
  char str6[] = "\r";
  char str7[] = "";
  char str8[] = "a";
  SPC_MSG(0, str);
  SPC_MSG(0, SPC_LTrim(str));
  printf("STR[%s] LEN[%ld]\n", str1, strlen(str1));
  SPC_RTrim(str1);
  printf("STR[%s] LEN[%ld]\n", str1, strlen(str1));
  printf("STR[%s] LEN[%ld]\n", str2, strlen(str2));
  SPC_RTrim(str2);
  printf("STR[%s] LEN[%ld]\n", str2, strlen(str2));
  printf("STR[%s] LEN[%ld]\n", str3, strlen(str3));
  SPC_RTrim(str3);
  printf("STR[%s] LEN[%ld]\n", str3, strlen(str3));
  printf("STR[%s] LEN[%ld]\n", str4, strlen(str4));
  SPC_RTrim(str4);
  printf("STR[%s] LEN[%ld]\n", str4, strlen(str4));
  printf("STR[%s] LEN[%ld]\n", str5, strlen(str5));
  SPC_RTrim(str5);
  printf("STR[%s] LEN[%ld]\n", str5, strlen(str5));
  printf("STR[%s] LEN[%ld]\n", str6, strlen(str6));
  SPC_RTrim(str6);
  printf("STR[%s] LEN[%ld]\n", str6, strlen(str6));
  printf("STR[%s] LEN[%ld]\n", str7, strlen(str7));
  SPC_RTrim(str7);
  printf("STR[%s] LEN[%ld]\n", str7, strlen(str7));
  printf("STR[%s] LEN[%ld]\n", str8, strlen(str8));
  SPC_RTrim(str8);
  printf("STR[%s] LEN[%ld]\n", str8, strlen(str8));
  SPC_FREE();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <SPC_INIT@plt>
mov    0xe60(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe5d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe5a(%rip),%ax
mov    %ax,-0x10(%rbp)
mov    0xe52(%rip),%al
mov    %al,-0xe(%rbp)
mov    0xe56(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe53(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe51(%rip),%eax
mov    %eax,-0x30(%rbp)
mov    0xe4b(%rip),%ax
mov    %ax,-0x2c(%rbp)
mov    0xe43(%rip),%al
mov    %al,-0x2a(%rbp)
mov    0xe43(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe40(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe3d(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe3b(%rip),%al
mov    %al,-0x48(%rbp)
mov    0xe39(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe36(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe33(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe31(%rip),%al
mov    %al,-0x68(%rbp)
mov    0xe29(%rip),%ax
mov    %ax,-0x82(%rbp)
mov    0xe1a(%rip),%ax
mov    %ax,-0x85(%rbp)
mov    0xe0f(%rip),%al
mov    %al,-0x83(%rbp)
mov    0xe03(%rip),%ax
mov    %ax,-0x87(%rbp)
lea    -0x88(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <memset@plt>
mov    0xde4(%rip),%ax
mov    %ax,-0x8a(%rbp)
lea    -0x20(%rbp),%rsi
xor    %edi,%edi
call   1060 <SPC_MSG@plt>
lea    -0x20(%rbp),%rdi
call   10a0 <SPC_LTrim@plt>
mov    %rax,%rsi
xor    %edi,%edi
call   1060 <SPC_MSG@plt>
lea    -0x40(%rbp),%rax
mov    %rax,-0x110(%rbp)
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x110(%rbp),%rsi
mov    %eax,%edx
lea    0xd9d(%rip),%rdi
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x40(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x108(%rbp),%rsi
mov    %eax,%edx
lea    0xd6b(%rip),%rdi
call   1040 <printf@plt>
lea    -0x60(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x100(%rbp),%rsi
mov    %eax,%edx
lea    0xd42(%rip),%rdi
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x60(%rbp),%rax
mov    %rax,-0xf8(%rbp)
lea    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xf8(%rbp),%rsi
mov    %eax,%edx
lea    0xd10(%rip),%rdi
call   1040 <printf@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0xf0(%rbp)
lea    -0x80(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xf0(%rbp),%rsi
mov    %eax,%edx
lea    0xce7(%rip),%rdi
call   1040 <printf@plt>
lea    -0x80(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0xe8(%rbp)
lea    -0x80(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xe8(%rbp),%rsi
mov    %eax,%edx
lea    0xcb5(%rip),%rdi
call   1040 <printf@plt>
lea    -0x82(%rbp),%rax
mov    %rax,-0xe0(%rbp)
lea    -0x82(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xe0(%rbp),%rsi
mov    %eax,%edx
lea    0xc86(%rip),%rdi
call   1040 <printf@plt>
lea    -0x82(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x82(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    -0x82(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xd8(%rbp),%rsi
mov    %eax,%edx
lea    0xc4b(%rip),%rdi
call   1040 <printf@plt>
lea    -0x85(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    -0x85(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xd0(%rbp),%rsi
mov    %eax,%edx
lea    0xc1c(%rip),%rdi
call   1040 <printf@plt>
lea    -0x85(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x85(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x85(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xc8(%rbp),%rsi
mov    %eax,%edx
lea    0xbe1(%rip),%rdi
call   1040 <printf@plt>
lea    -0x87(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0x87(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xc0(%rbp),%rsi
mov    %eax,%edx
lea    0xbb2(%rip),%rdi
call   1040 <printf@plt>
lea    -0x87(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x87(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x87(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xb8(%rbp),%rsi
mov    %eax,%edx
lea    0xb77(%rip),%rdi
call   1040 <printf@plt>
lea    -0x88(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0x88(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xb0(%rbp),%rsi
mov    %eax,%edx
lea    0xb48(%rip),%rdi
call   1040 <printf@plt>
lea    -0x88(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x88(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x88(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xa8(%rbp),%rsi
mov    %eax,%edx
lea    0xb0d(%rip),%rdi
call   1040 <printf@plt>
lea    -0x8a(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    -0x8a(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xa0(%rbp),%rsi
mov    %eax,%edx
lea    0xade(%rip),%rdi
call   1040 <printf@plt>
lea    -0x8a(%rbp),%rdi
call   1080 <SPC_RTrim@plt>
lea    -0x8a(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x8a(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x98(%rbp),%rsi
mov    %eax,%edx
lea    0xaa3(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <SPC_FREE@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x98,%rsp
xor    %eax,%eax
call   1060 <SPC_INIT@plt>
movaps 0xe78(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0xa646c,0x1f(%rsp)
movaps 0xe84(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movabs $0xa09202020646c,%rax
mov    %rax,0x3f(%rsp)
movups 0xe92(%rip),%xmm0
movups %xmm0,0x79(%rsp)
movaps 0xe7d(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movups 0xe9a(%rip),%xmm0
movups %xmm0,0x59(%rsp)
movaps 0xe85(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movw   $0xa,0xe(%rsp)
movb   $0x0,0xc(%rsp)
movw   $0xa0d,0xa(%rsp)
movw   $0xd,0x8(%rsp)
movb   $0x0,0x5(%rsp)
movw   $0x61,0x6(%rsp)
lea    0x10(%rsp),%rbx
xor    %edi,%edi
mov    %rbx,%rsi
call   1050 <SPC_MSG@plt>
mov    %rbx,%rdi
call   1090 <SPC_LTrim@plt>
xor    %edi,%edi
mov    %rax,%rsi
call   1050 <SPC_MSG@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xe41(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0xe(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0xa(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0x5(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
lea    0x6(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1070 <SPC_RTrim@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1080 <SPC_FREE@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.str = [19 x i8] c" \09Hello World\0A\00"
@__const.main.str1 = [23 x i8] c" \09Hello World \09\0A\00"
@__const.main.str2 = [25 x i8] c" \09Hello World \09 \0D\0A\00"
@__const.main.str3 = [25 x i8] c" \09Hello World \091 \0D\00"
@__const.main.str4 = [2 x i8] c"\0A\00"
@__const.main.str5 = [3 x i8] c"\0D\0A\00"
@__const.main.str6 = [2 x i8] c"\0D\00"
@__const.main.str8 = [2 x i8] c"a\00"
@.str = [18 x i8] c"STR[%s] LEN[%ld]\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [19 x i8]
%3 = alloca [23 x i8]
%4 = alloca [25 x i8]
%5 = alloca [25 x i8]
%6 = alloca [2 x i8]
%7 = alloca [3 x i8]
%8 = alloca [2 x i8]
%9 = alloca [1 x i8]
%10 = alloca [2 x i8]
store i32 0, i32* %1
%11 = call i32 (...) @SPC_INIT()
%12 = bitcast [19 x i8]* %2 to i8*
%13 = bitcast [23 x i8]* %3 to i8*
%14 = bitcast [25 x i8]* %4 to i8*
%15 = bitcast [25 x i8]* %5 to i8*
%16 = bitcast [2 x i8]* %6 to i8*
%17 = bitcast [3 x i8]* %7 to i8*
%18 = bitcast [2 x i8]* %8 to i8*
%19 = bitcast [1 x i8]* %9 to i8*
%20 = bitcast [2 x i8]* %10 to i8*
%21 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%22 = call i32 @SPC_MSG(i32 0, i8* %21)
%23 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%24 = call i8* @SPC_LTrim(i8* %23)
%25 = call i32 @SPC_MSG(i32 0, i8* %24)
%26 = getelementptr inbounds [23 x i8], [23 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds [23 x i8], [23 x i8]* %3, i64 0, i64 0
%28 = call i32 @strlen(i8* %27)
%29 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %26, i32 %28)
%30 = getelementptr inbounds [23 x i8], [23 x i8]* %3, i64 0, i64 0
%31 = call i32 @SPC_RTrim(i8* %30)
%32 = getelementptr inbounds [23 x i8], [23 x i8]* %3, i64 0, i64 0
%33 = getelementptr inbounds [23 x i8], [23 x i8]* %3, i64 0, i64 0
%34 = call i32 @strlen(i8* %33)
%35 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %32, i32 %34)
%36 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%37 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%38 = call i32 @strlen(i8* %37)
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %36, i32 %38)
%40 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%41 = call i32 @SPC_RTrim(i8* %40)
%42 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%43 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%44 = call i32 @strlen(i8* %43)
%45 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %42, i32 %44)
%46 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%47 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%48 = call i32 @strlen(i8* %47)
%49 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %46, i32 %48)
%50 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%51 = call i32 @SPC_RTrim(i8* %50)
%52 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%53 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%54 = call i32 @strlen(i8* %53)
%55 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %52, i32 %54)
%56 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%57 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%58 = call i32 @strlen(i8* %57)
%59 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %56, i32 %58)
%60 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%61 = call i32 @SPC_RTrim(i8* %60)
%62 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%63 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%64 = call i32 @strlen(i8* %63)
%65 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %62, i32 %64)
%66 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%67 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%68 = call i32 @strlen(i8* %67)
%69 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %66, i32 %68)
%70 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%71 = call i32 @SPC_RTrim(i8* %70)
%72 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%73 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%74 = call i32 @strlen(i8* %73)
%75 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %72, i32 %74)
%76 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%77 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%78 = call i32 @strlen(i8* %77)
%79 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %76, i32 %78)
%80 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%81 = call i32 @SPC_RTrim(i8* %80)
%82 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%83 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%84 = call i32 @strlen(i8* %83)
%85 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %82, i32 %84)
%86 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%87 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%88 = call i32 @strlen(i8* %87)
%89 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %86, i32 %88)
%90 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%91 = call i32 @SPC_RTrim(i8* %90)
%92 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%93 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%94 = call i32 @strlen(i8* %93)
%95 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %92, i32 %94)
%96 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%97 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%98 = call i32 @strlen(i8* %97)
%99 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %96, i32 %98)
%100 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%101 = call i32 @SPC_RTrim(i8* %100)
%102 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%103 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%104 = call i32 @strlen(i8* %103)
%105 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %102, i32 %104)
%106 = call i32 (...) @SPC_FREE()
ret i32 0
}

LLVM IR (-O2):
@__const.main.str = [19 x i8] c" \09Hello World\0A\00"
@__const.main.str1 = [23 x i8] c" \09Hello World \09\0A\00"
@__const.main.str2 = [25 x i8] c" \09Hello World \09 \0D\0A\00"
@__const.main.str3 = [25 x i8] c" \09Hello World \091 \0D\00"
@__const.main.str5 = [3 x i8] c"\0D\0A\00"
@.str = [18 x i8] c"STR[%s] LEN[%ld]\0A\00"
define i32 @main() {
%1 = alloca [19 x i8]
%2 = alloca [23 x i8]
%3 = alloca [25 x i8]
%4 = alloca [25 x i8]
%5 = alloca i16
%6 = alloca [3 x i8]
%7 = alloca i16
%8 = alloca [1 x i8]
%9 = alloca i16
%10 = tail call i32 (...) @SPC_INIT()
%11 = getelementptr inbounds [19 x i8], [19 x i8]* %1, i64 0, i64 0
%12 = getelementptr inbounds [23 x i8], [23 x i8]* %2, i64 0, i64 0
%13 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%14 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%15 = bitcast i16* %5 to i8*
store i16 10, i16* %5
%16 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%17 = bitcast i16* %7 to i8*
store i16 13, i16* %7
%18 = getelementptr inbounds [1 x i8], [1 x i8]* %8, i64 0, i64 0
store i8 0, i8* %18
%19 = bitcast i16* %9 to i8*
store i16 97, i16* %9
%20 = call i32 @SPC_MSG(i32 0, i8* %11)
%21 = call i8* @SPC_LTrim(i8* %11)
%22 = call i32 @SPC_MSG(i32 0, i8* %21)
%23 = call i32 @strlen(i8* %12)
%24 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %12, i32 %23)
%25 = call i32 @SPC_RTrim(i8* %12)
%26 = call i32 @strlen(i8* %12)
%27 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %12, i32 %26)
%28 = call i32 @strlen(i8* %13)
%29 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %28)
%30 = call i32 @SPC_RTrim(i8* %13)
%31 = call i32 @strlen(i8* %13)
%32 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %31)
%33 = call i32 @strlen(i8* %14)
%34 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14, i32 %33)
%35 = call i32 @SPC_RTrim(i8* %14)
%36 = call i32 @strlen(i8* %14)
%37 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14, i32 %36)
%38 = call i32 @strlen(i8* %15)
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %38)
%40 = call i32 @SPC_RTrim(i8* %15)
%41 = call i32 @strlen(i8* %15)
%42 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %41)
%43 = call i32 @strlen(i8* %16)
%44 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %16, i32 %43)
%45 = call i32 @SPC_RTrim(i8* %16)
%46 = call i32 @strlen(i8* %16)
%47 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %16, i32 %46)
%48 = call i32 @strlen(i8* %17)
%49 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %17, i32 %48)
%50 = call i32 @SPC_RTrim(i8* %17)
%51 = call i32 @strlen(i8* %17)
%52 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %17, i32 %51)
%53 = call i32 @strlen(i8* %18)
%54 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %18, i32 %53)
%55 = call i32 @SPC_RTrim(i8* %18)
%56 = call i32 @strlen(i8* %18)
%57 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %18, i32 %56)
%58 = call i32 @strlen(i8* %19)
%59 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %19, i32 %58)
%60 = call i32 @SPC_RTrim(i8* %19)
%61 = call i32 @strlen(i8* %19)
%62 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %19, i32 %61)
%63 = call i32 (...) @SPC_FREE()
ret i32 0
}