#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*/ printf(char *, char);
void print_line(int *l, int yM, int ym) {
  int j, j_ = ym;
  printf("%c", '.');
  for (j = 3; j < l[2] + 3; j++) {
    if (l[j] < ym)
      continue;
    else if (l[j] >= yM)
      break;
    else {
      while (j_++ < l[j])
        printf("%c", ' ');
      printf("%c", '0');
    }
  }
  while (j_++ < yM)
    printf("%c", ' ');
  printf("%c\n", '.');
  return;
}


x86 assembly (clang, -O0):
<print_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
lea    0xed1(%rip),%rdi
mov    $0x2e,%esi
call   1030 <printf@plt>
movl   $0x3,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%rcx
mov    0x8(%rcx),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jge    11e7 <print_line+0xd7>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x10(%rbp),%eax
jge    116e <print_line+0x5e>
jmp    11d9 <print_line+0xc9>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0xc(%rbp),%eax
jl     1187 <print_line+0x77>
jmp    11e7 <print_line+0xd7>
jmp    118c <print_line+0x7c>
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    11be <print_line+0xae>
lea    0xe51(%rip),%rdi
mov    $0x20,%esi
call   1030 <printf@plt>
jmp    118c <print_line+0x7c>
lea    0xe3b(%rip),%rdi
mov    $0x30,%esi
call   1030 <printf@plt>
jmp    11d4 <print_line+0xc4>
jmp    11d9 <print_line+0xc9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1140 <print_line+0x30>
jmp    11ec <print_line+0xdc>
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x18(%rbp)
cmp    -0xc(%rbp),%eax
jge    1216 <print_line+0x106>
lea    0xdf9(%rip),%rdi
mov    $0x20,%esi
call   1030 <printf@plt>
jmp    11ec <print_line+0xdc>
lea    0xde6(%rip),%rdi
mov    $0x2e,%esi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %esi,%r12d
mov    %rdi,%r13
lea    0xed5(%rip),%rdi
mov    $0x2e,%esi
call   1030 <printf@plt>
mov    0x8(%r13),%eax
test   %eax,%eax
jle    11a9 <print_line+0x99>
mov    $0x3,%ebp
lea    0xeb7(%rip),%r15
mov    %r14d,%ebx
jmp    1176 <print_line+0x66>
xchg   %ax,%ax
add    $0x1,%ebx
mov    %r15,%rdi
mov    $0x30,%esi
call   1030 <printf@plt>
mov    0x8(%r13),%eax
lea    0x1(%rbp),%rcx
lea    0x2(%rax),%edx
movslq %edx,%rdx
cmp    %rdx,%rbp
mov    %rcx,%rbp
jge    11ac <print_line+0x9c>
mov    0x0(%r13,%rbp,4),%ecx
cmp    %r14d,%ecx
jl     1164 <print_line+0x54>
cmp    %r12d,%ecx
jge    11ac <print_line+0x9c>
cmp    %ecx,%ebx
jge    1150 <print_line+0x40>
nopl   0x0(%rax)
mov    %r15,%rdi
mov    $0x20,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    0x0(%r13,%rbp,4),%ebx
jl     1190 <print_line+0x80>
jmp    1150 <print_line+0x40>
mov    %r14d,%ebx
cmp    %r12d,%ebx
jge    11d3 <print_line+0xc3>
sub    %ebx,%r12d
lea    0xe45(%rip),%rbp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x20,%esi
call   1030 <printf@plt>
add    $0xffffffff,%r12d
jne    11c0 <print_line+0xb0>
lea    0xe29(%rip),%rdi
mov    $0x2e,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

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

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