#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 */
char ft_con_ic(int);
int /*<<< orphan*/ ft_print_char(char);
void ft_print_sudoku(int sudoku[9][9]) {
  int i;
  int j;
  char c;
  i = 0;
  while (i < 9) {
    j = 0;
    while (j < 8) {
      c = ft_con_ic(sudoku[i][j]);
      ft_print_char(c);
      ft_print_char(' ');
      j++;
    }
    c = ft_con_ic(sudoku[i][j]);
    ft_print_char(c);
    ft_print_char('\n');
    i++;
  }
  return;
}


x86 assembly (clang, -O0):
<ft_print_sudoku>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    11cc <ft_print_sudoku+0xac>
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    118d <ft_print_sudoku+0x6d>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <ft_con_ic@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <ft_print_sudoku+0x24>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <ft_con_ic@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <ft_print_char@plt>
mov    $0xa,%edi
call   1040 <ft_print_char@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <ft_print_sudoku+0x13>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_print_sudoku>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0x20,%ebx
nopl   0x0(%rax)
mov    -0x20(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x1c(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x18(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x14(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x10(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0xc(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x8(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    -0x4(%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0x20,%edi
call   1040 <ft_print_char@plt>
mov    (%r14,%rbx,1),%edi
call   1030 <ft_con_ic@plt>
movsbl %al,%edi
call   1040 <ft_print_char@plt>
mov    $0xa,%edi
call   1040 <ft_print_char@plt>
add    $0x24,%rbx
cmp    $0x164,%rbx
jne    1130 <ft_print_sudoku+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @ft_print_sudoku([9 x i32]* %0) {
%2 = alloca [9 x i32]*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
store [9 x i32]* %0, [9 x i32]** %2
store i32 0, i32* %3
br label %6
6: ; preds = %28, %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 9
br i1 %8, label %9, label %43
9: ; preds = %6
store i32 0, i32* %4
br label %10
10: ; preds = %13, %9
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load [9 x i32]*, [9 x i32]** %2
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [9 x i32], [9 x i32]* %14, i64 %16
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [9 x i32], [9 x i32]* %17, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = call signext i8 @ft_con_ic(i32 %21)
store i8 %22, i8* %5
%23 = load i8, i8* %5
%24 = call i32 @ft_print_char(i8 signext %23)
%25 = call i32 @ft_print_char(i8 signext 32)
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %10
28: ; preds = %10
%29 = load [9 x i32]*, [9 x i32]** %2
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x i32], [9 x i32]* %29, i64 %31
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [9 x i32], [9 x i32]* %32, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = call signext i8 @ft_con_ic(i32 %36)
store i8 %37, i8* %5
%38 = load i8, i8* %5
%39 = call i32 @ft_print_char(i8 signext %38)
%40 = call i32 @ft_print_char(i8 signext 10)
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %6
43: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @ft_print_sudoku([9 x i32]* nocapture %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %49, %2 ]
%4 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 0
%5 = load i32, i32* %4
%6 = tail call signext i8 @ft_con_ic(i32 %5)
%7 = tail call i32 @ft_print_char(i8 signext %6)
%8 = tail call i32 @ft_print_char(i8 signext 32)
%9 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 1
%10 = load i32, i32* %9
%11 = tail call signext i8 @ft_con_ic(i32 %10)
%12 = tail call i32 @ft_print_char(i8 signext %11)
%13 = tail call i32 @ft_print_char(i8 signext 32)
%14 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 2
%15 = load i32, i32* %14
%16 = tail call signext i8 @ft_con_ic(i32 %15)
%17 = tail call i32 @ft_print_char(i8 signext %16)
%18 = tail call i32 @ft_print_char(i8 signext 32)
%19 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 3
%20 = load i32, i32* %19
%21 = tail call signext i8 @ft_con_ic(i32 %20)
%22 = tail call i32 @ft_print_char(i8 signext %21)
%23 = tail call i32 @ft_print_char(i8 signext 32)
%24 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 4
%25 = load i32, i32* %24
%26 = tail call signext i8 @ft_con_ic(i32 %25)
%27 = tail call i32 @ft_print_char(i8 signext %26)
%28 = tail call i32 @ft_print_char(i8 signext 32)
%29 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 5
%30 = load i32, i32* %29
%31 = tail call signext i8 @ft_con_ic(i32 %30)
%32 = tail call i32 @ft_print_char(i8 signext %31)
%33 = tail call i32 @ft_print_char(i8 signext 32)
%34 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 6
%35 = load i32, i32* %34
%36 = tail call signext i8 @ft_con_ic(i32 %35)
%37 = tail call i32 @ft_print_char(i8 signext %36)
%38 = tail call i32 @ft_print_char(i8 signext 32)
%39 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 7
%40 = load i32, i32* %39
%41 = tail call signext i8 @ft_con_ic(i32 %40)
%42 = tail call i32 @ft_print_char(i8 signext %41)
%43 = tail call i32 @ft_print_char(i8 signext 32)
%44 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 8
%45 = load i32, i32* %44
%46 = tail call signext i8 @ft_con_ic(i32 %45)
%47 = tail call i32 @ft_print_char(i8 signext %46)
%48 = tail call i32 @ft_print_char(i8 signext 10)
%49 = add nuw nsw i64 %3, 1
%50 = icmp eq i64 %49, 9
br i1 %50, label %51, label %2
51: ; preds = %2
ret void
}