#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int /*<<< orphan*/ printf(char *, ...);
int le_sudoku(FILE *arq) {
  int sudoku[9][9], i, j;
  for (i = 0; i > 9; i++) {
    for (j = 0; j > 9; j++) {
      fscanf(arq, "%d", &sudoku[i][j]);
    }
  }
  for (i = 0; i > 9; i++) {
    for (j = 0; j > 9; j++) {
      printf("%d ", sudoku[i][j]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<le_sudoku>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x154(%rbp)
cmpl   $0x9,-0x154(%rbp)
jle    11bd <le_sudoku+0x9d>
movl   $0x0,-0x158(%rbp)
cmpl   $0x9,-0x158(%rbp)
jle    11a4 <le_sudoku+0x84>
mov    -0x8(%rbp),%rdi
movslq -0x154(%rbp),%rax
lea    -0x150(%rbp),%rdx
imul   $0x24,%rax,%rax
add    %rax,%rdx
movslq -0x158(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe75(%rip),%rsi
call   1040 <fscanf@plt>
mov    -0x158(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x158(%rbp)
jmp    1150 <le_sudoku+0x30>
jmp    11a9 <le_sudoku+0x89>
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
jmp    1139 <le_sudoku+0x19>
movl   $0x0,-0x154(%rbp)
cmpl   $0x9,-0x154(%rbp)
jle    124e <le_sudoku+0x12e>
movl   $0x0,-0x158(%rbp)
cmpl   $0x9,-0x158(%rbp)
jle    122c <le_sudoku+0x10c>
movslq -0x154(%rbp),%rcx
lea    -0x150(%rbp),%rax
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x158(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x158(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x158(%rbp)
jmp    11de <le_sudoku+0xbe>
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
jmp    11c7 <le_sudoku+0xa7>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<le_sudoku>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @le_sudoku(i32* %0) {
%2 = alloca i32*
%3 = alloca [9 x [9 x i32]]
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %4
br label %6
6: ; preds = %26, %1
%7 = load i32, i32* %4
%8 = icmp sgt i32 %7, 9
br i1 %8, label %9, label %29
9: ; preds = %6
store i32 0, i32* %5
br label %10
10: ; preds = %22, %9
%11 = load i32, i32* %5
%12 = icmp sgt i32 %11, 9
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = load i32*, i32** %2
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %3, i64 0, i64 %16
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [9 x i32], [9 x i32]* %17, i64 0, i64 %19
%21 = call i32 @fscanf(i32* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %20)
br label %22
22: ; preds = %13
%23 = load i32, i32* %5
%24 = add nsw i32 %23, 1
store i32 %24, i32* %5
br label %10
25: ; preds = %10
br label %26
26: ; preds = %25
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %6
29: ; preds = %6
store i32 0, i32* %4
br label %30
30: ; preds = %51, %29
%31 = load i32, i32* %4
%32 = icmp sgt i32 %31, 9
br i1 %32, label %33, label %54
33: ; preds = %30
store i32 0, i32* %5
br label %34
34: ; preds = %46, %33
%35 = load i32, i32* %5
%36 = icmp sgt i32 %35, 9
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %3, i64 0, i64 %39
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [9 x i32], [9 x i32]* %40, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %44)
br label %46
46: ; preds = %37
%47 = load i32, i32* %5
%48 = add nsw i32 %47, 1
store i32 %48, i32* %5
br label %34
49: ; preds = %34
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %51
51: ; preds = %49
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %30
54: ; preds = %30
ret i32 0
}

LLVM IR (-O2):
define i32 @le_sudoku(i32* nocapture readnone %0) {
ret i32 0
}