#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 main() {
  int zeile = 0;
  int spalte = 0;
  char arr[10][10];
  for (zeile = 0; zeile < 10; zeile++) {
    for (spalte = 0; spalte < 10; spalte++) {
      arr[zeile][spalte] = ' ';
    }
  }
  for (zeile = 0; zeile < 10; zeile++) {
    if (zeile == 0 || zeile == 10 - 1) {
      for (spalte = 1; spalte < 10 - 1; spalte++) {
        arr[zeile][spalte] = '*';
      }
    } else {
      arr[zeile][0] = '*';
      arr[zeile][10 - 1] = '*';
      arr[zeile][10 - 1 - zeile] = '*';
    }
  }
  for (zeile = 0; zeile < 10; zeile++) {
    for (spalte = 0; spalte < 10; spalte++) {
      printf("%c", arr[zeile][spalte]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1187 <main+0x77>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    1174 <main+0x64>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1145 <main+0x35>
jmp    1179 <main+0x69>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    123d <main+0x12d>
cmpl   $0x0,-0x8(%rbp)
je     11ac <main+0x9c>
cmpl   $0x9,-0x8(%rbp)
jne    11e7 <main+0xd7>
movl   $0x1,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    11e2 <main+0xd2>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11b3 <main+0xa3>
jmp    122a <main+0x11a>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movb   $0x2a,(%rax)
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movb   $0x2a,0x9(%rax)
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
mov    $0x9,%ecx
sub    -0x8(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x2a,(%rax,%rcx,1)
jmp    122f <main+0x11f>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118e <main+0x7e>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    12ae <main+0x19e>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    1292 <main+0x182>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1255 <main+0x145>
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1244 <main+0x134>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x70,%rsp
movaps 0xee4(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movl   $0x20202020,0x60(%rsp)
20
movabs $0x2a2a2a2a2a2a2a2a,%rax
2a 2a 2a
mov    %rax,0x1(%rsp)
movb   $0x2a,0xa(%rsp)
movw   $0x2a2a,0x12(%rsp)
movb   $0x2a,0x14(%rsp)
movw   $0x2a2a,0x1d(%rsp)
movb   $0x2a,0x1b(%rsp)
movw   $0x2a2a,0x27(%rsp)
movb   $0x2a,0x24(%rsp)
movw   $0x2a2a,0x31(%rsp)
movb   $0x2a,0x2d(%rsp)
movw   $0x2a2a,0x3b(%rsp)
movb   $0x2a,0x36(%rsp)
movb   $0x2a,0x45(%rsp)
movb   $0x2a,0x3f(%rsp)
movb   $0x2a,0x46(%rsp)
movb   $0x2a,0x4f(%rsp)
movb   $0x2a,0x48(%rsp)
movb   $0x2a,0x50(%rsp)
movb   $0x2a,0x59(%rsp)
movb   $0x2a,0x51(%rsp)
mov    %rax,0x5b(%rsp)
mov    $0x20,%al
mov    $0xa,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
call   1030 <putchar@plt>
movsbl -0x9(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x8(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x7(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x6(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x5(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x4(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x2(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x1(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    $0x64,%rbx
je     124c <main+0x13c>
movzbl (%rsp,%rbx,1),%eax
add    $0xa,%rbx
jmp    11d0 <main+0xc0>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
ret

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

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