#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, char, char, char);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char a;
  scanf("%c", &a);
  printf("   %c%c%c%c\n", a, a, a, a);
  printf("  %c%c%c%c\n", a, a, a, a);
  printf(" %c%c%c%c\n", a, a, a, a);
  printf("%c%c%c%c\n", a, a, a, a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x5(%rbp),%dl
mov    -0x5(%rbp),%cl
mov    -0x5(%rbp),%al
lea    0xeb4(%rip),%rdi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x5(%rbp),%r8d
call   1030 <printf@plt>
mov    -0x5(%rbp),%dl
mov    -0x5(%rbp),%cl
mov    -0x5(%rbp),%al
lea    0xe92(%rip),%rdi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x5(%rbp),%r8d
call   1030 <printf@plt>
mov    -0x5(%rbp),%dl
mov    -0x5(%rbp),%cl
mov    -0x5(%rbp),%al
lea    0xe70(%rip),%rdi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x5(%rbp),%r8d
call   1030 <printf@plt>
mov    -0x5(%rbp),%dl
mov    -0x5(%rbp),%cl
mov    -0x5(%rbp),%al
lea    0xe4e(%rip),%rdi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x5(%rbp),%r8d
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1040 <scanf@plt>
movsbl 0x7(%rsp),%ecx
lea    0xec5(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %ecx,%r8d
call   1030 <printf@plt>
movsbl 0x7(%rsp),%ecx
lea    0xeae(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %ecx,%r8d
call   1030 <printf@plt>
movsbl 0x7(%rsp),%ecx
lea    0xe97(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %ecx,%r8d
call   1030 <printf@plt>
movsbl 0x7(%rsp),%ecx
lea    0xe80(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %ecx,%r8d
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [13 x i8] c" %c%c%c%c\0A\00"
@.str.2 = [12 x i8] c" %c%c%c%c\0A\00"
@.str.3 = [11 x i8] c" %c%c%c%c\0A\00"
@.str.4 = [10 x i8] c"%c%c%c%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = load i8, i8* %2
%5 = load i8, i8* %2
%6 = load i8, i8* %2
%7 = load i8, i8* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7)
%9 = load i8, i8* %2
%10 = load i8, i8* %2
%11 = load i8, i8* %2
%12 = load i8, i8* %2
%13 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8 signext %9, i8 signext %10, i8 signext %11, i8 signext %12)
%14 = load i8, i8* %2
%15 = load i8, i8* %2
%16 = load i8, i8* %2
%17 = load i8, i8* %2
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8 signext %14, i8 signext %15, i8 signext %16, i8 signext %17)
%19 = load i8, i8* %2
%20 = load i8, i8* %2
%21 = load i8, i8* %2
%22 = load i8, i8* %2
%23 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8 signext %19, i8 signext %20, i8 signext %21, i8 signext %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
@.str.1 = [13 x i8] c" %c%c%c%c\0A\00"
@.str.2 = [12 x i8] c" %c%c%c%c\0A\00"
@.str.3 = [11 x i8] c" %c%c%c%c\0A\00"
@.str.4 = [10 x i8] c"%c%c%c%c\0A\00"
define i32 @main() {
%1 = alloca i8
%2 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = load i8, i8* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3)
%5 = load i8, i8* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8 signext %5, i8 signext %5, i8 signext %5, i8 signext %5)
%7 = load i8, i8* %1
%8 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8 signext %7, i8 signext %7, i8 signext %7, i8 signext %7)
%9 = load i8, i8* %1
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8 signext %9, i8 signext %9, i8 signext %9, i8 signext %9)
ret i32 0
}