#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 *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int i, n;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    if (i == (2 * n - 1) / 2)
      printf("*");
    else
      printf(" ");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11a6 <main+0x86>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jne    1187 <main+0x67>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
jmp    1193 <main+0x73>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
jmp    1198 <main+0x78>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1146 <main+0x26>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    1181 <main+0x61>
xor    %ebx,%ebx
jmp    115d <main+0x3d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
cmp    %eax,%ebx
jge    1181 <main+0x61>
add    $0x1,%ebx
lea    (%rax,%rax,1),%ecx
add    $0xffffffff,%ecx
shr    $0x1f,%ecx
lea    (%rcx,%rax,2),%eax
add    $0xffffffff,%eax
sar    %eax
mov    $0x2a,%edi
cmp    %eax,%ebx
je     1150 <main+0x30>
mov    $0x20,%edi
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 1
br i1 %5, label %18, label %6
6: ; preds = %0, %6
%7 = phi i32 [ %16, %6 ], [ %4, %0 ]
%8 = phi i32 [ %15, %6 ], [ 1, %0 ]
%9 = shl nsw i32 %7, 1
%10 = add nsw i32 %9, -1
%11 = sdiv i32 %10, 2
%12 = icmp eq i32 %8, %11
%13 = select i1 %12, i32 42, i32 32
%14 = call i32 @putchar(i32 %13)
%15 = add nuw nsw i32 %8, 1
%16 = load i32, i32* %1
%17 = icmp slt i32 %8, %16
br i1 %17, label %6, label %18
18: ; preds = %6, %0
ret i32 0
}