#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 /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n;
  const char *varnamet = "t", *varnamelong = "txchg", *varname;
  scanf("%d", &n);
  if (n < 1 || n > 26) {
    printf("//Please enter 1~26\n");
    return 0;
  }
  varname = ((n <= 't' - 'a') ? varnamet : varnamelong);
  int xhl, xha, xhb;
  printf("#include <stdio.h>\n"
         "int main(void)\n"
         "{\n"
         "\tint ");
  for (xhl = 0; xhl < n; xhl++)
    printf("%c,", 'a' + xhl);
  printf("%s;\n", varname);
  printf("\tprintf(\"Please enter %d numbers:\\n\");\n", n);
  printf("\tscanf(\"");
  for (xhl = 0; xhl < n; xhl++)
    printf("%%d");
  printf("\"");
  for (xhl = 0; xhl < n; xhl++)
    printf(",&%c", 'a' + xhl);
  printf(");\n");
  for (xha = 0; xha < n; xha++)
    for (xhb = xha + 1; xhb < n; xhb++) {
      printf("\tif(%c>%c)\n"
             "\t{\n"
             "\t\t%s=%c;\n"
             "\t\t%c=%c;\n"
             "\t\t%c=%s;\n"
             "\t}\n",
             xha + 'a', xhb + 'a', varname, xha + 'a', xha + 'a', xhb + 'a',
             xhb + 'a', varname);
    }
  printf("\tprintf(\"");
  for (xhl = 0; xhl < n; xhl++) {
    printf("%%d");
    if (xhl == n - 1)
      printf("\\n\"");
    else
      printf(" ");
  }
  for (xhl = 0; xhl < n; xhl++) {
    printf(",%c", xhl + 'a');
  }
  printf(");\n");
  printf("\treturn 0;\n"
         "}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xec1(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xf36(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jl     1169 <main+0x49>
cmpl   $0x1a,-0x8(%rbp)
jle    1183 <main+0x63>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1403 <main+0x2e3>
cmpl   $0x13,-0x8(%rbp)
jg     119a <main+0x7a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    11a2 <main+0x82>
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ed <main+0xcd>
mov    -0x24(%rbp),%esi
add    $0x61,%esi
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11bf <main+0x9f>
mov    -0x20(%rbp),%rsi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    124d <main+0x12d>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1225 <main+0x105>
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1290 <main+0x170>
mov    -0x24(%rbp),%esi
add    $0x61,%esi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1262 <main+0x142>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1337 <main+0x217>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1324 <main+0x204>
mov    -0x28(%rbp),%esi
add    $0x61,%esi
mov    -0x2c(%rbp),%edx
add    $0x61,%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8d
add    $0x61,%r8d
mov    -0x28(%rbp),%r9d
add    $0x61,%r9d
mov    -0x2c(%rbp),%r11d
add    $0x61,%r11d
mov    -0x2c(%rbp),%r10d
add    $0x61,%r10d
mov    -0x20(%rbp),%rax
lea    0xd89(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ba <main+0x19a>
jmp    1329 <main+0x209>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12a5 <main+0x185>
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ab <main+0x28b>
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    138a <main+0x26a>
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1398 <main+0x278>
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    139d <main+0x27d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    134c <main+0x22c>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13e0 <main+0x2c0>
mov    -0x24(%rbp),%esi
add    $0x61,%esi
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13b2 <main+0x292>
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf1b(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x1b(%rax),%ecx
cmp    $0xffffffe6,%ecx
jae    1174 <main+0x34>
lea    0xf55(%rip),%rdi
jmp    1379 <main+0x239>
cmp    $0x14,%eax
lea    0xe82(%rip),%rax
lea    0xe7d(%rip),%r15
cmovb  %rax,%r15
lea    0xe78(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11c6 <main+0x86>
lea    0xe8d(%rip),%rbx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
lea    0x61(%rbp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     11b0 <main+0x70>
lea    0xe69(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe73(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1223 <main+0xe3>
lea    0xe67(%rip),%rbx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     1210 <main+0xd0>
mov    $0x22,%edi
call   1030 <putchar@plt>
cmpl   $0x0,0x4(%rsp)
jle    1256 <main+0x116>
lea    0xe35(%rip),%rbx
xor    %ebp,%ebp
nopl   (%rax)
lea    0x61(%rbp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     1240 <main+0x100>
lea    0xe57(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    12d6 <main+0x196>
mov    $0x62,%ebp
lea    0xdff(%rip),%r14
xor    %r13d,%r13d
jmp    1288 <main+0x148>
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebp
cmp    %eax,%r13d
jge    12d6 <main+0x196>
mov    %r13d,%r12d
lea    0x1(%r12),%r13d
cmp    %eax,%r13d
jge    1280 <main+0x140>
add    $0x61,%r12d
mov    %ebp,%ebx
nopl   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    %r14,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %r15,%rcx
mov    %r12d,%r8d
mov    %r12d,%r9d
xor    %eax,%eax
push   %r15
push   %rbx
push   %rbx
call   1050 <printf@plt>
add    $0x20,%rsp
mov    0x4(%rsp),%eax
lea    0x1(%rbx),%ecx
add    $0xffffffa0,%ebx
cmp    %eax,%ebx
mov    %ecx,%ebx
jl     12a0 <main+0x160>
jmp    1280 <main+0x140>
lea    0xdc5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1366 <main+0x226>
lea    0xd7a(%rip),%rbx
lea    0xdb3(%rip),%r14
xor    %ebp,%ebp
jmp    1315 <main+0x1d5>
nopl   (%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    0x4(%rsp),%eax
cmp    %eax,%ebp
jge    1336 <main+0x1f6>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    %eax,%ebp
jne    1300 <main+0x1c0>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    130a <main+0x1ca>
test   %eax,%eax
jle    1366 <main+0x226>
lea    0xd6f(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x61(%rbp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     1350 <main+0x210>
lea    0xd47(%rip),%rdi
call   1040 <puts@plt>
lea    0xd3e(%rip),%rdi
call   1040 <puts@plt>
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"t\00"
@.str.1 = [6 x i8] c"txchg\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [21 x i8] c"//Please enter 1~26\0A\00"
@.str.4 = [42 x i8] c"#include <stdio.h>\0Aint main(void)\0A{\0A\09int \00"
@.str.5 = [4 x i8] c"%c,\00"
@.str.6 = [5 x i8] c"%s;\0A\00"
@.str.7 = [40 x i8] c"\09printf(\22Please enter %d numbers:\\n\22);\0A\00"
@.str.8 = [9 x i8] c"\09scanf(\22\00"
@.str.9 = [4 x i8] c"%%d\00"
@.str.10 = [2 x i8] c"\22\00"
@.str.11 = [5 x i8] c",&%c\00"
@.str.12 = [4 x i8] c");\0A\00"
@.str.13 = [45 x i8] c"\09if(%c>%c)\0A\09{\0A\09\09%s=%c;\0A\09\09%c=%c;\0A\09\09%c=%s;\0A\09}\0A\00"
@.str.14 = [10 x i8] c"\09printf(\22\00"
@.str.15 = [4 x i8] c"\\n\22\00"
@.str.16 = [2 x i8] c" \00"
@.str.17 = [4 x i8] c",%c\00"
@.str.18 = [14 x i8] c"\09return 0;\0A}\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %4
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 1
br i1 %11, label %15, label %12
12: ; preds = %0
%13 = load i32, i32* %2
%14 = icmp sgt i32 %13, 26
br i1 %14, label %15, label %17
15: ; preds = %12, %0
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %137
17: ; preds = %12
%18 = load i32, i32* %2
%19 = icmp sle i32 %18, 19
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load i8*, i8** %3
br label %24
22: ; preds = %17
%23 = load i8*, i8** %4
br label %24
24: ; preds = %22, %20
%25 = phi i8* [ %21, %20 ], [ %23, %22 ]
store i8* %25, i8** %5
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %6
br label %27
27: ; preds = %35, %24
%28 = load i32, i32* %6
%29 = load i32, i32* %2
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %38
31: ; preds = %27
%32 = load i32, i32* %6
%33 = add nsw i32 97, %32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %31
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %27
38: ; preds = %27
%39 = load i8*, i8** %5
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %39)
%41 = load i32, i32* %2
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %6
br label %44
44: ; preds = %50, %38
%45 = load i32, i32* %6
%46 = load i32, i32* %2
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %44
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %50
50: ; preds = %48
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %44
53: ; preds = %44
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %6
br label %55
55: ; preds = %63, %53
%56 = load i32, i32* %6
%57 = load i32, i32* %2
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %66
59: ; preds = %55
%60 = load i32, i32* %6
%61 = add nsw i32 97, %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %61)
br label %63
63: ; preds = %59
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
br label %55
66: ; preds = %55
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %7
br label %68
68: ; preds = %99, %66
%69 = load i32, i32* %7
%70 = load i32, i32* %2
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %102
72: ; preds = %68
%73 = load i32, i32* %7
%74 = add nsw i32 %73, 1
store i32 %74, i32* %8
br label %75
75: ; preds = %95, %72
%76 = load i32, i32* %8
%77 = load i32, i32* %2
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %98
79: ; preds = %75
%80 = load i32, i32* %7
%81 = add nsw i32 %80, 97
%82 = load i32, i32* %8
%83 = add nsw i32 %82, 97
%84 = load i8*, i8** %5
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 97
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 97
%89 = load i32, i32* %8
%90 = add nsw i32 %89, 97
%91 = load i32, i32* %8
%92 = add nsw i32 %91, 97
%93 = load i8*, i8** %5
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i32 %81, i32 %83, i8* %84, i32 %86, i32 %88, i32 %90, i32 %92, i8* %93)
br label %95
95: ; preds = %79
%96 = load i32, i32* %8
%97 = add nsw i32 %96, 1
store i32 %97, i32* %8
br label %75
98: ; preds = %75
br label %99
99: ; preds = %98
%100 = load i32, i32* %7
%101 = add nsw i32 %100, 1
store i32 %101, i32* %7
br label %68
102: ; preds = %68
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %6
br label %104
104: ; preds = %119, %102
%105 = load i32, i32* %6
%106 = load i32, i32* %2
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %122
108: ; preds = %104
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%110 = load i32, i32* %6
%111 = load i32, i32* %2
%112 = sub nsw i32 %111, 1
%113 = icmp eq i32 %110, %112
br i1 %113, label %114, label %116
114: ; preds = %108
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
br label %118
116: ; preds = %108
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %118
118: ; preds = %116, %114
br label %119
119: ; preds = %118
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 1
store i32 %121, i32* %6
br label %104
122: ; preds = %104
store i32 0, i32* %6
br label %123
123: ; preds = %131, %122
%124 = load i32, i32* %6
%125 = load i32, i32* %2
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %134
127: ; preds = %123
%128 = load i32, i32* %6
%129 = add nsw i32 %128, 97
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i32 %129)
br label %131
131: ; preds = %127
%132 = load i32, i32* %6
%133 = add nsw i32 %132, 1
store i32 %133, i32* %6
br label %123
134: ; preds = %123
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %1
br label %137
137: ; preds = %134, %15
%138 = load i32, i32* %1
ret i32 %138
}

LLVM IR (-O2):
@.str = [2 x i8] c"t\00"
@.str.1 = [6 x i8] c"txchg\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [42 x i8] c"#include <stdio.h>\0Aint main(void)\0A{\0A\09int \00"
@.str.5 = [4 x i8] c"%c,\00"
@.str.6 = [5 x i8] c"%s;\0A\00"
@.str.7 = [40 x i8] c"\09printf(\22Please enter %d numbers:\\n\22);\0A\00"
@.str.8 = [9 x i8] c"\09scanf(\22\00"
@.str.9 = [4 x i8] c"%%d\00"
@.str.11 = [5 x i8] c",&%c\00"
@.str.13 = [45 x i8] c"\09if(%c>%c)\0A\09{\0A\09\09%s=%c;\0A\09\09%c=%c;\0A\09\09%c=%s;\0A\09}\0A\00"
@.str.14 = [10 x i8] c"\09printf(\22\00"
@.str.15 = [4 x i8] c"\\n\22\00"
@.str.17 = [4 x i8] c",%c\00"
@str.19 = [3 x i8] c");\00"
@str.20 = [13 x i8] c"\09return 0;\0A}\00"
@str.21 = [20 x i8] c"//Please enter 1~26\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add i32 %4, -27
%6 = icmp ult i32 %5, -26
br i1 %6, label %94, label %7
7: ; preds = %0
%8 = icmp ult i32 %4, 20
%9 = select i1 %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %20
13: ; preds = %7, %13
%14 = phi i32 [ %17, %13 ], [ 0, %7 ]
%15 = add nuw nsw i32 %14, 97
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = add nuw nsw i32 %14, 1
%18 = load i32, i32* %1
%19 = icmp slt i32 %17, %18
br i1 %19, label %13, label %20
20: ; preds = %13, %7
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%22 = load i32, i32* %1
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%25 = load i32, i32* %1
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %20, %27
%28 = phi i32 [ %30, %27 ], [ 0, %20 ]
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%30 = add nuw nsw i32 %28, 1
%31 = load i32, i32* %1
%32 = icmp slt i32 %30, %31
br i1 %32, label %27, label %33
33: ; preds = %27, %20
%34 = call i32 @putchar(i32 34)
%35 = load i32, i32* %1
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %33, %37
%38 = phi i32 [ %41, %37 ], [ 0, %33 ]
%39 = add nuw nsw i32 %38, 97
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %39)
%41 = add nuw nsw i32 %38, 1
%42 = load i32, i32* %1
%43 = icmp slt i32 %41, %42
br i1 %43, label %37, label %44
44: ; preds = %37, %33
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.19, i64 0, i64 0))
%46 = load i32, i32* %1
%47 = icmp sgt i32 %46, 0
br i1 %47, label %51, label %65
48: ; preds = %58, %51
%49 = phi i32 [ %52, %51 ], [ %63, %58 ]
%50 = icmp slt i32 %54, %49
br i1 %50, label %51, label %65
51: ; preds = %44, %48
%52 = phi i32 [ %49, %48 ], [ %46, %44 ]
%53 = phi i32 [ %54, %48 ], [ 0, %44 ]
%54 = add nuw nsw i32 %53, 1
%55 = icmp slt i32 %54, %52
br i1 %55, label %56, label %48
56: ; preds = %51
%57 = add nuw nsw i32 %53, 97
br label %58
58: ; preds = %56, %58
%59 = phi i32 [ %54, %56 ], [ %62, %58 ]
%60 = add nuw nsw i32 %59, 97
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i32 %57, i32 %60, i8* %9, i32 %57, i32 %57, i32 %60, i32 %60, i8* %9)
%62 = add nuw nsw i32 %59, 1
%63 = load i32, i32* %1
%64 = icmp slt i32 %62, %63
br i1 %64, label %58, label %48
65: ; preds = %48, %44
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%67 = load i32, i32* %1
%68 = icmp sgt i32 %67, 0
br i1 %68, label %71, label %92
69: ; preds = %81
%70 = icmp sgt i32 %83, 0
br i1 %70, label %85, label %92
71: ; preds = %65, %81
%72 = phi i32 [ %82, %81 ], [ 0, %65 ]
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%74 = load i32, i32* %1
%75 = add nsw i32 %74, -1
%76 = icmp eq i32 %72, %75
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
br label %81
79: ; preds = %71
%80 = call i32 @putchar(i32 32)
br label %81
81: ; preds = %77, %79
%82 = add nuw nsw i32 %72, 1
%83 = load i32, i32* %1
%84 = icmp slt i32 %82, %83
br i1 %84, label %71, label %69
85: ; preds = %69, %85
%86 = phi i32 [ %89, %85 ], [ 0, %69 ]
%87 = add nuw nsw i32 %86, 97
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i32 %87)
%89 = add nuw nsw i32 %86, 1
%90 = load i32, i32* %1
%91 = icmp slt i32 %89, %90
br i1 %91, label %85, label %92
92: ; preds = %85, %65, %69
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.19, i64 0, i64 0))
br label %94
94: ; preds = %0, %92
%95 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.20, i64 0, i64 0), %92 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @str.21, i64 0, i64 0), %0 ]
%96 = call i32 @puts(i8* dereferenceable(1) %95)
ret i32 0
}