#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 *, char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ show_n_char(char, int);
int strlen(char *);
int main() {
  int spaces;
  show_n_char('*', 49);
  putchar('\n');
  spaces = (49 - strlen("You love rainy")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "You love rainy");
  spaces = (49 - strlen("I am your rain")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "I am your rain");
  spaces = (49 - strlen("I love sunny")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "I love sunny");
  spaces = (49 - strlen("You are my sun")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "You are my sun");
  spaces = (49 - strlen("We love each other")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "We love each other");
  spaces = (49 - strlen("But we are in diferent")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "But we are in diferent");
  spaces = (49 - strlen("So So So So So So So So So So So")) / 2;
  show_n_char(' ', spaces);
  printf("%s\n", "So So So So So So So So So So So");
  show_n_char('*', 49);
  putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2a,%edi
mov    $0x31,%esi
call   1060 <show_n_char@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe91(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xe73(%rip),%rdi
lea    0xe5d(%rip),%rsi
call   1050 <printf@plt>
lea    0xe64(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xe33(%rip),%rdi
lea    0xe30(%rip),%rsi
call   1050 <printf@plt>
lea    0xe33(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xdf3(%rip),%rdi
lea    0xdff(%rip),%rsi
call   1050 <printf@plt>
lea    0xe00(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xdb3(%rip),%rdi
lea    0xdcc(%rip),%rsi
call   1050 <printf@plt>
lea    0xdcf(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xd73(%rip),%rdi
lea    0xd9b(%rip),%rsi
call   1050 <printf@plt>
lea    0xda2(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xd33(%rip),%rdi
lea    0xd6e(%rip),%rsi
call   1050 <printf@plt>
lea    0xd79(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x31,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xcf3(%rip),%rdi
lea    0xd45(%rip),%rsi
call   1050 <printf@plt>
mov    $0x2a,%edi
mov    $0x31,%esi
call   1060 <show_n_char@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x31,%ebp
mov    $0x2a,%edi
mov    $0x31,%esi
call   1060 <show_n_char@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe97(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
lea    0xe7d(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xe6f(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xe4a(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xe23(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xdfe(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xddd(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x31,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xdc0(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
mov    %ebp,%esi
shr    $0x1f,%esi
add    %ebp,%esi
sar    %esi
mov    $0x20,%edi
call   1060 <show_n_char@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x2a,%edi
mov    $0x31,%esi
call   1060 <show_n_char@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"You love rainy\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [15 x i8] c"I am your rain\00"
@.str.3 = [13 x i8] c"I love sunny\00"
@.str.4 = [15 x i8] c"You are my sun\00"
@.str.5 = [19 x i8] c"We love each other\00"
@.str.6 = [23 x i8] c"But we are in diferent\00"
@.str.7 = [33 x i8] c"So So So So So So So So So So So\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @show_n_char(i8 signext 42, i32 49)
%4 = call i32 @putchar(i8 signext 10)
%5 = call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%6 = sub nsw i32 49, %5
%7 = sdiv i32 %6, 2
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 @show_n_char(i8 signext 32, i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%12 = sub nsw i32 49, %11
%13 = sdiv i32 %12, 2
store i32 %13, i32* %2
%14 = load i32, i32* %2
%15 = call i32 @show_n_char(i8 signext 32, i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%18 = sub nsw i32 49, %17
%19 = sdiv i32 %18, 2
store i32 %19, i32* %2
%20 = load i32, i32* %2
%21 = call i32 @show_n_char(i8 signext 32, i32 %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%24 = sub nsw i32 49, %23
%25 = sdiv i32 %24, 2
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = call i32 @show_n_char(i8 signext 32, i32 %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%29 = call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%30 = sub nsw i32 49, %29
%31 = sdiv i32 %30, 2
store i32 %31, i32* %2
%32 = load i32, i32* %2
%33 = call i32 @show_n_char(i8 signext 32, i32 %32)
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%35 = call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%36 = sub nsw i32 49, %35
%37 = sdiv i32 %36, 2
store i32 %37, i32* %2
%38 = load i32, i32* %2
%39 = call i32 @show_n_char(i8 signext 32, i32 %38)
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 @strlen(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%42 = sub nsw i32 49, %41
%43 = sdiv i32 %42, 2
store i32 %43, i32* %2
%44 = load i32, i32* %2
%45 = call i32 @show_n_char(i8 signext 32, i32 %44)
%46 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%47 = call i32 @show_n_char(i8 signext 42, i32 49)
%48 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"You love rainy\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [15 x i8] c"I am your rain\00"
@.str.3 = [13 x i8] c"I love sunny\00"
@.str.4 = [15 x i8] c"You are my sun\00"
@.str.5 = [19 x i8] c"We love each other\00"
@.str.6 = [23 x i8] c"But we are in diferent\00"
@.str.7 = [33 x i8] c"So So So So So So So So So So So\00"
define i32 @main() {
%1 = tail call i32 @show_n_char(i8 signext 42, i32 49)
%2 = tail call i32 @putchar(i8 signext 10)
%3 = tail call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = sub nsw i32 49, %3
%5 = sdiv i32 %4, 2
%6 = tail call i32 @show_n_char(i8 signext 32, i32 %5)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%9 = sub nsw i32 49, %8
%10 = sdiv i32 %9, 2
%11 = tail call i32 @show_n_char(i8 signext 32, i32 %10)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%14 = sub nsw i32 49, %13
%15 = sdiv i32 %14, 2
%16 = tail call i32 @show_n_char(i8 signext 32, i32 %15)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i32 @strlen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%19 = sub nsw i32 49, %18
%20 = sdiv i32 %19, 2
%21 = tail call i32 @show_n_char(i8 signext 32, i32 %20)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%24 = sub nsw i32 49, %23
%25 = sdiv i32 %24, 2
%26 = tail call i32 @show_n_char(i8 signext 32, i32 %25)
%27 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%28 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%29 = sub nsw i32 49, %28
%30 = sdiv i32 %29, 2
%31 = tail call i32 @show_n_char(i8 signext 32, i32 %30)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%33 = tail call i32 @strlen(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%34 = sub nsw i32 49, %33
%35 = sdiv i32 %34, 2
%36 = tail call i32 @show_n_char(i8 signext 32, i32 %35)
%37 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%38 = tail call i32 @show_n_char(i8 signext 42, i32 49)
%39 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}