#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*/ put_clear();
int /*<<< orphan*/ put_this(char);
void column_pattern(void) {
  int i, j;
  put_clear();
  for (i = 0; i < 20; i++) {
    for (j = 1; j < 10; j++) {
      put_this('0' + j);
    }
    put_this('.');
  }
}


x86 assembly (clang, -O0):
<column_pattern>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <put_clear@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x14,-0x4(%rbp)
jge    1185 <column_pattern+0x65>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    116d <column_pattern+0x4d>
mov    -0x8(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <put_this@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1147 <column_pattern+0x27>
mov    $0x2e,%edi
call   1030 <put_this@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1136 <column_pattern+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<column_pattern>:
push   %rbx
xor    %eax,%eax
call   1040 <put_clear@plt>
mov    $0x14,%ebx
nopl   (%rax)
mov    $0x31,%edi
call   1030 <put_this@plt>
mov    $0x32,%edi
call   1030 <put_this@plt>
mov    $0x33,%edi
call   1030 <put_this@plt>
mov    $0x34,%edi
call   1030 <put_this@plt>
mov    $0x35,%edi
call   1030 <put_this@plt>
mov    $0x36,%edi
call   1030 <put_this@plt>
mov    $0x37,%edi
call   1030 <put_this@plt>
mov    $0x38,%edi
call   1030 <put_this@plt>
mov    $0x39,%edi
call   1030 <put_this@plt>
mov    $0x2e,%edi
call   1030 <put_this@plt>
add    $0xffffffff,%ebx
jne    1130 <column_pattern+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @column_pattern() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @put_clear()
store i32 0, i32* %1
br label %4
4: ; preds = %21, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 20
br i1 %6, label %7, label %24
7: ; preds = %4
store i32 1, i32* %2
br label %8
8: ; preds = %16, %7
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, i32* %2
%13 = add nsw i32 48, %12
%14 = trunc i32 %13 to i8
%15 = call i32 @put_this(i8 signext %14)
br label %16
16: ; preds = %11
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %8
19: ; preds = %8
%20 = call i32 @put_this(i8 signext 46)
br label %21
21: ; preds = %19
%22 = load i32, i32* %1
%23 = add nsw i32 %22, 1
store i32 %23, i32* %1
br label %4
24: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @column_pattern() {
%1 = tail call i32 (...) @put_clear()
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %14, %2 ]
%4 = tail call i32 @put_this(i8 signext 49)
%5 = tail call i32 @put_this(i8 signext 50)
%6 = tail call i32 @put_this(i8 signext 51)
%7 = tail call i32 @put_this(i8 signext 52)
%8 = tail call i32 @put_this(i8 signext 53)
%9 = tail call i32 @put_this(i8 signext 54)
%10 = tail call i32 @put_this(i8 signext 55)
%11 = tail call i32 @put_this(i8 signext 56)
%12 = tail call i32 @put_this(i8 signext 57)
%13 = tail call i32 @put_this(i8 signext 46)
%14 = add nuw nsw i32 %3, 1
%15 = icmp eq i32 %14, 20
br i1 %15, label %16, label %2
16: ; preds = %2
ret void
}