#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*/ fprintf(int /*<<< orphan*/ *, char *, int, int, int, int,
                           int);
int get_absolute_num(int, int, int);
int write_tetrs(FILE *file, int num, int i, int j, int k) {
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num, get_absolute_num(i, j, k),
          get_absolute_num(i, j + 1, k + 1), get_absolute_num(i, j + 1, k),
          get_absolute_num(i + 1, j + 1, k));
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num + 1,
          get_absolute_num(i, j, k + 1), get_absolute_num(i, j + 1, k + 1),
          get_absolute_num(i + 1, j + 1, k + 1), get_absolute_num(i, j, k));
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num + 2,
          get_absolute_num(i, j + 1, k + 1), get_absolute_num(i, j, k),
          get_absolute_num(i + 1, j + 1, k + 1),
          get_absolute_num(i + 1, j + 1, k));
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num + 3,
          get_absolute_num(i, j, k), get_absolute_num(i + 1, j, k),
          get_absolute_num(i + 1, j + 1, k),
          get_absolute_num(i + 1, j + 1, k + 1));
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num + 4,
          get_absolute_num(i, j, k + 1), get_absolute_num(i + 1, j, k),
          get_absolute_num(i + 1, j + 1, k + 1), get_absolute_num(i, j, k));
  fprintf(file, "%d 4 3 0 1 0 %d %d %d %d\n", num + 5,
          get_absolute_num(i + 1, j, k + 1),
          get_absolute_num(i + 1, j + 1, k + 1), get_absolute_num(i, j, k + 1),
          get_absolute_num(i + 1, j, k));
  return 0;
}


x86 assembly (clang, -O0):
<write_tetrs>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x9c(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x98(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x94(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    -0xa8(%rbp),%rdi
mov    -0xa0(%rbp),%edx
mov    -0x9c(%rbp),%ecx
mov    -0x98(%rbp),%r8d
mov    -0x94(%rbp),%r9d
lea    0xe2f(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x80(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x7c(%rbp),%r9d
lea    0xd98(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x70(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x68(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    -0x78(%rbp),%rdi
mov    -0x70(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x68(%rbp),%r8d
mov    -0x64(%rbp),%r9d
lea    0xd10(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0xc(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x58(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x50(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%edx
mov    -0x54(%rbp),%ecx
mov    -0x50(%rbp),%r8d
mov    -0x4c(%rbp),%r9d
lea    0xc8b(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x34(%rbp),%r9d
lea    0xc09(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <get_absolute_num@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
lea    0xb81(%rip),%rsi
mov    %eax,(%rsp)
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_tetrs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8d,%ebp
mov    %rbp,0x50(%rsp)
mov    %ecx,%ebx
mov    %rbx,0x48(%rsp)
mov    %edx,%r13d
mov    %rsi,0x20(%rsp)
mov    %rdi,%r12
mov    %rdi,0x30(%rsp)
mov    %edx,%edi
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x10(%rsp)
lea    0x1(%rbx),%r14d
lea    0x1(%rbp),%ebx
mov    %r13d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x18(%rsp)
mov    %r13d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x14(%rsp)
lea    0x1(%r13),%r15d
mov    %r15d,%edi
mov    %r15d,0x28(%rsp)
mov    %r14d,%esi
mov    %ebp,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
lea    0xe5a(%rip),%rsi
mov    %r12,%rdi
mov    0x20(%rsp),%rbp
mov    %ebp,%edx
mov    0x10(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    0x14(%rsp),%r9d
call   1030 <fprintf@plt>
lea    0x1(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    %r13,%r12
mov    %r12d,%edi
mov    0x48(%rsp),%rbp
mov    %ebp,%esi
mov    %ebx,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x18(%rsp)
mov    %r12d,%edi
mov    %r13,0x40(%rsp)
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x14(%rsp)
mov    %r15d,%edi
mov    %r14d,%esi
mov    %r14d,%r15d
mov    %ebx,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %ebp,%esi
mov    0x50(%rsp),%rdx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
mov    0x30(%rsp),%r13
mov    %r13,%rdi
lea    0xdd4(%rip),%rsi
mov    0x10(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    %r14d,%r9d
call   1030 <fprintf@plt>
mov    0x20(%rsp),%r14
lea    0x2(%r14),%eax
mov    %eax,0x10(%rsp)
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebx,%edx
mov    %ebx,0x3c(%rsp)
call   1040 <get_absolute_num@plt>
mov    %eax,0x18(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
mov    0x50(%rsp),%r12
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x14(%rsp)
mov    0x28(%rsp),%ebp
mov    %ebp,%edi
mov    %r15d,%esi
mov    %ebx,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
mov    %r13,%rdi
lea    0xd5b(%rip),%rsi
mov    0x10(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    %ebx,%r9d
call   1030 <fprintf@plt>
lea    0x3(%r14),%eax
mov    %eax,0x10(%rsp)
mov    0x40(%rsp),%r13
mov    %r13d,%edi
mov    0x48(%rsp),%rbx
mov    %ebx,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x18(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x14(%rsp)
mov    %ebp,%edi
mov    %r15d,0x2c(%rsp)
mov    %r15d,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x1c(%rsp)
mov    %ebp,%edi
mov    %r15d,%esi
mov    0x3c(%rsp),%r14d
mov    %r14d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
mov    0x30(%rsp),%rdi
lea    0xcdc(%rip),%rsi
mov    0x10(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    0x1c(%rsp),%r9d
call   1030 <fprintf@plt>
mov    0x20(%rsp),%rbp
lea    0x4(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r14d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x18(%rsp)
mov    0x28(%rsp),%r15d
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x14(%rsp)
mov    %r15d,%edi
mov    0x2c(%rsp),%esi
mov    %r14d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x1c(%rsp)
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
mov    0x30(%rsp),%r13
mov    %r13,%rdi
lea    0xc60(%rip),%rsi
mov    0x10(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    0x1c(%rsp),%r9d
call   1030 <fprintf@plt>
add    $0x5,%ebp
mov    %rbp,0x20(%rsp)
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r14d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,0x10(%rsp)
mov    %r15d,%edi
mov    0x2c(%rsp),%esi
mov    %r14d,%edx
mov    %r14d,%ebp
call   1040 <get_absolute_num@plt>
mov    %eax,%r14d
mov    0x40(%rsp),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1040 <get_absolute_num@plt>
mov    %eax,(%rsp)
mov    %r13,%rdi
lea    0xbf1(%rip),%rsi
mov    0x20(%rsp),%rdx
mov    0x10(%rsp),%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"%d 4 3 0 1 0 %d %d %d %d\0A\00"
define i32 @write_tetrs(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32*, i32** %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @get_absolute_num(i32 %13, i32 %14, i32 %15)
%17 = load i32, i32* %8
%18 = load i32, i32* %9
%19 = add nsw i32 %18, 1
%20 = load i32, i32* %10
%21 = add nsw i32 %20, 1
%22 = call i32 @get_absolute_num(i32 %17, i32 %19, i32 %21)
%23 = load i32, i32* %8
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
%26 = load i32, i32* %10
%27 = call i32 @get_absolute_num(i32 %23, i32 %25, i32 %26)
%28 = load i32, i32* %8
%29 = add nsw i32 %28, 1
%30 = load i32, i32* %9
%31 = add nsw i32 %30, 1
%32 = load i32, i32* %10
%33 = call i32 @get_absolute_num(i32 %29, i32 %31, i32 %32)
%34 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %16, i32 %22, i32 %27, i32 %33)
%35 = load i32*, i32** %6
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
%38 = load i32, i32* %8
%39 = load i32, i32* %9
%40 = load i32, i32* %10
%41 = add nsw i32 %40, 1
%42 = call i32 @get_absolute_num(i32 %38, i32 %39, i32 %41)
%43 = load i32, i32* %8
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 1
%46 = load i32, i32* %10
%47 = add nsw i32 %46, 1
%48 = call i32 @get_absolute_num(i32 %43, i32 %45, i32 %47)
%49 = load i32, i32* %8
%50 = add nsw i32 %49, 1
%51 = load i32, i32* %9
%52 = add nsw i32 %51, 1
%53 = load i32, i32* %10
%54 = add nsw i32 %53, 1
%55 = call i32 @get_absolute_num(i32 %50, i32 %52, i32 %54)
%56 = load i32, i32* %8
%57 = load i32, i32* %9
%58 = load i32, i32* %10
%59 = call i32 @get_absolute_num(i32 %56, i32 %57, i32 %58)
%60 = call i32 @fprintf(i32* %35, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %37, i32 %42, i32 %48, i32 %55, i32 %59)
%61 = load i32*, i32** %6
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 2
%64 = load i32, i32* %8
%65 = load i32, i32* %9
%66 = add nsw i32 %65, 1
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
%69 = call i32 @get_absolute_num(i32 %64, i32 %66, i32 %68)
%70 = load i32, i32* %8
%71 = load i32, i32* %9
%72 = load i32, i32* %10
%73 = call i32 @get_absolute_num(i32 %70, i32 %71, i32 %72)
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
%76 = load i32, i32* %9
%77 = add nsw i32 %76, 1
%78 = load i32, i32* %10
%79 = add nsw i32 %78, 1
%80 = call i32 @get_absolute_num(i32 %75, i32 %77, i32 %79)
%81 = load i32, i32* %8
%82 = add nsw i32 %81, 1
%83 = load i32, i32* %9
%84 = add nsw i32 %83, 1
%85 = load i32, i32* %10
%86 = call i32 @get_absolute_num(i32 %82, i32 %84, i32 %85)
%87 = call i32 @fprintf(i32* %61, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %63, i32 %69, i32 %73, i32 %80, i32 %86)
%88 = load i32*, i32** %6
%89 = load i32, i32* %7
%90 = add nsw i32 %89, 3
%91 = load i32, i32* %8
%92 = load i32, i32* %9
%93 = load i32, i32* %10
%94 = call i32 @get_absolute_num(i32 %91, i32 %92, i32 %93)
%95 = load i32, i32* %8
%96 = add nsw i32 %95, 1
%97 = load i32, i32* %9
%98 = load i32, i32* %10
%99 = call i32 @get_absolute_num(i32 %96, i32 %97, i32 %98)
%100 = load i32, i32* %8
%101 = add nsw i32 %100, 1
%102 = load i32, i32* %9
%103 = add nsw i32 %102, 1
%104 = load i32, i32* %10
%105 = call i32 @get_absolute_num(i32 %101, i32 %103, i32 %104)
%106 = load i32, i32* %8
%107 = add nsw i32 %106, 1
%108 = load i32, i32* %9
%109 = add nsw i32 %108, 1
%110 = load i32, i32* %10
%111 = add nsw i32 %110, 1
%112 = call i32 @get_absolute_num(i32 %107, i32 %109, i32 %111)
%113 = call i32 @fprintf(i32* %88, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %90, i32 %94, i32 %99, i32 %105, i32 %112)
%114 = load i32*, i32** %6
%115 = load i32, i32* %7
%116 = add nsw i32 %115, 4
%117 = load i32, i32* %8
%118 = load i32, i32* %9
%119 = load i32, i32* %10
%120 = add nsw i32 %119, 1
%121 = call i32 @get_absolute_num(i32 %117, i32 %118, i32 %120)
%122 = load i32, i32* %8
%123 = add nsw i32 %122, 1
%124 = load i32, i32* %9
%125 = load i32, i32* %10
%126 = call i32 @get_absolute_num(i32 %123, i32 %124, i32 %125)
%127 = load i32, i32* %8
%128 = add nsw i32 %127, 1
%129 = load i32, i32* %9
%130 = add nsw i32 %129, 1
%131 = load i32, i32* %10
%132 = add nsw i32 %131, 1
%133 = call i32 @get_absolute_num(i32 %128, i32 %130, i32 %132)
%134 = load i32, i32* %8
%135 = load i32, i32* %9
%136 = load i32, i32* %10
%137 = call i32 @get_absolute_num(i32 %134, i32 %135, i32 %136)
%138 = call i32 @fprintf(i32* %114, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %116, i32 %121, i32 %126, i32 %133, i32 %137)
%139 = load i32*, i32** %6
%140 = load i32, i32* %7
%141 = add nsw i32 %140, 5
%142 = load i32, i32* %8
%143 = add nsw i32 %142, 1
%144 = load i32, i32* %9
%145 = load i32, i32* %10
%146 = add nsw i32 %145, 1
%147 = call i32 @get_absolute_num(i32 %143, i32 %144, i32 %146)
%148 = load i32, i32* %8
%149 = add nsw i32 %148, 1
%150 = load i32, i32* %9
%151 = add nsw i32 %150, 1
%152 = load i32, i32* %10
%153 = add nsw i32 %152, 1
%154 = call i32 @get_absolute_num(i32 %149, i32 %151, i32 %153)
%155 = load i32, i32* %8
%156 = load i32, i32* %9
%157 = load i32, i32* %10
%158 = add nsw i32 %157, 1
%159 = call i32 @get_absolute_num(i32 %155, i32 %156, i32 %158)
%160 = load i32, i32* %8
%161 = add nsw i32 %160, 1
%162 = load i32, i32* %9
%163 = load i32, i32* %10
%164 = call i32 @get_absolute_num(i32 %161, i32 %162, i32 %163)
%165 = call i32 @fprintf(i32* %139, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %141, i32 %147, i32 %154, i32 %159, i32 %164)
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"%d 4 3 0 1 0 %d %d %d %d\0A\00"
define i32 @write_tetrs(i32* nocapture %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %4)
%7 = add nsw i32 %3, 1
%8 = add nsw i32 %4, 1
%9 = tail call i32 @get_absolute_num(i32 %2, i32 %7, i32 %8)
%10 = tail call i32 @get_absolute_num(i32 %2, i32 %7, i32 %4)
%11 = add nsw i32 %2, 1
%12 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %4)
%13 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %6, i32 %9, i32 %10, i32 %12)
%14 = add nsw i32 %1, 1
%15 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %8)
%16 = tail call i32 @get_absolute_num(i32 %2, i32 %7, i32 %8)
%17 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %8)
%18 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %4)
%19 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15, i32 %16, i32 %17, i32 %18)
%20 = add nsw i32 %1, 2
%21 = tail call i32 @get_absolute_num(i32 %2, i32 %7, i32 %8)
%22 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %4)
%23 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %8)
%24 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %4)
%25 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %20, i32 %21, i32 %22, i32 %23, i32 %24)
%26 = add nsw i32 %1, 3
%27 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %4)
%28 = tail call i32 @get_absolute_num(i32 %11, i32 %3, i32 %4)
%29 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %4)
%30 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %8)
%31 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %26, i32 %27, i32 %28, i32 %29, i32 %30)
%32 = add nsw i32 %1, 4
%33 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %8)
%34 = tail call i32 @get_absolute_num(i32 %11, i32 %3, i32 %4)
%35 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %8)
%36 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %4)
%37 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %33, i32 %34, i32 %35, i32 %36)
%38 = add nsw i32 %1, 5
%39 = tail call i32 @get_absolute_num(i32 %11, i32 %3, i32 %8)
%40 = tail call i32 @get_absolute_num(i32 %11, i32 %7, i32 %8)
%41 = tail call i32 @get_absolute_num(i32 %2, i32 %3, i32 %8)
%42 = tail call i32 @get_absolute_num(i32 %11, i32 %3, i32 %4)
%43 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %38, i32 %39, i32 %40, i32 %41, i32 %42)
ret i32 0
}