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


x86 assembly (clang, -O0):
<matrisiyazdir>:
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    11c4 <matrisiyazdir+0xb4>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x10(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1167 <matrisiyazdir+0x57>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1139 <matrisiyazdir+0x29>
lea    0xe96(%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    11aa <matrisiyazdir+0x9a>
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1184 <matrisiyazdir+0x74>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <matrisiyazdir+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<matrisiyazdir>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %esi,%esi
jle    11cf <matrisiyazdir+0xaf>
mov    %esi,%r14d
mov    %rdi,%r13
mov    %esi,%eax
mov    %rax,0x10(%rsp)
lea    -0x1(%r14),%eax
mov    %eax,0xc(%rsp)
xor    %ebp,%ebp
lea    0xeac(%rip),%r15
jmp    1175 <matrisiyazdir+0x55>
cs nopw 0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    0x10(%rsp),%rbp
je     11cf <matrisiyazdir+0xaf>
cmpl   $0x0,0x0(%r13,%rbp,4)
jle    1193 <matrisiyazdir+0x73>
xor    %r12d,%r12d
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0x1,%r12d
cmp    0x0(%r13,%rbp,4),%r12d
jl     1180 <matrisiyazdir+0x60>
lea    0xe6a(%rip),%rdi
call   1040 <printf@plt>
mov    0x0(%r13,%rbp,4),%eax
lea    0x1(%rax),%ecx
cmp    %r14d,%ecx
jge    1160 <matrisiyazdir+0x40>
mov    0xc(%rsp),%ebx
sub    %eax,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0xffffffff,%ebx
jne    11c0 <matrisiyazdir+0xa0>
jmp    1160 <matrisiyazdir+0x40>
add    $0x18,%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 @matrisiyazdir(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 = %46, %2
%10 = load i32, i32* %5
%11 = load i32, i32* %4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %49
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 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32*, i32** %3
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %29, i64 %31
%33 = load i32, i32* %32
%34 = add nsw i32 %33, 1
store i32 %34, i32* %8
br label %35
35: ; preds = %41, %27
%36 = load i32, i32* %8
%37 = load i32, i32* %4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %41
41: ; preds = %39
%42 = load i32, i32* %8
%43 = add nsw i32 %42, 1
store i32 %43, i32* %8
br label %35
44: ; preds = %35
%45 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %46
46: ; preds = %44
%47 = load i32, i32* %5
%48 = add nsw i32 %47, 1
store i32 %48, i32* %5
br label %9
49: ; preds = %9
ret void
}

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