#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*/ print_space();
int /*<<< orphan*/ print_star();
int /*<<< orphan*/ write(char *);
int MAIN() {
  int i, j, space, num;
  num = 11;
  space = (num - 1) / 2;
  while (space != 0) {
    i = space;
    while (i != 0) {
      print_space();
      i = i - 1;
    }
    i = num - space * 2;
    while (i != 0) {
      print_star();
      i = i - 1;
    }
    i = space;
    while (i != 0) {
      print_space();
      i = i - 1;
    }
    space = space - 1;
    write("\n");
  }
  space = 5;
  j = 3;
  while (j != 0) {
    i = space;
    while (i != 0) {
      print_space();
      i = i - 1;
    }
    i = num - space * 2;
    while (i != 0) {
      print_star();
      i = i - 1;
    }
    i = space;
    while (i != 0) {
      print_space();
      i = i - 1;
    }
    write("\n");
    j = j - 1;
  }
}


x86 assembly (clang, -O0):
<MAIN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xb,-0x14(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     11eb <MAIN+0xbb>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     117f <MAIN+0x4f>
mov    $0x0,%al
call   1040 <print_space@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1160 <MAIN+0x30>
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%ecx
shl    $0x1,%ecx
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11ac <MAIN+0x7c>
mov    $0x0,%al
call   1050 <print_star@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118d <MAIN+0x5d>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11d1 <MAIN+0xa1>
mov    $0x0,%al
call   1040 <print_space@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b2 <MAIN+0x82>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
lea    0xe1f(%rip),%rdi
call   1030 <write@plt>
jmp    1150 <MAIN+0x20>
movl   $0x5,-0x10(%rbp)
movl   $0x3,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1294 <MAIN+0x164>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1228 <MAIN+0xf8>
mov    $0x0,%al
call   1040 <print_space@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1209 <MAIN+0xd9>
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%ecx
shl    $0x1,%ecx
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1255 <MAIN+0x125>
mov    $0x0,%al
call   1050 <print_star@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1236 <MAIN+0x106>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     127a <MAIN+0x14a>
mov    $0x0,%al
call   1040 <print_space@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    125b <MAIN+0x12b>
lea    0xd7f(%rip),%rdi
call   1030 <write@plt>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f9 <MAIN+0xc9>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MAIN>:
push   %rbx
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
lea    0xe7b(%rip),%rbx
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1050 <print_star@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
xor    %eax,%eax
call   1040 <print_space@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @MAIN() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 11, i32* %5
%6 = load i32, i32* %5
%7 = sub nsw i32 %6, 1
%8 = sdiv i32 %7, 2
store i32 %8, i32* %4
br label %9
9: ; preds = %42, %0
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %46
12: ; preds = %9
%13 = load i32, i32* %4
store i32 %13, i32* %2
br label %14
14: ; preds = %17, %12
%15 = load i32, i32* %2
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = call i32 (...) @print_space()
%19 = load i32, i32* %2
%20 = sub nsw i32 %19, 1
store i32 %20, i32* %2
br label %14
21: ; preds = %14
%22 = load i32, i32* %5
%23 = load i32, i32* %4
%24 = mul nsw i32 %23, 2
%25 = sub nsw i32 %22, %24
store i32 %25, i32* %2
br label %26
26: ; preds = %29, %21
%27 = load i32, i32* %2
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = call i32 (...) @print_star()
%31 = load i32, i32* %2
%32 = sub nsw i32 %31, 1
store i32 %32, i32* %2
br label %26
33: ; preds = %26
%34 = load i32, i32* %4
store i32 %34, i32* %2
br label %35
35: ; preds = %38, %33
%36 = load i32, i32* %2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = call i32 (...) @print_space()
%40 = load i32, i32* %2
%41 = sub nsw i32 %40, 1
store i32 %41, i32* %2
br label %35
42: ; preds = %35
%43 = load i32, i32* %4
%44 = sub nsw i32 %43, 1
store i32 %44, i32* %4
%45 = call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %9
46: ; preds = %9
store i32 5, i32* %4
store i32 3, i32* %3
br label %47
47: ; preds = %80, %46
%48 = load i32, i32* %3
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %84
50: ; preds = %47
%51 = load i32, i32* %4
store i32 %51, i32* %2
br label %52
52: ; preds = %55, %50
%53 = load i32, i32* %2
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = call i32 (...) @print_space()
%57 = load i32, i32* %2
%58 = sub nsw i32 %57, 1
store i32 %58, i32* %2
br label %52
59: ; preds = %52
%60 = load i32, i32* %5
%61 = load i32, i32* %4
%62 = mul nsw i32 %61, 2
%63 = sub nsw i32 %60, %62
store i32 %63, i32* %2
br label %64
64: ; preds = %67, %59
%65 = load i32, i32* %2
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = call i32 (...) @print_star()
%69 = load i32, i32* %2
%70 = sub nsw i32 %69, 1
store i32 %70, i32* %2
br label %64
71: ; preds = %64
%72 = load i32, i32* %4
store i32 %72, i32* %2
br label %73
73: ; preds = %76, %71
%74 = load i32, i32* %2
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = call i32 (...) @print_space()
%78 = load i32, i32* %2
%79 = sub nsw i32 %78, 1
store i32 %79, i32* %2
br label %73
80: ; preds = %73
%81 = call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%82 = load i32, i32* %3
%83 = sub nsw i32 %82, 1
store i32 %83, i32* %3
br label %47
84: ; preds = %47
%85 = load i32, i32* %1
ret i32 %85
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define i32 @MAIN() {
%1 = tail call i32 (...) @print_space()
%2 = tail call i32 (...) @print_space()
%3 = tail call i32 (...) @print_space()
%4 = tail call i32 (...) @print_space()
%5 = tail call i32 (...) @print_space()
%6 = tail call i32 (...) @print_star()
%7 = tail call i32 (...) @print_space()
%8 = tail call i32 (...) @print_space()
%9 = tail call i32 (...) @print_space()
%10 = tail call i32 (...) @print_space()
%11 = tail call i32 (...) @print_space()
%12 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 (...) @print_space()
%14 = tail call i32 (...) @print_space()
%15 = tail call i32 (...) @print_space()
%16 = tail call i32 (...) @print_space()
%17 = tail call i32 (...) @print_star()
%18 = tail call i32 (...) @print_star()
%19 = tail call i32 (...) @print_star()
%20 = tail call i32 (...) @print_space()
%21 = tail call i32 (...) @print_space()
%22 = tail call i32 (...) @print_space()
%23 = tail call i32 (...) @print_space()
%24 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%25 = tail call i32 (...) @print_space()
%26 = tail call i32 (...) @print_space()
%27 = tail call i32 (...) @print_space()
%28 = tail call i32 (...) @print_star()
%29 = tail call i32 (...) @print_star()
%30 = tail call i32 (...) @print_star()
%31 = tail call i32 (...) @print_star()
%32 = tail call i32 (...) @print_star()
%33 = tail call i32 (...) @print_space()
%34 = tail call i32 (...) @print_space()
%35 = tail call i32 (...) @print_space()
%36 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = tail call i32 (...) @print_space()
%38 = tail call i32 (...) @print_space()
%39 = tail call i32 (...) @print_star()
%40 = tail call i32 (...) @print_star()
%41 = tail call i32 (...) @print_star()
%42 = tail call i32 (...) @print_star()
%43 = tail call i32 (...) @print_star()
%44 = tail call i32 (...) @print_star()
%45 = tail call i32 (...) @print_star()
%46 = tail call i32 (...) @print_space()
%47 = tail call i32 (...) @print_space()
%48 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%49 = tail call i32 (...) @print_space()
%50 = tail call i32 (...) @print_star()
%51 = tail call i32 (...) @print_star()
%52 = tail call i32 (...) @print_star()
%53 = tail call i32 (...) @print_star()
%54 = tail call i32 (...) @print_star()
%55 = tail call i32 (...) @print_star()
%56 = tail call i32 (...) @print_star()
%57 = tail call i32 (...) @print_star()
%58 = tail call i32 (...) @print_star()
%59 = tail call i32 (...) @print_space()
%60 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%61 = tail call i32 (...) @print_space()
%62 = tail call i32 (...) @print_space()
%63 = tail call i32 (...) @print_space()
%64 = tail call i32 (...) @print_space()
%65 = tail call i32 (...) @print_space()
%66 = tail call i32 (...) @print_star()
%67 = tail call i32 (...) @print_space()
%68 = tail call i32 (...) @print_space()
%69 = tail call i32 (...) @print_space()
%70 = tail call i32 (...) @print_space()
%71 = tail call i32 (...) @print_space()
%72 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%73 = tail call i32 (...) @print_space()
%74 = tail call i32 (...) @print_space()
%75 = tail call i32 (...) @print_space()
%76 = tail call i32 (...) @print_space()
%77 = tail call i32 (...) @print_space()
%78 = tail call i32 (...) @print_star()
%79 = tail call i32 (...) @print_space()
%80 = tail call i32 (...) @print_space()
%81 = tail call i32 (...) @print_space()
%82 = tail call i32 (...) @print_space()
%83 = tail call i32 (...) @print_space()
%84 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%85 = tail call i32 (...) @print_space()
%86 = tail call i32 (...) @print_space()
%87 = tail call i32 (...) @print_space()
%88 = tail call i32 (...) @print_space()
%89 = tail call i32 (...) @print_space()
%90 = tail call i32 (...) @print_star()
%91 = tail call i32 (...) @print_space()
%92 = tail call i32 (...) @print_space()
%93 = tail call i32 (...) @print_space()
%94 = tail call i32 (...) @print_space()
%95 = tail call i32 (...) @print_space()
%96 = tail call i32 @write(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}