#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 C(float);
int f(int);
int /*<<< orphan*/ getid(int);
int /*<<< orphan*/ print(int *);
void main() {
  int i, j, b;
  int N[50];
  float a = 5;
  int q;
  int n;
  getid(q);
  getid(n);
  for (i = 0; i < 50; i++)
    N[i] = 0;
  for (j = 0; j < n; j++) {
    a = f(q) * 50;
    b = 50 - C(a);
    N[b]++;
  }
  print(N);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movss  0xead(%rip),%xmm0
movss  %xmm0,-0xe4(%rbp)
ff
mov    -0xe8(%rbp),%edi
call   1040 <getid@plt>
mov    -0xec(%rbp),%edi
call   1040 <getid@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jge    119f <main+0x5f>
movslq -0x4(%rbp),%rax
movl   $0x0,-0xe0(%rbp,%rax,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1178 <main+0x38>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xec(%rbp),%eax
jge    120b <main+0xcb>
mov    -0xe8(%rbp),%edi
call   1030 <f@plt>
imul   $0x32,%eax,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xe4(%rbp)
ff
movss  -0xe4(%rbp),%xmm0
ff
call   1060 <C@plt>
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
movslq -0xc(%rbp),%rax
mov    -0xe0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0xe0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a6 <main+0x66>
lea    -0xe0(%rbp),%rdi
call   1050 <print@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0xc8,%rsp
call   1030 <getid@plt>
call   1030 <getid@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movq   $0x0,0xc0(%rsp)
mov    %rsp,%rdi
call   1040 <print@plt>
add    $0xc8,%rsp
ret

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [50 x i32]
%5 = alloca float
%6 = alloca i32
%7 = alloca i32
store float 5.000000e+00, float* %5
%8 = load i32, i32* %6
%9 = call i32 @getid(i32 %8)
%10 = load i32, i32* %7
%11 = call i32 @getid(i32 %10)
store i32 0, i32* %1
br label %12
12: ; preds = %19, %0
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 50
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = load i32, i32* %1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [50 x i32], [50 x i32]* %4, i64 0, i64 %17
store i32 0, i32* %18
br label %19
19: ; preds = %15
%20 = load i32, i32* %1
%21 = add nsw i32 %20, 1
store i32 %21, i32* %1
br label %12
22: ; preds = %12
store i32 0, i32* %2
br label %23
23: ; preds = %40, %22
%24 = load i32, i32* %2
%25 = load i32, i32* %7
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %43
27: ; preds = %23
%28 = load i32, i32* %6
%29 = call i32 @f(i32 %28)
%30 = mul nsw i32 %29, 50
%31 = sitofp i32 %30 to float
store float %31, float* %5
%32 = load float, float* %5
%33 = call i32 @C(float %32)
%34 = sub nsw i32 50, %33
store i32 %34, i32* %3
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [50 x i32], [50 x i32]* %4, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = add nsw i32 %38, 1
store i32 %39, i32* %37
br label %40
40: ; preds = %27
%41 = load i32, i32* %2
%42 = add nsw i32 %41, 1
store i32 %42, i32* %2
br label %23
43: ; preds = %23
%44 = getelementptr inbounds [50 x i32], [50 x i32]* %4, i64 0, i64 0
%45 = call i32 @print(i32* %44)
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = alloca [50 x i32]
%2 = bitcast [50 x i32]* %1 to i8*
%3 = tail call i32 @getid(i32 undef)
%4 = tail call i32 @getid(i32 undef)
%5 = getelementptr inbounds [50 x i32], [50 x i32]* %1, i64 0, i64 0
%6 = call i32 @print(i32* %5)
ret void
}