#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*/ criteria_mul(int *, int *);
int /*<<< orphan*/ populate_a_array_with_user_input(int *);
int /*<<< orphan*/ show_elements_from_array(int *, char *);
int main() {
  int array[30] = {0};
  int fake_array[30] = {0};
  populate_a_array_with_user_input(array);
  show_elements_from_array(array, "First");
  criteria_mul(array, fake_array);
  show_elements_from_array(fake_array, "After criteria mul");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x78,%edx
call   1050 <memset@plt>
lea    -0x100(%rbp),%rdi
xor    %esi,%esi
mov    $0x78,%edx
call   1050 <memset@plt>
lea    -0x80(%rbp),%rdi
call   1060 <populate_a_array_with_user_input@plt>
lea    -0x80(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1040 <show_elements_from_array@plt>
lea    -0x80(%rbp),%rdi
lea    -0x100(%rbp),%rsi
call   1030 <criteria_mul@plt>
lea    -0x100(%rbp),%rdi
lea    0xe5a(%rip),%rsi
call   1040 <show_elements_from_array@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xf8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movq   $0x0,0xf0(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x70(%rsp)
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <populate_a_array_with_user_input@plt>
lea    0xe3d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <show_elements_from_array@plt>
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <criteria_mul@plt>
lea    0xe26(%rip),%rsi
mov    %r14,%rdi
call   1040 <show_elements_from_array@plt>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"First\00"
@.str.1 = [19 x i8] c"After criteria mul\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [30 x i32]
%3 = alloca [30 x i32]
store i32 0, i32* %1
%4 = bitcast [30 x i32]* %2 to i8*
%5 = bitcast [30 x i32]* %3 to i8*
%6 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
%7 = call i32 @populate_a_array_with_user_input(i32* %6)
%8 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
%9 = call i32 @show_elements_from_array(i32* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
%11 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 0
%12 = call i32 @criteria_mul(i32* %10, i32* %11)
%13 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 0
%14 = call i32 @show_elements_from_array(i32* %13, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"First\00"
@.str.1 = [19 x i8] c"After criteria mul\00"
define i32 @main() {
%1 = alloca [30 x i32]
%2 = alloca [30 x i32]
%3 = bitcast [30 x i32]* %1 to i8*
%4 = bitcast [30 x i32]* %2 to i8*
%5 = getelementptr inbounds [30 x i32], [30 x i32]* %1, i64 0, i64 0
%6 = call i32 @populate_a_array_with_user_input(i32* %5)
%7 = call i32 @show_elements_from_array(i32* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
%9 = call i32 @criteria_mul(i32* %5, i32* %8)
%10 = call i32 @show_elements_from_array(i32* %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}