#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 rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int x, xx, xxx, y, yy, yyy;
  int n, nn;
  srand(time(NULL));
  nn = rand() % 10;
  for (n = 0; n < nn; n++) {
    for (x = 0; x < 9; x++) {
      x += 1;
      for (xx = 0; xx < x; xx++) {
        for (y = 0; y < 9; y++) {
          y += 2;
          for (yy = 0; yy < y; yy++) {
            printf(" ");
          }
          for (yyy = 0; yyy < ((2 * y) - 1); yyy++) {
            printf("*");
          }
        }
        printf(" ");
      }
      for (xxx = 0; xxx < ((2 * x + 1) - 1); xxx++) {
        printf("*");
      }
      printf("\n ");
    }
    printf(" ");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12c6 <main+0x186>
movl   $0x0,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jge    12ac <main+0x16c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    125a <main+0x11a>
movl   $0x0,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jge    1240 <main+0x100>
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11f8 <main+0xb8>
lea    0xe1e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d2 <main+0x92>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    122d <main+0xed>
lea    0xde6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ff <main+0xbf>
jmp    1232 <main+0xf2>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b8 <main+0x78>
lea    0xdbc(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a5 <main+0x65>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1292 <main+0x152>
lea    0xd81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1261 <main+0x121>
lea    0xd69(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118b <main+0x4b>
lea    0xd50(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1178 <main+0x38>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %r14d,%r14d
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%edx
mov    %rdx,(%rsp)
test   %edx,%edx
jle    13d7 <main+0x287>
lea    0xe5c(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r13d,%r13d
mov    $0x1,%r15d
mov    $0x2,%ebx
xchg   %ax,%ax
mov    %r15d,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    11d0 <main+0x80>
mov    %ebx,%ebp
nopl   0x0(%rax)
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    1390 <main+0x240>
mov    %r12,%rdi
call   1040 <printf@plt>
lea    0x2(%r13),%eax
add    $0x2,%r15d
add    $0x4,%ebx
cmp    $0x7,%r13d
mov    %eax,%r13d
jb     11c0 <main+0x70>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
cmp    (%rsp),%r14d
jne    11b0 <main+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.2 = [3 x i8] c"\0A \00"
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i32 (...) @rand()
%4 = srem i32 %3, 10
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %74
6: ; preds = %0, %70
%7 = phi i32 [ %72, %70 ], [ 0, %0 ]
br label %8
8: ; preds = %6, %64
%9 = phi i32 [ 2, %6 ], [ %69, %64 ]
%10 = phi i32 [ 1, %6 ], [ %68, %64 ]
%11 = phi i32 [ 0, %6 ], [ %66, %64 ]
br label %12
12: ; preds = %8, %12
%13 = phi i32 [ 0, %8 ], [ %57, %12 ]
%14 = tail call i32 @putchar(i32 32)
%15 = tail call i32 @putchar(i32 32)
%16 = tail call i32 @putchar(i32 42)
%17 = tail call i32 @putchar(i32 42)
%18 = tail call i32 @putchar(i32 42)
%19 = tail call i32 @putchar(i32 32)
%20 = tail call i32 @putchar(i32 32)
%21 = tail call i32 @putchar(i32 32)
%22 = tail call i32 @putchar(i32 32)
%23 = tail call i32 @putchar(i32 32)
%24 = tail call i32 @putchar(i32 42)
%25 = tail call i32 @putchar(i32 42)
%26 = tail call i32 @putchar(i32 42)
%27 = tail call i32 @putchar(i32 42)
%28 = tail call i32 @putchar(i32 42)
%29 = tail call i32 @putchar(i32 42)
%30 = tail call i32 @putchar(i32 42)
%31 = tail call i32 @putchar(i32 42)
%32 = tail call i32 @putchar(i32 42)
%33 = tail call i32 @putchar(i32 32)
%34 = tail call i32 @putchar(i32 32)
%35 = tail call i32 @putchar(i32 32)
%36 = tail call i32 @putchar(i32 32)
%37 = tail call i32 @putchar(i32 32)
%38 = tail call i32 @putchar(i32 32)
%39 = tail call i32 @putchar(i32 32)
%40 = tail call i32 @putchar(i32 32)
%41 = tail call i32 @putchar(i32 42)
%42 = tail call i32 @putchar(i32 42)
%43 = tail call i32 @putchar(i32 42)
%44 = tail call i32 @putchar(i32 42)
%45 = tail call i32 @putchar(i32 42)
%46 = tail call i32 @putchar(i32 42)
%47 = tail call i32 @putchar(i32 42)
%48 = tail call i32 @putchar(i32 42)
%49 = tail call i32 @putchar(i32 42)
%50 = tail call i32 @putchar(i32 42)
%51 = tail call i32 @putchar(i32 42)
%52 = tail call i32 @putchar(i32 42)
%53 = tail call i32 @putchar(i32 42)
%54 = tail call i32 @putchar(i32 42)
%55 = tail call i32 @putchar(i32 42)
%56 = tail call i32 @putchar(i32 32)
%57 = add nuw nsw i32 %13, 1
%58 = icmp eq i32 %57, %10
br i1 %58, label %59, label %12
59: ; preds = %12, %59
%60 = phi i32 [ %62, %59 ], [ 0, %12 ]
%61 = tail call i32 @putchar(i32 42)
%62 = add nuw nsw i32 %60, 1
%63 = icmp eq i32 %62, %9
br i1 %63, label %64, label %59
64: ; preds = %59
%65 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%66 = add nuw nsw i32 %11, 2
%67 = icmp ult i32 %11, 7
%68 = add nuw nsw i32 %10, 2
%69 = add nuw nsw i32 %9, 4
br i1 %67, label %8, label %70
70: ; preds = %64
%71 = tail call i32 @putchar(i32 32)
%72 = add nuw nsw i32 %7, 1
%73 = icmp eq i32 %72, %4
br i1 %73, label %74, label %6
74: ; preds = %70, %0
ret i32 0
}