#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*/ ch;

/* Variables and functions */
int /*<<< orphan*/ check(int *, int *, int *, int *, int *);
int /*<<< orphan*/ insert(int *, int *);
int /*<<< orphan*/ print(int *, int *);
int /*<<< orphan*/ printf(char *, int);
main() {
  int ch[100];
  int cnta = 0, cntn = 0, cnts = 0;
  int index, n;
  n = sizeof(ch) / sizeof ch[0];
  insert(ch, &n);
  print(ch, &n);
  check(ch, &cnta, &cntn, &cnts, &n);
  printf("No. of alphabets:%d\n", cnta);
  printf("No. of numbers: %d\n", cntn);
  printf("No. of special characters: %d\n", cnts);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x194(%rbp)
movl   $0x0,-0x198(%rbp)
movl   $0x0,-0x19c(%rbp)
movl   $0x64,-0x1a4(%rbp)
lea    -0x190(%rbp),%rdi
lea    -0x1a4(%rbp),%rsi
call   1050 <insert@plt>
lea    -0x190(%rbp),%rdi
lea    -0x1a4(%rbp),%rsi
call   1040 <print@plt>
lea    -0x190(%rbp),%rdi
lea    -0x194(%rbp),%rsi
lea    -0x198(%rbp),%rdx
lea    -0x19c(%rbp),%rcx
lea    -0x1a4(%rbp),%r8
call   1060 <check@plt>
mov    -0x194(%rbp),%esi
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
mov    -0x198(%rbp),%esi
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
mov    -0x19c(%rbp),%esi
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x1a8,%rsp
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
movl   $0x64,0xc(%rsp)
lea    0x10(%rsp),%rbx
lea    0xc(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <insert@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <print@plt>
lea    0x8(%rsp),%rsi
lea    0x4(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
mov    %r14,%r8
call   1060 <check@plt>
mov    0x8(%rsp),%esi
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
mov    (%rsp),%esi
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [21 x i8] c"No. of alphabets:%d\0A\00"
@.str.1 = [20 x i8] c"No. of numbers: %d\0A\00"
@.str.2 = [31 x i8] c"No. of special characters: %d\0A\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 100, i32* %6
%7 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%8 = call i32 @insert(i32* %7, i32* %6)
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%10 = call i32 @print(i32* %9, i32* %6)
%11 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%12 = call i32 @check(i32* %11, i32* %2, i32* %3, i32* %4, i32* %6)
%13 = load i32, i32* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %3
%16 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %4
%18 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"No. of alphabets:%d\0A\00"
@.str.1 = [20 x i8] c"No. of numbers: %d\0A\00"
@.str.2 = [31 x i8] c"No. of special characters: %d\0A\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast [100 x i32]* %1 to i8*
%7 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%10 = bitcast i32* %5 to i8*
store i32 100, i32* %5
%11 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%12 = call i32 @insert(i32* %11, i32* %5)
%13 = call i32 @print(i32* %11, i32* %5)
%14 = call i32 @check(i32* %11, i32* %2, i32* %3, i32* %4, i32* %5)
%15 = load i32, i32* %2
%16 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %3
%18 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = load i32, i32* %4
%20 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %19)
ret i32 0
}