#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*/ log_printf(int, char *, ...);
void printSteinNummern(int field[], int breite, int currentPlace) {
  int n = breite;
  log_printf(1, "  | "
                "\033[2m");
  while (n) {
    if (field[currentPlace] == -1) {
      for (int i = 0; i < breite; i++) {
        log_printf(1, " ");
      }
    } else {
      log_printf(1,
                 "\033[2m"
                 "(%i)"
                 "\033[0m",
                 field[currentPlace]);
      if (field[currentPlace] < 10) {
        log_printf(1, " ");
      }
    }
    log_printf(1, " ");
    currentPlace++;
    n--;
  }
  log_printf(1, "|\n");
  currentPlace = currentPlace - breite;
  n = breite;
}


x86 assembly (clang, -O0):
<printSteinNummern>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x1,%edi
lea    0xecc(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
cmpl   $0x0,-0x14(%rbp)
je     1202 <printSteinNummern+0xf2>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    1190 <printSteinNummern+0x80>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    118b <printSteinNummern+0x7b>
mov    $0x1,%edi
lea    0xe93(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115e <printSteinNummern+0x4e>
jmp    11d8 <printSteinNummern+0xc8>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    $0x1,%edi
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpl   $0xa,(%rax,%rcx,4)
jge    11d3 <printSteinNummern+0xc3>
mov    $0x1,%edi
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
jmp    11d8 <printSteinNummern+0xc8>
mov    $0x1,%edi
lea    0xe25(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    113b <printSteinNummern+0x2b>
mov    $0x1,%edi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1030 <log_printf@plt>
mov    -0x10(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printSteinNummern>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %esi,%r15d
mov    %rdi,%r12
lea    0xed6(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_printf@plt>
test   %r15d,%r15d
je     11c7 <printSteinNummern+0xb7>
movslq %ebp,%rbx
lea    0xec0(%rip),%r13
mov    %r15d,%ebp
jmp    1168 <printSteinNummern+0x58>
xchg   %ax,%ax
mov    $0x1,%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <log_printf@plt>
add    $0x1,%rbx
add    $0xffffffff,%ebp
je     11c7 <printSteinNummern+0xb7>
mov    (%r12,%rbx,4),%edx
cmp    $0xffffffff,%edx
je     11a0 <printSteinNummern+0x90>
mov    $0x1,%edi
lea    0xe8e(%rip),%rsi
xor    %eax,%eax
call   1030 <log_printf@plt>
cmpl   $0x9,(%r12,%rbx,4)
jg     1150 <printSteinNummern+0x40>
mov    $0x1,%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <log_printf@plt>
jmp    1150 <printSteinNummern+0x40>
nopl   0x0(%rax)
test   %r15d,%r15d
jle    1150 <printSteinNummern+0x40>
mov    %r15d,%r14d
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <log_printf@plt>
add    $0xffffffff,%r14d
jne    11b0 <printSteinNummern+0xa0>
jmp    1150 <printSteinNummern+0x40>
lea    0xe4a(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <log_printf@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c" | \1B[2m\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [13 x i8] c"\1B[2m(%i)\1B[0m\00"
@.str.3 = [3 x i8] c"|\0A\00"
define void @printSteinNummern(i32* nocapture %0, i32 %1, i32 %2) {
%4 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %1, 0
br i1 %5, label %32, label %6
6: ; preds = %3
%7 = icmp sgt i32 %1, 0
%8 = sext i32 %2 to i64
br label %9
9: ; preds = %6, %27
%10 = phi i64 [ %8, %6 ], [ %29, %27 ]
%11 = phi i32 [ %1, %6 ], [ %30, %27 ]
%12 = getelementptr inbounds i32, i32* %0, i64 %10
%13 = load i32, i32* %12
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %9
br i1 %7, label %16, label %27
16: ; preds = %15, %16
%17 = phi i32 [ %19, %16 ], [ 0, %15 ]
%18 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = add nuw nsw i32 %17, 1
%20 = icmp eq i32 %19, %1
br i1 %20, label %27, label %16
21: ; preds = %9
%22 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%23 = load i32, i32* %12
%24 = icmp slt i32 %23, 10
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %27
27: ; preds = %16, %15, %21, %25
%28 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = add nsw i64 %10, 1
%30 = add nsw i32 %11, -1
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %9
32: ; preds = %27, %3
%33 = tail call i32 (i32, i8*, ...) @log_printf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
ret void
}