#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 ft_missing_b(int, int **, int, int);
int ft_missing_c(int, int **, int);
int ft_missing_l(int, int **, int);
int ft_missing(int sudoku[9][9], int i, int j, int k) {
  int c;
  c = ft_missing_l(k, sudoku, i) + ft_missing_c(k, sudoku, j);
  c = c + ft_missing_b(k, sudoku, i, j);
  return (c);
}


x86 assembly (clang, -O0):
<ft_missing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1040 <ft_missing_l@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%edx
call   1030 <ft_missing_c@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1050 <ft_missing_b@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_missing>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%r13d
mov    %edx,%r14d
mov    %esi,%r15d
mov    %rdi,%rbp
mov    %ecx,%edi
mov    %rbp,%rsi
mov    %r15d,%edx
call   1040 <ft_missing_l@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %rbp,%rsi
mov    %r14d,%edx
call   1030 <ft_missing_c@plt>
mov    %eax,%ebx
add    %r12d,%ebx
mov    %r13d,%edi
mov    %rbp,%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
call   1050 <ft_missing_b@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @ft_missing([9 x i32]* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [9 x i32]*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store [9 x i32]* %0, [9 x i32]** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = load i32, i32* %8
%11 = load [9 x i32]*, [9 x i32]** %5
%12 = bitcast [9 x i32]* %11 to i32**
%13 = load i32, i32* %6
%14 = call i32 @ft_missing_l(i32 %10, i32** %12, i32 %13)
%15 = load i32, i32* %8
%16 = load [9 x i32]*, [9 x i32]** %5
%17 = bitcast [9 x i32]* %16 to i32**
%18 = load i32, i32* %7
%19 = call i32 @ft_missing_c(i32 %15, i32** %17, i32 %18)
%20 = add nsw i32 %14, %19
store i32 %20, i32* %9
%21 = load i32, i32* %9
%22 = load i32, i32* %8
%23 = load [9 x i32]*, [9 x i32]** %5
%24 = bitcast [9 x i32]* %23 to i32**
%25 = load i32, i32* %6
%26 = load i32, i32* %7
%27 = call i32 @ft_missing_b(i32 %22, i32** %24, i32 %25, i32 %26)
%28 = add nsw i32 %21, %27
store i32 %28, i32* %9
%29 = load i32, i32* %9
ret i32 %29
}

LLVM IR (-O2):
define i32 @ft_missing([9 x i32]* %0, i32 %1, i32 %2, i32 %3) {
%5 = bitcast [9 x i32]* %0 to i32**
%6 = tail call i32 @ft_missing_l(i32 %3, i32** %5, i32 %1)
%7 = tail call i32 @ft_missing_c(i32 %3, i32** %5, i32 %2)
%8 = add nsw i32 %7, %6
%9 = tail call i32 @ft_missing_b(i32 %3, i32** %5, i32 %1, i32 %2)
%10 = add nsw i32 %8, %9
ret i32 %10
}