#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*/ dispData();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putData();
int /*<<< orphan*/ sortLit();
int /*<<< orphan*/ sortName();
int /*<<< orphan*/ sortPop();
int main() {
  putData();
  printf("--------------------------------------------\n");
  printf("Orignal Data \n \n");
  dispData();
  printf("--------------------------------------------\n");
  printf("List Sorted Based on Literacy Level \n \n");
  sortLit();
  dispData();
  printf("--------------------------------------------\n");
  printf("List Sorted Based on Population \n \n");
  sortPop();
  dispData();
  printf("--------------------------------------------\n");
  printf("List Sorted Based on Name \n \n");
  sortName();
  dispData();
  printf("--------------------------------------------\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <putData@plt>
lea    0xe83(%rip),%rdi
call   1050 <printf@plt>
lea    0xea5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <dispData@plt>
lea    0xe64(%rip),%rdi
call   1050 <printf@plt>
lea    0xe97(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <sortLit@plt>
mov    $0x0,%al
call   1040 <dispData@plt>
lea    0xe3e(%rip),%rdi
call   1050 <printf@plt>
lea    0xe99(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <sortPop@plt>
mov    $0x0,%al
call   1040 <dispData@plt>
lea    0xe18(%rip),%rdi
call   1050 <printf@plt>
lea    0xe97(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <sortName@plt>
mov    $0x0,%al
call   1040 <dispData@plt>
lea    0xdf2(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1070 <putData@plt>
lea    0xf08(%rip),%rbx
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xe82(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1040 <dispData@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xe77(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1030 <sortLit@plt>
xor    %eax,%eax
call   1040 <dispData@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xe7c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1080 <sortPop@plt>
xor    %eax,%eax
call   1040 <dispData@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xe7d(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1060 <sortName@plt>
xor    %eax,%eax
call   1040 <dispData@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [46 x i8] c"--------------------------------------------\0A\00"
@.str.1 = [17 x i8] c"Orignal Data \0A \0A\00"
@.str.2 = [40 x i8] c"List Sorted Based on Literacy Level \0A \0A\00"
@.str.3 = [36 x i8] c"List Sorted Based on Population \0A \0A\00"
@.str.4 = [30 x i8] c"List Sorted Based on Name \0A \0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @putData()
%3 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @dispData()
%6 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (...) @sortLit()
%9 = call i32 (...) @dispData()
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (...) @sortPop()
%13 = call i32 (...) @dispData()
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (...) @sortName()
%17 = call i32 (...) @dispData()
%18 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str.5 = [16 x i8] c"Orignal Data \0A \00"
@str.7 = [39 x i8] c"List Sorted Based on Literacy Level \0A \00"
@str.9 = [35 x i8] c"List Sorted Based on Population \0A \00"
@str.11 = [29 x i8] c"List Sorted Based on Name \0A \00"
@str.12 = [45 x i8] c"--------------------------------------------\00"
define i32 @main() {
%1 = tail call i32 (...) @putData()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 (...) @dispData()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.7, i64 0, i64 0))
%7 = tail call i32 (...) @sortLit()
%8 = tail call i32 (...) @dispData()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.12, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.9, i64 0, i64 0))
%11 = tail call i32 (...) @sortPop()
%12 = tail call i32 (...) @dispData()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.11, i64 0, i64 0))
%15 = tail call i32 (...) @sortName()
%16 = tail call i32 (...) @dispData()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.12, i64 0, i64 0))
ret i32 0
}