void deep_dish_pizza(n) {
  int i, l = n * 3 + 6;
  ;
  char u[l];
  for (i = 0; i < l;)
    u[i++] = '_';
  u[l] = i = 0;
  printf("/\\%.*s/\\\n", l - 4, u);
  for (; i < n; i++)
    printf("%*s\\ \\%*.s/ /\n", i, "", n * 3 - (2 * i), "");
  printf("%*.s\\ \\%.*s/ /\n%*.s\\%.*s/\n", i, "", n, u, i + 1, "", n + 2, u);
}


x86 assembly (clang, -O0):
<deep_dish_pizza>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    %ecx,%eax
lea    0x6(%rax,%rax,2),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    117b <deep_dish_pizza+0x6b>
mov    -0x28(%rbp),%rax
mov    -0x8(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x8(%rbp)
movslq %ecx,%rcx
movb   $0x5f,(%rax,%rcx,1)
jmp    1154 <deep_dish_pizza+0x44>
mov    -0x28(%rbp),%rdx
movl   $0x0,-0x8(%rbp)
movslq -0xc(%rbp),%rax
movb   $0x0,(%rdx,%rax,1)
mov    -0xc(%rbp),%esi
sub    $0x4,%esi
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11e3 <deep_dish_pizza+0xd3>
mov    -0x8(%rbp),%esi
imul   $0x3,-0x4(%rbp),%ecx
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    %eax,%ecx
lea    0xe46(%rip),%rdi
lea    0xe4d(%rip),%r8
mov    %r8,%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a2 <deep_dish_pizza+0x92>
mov    -0x28(%rbp),%rax
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%r9d
add    $0x1,%r9d
mov    -0x4(%rbp),%r10d
add    $0x2,%r10d
lea    0xe15(%rip),%rdi
lea    0xe0d(%rip),%r11
sub    $0x20,%rsp
mov    %r11,%rdx
mov    %rax,%r8
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deep_dish_pizza>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%r15d
lea    (%r15,%r15,2),%ebx
lea    (%r15,%r15,2),%r14d
add    $0x6,%r14d
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
cmp    $0xfffffffb,%ebx
jl     116d <deep_dish_pizza+0x4d>
cmp    $0x2,%r14d
mov    $0x1,%edx
cmovge %r14d,%edx
mov    %r13,%rdi
mov    $0x5f,%esi
call   1040 <memset@plt>
movslq %r14d,%rax
movb   $0x0,0x0(%r13,%rax,1)
lea    0x2(%rbx),%esi
lea    0xe80(%rip),%rdi
xor    %r12d,%r12d
mov    %r13,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
test   %r15d,%r15d
jle    11d8 <deep_dish_pizza+0xb8>
mov    %r13,-0x30(%rbp)
lea    0xe6d(%rip),%r12
lea    0xe74(%rip),%r13
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r14d,%esi
mov    %r13,%rdx
mov    %ebx,%ecx
mov    %r13,%r8
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%r14d
add    $0xfffffffe,%ebx
cmp    %r14d,%r15d
jne    11b0 <deep_dish_pizza+0x90>
mov    %r15d,%r12d
mov    -0x30(%rbp),%r13
lea    0x1(%r12),%r9d
lea    0x2(%r15),%ebx
sub    $0x8,%rsp
lea    0xe2c(%rip),%rdx
lea    0xe26(%rip),%rdi
mov    %r12d,%esi
mov    %r15d,%ecx
mov    %r13,%r8
xor    %eax,%eax
push   %r13
push   %rbx
push   %rdx
call   1030 <printf@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"/\\%.*s/\\\0A\00"
@.str.1 = [15 x i8] c"%*s\\ \\%*.s/ /\0A\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [27 x i8] c"%*.s\\ \\%.*s/ /\0A%*.s\\%.*s/\0A\00"
define void @deep_dish_pizza(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %2
%7 = load i32, i32* %2
%8 = mul nsw i32 %7, 3
%9 = add nsw i32 %8, 6
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %5
%13 = alloca i8, i64 %11
store i64 %11, i64* %6
store i32 0, i32* %3
br label %14
14: ; preds = %18, %1
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, i8* %13, i64 %21
store i8 95, i8* %22
br label %14
23: ; preds = %14
store i32 0, i32* %3
%24 = load i32, i32* %4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %13, i64 %25
store i8 0, i8* %26
%27 = load i32, i32* %4
%28 = sub nsw i32 %27, 4
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %28, i8* %13)
br label %30
30: ; preds = %42, %23
%31 = load i32, i32* %3
%32 = load i32, i32* %2
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %45
34: ; preds = %30
%35 = load i32, i32* %3
%36 = load i32, i32* %2
%37 = mul nsw i32 %36, 3
%38 = load i32, i32* %3
%39 = mul nsw i32 2, %38
%40 = sub nsw i32 %37, %39
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %35, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %40, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %42
42: ; preds = %34
%43 = load i32, i32* %3
%44 = add nsw i32 %43, 1
store i32 %44, i32* %3
br label %30
45: ; preds = %30
%46 = load i32, i32* %3
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = add nsw i32 %48, 1
%50 = load i32, i32* %2
%51 = add nsw i32 %50, 2
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %46, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %47, i8* %13, i32 %49, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %51, i8* %13)
%53 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"/\\%.*s/\\\0A\00"
@.str.1 = [15 x i8] c"%*s\\ \\%*.s/ /\0A\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [27 x i8] c"%*.s\\ \\%.*s/ /\0A%*.s\\%.*s/\0A\00"
define void @deep_dish_pizza(i32 %0) {
%2 = mul nsw i32 %0, 3
%3 = add i32 %2, 6
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = icmp sgt i32 %2, -6
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @llvm.smax.i32(i32 %3, i32 1)
%9 = zext i32 %8 to i64
br label %10
10: ; preds = %7, %1
%11 = sext i32 %3 to i64
%12 = getelementptr inbounds i8, i8* %5, i64 %11
store i8 0, i8* %12
%13 = add nsw i32 %2, 2
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %13, i8* %5)
%15 = icmp sgt i32 %0, 0
br i1 %15, label %16, label %23
16: ; preds = %10, %16
%17 = phi i32 [ %21, %16 ], [ 0, %10 ]
%18 = mul i32 %17, -2
%19 = add i32 %18, %2
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %17, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %19, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%21 = add nuw nsw i32 %17, 1
%22 = icmp eq i32 %21, %0
br i1 %22, label %23, label %16
23: ; preds = %16, %10
%24 = phi i32 [ 0, %10 ], [ %0, %16 ]
%25 = add nuw nsw i32 %24, 1
%26 = add nsw i32 %0, 2
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %24, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %0, i8* %5, i32 %25, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 %26, i8* %5)
ret void
}