#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 main() {
  long int tot_pop = 80000;
  long int tot_men, tot_women;
  long int tot_lit;
  long int lit_men, lit_women;
  long int ilit_men, ilit_women;
  tot_men = .52 * tot_pop;
  tot_women = .48 * tot_pop;
  tot_lit = .48 * tot_pop;
  lit_men = .35 * tot_pop;
  ilit_men = tot_men - lit_men;
  ilit_women = tot_lit - ilit_men;
  printf("The total number of :\n");
  printf("Illiterate men: %ld\n", ilit_men);
  printf("Illiterate women: %ld\n", ilit_women);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x13880,-0x10(%rbp)
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xedb(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x18(%rbp)
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xeb8(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x20(%rbp)
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xe9d(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x28(%rbp)
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xe7a(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x3520,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x60e0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"The total number of :\0A\00"
@.str.1 = [21 x i8] c"Illiterate men: %ld\0A\00"
@.str.2 = [23 x i8] c"Illiterate women: %ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %1
store i64 80000, i64* %2
%10 = load i64, i64* %2
%11 = sitofp i64 %10 to double
%12 = fmul double 5.200000e-01, %11
%13 = fptosi double %12 to i64
store i64 %13, i64* %3
%14 = load i64, i64* %2
%15 = sitofp i64 %14 to double
%16 = fmul double 4.800000e-01, %15
%17 = fptosi double %16 to i64
store i64 %17, i64* %4
%18 = load i64, i64* %2
%19 = sitofp i64 %18 to double
%20 = fmul double 4.800000e-01, %19
%21 = fptosi double %20 to i64
store i64 %21, i64* %5
%22 = load i64, i64* %2
%23 = sitofp i64 %22 to double
%24 = fmul double 3.500000e-01, %23
%25 = fptosi double %24 to i64
store i64 %25, i64* %6
%26 = load i64, i64* %3
%27 = load i64, i64* %6
%28 = sub nsw i64 %26, %27
store i64 %28, i64* %8
%29 = load i64, i64* %5
%30 = load i64, i64* %8
%31 = sub nsw i64 %29, %30
store i64 %31, i64* %9
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%33 = load i64, i64* %8
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 %33)
%35 = load i64, i64* %9
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 %35)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [21 x i8] c"Illiterate men: %ld\0A\00"
@.str.2 = [23 x i8] c"Illiterate women: %ld\0A\00"
@str = [22 x i8] c"The total number of :\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 13600)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 24800)
ret i32 0
}