#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*/ print_set(int, int *);
int /*<<< orphan*/ printf(char *, int);
int set_size(int, int *);
void print_graph(int vertex_count, int G[2187][((2187 + 31) / 32)]) {
  int i, d;
  printf("%5d\n", vertex_count);
  for (i = 0; i < vertex_count; i++) {
    d = set_size(vertex_count, G[i]);
    printf("%5d", d);
    print_set(vertex_count, G[i]);
  }
}


x86 assembly (clang, -O0):
<print_graph>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeb7(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11b5 <print_graph+0x85>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rax
imul   $0x114,%rax,%rax
add    %rax,%rsi
call   1050 <set_size@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xe7d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rax
imul   $0x114,%rax,%rax
add    %rax,%rsi
call   1030 <print_set@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1155 <print_graph+0x25>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_graph>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%r15d
lea    0xebc(%rip),%rdi
mov    %r15d,%esi
call   1040 <printf@plt>
test   %r15d,%r15d
jle    118d <print_graph+0x5d>
mov    %r15d,%ebp
lea    0xeaa(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r15d,%edi
mov    %rbx,%rsi
call   1050 <set_size@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
call   1030 <print_set@plt>
add    $0x114,%rbx
add    $0xffffffffffffffff,%rbp
jne    1160 <print_graph+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%5d\0A\00"
@.str.1 = [4 x i8] c"%5d\00"
define void @print_graph(i32 %0, [69 x i32]* %1) {
%3 = alloca i32
%4 = alloca [69 x i32]*
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store [69 x i32]* %1, [69 x i32]** %4
%7 = load i32, i32* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %7)
store i32 0, i32* %5
br label %9
9: ; preds = %30, %2
%10 = load i32, i32* %5
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %9
%14 = load i32, i32* %3
%15 = load [69 x i32]*, [69 x i32]** %4
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [69 x i32], [69 x i32]* %15, i64 %17
%19 = getelementptr inbounds [69 x i32], [69 x i32]* %18, i64 0, i64 0
%20 = call i32 @set_size(i32 %14, i32* %19)
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %3
%24 = load [69 x i32]*, [69 x i32]** %4
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [69 x i32], [69 x i32]* %24, i64 %26
%28 = getelementptr inbounds [69 x i32], [69 x i32]* %27, i64 0, i64 0
%29 = call i32 @print_set(i32 %23, i32* %28)
br label %30
30: ; preds = %13
%31 = load i32, i32* %5
%32 = add nsw i32 %31, 1
store i32 %32, i32* %5
br label %9
33: ; preds = %9
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%5d\0A\00"
@.str.1 = [4 x i8] c"%5d\00"
define void @print_graph(i32 %0, [69 x i32]* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %15
5: ; preds = %2
%6 = zext i32 %0 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %13, %7 ]
%9 = getelementptr inbounds [69 x i32], [69 x i32]* %1, i64 %8, i64 0
%10 = tail call i32 @set_size(i32 %0, i32* %9)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = tail call i32 @print_set(i32 %0, i32* %9)
%13 = add nuw nsw i64 %8, 1
%14 = icmp eq i64 %13, %6
br i1 %14, label %15, label %7
15: ; preds = %7, %2
ret void
}