#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 */
typedef int /*<<< orphan*/ help_lines;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void show_help(void) {
  char *help_lines[] = {
      "Zero Judge Engine 1.0 - by mingshun (gutspot@qq.com)",
      "Usage: zje [operation]",
      "",
      "Operations:",
      "\tstart  - start judge engine immediately",
      "\tstop   - stop judge engine after the current judge task finished",
      "\tstatus - show status of judge engine",
      "\thelp   - show this help message"};
  for (int i = 0; i < sizeof(help_lines) / sizeof(*help_lines); ++i) {
    printf("%s\n", help_lines[i]);
  }
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x40(%rbp),%rdi
lea    0x2cad(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x44(%rbp)
movslq -0x44(%rbp),%rax
cmp    $0x8,%rax
jae    1175 <show_help+0x55>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,8),%rsi
lea    0xfa8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1144 <show_help+0x24>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rbx
lea    0xff2(%rip),%rbx
lea    0xee1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xfd0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"Zero Judge Engine 1.0 - by mingshun (gutspot@qq.com)\00"
@.str.1 = [23 x i8] c"Usage: zje [operation]\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [12 x i8] c"Operations:\00"
@.str.4 = [41 x i8] c"\09start - start judge engine immediately\00"
@.str.5 = [66 x i8] c"\09stop - stop judge engine after the current judge task finished\00"
@.str.6 = [38 x i8] c"\09status - show status of judge engine\00"
@.str.7 = [33 x i8] c"\09help - show this help message\00"
@__const.show_help.help_lines = [8 x i8*] [i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i32 0, i32 0)]
@.str.8 = [4 x i8] c"%s\0A\00"
define void @show_help() {
%1 = alloca [8 x i8*]
%2 = alloca i32
%3 = bitcast [8 x i8*]* %1 to i8*
store i32 0, i32* %2
br label %4
4: ; preds = %14, %0
%5 = load i32, i32* %2
%6 = sext i32 %5 to i64
%7 = icmp ult i64 %6, 8
br i1 %7, label %8, label %17
8: ; preds = %4
%9 = load i32, i32* %2
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %8
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %4
17: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [53 x i8] c"Zero Judge Engine 1.0 - by mingshun (gutspot@qq.com)\00"
@.str.1 = [23 x i8] c"Usage: zje [operation]\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [12 x i8] c"Operations:\00"
@.str.4 = [41 x i8] c"\09start - start judge engine immediately\00"
@.str.5 = [66 x i8] c"\09stop - stop judge engine after the current judge task finished\00"
@.str.6 = [38 x i8] c"\09status - show status of judge engine\00"
@.str.7 = [33 x i8] c"\09help - show this help message\00"
@.str.8 = [4 x i8] c"%s\0A\00"
define void @show_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
ret void
}