#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(void) {
  int i = 0;
aa:
  printf("我是美女奶茶妹妹!\n");
  goto bb;
  goto aa;
bb:
  printf("昙花一现!\n");
  goto cc;
  return 0;
cc:
  printf("凉茶，王老吉!\n");
  if (++i <= 2)
    goto bb;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x2,%eax
jg     1161 <main+0x51>
jmp    1132 <main+0x22>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [27 x i8] c"\E6\88\91\E6\98\AF\E7\BE\8E\E5\A5\B3\E5\A5\B6\E8\8C\B6\E5\A6\B9\E5\A6\B9!\0A\00"
@.str.1 = [15 x i8] c"\E6\98\99\E8\8A\B1\E4\B8\80\E7\8E\B0!\0A\00"
@.str.2 = [21 x i8] c"\E5\87\89\E8\8C\B6\EF\BC\8C\E7\8E\8B\E8\80\81\E5\90\89!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %0
%4 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %12, %3
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
%11 = icmp sle i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %7
br label %5
13: ; preds = %7
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
@str = [26 x i8] c"\E6\88\91\E6\98\AF\E7\BE\8E\E5\A5\B3\E5\A5\B6\E8\8C\B6\E5\A6\B9\E5\A6\B9!\00"
@str.3 = [14 x i8] c"\E6\98\99\E8\8A\B1\E4\B8\80\E7\8E\B0!\00"
@str.4 = [20 x i8] c"\E5\87\89\E8\8C\B6\EF\BC\8C\E7\8E\8B\E8\80\81\E5\90\89!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.4, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.3, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.4, i64 0, i64 0))
ret i32 0
}