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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
movl   $0x0,-0x24(%rbp)
lea    0xee5(%rip),%rdi
lea    -0x25(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x25(%rbp),%sil
mov    -0x25(%rbp),%dl
mov    -0x25(%rbp),%cl
mov    -0x25(%rbp),%r8b
mov    -0x25(%rbp),%r9b
mov    -0x25(%rbp),%r12b
mov    -0x25(%rbp),%r15b
mov    -0x25(%rbp),%r14b
mov    -0x25(%rbp),%bl
mov    -0x25(%rbp),%r11b
mov    -0x25(%rbp),%r10b
mov    -0x25(%rbp),%al
lea    0xe87(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r12b,%r12d
mov    %r12d,(%rsp)
movsbl %r15b,%r15d
mov    %r15d,0x8(%rsp)
movsbl %r14b,%r14d
mov    %r14d,0x10(%rsp)
movsbl %bl,%ebx
mov    %ebx,0x18(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x20(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x28(%rsp)
movsbl %al,%eax
mov    %eax,0x30(%rsp)
movsbl -0x25(%rbp),%eax
mov    %eax,0x38(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xefa(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1040 <scanf@plt>
movsbl 0x7(%rsp),%ecx
lea    0xec2(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %ecx,%r8d
mov    %ecx,%r9d
push   %rcx
push   %rcx
push   %rcx
push   %rcx
push   %rcx
push   %rcx
push   %rcx
push   %rcx
call   1030 <printf@plt>
add    $0x40,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [37 x i8] c" %c\0A %c%c%c\0A%c%c%c%c%c\0A %c%c%c\0A %c\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 = load i8, i8* %2
%9 = load i8, i8* %2
%10 = load i8, i8* %2
%11 = load i8, i8* %2
%12 = load i8, i8* %2
%13 = load i8, i8* %2
%14 = load i8, i8* %2
%15 = load i8, i8* %2
%16 = load i8, i8* %2
%17 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7, i8 signext %8, i8 signext %9, i8 signext %10, i8 signext %11, i8 signext %12, i8 signext %13, i8 signext %14, i8 signext %15, i8 signext %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
@.str.1 = [37 x i8] c" %c\0A %c%c%c\0A%c%c%c%c%c\0A %c%c%c\0A %c\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 ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3, i8 signext %3)
ret i32 0
}