#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 *);
void Tusachi(int Tus) {
  int *names[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "00"};
  if ((Tus >= 1) && (Tus <= 999)) {
    printf(" %s", names[0]);
  } else if ((Tus >= 1000) && (Tus <= 1999)) {
    printf(" %s", names[1]);
  } else if ((Tus >= 2000) && (Tus <= 2999)) {
    printf(" %s", names[2]);
  } else if ((Tus >= 3000) && (Tus <= 3999)) {
    printf(" %s", names[3]);
  } else if ((Tus >= 4000) && (Tus <= 4999)) {
    printf(" %s", names[4]);
  } else if ((Tus >= 5000) && (Tus <= 5999)) {
    printf(" %s", names[5]);
  } else if ((Tus >= 6000) && (Tus <= 6999)) {
    printf(" %s", names[6]);
  } else if ((Tus >= 7000) && (Tus <= 7999)) {
    printf(" %s", names[7]);
  } else if ((Tus >= 8000) && (Tus <= 8999)) {
    printf(" %s", names[8]);
  } else if ((Tus >= 9000) && (Tus <= 9999)) {
    printf(" %s", names[9]);
  }
}


x86 assembly (clang, -O0):
<Tusachi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c8a(%rip),%rsi
mov    $0x58,%edx
call   1040 <memcpy@plt>
cmpl   $0x1,-0x4(%rbp)
jl     116c <Tusachi+0x4c>
cmpl   $0x3e7,-0x4(%rbp)
jg     116c <Tusachi+0x4c>
mov    -0x60(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
jmp    133b <Tusachi+0x21b>
cmpl   $0x3e8,-0x4(%rbp)
jl     119b <Tusachi+0x7b>
cmpl   $0x7cf,-0x4(%rbp)
jg     119b <Tusachi+0x7b>
mov    -0x58(%rbp),%rsi
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
jmp    1336 <Tusachi+0x216>
cmpl   $0x7d0,-0x4(%rbp)
jl     11ca <Tusachi+0xaa>
cmpl   $0xbb7,-0x4(%rbp)
jg     11ca <Tusachi+0xaa>
mov    -0x50(%rbp),%rsi
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    1331 <Tusachi+0x211>
cmpl   $0xbb8,-0x4(%rbp)
jl     11f9 <Tusachi+0xd9>
cmpl   $0xf9f,-0x4(%rbp)
jg     11f9 <Tusachi+0xd9>
mov    -0x48(%rbp),%rsi
lea    0xe26(%rip),%rdi
call   1030 <printf@plt>
jmp    132c <Tusachi+0x20c>
cmpl   $0xfa0,-0x4(%rbp)
jl     1228 <Tusachi+0x108>
cmpl   $0x1387,-0x4(%rbp)
jg     1228 <Tusachi+0x108>
mov    -0x40(%rbp),%rsi
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
jmp    1327 <Tusachi+0x207>
cmpl   $0x1388,-0x4(%rbp)
jl     1257 <Tusachi+0x137>
cmpl   $0x176f,-0x4(%rbp)
jg     1257 <Tusachi+0x137>
mov    -0x38(%rbp),%rsi
lea    0xdc8(%rip),%rdi
call   1030 <printf@plt>
jmp    1322 <Tusachi+0x202>
cmpl   $0x1770,-0x4(%rbp)
jl     1286 <Tusachi+0x166>
cmpl   $0x1b57,-0x4(%rbp)
jg     1286 <Tusachi+0x166>
mov    -0x30(%rbp),%rsi
lea    0xd99(%rip),%rdi
call   1030 <printf@plt>
jmp    131d <Tusachi+0x1fd>
cmpl   $0x1b58,-0x4(%rbp)
jl     12b5 <Tusachi+0x195>
cmpl   $0x1f3f,-0x4(%rbp)
jg     12b5 <Tusachi+0x195>
mov    -0x28(%rbp),%rsi
lea    0xd6a(%rip),%rdi
call   1030 <printf@plt>
jmp    1318 <Tusachi+0x1f8>
cmpl   $0x1f40,-0x4(%rbp)
jl     12e4 <Tusachi+0x1c4>
cmpl   $0x2327,-0x4(%rbp)
jg     12e4 <Tusachi+0x1c4>
mov    -0x20(%rbp),%rsi
lea    0xd3b(%rip),%rdi
call   1030 <printf@plt>
jmp    1313 <Tusachi+0x1f3>
cmpl   $0x2328,-0x4(%rbp)
jl     130e <Tusachi+0x1ee>
cmpl   $0x270f,-0x4(%rbp)
jg     130e <Tusachi+0x1ee>
mov    -0x18(%rbp),%rsi
lea    0xd0c(%rip),%rdi
call   1030 <printf@plt>
jmp    1313 <Tusachi+0x1f3>
jmp    1318 <Tusachi+0x1f8>
jmp    131d <Tusachi+0x1fd>
jmp    1322 <Tusachi+0x202>
jmp    1327 <Tusachi+0x207>
jmp    132c <Tusachi+0x20c>
jmp    1331 <Tusachi+0x211>
jmp    1336 <Tusachi+0x216>
jmp    133b <Tusachi+0x21b>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tusachi>:
lea    -0x1(%rdi),%eax
cmp    $0x3e7,%eax
jae    112d <Tusachi+0x1d>
lea    0xedf(%rip),%rsi
lea    0xeec(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x3e8(%rdi),%eax
cmp    $0x3e8,%eax
jae    114d <Tusachi+0x3d>
lea    0xec1(%rip),%rsi
lea    0xecc(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x7d0(%rdi),%eax
cmp    $0x3e8,%eax
jae    116d <Tusachi+0x5d>
lea    0xea3(%rip),%rsi
lea    0xeac(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0xbb8(%rdi),%eax
cmp    $0x3e8,%eax
jae    118d <Tusachi+0x7d>
lea    0xe85(%rip),%rsi
lea    0xe8c(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0xfa0(%rdi),%eax
cmp    $0x3e8,%eax
jae    11ad <Tusachi+0x9d>
lea    0xe67(%rip),%rsi
lea    0xe6c(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x1388(%rdi),%eax
cmp    $0x3e8,%eax
jae    11cd <Tusachi+0xbd>
lea    0xe49(%rip),%rsi
lea    0xe4c(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x1770(%rdi),%eax
cmp    $0x3e8,%eax
jae    11ed <Tusachi+0xdd>
lea    0xe2b(%rip),%rsi
lea    0xe2c(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x1b58(%rdi),%eax
cmp    $0x3e8,%eax
jae    120d <Tusachi+0xfd>
lea    0xe0d(%rip),%rsi
lea    0xe0c(%rip),%rdi
jmp    1030 <printf@plt>
lea    -0x1f40(%rdi),%eax
cmp    $0x3e8,%eax
jae    122d <Tusachi+0x11d>
lea    0xdef(%rip),%rsi
lea    0xdec(%rip),%rdi
jmp    1030 <printf@plt>
add    $0xffffdcd8,%edi
cmp    $0x3e7,%edi
ja     124e <Tusachi+0x13e>
lea    0xdd0(%rip),%rsi
lea    0xdcb(%rip),%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [2 x i8] c"3\00"
@.str.4 = [2 x i8] c"4\00"
@.str.5 = [2 x i8] c"5\00"
@.str.6 = [2 x i8] c"6\00"
@.str.7 = [2 x i8] c"7\00"
@.str.8 = [2 x i8] c"8\00"
@.str.9 = [2 x i8] c"9\00"
@.str.10 = [3 x i8] c"00\00"
@__const.Tusachi.names = [11 x i32*] [i32* bitcast ([2 x i8]* @.str to i32*), i32* bitcast ([2 x i8]* @.str.1 to i32*), i32* bitcast ([2 x i8]* @.str.2 to i32*), i32* bitcast ([2 x i8]* @.str.3 to i32*), i32* bitcast ([2 x i8]* @.str.4 to i32*), i32* bitcast ([2 x i8]* @.str.5 to i32*), i32* bitcast ([2 x i8]* @.str.6 to i32*), i32* bitcast ([2 x i8]* @.str.7 to i32*), i32* bitcast ([2 x i8]* @.str.8 to i32*), i32* bitcast ([2 x i8]* @.str.9 to i32*), i32* bitcast ([3 x i8]* @.str.10 to i32*)]
@.str.11 = [4 x i8] c" %s\00"
define void @Tusachi(i32 %0) {
%2 = alloca i32
%3 = alloca [11 x i32*]
store i32 %0, i32* %2
%4 = bitcast [11 x i32*]* %3 to i8*
%5 = load i32, i32* %2
%6 = icmp sge i32 %5, 1
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 999
br i1 %9, label %10, label %14
10: ; preds = %7
%11 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 0
%12 = load i32*, i32** %11
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %12)
br label %113
14: ; preds = %7, %1
%15 = load i32, i32* %2
%16 = icmp sge i32 %15, 1000
br i1 %16, label %17, label %24
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp sle i32 %18, 1999
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 1
%22 = load i32*, i32** %21
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %22)
br label %112
24: ; preds = %17, %14
%25 = load i32, i32* %2
%26 = icmp sge i32 %25, 2000
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = load i32, i32* %2
%29 = icmp sle i32 %28, 2999
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 2
%32 = load i32*, i32** %31
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %32)
br label %111
34: ; preds = %27, %24
%35 = load i32, i32* %2
%36 = icmp sge i32 %35, 3000
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = load i32, i32* %2
%39 = icmp sle i32 %38, 3999
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 3
%42 = load i32*, i32** %41
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %42)
br label %110
44: ; preds = %37, %34
%45 = load i32, i32* %2
%46 = icmp sge i32 %45, 4000
br i1 %46, label %47, label %54
47: ; preds = %44
%48 = load i32, i32* %2
%49 = icmp sle i32 %48, 4999
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 4
%52 = load i32*, i32** %51
%53 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %52)
br label %109
54: ; preds = %47, %44
%55 = load i32, i32* %2
%56 = icmp sge i32 %55, 5000
br i1 %56, label %57, label %64
57: ; preds = %54
%58 = load i32, i32* %2
%59 = icmp sle i32 %58, 5999
br i1 %59, label %60, label %64
60: ; preds = %57
%61 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 5
%62 = load i32*, i32** %61
%63 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %62)
br label %108
64: ; preds = %57, %54
%65 = load i32, i32* %2
%66 = icmp sge i32 %65, 6000
br i1 %66, label %67, label %74
67: ; preds = %64
%68 = load i32, i32* %2
%69 = icmp sle i32 %68, 6999
br i1 %69, label %70, label %74
70: ; preds = %67
%71 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 6
%72 = load i32*, i32** %71
%73 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %72)
br label %107
74: ; preds = %67, %64
%75 = load i32, i32* %2
%76 = icmp sge i32 %75, 7000
br i1 %76, label %77, label %84
77: ; preds = %74
%78 = load i32, i32* %2
%79 = icmp sle i32 %78, 7999
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 7
%82 = load i32*, i32** %81
%83 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %82)
br label %106
84: ; preds = %77, %74
%85 = load i32, i32* %2
%86 = icmp sge i32 %85, 8000
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, i32* %2
%89 = icmp sle i32 %88, 8999
br i1 %89, label %90, label %94
90: ; preds = %87
%91 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 8
%92 = load i32*, i32** %91
%93 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %92)
br label %105
94: ; preds = %87, %84
%95 = load i32, i32* %2
%96 = icmp sge i32 %95, 9000
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = load i32, i32* %2
%99 = icmp sle i32 %98, 9999
br i1 %99, label %100, label %104
100: ; preds = %97
%101 = getelementptr inbounds [11 x i32*], [11 x i32*]* %3, i64 0, i64 9
%102 = load i32*, i32** %101
%103 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %102)
br label %104
104: ; preds = %100, %97, %94
br label %105
105: ; preds = %104, %90
br label %106
106: ; preds = %105, %80
br label %107
107: ; preds = %106, %70
br label %108
108: ; preds = %107, %60
br label %109
109: ; preds = %108, %50
br label %110
110: ; preds = %109, %40
br label %111
111: ; preds = %110, %30
br label %112
112: ; preds = %111, %20
br label %113
113: ; preds = %112, %10
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [2 x i8] c"3\00"
@.str.4 = [2 x i8] c"4\00"
@.str.5 = [2 x i8] c"5\00"
@.str.6 = [2 x i8] c"6\00"
@.str.7 = [2 x i8] c"7\00"
@.str.8 = [2 x i8] c"8\00"
@.str.9 = [2 x i8] c"9\00"
@.str.11 = [4 x i8] c" %s\00"
define void @Tusachi(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 999
br i1 %3, label %31, label %4
4: ; preds = %1
%5 = add i32 %0, -1000
%6 = icmp ult i32 %5, 1000
br i1 %6, label %31, label %7
7: ; preds = %4
%8 = add i32 %0, -2000
%9 = icmp ult i32 %8, 1000
br i1 %9, label %31, label %10
10: ; preds = %7
%11 = add i32 %0, -3000
%12 = icmp ult i32 %11, 1000
br i1 %12, label %31, label %13
13: ; preds = %10
%14 = add i32 %0, -4000
%15 = icmp ult i32 %14, 1000
br i1 %15, label %31, label %16
16: ; preds = %13
%17 = add i32 %0, -5000
%18 = icmp ult i32 %17, 1000
br i1 %18, label %31, label %19
19: ; preds = %16
%20 = add i32 %0, -6000
%21 = icmp ult i32 %20, 1000
br i1 %21, label %31, label %22
22: ; preds = %19
%23 = add i32 %0, -7000
%24 = icmp ult i32 %23, 1000
br i1 %24, label %31, label %25
25: ; preds = %22
%26 = add i32 %0, -8000
%27 = icmp ult i32 %26, 1000
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = add i32 %0, -9000
%30 = icmp ult i32 %29, 1000
br i1 %30, label %31, label %34
31: ; preds = %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%32 = phi i32* [ bitcast ([2 x i8]* @.str to i32*), %1 ], [ bitcast ([2 x i8]* @.str.1 to i32*), %4 ], [ bitcast ([2 x i8]* @.str.2 to i32*), %7 ], [ bitcast ([2 x i8]* @.str.3 to i32*), %10 ], [ bitcast ([2 x i8]* @.str.4 to i32*), %13 ], [ bitcast ([2 x i8]* @.str.5 to i32*), %16 ], [ bitcast ([2 x i8]* @.str.6 to i32*), %19 ], [ bitcast ([2 x i8]* @.str.7 to i32*), %22 ], [ bitcast ([2 x i8]* @.str.8 to i32*), %25 ], [ bitcast ([2 x i8]* @.str.9 to i32*), %28 ]
%33 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32* %32)
br label %34
34: ; preds = %31, %28
ret void
}