#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*/ getBanglaNumStr(char *, char *);
int /*<<< orphan*/ printf(char *, int, char *);
scalar_t__ scanf(char *, char *);
int main(void) {
  char numStr[10000 + 1], banglaNumStr[10000 + 1];
  int caseId;
  caseId = 1;
  while (scanf("%s", numStr) > 0) {
    getBanglaNumStr(numStr, banglaNumStr);
    printf("%4d. %s\n", caseId, banglaNumStr);
    caseId++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4e50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x4e44(%rbp)
lea    -0x2720(%rbp),%rsi
lea    0xea6(%rip),%rdi
call   1040 <scanf@plt>
cmp    $0x0,%rax
jle    11a9 <main+0x79>
lea    -0x2720(%rbp),%rdi
lea    -0x4e40(%rbp),%rsi
call   1050 <getBanglaNumStr@plt>
mov    -0x4e44(%rbp),%esi
lea    -0x4e40(%rbp),%rdx
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4e44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4e44(%rbp)
jmp    114c <main+0x1c>
xor    %eax,%eax
add    $0x4e50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4e40,%rsp
lea    0xeb9(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jle    11ab <main+0x7b>
mov    $0x1,%ebx
mov    %rsp,%r14
lea    0x2720(%rsp),%r15
lea    0xe98(%rip),%r12
lea    0xe8e(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <getBanglaNumStr@plt>
mov    %r12,%rdi
mov    %ebx,%esi
mov    %r15,%rdx
call   1030 <printf@plt>
add    $0x1,%ebx
mov    %r13,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jg     1180 <main+0x50>
xor    %eax,%eax
add    $0x4e40,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [9 x i8] c"%4d. %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10001 x i8]
%3 = alloca [10001 x i8]
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %4
br label %5
5: ; preds = %9, %0
%6 = getelementptr inbounds [10001 x i8], [10001 x i8]* %2, i64 0, i64 0
%7 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %5
%10 = getelementptr inbounds [10001 x i8], [10001 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [10001 x i8], [10001 x i8]* %3, i64 0, i64 0
%12 = call i32 @getBanglaNumStr(i8* %10, i8* %11)
%13 = load i32, i32* %4
%14 = getelementptr inbounds [10001 x i8], [10001 x i8]* %3, i64 0, i64 0
%15 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %13, i8* %14)
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 1
store i32 %17, i32* %4
br label %5
18: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [9 x i8] c"%4d. %s\0A\00"
define i32 @main() {
%1 = alloca [10001 x i8]
%2 = alloca [10001 x i8]
%3 = getelementptr inbounds [10001 x i8], [10001 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [10001 x i8], [10001 x i8]* %2, i64 0, i64 0
%5 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %0, %7
%8 = phi i32 [ %11, %7 ], [ 1, %0 ]
%9 = call i32 @getBanglaNumStr(i8* %3, i8* %4)
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %8, i8* %4)
%11 = add nuw nsw i32 %8, 1
%12 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%13 = icmp sgt i64 %12, 0
br i1 %13, label %7, label %14
14: ; preds = %7, %0
ret i32 0
}