#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ ptst(int, int);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ usleep(int);
void printstat(int *st) {
  int ct;
  printf("There are %d Person in this contacts.\n", st[28]);
  for (ct = 0; ct < 26; ct++) {
    fflush(stdout);
    ptst((ct + 65), st[ct]);
    usleep(150000);
  }
  printf("\t# Group has %d contact(s).\n", st[26]);
  fflush(stdout);
  usleep(150000);
  printf("\tOther Group has %d contact(s).\n", st[27]);
}


x86 assembly (clang, -O0):
<printstat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x70(%rax),%esi
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1a,-0xc(%rbp)
jge    11ac <printstat+0x6c>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    -0xc(%rbp),%edi
add    $0x41,%edi
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1040 <ptst@plt>
mov    $0x249f0,%edi
call   1060 <usleep@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1166 <printstat+0x26>
mov    -0x8(%rbp),%rax
mov    0x68(%rax),%esi
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x249f0,%edi
call   1060 <usleep@plt>
mov    -0x8(%rbp),%rax
mov    0x6c(%rax),%esi
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printstat>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
mov    0x70(%rdi),%esi
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
xor    %ebx,%ebx
mov    0x2e80(%rip),%r14
mov    (%r14),%edi
call   1050 <fflush@plt>
mov    (%r15,%rbx,4),%esi
lea    0x41(%rbx),%edi
call   1040 <ptst@plt>
mov    $0x249f0,%edi
call   1060 <usleep@plt>
add    $0x1,%rbx
cmp    $0x1a,%rbx
jne    1160 <printstat+0x20>
mov    0x68(%r15),%esi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
mov    (%r14),%edi
call   1050 <fflush@plt>
mov    $0x249f0,%edi
call   1060 <usleep@plt>
mov    0x6c(%r15),%esi
lea    0xe8f(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"There are %d Person in this contacts.\0A\00"
@stdout = global i32 0
@.str.1 = [29 x i8] c"\09# Group has %d contact(s).\0A\00"
@.str.2 = [33 x i8] c"\09Other Group has %d contact(s).\0A\00"
define void @printstat(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 28
%6 = load i32, i32* %5
%7 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %6)
store i32 0, i32* %3
br label %8
8: ; preds = %23, %1
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 26
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load i32, i32* @stdout
%13 = call i32 @fflush(i32 %12)
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 65
%16 = load i32*, i32** %2
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, i32* %16, i64 %18
%20 = load i32, i32* %19
%21 = call i32 @ptst(i32 %15, i32 %20)
%22 = call i32 @usleep(i32 150000)
br label %23
23: ; preds = %11
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %8
26: ; preds = %8
%27 = load i32*, i32** %2
%28 = getelementptr inbounds i32, i32* %27, i64 26
%29 = load i32, i32* %28
%30 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @stdout
%32 = call i32 @fflush(i32 %31)
%33 = call i32 @usleep(i32 150000)
%34 = load i32*, i32** %2
%35 = getelementptr inbounds i32, i32* %34, i64 27
%36 = load i32, i32* %35
%37 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %36)
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"There are %d Person in this contacts.\0A\00"
@stdout = global i32 0
@.str.1 = [29 x i8] c"\09# Group has %d contact(s).\0A\00"
@.str.2 = [33 x i8] c"\09Other Group has %d contact(s).\0A\00"
define void @printstat(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 28
%3 = load i32, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %5
5: ; preds = %1, %5
%6 = phi i64 [ 0, %1 ], [ %15, %5 ]
%7 = load i32, i32* @stdout
%8 = tail call i32 @fflush(i32 %7)
%9 = getelementptr inbounds i32, i32* %0, i64 %6
%10 = load i32, i32* %9
%11 = trunc i64 %6 to i32
%12 = add i32 %11, 65
%13 = tail call i32 @ptst(i32 %12, i32 %10)
%14 = tail call i32 @usleep(i32 150000)
%15 = add nuw nsw i64 %6, 1
%16 = icmp eq i64 %15, 26
br i1 %16, label %17, label %5
17: ; preds = %5
%18 = getelementptr inbounds i32, i32* %0, i64 26
%19 = load i32, i32* %18
%20 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stdout
%22 = tail call i32 @fflush(i32 %21)
%23 = tail call i32 @usleep(i32 150000)
%24 = getelementptr inbounds i32, i32* %0, i64 27
%25 = load i32, i32* %24
%26 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %25)
ret void
}