#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*/ scanf(char *, int *);
void get_input(int *goods_num, int comb[11][11]) {
  int i = 0;
  int j = 0;
  scanf("%d", goods_num);
  for (i = 0; i < *goods_num; i++) {
    for (j = 0; j < *goods_num; j++) {
      scanf("%d", &comb[i][j]);
    }
  }
}


x86 assembly (clang, -O0):
<get_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec7(%rip),%rdi
call   1030 <scanf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%eax
jge    11b1 <get_input+0xa1>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%eax
jge    119e <get_input+0x8e>
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rax
imul   $0x2c,%rax,%rax
add    %rax,%rsi
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe75(%rip),%rdi
call   1030 <scanf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115b <get_input+0x4b>
jmp    11a3 <get_input+0x93>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1145 <get_input+0x35>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_input>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
lea    0xed8(%rip),%rdi
mov    %r12,%rsi
call   1030 <scanf@plt>
mov    (%r12),%eax
test   %eax,%eax
jle    118e <get_input+0x7e>
xor    %r13d,%r13d
lea    0xebe(%rip),%r15
jmp    1160 <get_input+0x50>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movslq %eax,%rcx
add    $0x1,%r13
add    $0x2c,%r14
cmp    %rcx,%r13
jge    118e <get_input+0x7e>
test   %eax,%eax
jle    1150 <get_input+0x40>
mov    %r14,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <scanf@plt>
add    $0x1,%rbp
movslq (%r12),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1170 <get_input+0x60>
jmp    1150 <get_input+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @get_input(i32* %0, [11 x i32]* %1) {
%3 = alloca i32*
%4 = alloca [11 x i32]*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store [11 x i32]* %1, [11 x i32]** %4
store i32 0, i32* %5
store i32 0, i32* %6
%7 = load i32*, i32** %3
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
store i32 0, i32* %5
br label %9
9: ; preds = %33, %2
%10 = load i32, i32* %5
%11 = load i32*, i32** %3
%12 = load i32, i32* %11
%13 = icmp slt i32 %10, %12
br i1 %13, label %14, label %36
14: ; preds = %9
store i32 0, i32* %6
br label %15
15: ; preds = %29, %14
%16 = load i32, i32* %6
%17 = load i32*, i32** %3
%18 = load i32, i32* %17
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %32
20: ; preds = %15
%21 = load [11 x i32]*, [11 x i32]** %4
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [11 x i32], [11 x i32]* %21, i64 %23
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [11 x i32], [11 x i32]* %24, i64 0, i64 %26
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %27)
br label %29
29: ; preds = %20
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
store i32 %31, i32* %6
br label %15
32: ; preds = %15
br label %33
33: ; preds = %32
%34 = load i32, i32* %5
%35 = add nsw i32 %34, 1
store i32 %35, i32* %5
br label %9
36: ; preds = %9
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @get_input(i32* %0, [11 x i32]* %1) {
%3 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %0)
%4 = load i32, i32* %0
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %23
6: ; preds = %2, %18
%7 = phi i32 [ %19, %18 ], [ %4, %2 ]
%8 = phi i64 [ %21, %18 ], [ 0, %2 ]
%9 = icmp sgt i32 %7, 0
br i1 %9, label %10, label %18
10: ; preds = %6, %10
%11 = phi i64 [ %14, %10 ], [ 0, %6 ]
%12 = getelementptr inbounds [11 x i32], [11 x i32]* %1, i64 %8, i64 %11
%13 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %12)
%14 = add nuw nsw i64 %11, 1
%15 = load i32, i32* %0
%16 = sext i32 %15 to i64
%17 = icmp slt i64 %14, %16
br i1 %17, label %10, label %18
18: ; preds = %10, %6
%19 = phi i32 [ %7, %6 ], [ %15, %10 ]
%20 = sext i32 %19 to i64
%21 = add nuw nsw i64 %8, 1
%22 = icmp slt i64 %21, %20
br i1 %22, label %6, label %23
23: ; preds = %18, %2
ret void
}