#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 *);
void PrintMatrix(int *liste, int n) {
  int i, j;
  for (i = 0; i < n; i++) {
    for (int j = 0; j < liste[i]; j++)
      printf("( )");
    if (liste[i] != -1)
      printf("(V)");
    for (int j = liste[i] + 1; j < n; j++)
      printf("( )");
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<PrintMatrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11d6 <PrintMatrix+0xc6>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x10(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1167 <PrintMatrix+0x57>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1139 <PrintMatrix+0x29>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
je     1185 <PrintMatrix+0x75>
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11bc <PrintMatrix+0xac>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1196 <PrintMatrix+0x86>
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <PrintMatrix+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintMatrix>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    11cf <PrintMatrix+0xaf>
mov    %esi,%r14d
mov    %rdi,%rbx
mov    %esi,%r13d
lea    -0x1(%r14),%eax
mov    %eax,0x4(%rsp)
xor    %r12d,%r12d
lea    0xeb2(%rip),%r15
jmp    1163 <PrintMatrix+0x43>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
cmp    %r13,%r12
je     11cf <PrintMatrix+0xaf>
mov    (%rbx,%r12,4),%eax
test   %eax,%eax
jle    1183 <PrintMatrix+0x63>
xor    %ebp,%ebp
nopl   (%rax)
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0x1,%ebp
mov    (%rbx,%r12,4),%eax
cmp    %eax,%ebp
jl     1170 <PrintMatrix+0x50>
cmp    $0xffffffff,%eax
je     11a0 <PrintMatrix+0x80>
lea    0xe75(%rip),%rdi
call   1040 <printf@plt>
mov    (%rbx,%r12,4),%eax
jmp    11a5 <PrintMatrix+0x85>
nopw   0x0(%rax,%rax,1)
mov    $0xffffffff,%eax
lea    0x1(%rax),%ecx
cmp    %r14d,%ecx
jge    1150 <PrintMatrix+0x30>
mov    0x4(%rsp),%ebp
sub    %eax,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    11c0 <PrintMatrix+0xa0>
jmp    1150 <PrintMatrix+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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