#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() {
  int num, indiv, ten, hundred, thousand, ten_thousand, place;
  printf("请输入一个整数（0-99999）：");
  scanf("%d", &num);
  if (num > 9999)
    place = 5;
  else if (num > 999)
    place = 4;
  else if (num > 99)
    place = 3;
  else if (num > 9)
    place = 2;
  else
    place = 1;
  printf("位数为%d", place);
  printf("每位数字为：");
  ten_thousand = num / 10000;
  thousand = (int)(num - ten_thousand * 10000) / 1000;
  hundred = (int)(num - ten_thousand * 10000 - thousand * 1000) / 100;
  ten =
      (int)(num - ten_thousand * 10000 - thousand * 1000 - hundred * 100) / 10;
  indiv = (int)(num - ten_thousand * 10000 - thousand * 1000 - hundred * 100 -
                ten * 10);
  switch (place) {
  case 5:
    printf("%d,%d,%d,%d,%d", ten_thousand, thousand, hundred, ten, indiv);
    printf("\n反序数字为：");
    printf("%d%d%d%d%d", indiv, ten, hundred, thousand, ten_thousand);
    break;
  case 4:
    printf("%d,%d,%d,%d", thousand, hundred, ten, indiv);
    printf("\n反序数字为：");
    printf("%d%d%d%d", indiv, ten, hundred, thousand);
    break;
  case 3:
    printf("%d,%d,%d", hundred, ten, indiv);
    printf("\n反序数字为：");
    printf("%d%d%d", indiv, ten, hundred);
    break;
  case 2:
    printf("%d,%d", ten, indiv);
    printf("/n反序数字为：");
    printf("%d%d", indiv, ten);
    break;
  case 1:
    printf("%d", indiv);
    printf("/n反序数字为：");
    printf("%d", indiv);
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x270f,-0x8(%rbp)
jle    1166 <main+0x46>
movl   $0x5,-0x20(%rbp)
jmp    11c1 <main+0xa1>
cmpl   $0x3e7,-0x8(%rbp)
jle    117f <main+0x5f>
movl   $0x4,-0x20(%rbp)
jmp    11bc <main+0x9c>
cmpl   $0x63,-0x8(%rbp)
jle    1195 <main+0x75>
movl   $0x3,-0x20(%rbp)
jmp    11b7 <main+0x97>
cmpl   $0x9,-0x8(%rbp)
jle    11ab <main+0x8b>
movl   $0x2,-0x20(%rbp)
jmp    11b2 <main+0x92>
movl   $0x1,-0x20(%rbp)
jmp    11b7 <main+0x97>
jmp    11bc <main+0x9c>
jmp    11c1 <main+0xa1>
mov    -0x20(%rbp),%esi
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x29(%rbp)
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
imul   $0x68db8bad,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2c,%rax
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   $0x2710,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   $0x2710,%ecx,%ecx
sub    %ecx,%eax
mov    -0x18(%rbp),%ecx
imul   $0x3e8,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   $0x2710,%ecx,%ecx
sub    %ecx,%eax
mov    -0x18(%rbp),%ecx
imul   $0x3e8,%ecx,%ecx
sub    %ecx,%eax
mov    -0x14(%rbp),%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   $0x2710,%ecx,%ecx
sub    %ecx,%eax
mov    -0x18(%rbp),%ecx
imul   $0x3e8,%ecx,%ecx
sub    %ecx,%eax
mov    -0x14(%rbp),%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
mov    -0x10(%rbp),%edx
add    %edx,%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x4,%eax
ja     1431 <main+0x311>
mov    -0x28(%rbp),%rax
lea    0xd1e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%r8d
mov    -0xc(%rbp),%r9d
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1431 <main+0x311>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1431 <main+0x311>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1431 <main+0x311>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xca6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1431 <main+0x311>
mov    -0xc(%rbp),%esi
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xc3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xee2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    $0x5,%ebx
cmp    $0x270f,%eax
jg     117b <main+0x5b>
mov    $0x4,%ebx
cmp    $0x3e7,%eax
jg     117b <main+0x5b>
mov    $0x3,%ebx
cmp    $0x63,%eax
jg     117b <main+0x5b>
xor    %ebx,%ebx
cmp    $0xa,%eax
setge  %bl
add    $0x1,%ebx
lea    0xeb8(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x4,%ebx
ja     1371 <main+0x251>
movslq 0x4(%rsp),%rax
imul   $0x68db8bad,%rax,%rbp
mov    %rbp,%rcx
shr    $0x3f,%rcx
sar    $0x2c,%rbp
add    %ecx,%ebp
imul   $0xffffd8f0,%ebp,%ecx
add    %eax,%ecx
movslq %ecx,%rax
imul   $0x10624dd3,%rax,%r13
mov    %r13,%rcx
shr    $0x3f,%rcx
sar    $0x26,%r13
add    %ecx,%r13d
imul   $0xfffffc18,%r13d,%ecx
add    %ecx,%eax
cltq
imul   $0x51eb851f,%rax,%r15
mov    %r15,%rcx
shr    $0x3f,%rcx
sar    $0x25,%r15
add    %ecx,%r15d
imul   $0xffffff9c,%r15d,%ecx
add    %ecx,%eax
movslq %eax,%r14
imul   $0x66666667,%r14,%r12
mov    %r12,%rax
shr    $0x3f,%rax
sar    $0x22,%r12
add    %eax,%r12d
lea    (%r12,%r12,1),%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%r14d
lea    0xdd3(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0xe28(%rip),%rbx
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe36(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1371 <main+0x251>
lea    0xdf1(%rip),%rdi
mov    %r12d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe02(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdef(%rip),%rdi
mov    %r14d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1371 <main+0x251>
lea    0xdb3(%rip),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xda5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdaf(%rip),%rdi
mov    %r14d,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1371 <main+0x251>
lea    0xd6f(%rip),%rdi
mov    %r13d,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd61(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd69(%rip),%rdi
mov    %r14d,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1371 <main+0x251>
lea    0xd28(%rip),%rdi
mov    %ebp,%esi
mov    %r13d,%edx
mov    %r15d,%ecx
mov    %r12d,%r8d
mov    %r14d,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd1b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd21(%rip),%rdi
mov    %r14d,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r13d,%r8d
mov    %ebp,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\B8\80\E4\B8\AA\E6\95\B4\E6\95\B0\EF\BC\880-99999\EF\BC\89\EF\BC\9A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [12 x i8] c"\E4\BD\8D\E6\95\B0\E4\B8\BA%d\00"
@.str.3 = [19 x i8] c"\E6\AF\8F\E4\BD\8D\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.4 = [15 x i8] c"%d,%d,%d,%d,%d\00"
@.str.5 = [20 x i8] c"\0A\E5\8F\8D\E5\BA\8F\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.6 = [11 x i8] c"%d%d%d%d%d\00"
@.str.7 = [12 x i8] c"%d,%d,%d,%d\00"
@.str.8 = [9 x i8] c"%d%d%d%d\00"
@.str.9 = [9 x i8] c"%d,%d,%d\00"
@.str.10 = [7 x i8] c"%d%d%d\00"
@.str.11 = [6 x i8] c"%d,%d\00"
@.str.12 = [21 x i8] c"/n\E5\8F\8D\E5\BA\8F\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.13 = [5 x i8] c"%d%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 9999
br i1 %12, label %13, label %14
13: ; preds = %0
store i32 5, i32* %8
br label %30
14: ; preds = %0
%15 = load i32, i32* %2
%16 = icmp sgt i32 %15, 999
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 4, i32* %8
br label %29
18: ; preds = %14
%19 = load i32, i32* %2
%20 = icmp sgt i32 %19, 99
br i1 %20, label %21, label %22
21: ; preds = %18
store i32 3, i32* %8
br label %28
22: ; preds = %18
%23 = load i32, i32* %2
%24 = icmp sgt i32 %23, 9
br i1 %24, label %25, label %26
25: ; preds = %22
store i32 2, i32* %8
br label %27
26: ; preds = %22
store i32 1, i32* %8
br label %27
27: ; preds = %26, %25
br label %28
28: ; preds = %27, %21
br label %29
29: ; preds = %28, %17
br label %30
30: ; preds = %29, %13
%31 = load i32, i32* %8
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%34 = load i32, i32* %2
%35 = sdiv i32 %34, 10000
store i32 %35, i32* %7
%36 = load i32, i32* %2
%37 = load i32, i32* %7
%38 = mul nsw i32 %37, 10000
%39 = sub nsw i32 %36, %38
%40 = sdiv i32 %39, 1000
store i32 %40, i32* %6
%41 = load i32, i32* %2
%42 = load i32, i32* %7
%43 = mul nsw i32 %42, 10000
%44 = sub nsw i32 %41, %43
%45 = load i32, i32* %6
%46 = mul nsw i32 %45, 1000
%47 = sub nsw i32 %44, %46
%48 = sdiv i32 %47, 100
store i32 %48, i32* %5
%49 = load i32, i32* %2
%50 = load i32, i32* %7
%51 = mul nsw i32 %50, 10000
%52 = sub nsw i32 %49, %51
%53 = load i32, i32* %6
%54 = mul nsw i32 %53, 1000
%55 = sub nsw i32 %52, %54
%56 = load i32, i32* %5
%57 = mul nsw i32 %56, 100
%58 = sub nsw i32 %55, %57
%59 = sdiv i32 %58, 10
store i32 %59, i32* %4
%60 = load i32, i32* %2
%61 = load i32, i32* %7
%62 = mul nsw i32 %61, 10000
%63 = sub nsw i32 %60, %62
%64 = load i32, i32* %6
%65 = mul nsw i32 %64, 1000
%66 = sub nsw i32 %63, %65
%67 = load i32, i32* %5
%68 = mul nsw i32 %67, 100
%69 = sub nsw i32 %66, %68
%70 = load i32, i32* %4
%71 = mul nsw i32 %70, 10
%72 = sub nsw i32 %69, %71
store i32 %72, i32* %3
%73 = load i32, i32* %8
switch i32 %73, label %124 [
i32 5, label %74
i32 4, label %88
i32 3, label %100
i32 2, label %110
i32 1, label %118
]
74: ; preds = %30
%75 = load i32, i32* %7
%76 = load i32, i32* %6
%77 = load i32, i32* %5
%78 = load i32, i32* %4
%79 = load i32, i32* %3
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %75, i32 %76, i32 %77, i32 %78, i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%82 = load i32, i32* %3
%83 = load i32, i32* %4
%84 = load i32, i32* %5
%85 = load i32, i32* %6
%86 = load i32, i32* %7
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %82, i32 %83, i32 %84, i32 %85, i32 %86)
br label %124
88: ; preds = %30
%89 = load i32, i32* %6
%90 = load i32, i32* %5
%91 = load i32, i32* %4
%92 = load i32, i32* %3
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %89, i32 %90, i32 %91, i32 %92)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%95 = load i32, i32* %3
%96 = load i32, i32* %4
%97 = load i32, i32* %5
%98 = load i32, i32* %6
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %95, i32 %96, i32 %97, i32 %98)
br label %124
100: ; preds = %30
%101 = load i32, i32* %5
%102 = load i32, i32* %4
%103 = load i32, i32* %3
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %101, i32 %102, i32 %103)
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%106 = load i32, i32* %3
%107 = load i32, i32* %4
%108 = load i32, i32* %5
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %106, i32 %107, i32 %108)
br label %124
110: ; preds = %30
%111 = load i32, i32* %4
%112 = load i32, i32* %3
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %111, i32 %112)
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%115 = load i32, i32* %3
%116 = load i32, i32* %4
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 %115, i32 %116)
br label %124
118: ; preds = %30
%119 = load i32, i32* %3
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%122 = load i32, i32* %3
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %122)
br label %124
124: ; preds = %30, %118, %110, %100, %88, %74
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\B8\80\E4\B8\AA\E6\95\B4\E6\95\B0\EF\BC\880-99999\EF\BC\89\EF\BC\9A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [12 x i8] c"\E4\BD\8D\E6\95\B0\E4\B8\BA%d\00"
@.str.3 = [19 x i8] c"\E6\AF\8F\E4\BD\8D\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.4 = [15 x i8] c"%d,%d,%d,%d,%d\00"
@.str.5 = [20 x i8] c"\0A\E5\8F\8D\E5\BA\8F\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.6 = [11 x i8] c"%d%d%d%d%d\00"
@.str.7 = [12 x i8] c"%d,%d,%d,%d\00"
@.str.8 = [9 x i8] c"%d%d%d%d\00"
@.str.9 = [9 x i8] c"%d,%d,%d\00"
@.str.10 = [7 x i8] c"%d%d%d\00"
@.str.11 = [6 x i8] c"%d,%d\00"
@.str.12 = [21 x i8] c"/n\E5\8F\8D\E5\BA\8F\E6\95\B0\E5\AD\97\E4\B8\BA\EF\BC\9A\00"
@.str.13 = [5 x i8] c"%d%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp sgt i32 %5, 9999
br i1 %6, label %14, label %7
7: ; preds = %0
%8 = icmp sgt i32 %5, 999
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = icmp sgt i32 %5, 99
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = icmp sgt i32 %5, 9
%13 = select i1 %12, i32 2, i32 1
br label %14
14: ; preds = %11, %9, %7, %0
%15 = phi i32 [ 5, %0 ], [ 4, %7 ], [ 3, %9 ], [ %13, %11 ]
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* %1
%19 = sdiv i32 %18, 10000
%20 = mul nsw i32 %19, -10000
%21 = add i32 %20, %18
%22 = sdiv i32 %21, 1000
%23 = mul nsw i32 %22, -1000
%24 = add i32 %23, %21
%25 = sdiv i32 %24, 100
%26 = mul nsw i32 %25, -100
%27 = add i32 %26, %24
%28 = sdiv i32 %27, 10
%29 = mul nsw i32 %28, -10
%30 = add i32 %29, %27
switch i32 %15, label %51 [
i32 5, label %31
i32 4, label %35
i32 3, label %39
i32 2, label %43
i32 1, label %47
]
31: ; preds = %14
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %19, i32 %22, i32 %25, i32 %28, i32 %30)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %30, i32 %28, i32 %25, i32 %22, i32 %19)
br label %51
35: ; preds = %14
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %22, i32 %25, i32 %28, i32 %30)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %30, i32 %28, i32 %25, i32 %22)
br label %51
39: ; preds = %14
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %25, i32 %28, i32 %30)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %30, i32 %28, i32 %25)
br label %51
43: ; preds = %14
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %28, i32 %30)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 %30, i32 %28)
br label %51
47: ; preds = %14
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %30)
br label %51
51: ; preds = %14, %47, %43, %39, %35, %31
ret i32 0
}