#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*/ newString(char *, int, char);
int /*<<< orphan*/ printf(char *, char *, char *, char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  scanf("%d", &n);
  int i = 0;
  for (i = 0; i < n; i++) {
    char first[100];
    newString(first, n - 1 - i, ' ');
    char second[100];
    newString(second, i * 2 + 1, '*');
    printf("%s%s%s\n", first, second, first);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c6 <main+0x96>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
sub    -0xc(%rbp),%esi
mov    $0x20,%edx
call   1050 <newString@plt>
lea    -0xe0(%rbp),%rdi
mov    -0xc(%rbp),%esi
shl    $0x1,%esi
add    $0x1,%esi
mov    $0x2a,%edx
call   1050 <newString@plt>
lea    -0x70(%rbp),%rsi
lea    -0xe0(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1160 <main+0x30>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
lea    0xeb8(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%esi
test   %esi,%esi
jle    11c2 <main+0x92>
xor    %r13d,%r13d
mov    $0xffffffff,%ebp
mov    $0x1,%ebx
lea    0x80(%rsp),%r14
lea    0x10(%rsp),%r15
lea    0xe88(%rip),%r12
nopl   0x0(%rax,%rax,1)
add    %ebp,%esi
mov    %r14,%rdi
mov    $0x20,%edx
call   1050 <newString@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    $0x2a,%edx
call   1050 <newString@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
call   1030 <printf@plt>
add    $0x1,%r13d
mov    0xc(%rsp),%esi
add    $0xffffffff,%ebp
add    $0x2,%ebx
cmp    %esi,%r13d
jl     1180 <main+0x50>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 0, i32* %3
store i32 0, i32* %3
br label %7
7: ; preds = %27, %0
%8 = load i32, i32* %3
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %30
11: ; preds = %7
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%13 = load i32, i32* %2
%14 = sub nsw i32 %13, 1
%15 = load i32, i32* %3
%16 = sub nsw i32 %14, %15
%17 = call i32 @newString(i8* %12, i32 %16, i8 signext 32)
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%19 = load i32, i32* %3
%20 = mul nsw i32 %19, 2
%21 = add nsw i32 %20, 1
%22 = call i32 @newString(i8* %18, i32 %21, i8 signext 42)
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%26 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %23, i8* %24, i8* %25)
br label %27
27: ; preds = %11
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
store i32 %29, i32* %3
br label %7
30: ; preds = %7
%31 = load i32, i32* %1
ret i32 %31
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = bitcast i32* %1 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %24
8: ; preds = %0
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
br label %11
11: ; preds = %8, %11
%12 = phi i32 [ %6, %8 ], [ %22, %11 ]
%13 = phi i32 [ 0, %8 ], [ %21, %11 ]
%14 = xor i32 %13, -1
%15 = add i32 %12, %14
%16 = call i32 @newString(i8* %9, i32 %15, i8 signext 32)
%17 = shl nuw nsw i32 %13, 1
%18 = or i32 %17, 1
%19 = call i32 @newString(i8* %10, i32 %18, i8 signext 42)
%20 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* %10, i8* %9)
%21 = add nuw nsw i32 %13, 1
%22 = load i32, i32* %1
%23 = icmp slt i32 %21, %22
br i1 %23, label %11, label %24
24: ; preds = %11, %0
ret i32 0
}