#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 */
scalar_t__ malloc(int);
char **getFirstDependenciesSet() {
  int rows = 7, cols = 2;
  char **dep = (char **)malloc(sizeof(char *) * rows * cols);
  for (int row = 0; row < rows; row++) {
    dep[row] = (char *)malloc(sizeof(char) * cols);
  }
  dep[0][0] = 'F';
  dep[0][1] = 'G';
  dep[1][0] = 'F';
  dep[1][1] = 'C';
  dep[2][0] = 'F';
  dep[2][1] = 'B';
  dep[3][0] = 'C';
  dep[3][1] = 'A';
  dep[4][0] = 'C';
  dep[4][1] = 'D';
  dep[5][0] = 'B';
  dep[5][1] = 'E';
  dep[6][0] = 'E';
  dep[6][1] = 'D';
  return dep;
}


x86 assembly (clang, -O0):
<getFirstDependenciesSet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x7,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
movslq -0x8(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1180 <getFirstDependenciesSet+0x70>
movslq -0x8(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,%rdx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1148 <getFirstDependenciesSet+0x38>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movb   $0x46,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movb   $0x47,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movb   $0x46,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movb   $0x43,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
movb   $0x46,(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
movb   $0x42,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
movb   $0x43,(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
movb   $0x41,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
movb   $0x43,(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
movb   $0x44,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rax
movb   $0x42,(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rax
movb   $0x45,0x1(%rax)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rax
movb   $0x45,(%rax)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rax
movb   $0x44,0x1(%rax)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getFirstDependenciesSet>:
push   %rbx
mov    $0x70,%edi
call   1030 <malloc@plt>
mov    %rax,%rbx
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x8(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x10(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x18(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x20(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x28(%rbx)
mov    $0x2,%edi
call   1030 <malloc@plt>
mov    %rax,0x30(%rbx)
mov    (%rbx),%rax
movb   $0x46,(%rax)
mov    (%rbx),%rax
movb   $0x47,0x1(%rax)
mov    0x8(%rbx),%rax
movb   $0x46,(%rax)
mov    0x8(%rbx),%rax
movb   $0x43,0x1(%rax)
mov    0x10(%rbx),%rax
movb   $0x46,(%rax)
mov    0x10(%rbx),%rax
movb   $0x42,0x1(%rax)
mov    0x18(%rbx),%rax
movb   $0x43,(%rax)
mov    0x18(%rbx),%rax
movb   $0x41,0x1(%rax)
mov    0x20(%rbx),%rax
movb   $0x43,(%rax)
mov    0x20(%rbx),%rax
movb   $0x44,0x1(%rax)
mov    0x28(%rbx),%rax
movb   $0x42,(%rax)
mov    0x28(%rbx),%rax
movb   $0x45,0x1(%rax)
mov    0x30(%rbx),%rax
movb   $0x45,(%rax)
mov    0x30(%rbx),%rax
movb   $0x44,0x1(%rax)
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8** @getFirstDependenciesSet() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8**
%4 = alloca i32
store i32 7, i32* %1
store i32 2, i32* %2
%5 = load i32, i32* %1
%6 = sext i32 %5 to i64
%7 = mul i64 8, %6
%8 = load i32, i32* %2
%9 = sext i32 %8 to i64
%10 = mul i64 %7, %9
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to i8**
store i8** %13, i8*** %3
store i32 0, i32* %4
br label %14
14: ; preds = %29, %0
%15 = load i32, i32* %4
%16 = load i32, i32* %1
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = mul i64 1, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 %22)
%24 = inttoptr i64 %23 to i8*
%25 = load i8**, i8*** %3
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8*, i8** %25, i64 %27
store i8* %24, i8** %28
br label %29
29: ; preds = %18
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
store i32 %31, i32* %4
br label %14
32: ; preds = %14
%33 = load i8**, i8*** %3
%34 = getelementptr inbounds i8*, i8** %33, i64 0
%35 = load i8*, i8** %34
%36 = getelementptr inbounds i8, i8* %35, i64 0
store i8 70, i8* %36
%37 = load i8**, i8*** %3
%38 = getelementptr inbounds i8*, i8** %37, i64 0
%39 = load i8*, i8** %38
%40 = getelementptr inbounds i8, i8* %39, i64 1
store i8 71, i8* %40
%41 = load i8**, i8*** %3
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = getelementptr inbounds i8, i8* %43, i64 0
store i8 70, i8* %44
%45 = load i8**, i8*** %3
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = getelementptr inbounds i8, i8* %47, i64 1
store i8 67, i8* %48
%49 = load i8**, i8*** %3
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = getelementptr inbounds i8, i8* %51, i64 0
store i8 70, i8* %52
%53 = load i8**, i8*** %3
%54 = getelementptr inbounds i8*, i8** %53, i64 2
%55 = load i8*, i8** %54
%56 = getelementptr inbounds i8, i8* %55, i64 1
store i8 66, i8* %56
%57 = load i8**, i8*** %3
%58 = getelementptr inbounds i8*, i8** %57, i64 3
%59 = load i8*, i8** %58
%60 = getelementptr inbounds i8, i8* %59, i64 0
store i8 67, i8* %60
%61 = load i8**, i8*** %3
%62 = getelementptr inbounds i8*, i8** %61, i64 3
%63 = load i8*, i8** %62
%64 = getelementptr inbounds i8, i8* %63, i64 1
store i8 65, i8* %64
%65 = load i8**, i8*** %3
%66 = getelementptr inbounds i8*, i8** %65, i64 4
%67 = load i8*, i8** %66
%68 = getelementptr inbounds i8, i8* %67, i64 0
store i8 67, i8* %68
%69 = load i8**, i8*** %3
%70 = getelementptr inbounds i8*, i8** %69, i64 4
%71 = load i8*, i8** %70
%72 = getelementptr inbounds i8, i8* %71, i64 1
store i8 68, i8* %72
%73 = load i8**, i8*** %3
%74 = getelementptr inbounds i8*, i8** %73, i64 5
%75 = load i8*, i8** %74
%76 = getelementptr inbounds i8, i8* %75, i64 0
store i8 66, i8* %76
%77 = load i8**, i8*** %3
%78 = getelementptr inbounds i8*, i8** %77, i64 5
%79 = load i8*, i8** %78
%80 = getelementptr inbounds i8, i8* %79, i64 1
store i8 69, i8* %80
%81 = load i8**, i8*** %3
%82 = getelementptr inbounds i8*, i8** %81, i64 6
%83 = load i8*, i8** %82
%84 = getelementptr inbounds i8, i8* %83, i64 0
store i8 69, i8* %84
%85 = load i8**, i8*** %3
%86 = getelementptr inbounds i8*, i8** %85, i64 6
%87 = load i8*, i8** %86
%88 = getelementptr inbounds i8, i8* %87, i64 1
store i8 68, i8* %88
%89 = load i8**, i8*** %3
ret i8** %89
}

LLVM IR (-O2):
define i8** @getFirstDependenciesSet() {
%1 = tail call i64 @malloc(i32 112)
%2 = inttoptr i64 %1 to i8**
%3 = tail call i64 @malloc(i32 2)
%4 = inttoptr i64 %3 to i8*
store i8* %4, i8** %2
%5 = tail call i64 @malloc(i32 2)
%6 = inttoptr i64 %5 to i8*
%7 = getelementptr inbounds i8*, i8** %2, i64 1
store i8* %6, i8** %7
%8 = tail call i64 @malloc(i32 2)
%9 = inttoptr i64 %8 to i8*
%10 = getelementptr inbounds i8*, i8** %2, i64 2
store i8* %9, i8** %10
%11 = tail call i64 @malloc(i32 2)
%12 = inttoptr i64 %11 to i8*
%13 = getelementptr inbounds i8*, i8** %2, i64 3
store i8* %12, i8** %13
%14 = tail call i64 @malloc(i32 2)
%15 = inttoptr i64 %14 to i8*
%16 = getelementptr inbounds i8*, i8** %2, i64 4
store i8* %15, i8** %16
%17 = tail call i64 @malloc(i32 2)
%18 = inttoptr i64 %17 to i8*
%19 = getelementptr inbounds i8*, i8** %2, i64 5
store i8* %18, i8** %19
%20 = tail call i64 @malloc(i32 2)
%21 = inttoptr i64 %20 to i8*
%22 = getelementptr inbounds i8*, i8** %2, i64 6
store i8* %21, i8** %22
%23 = load i8*, i8** %2
store i8 70, i8* %23
%24 = load i8*, i8** %2
%25 = getelementptr inbounds i8, i8* %24, i64 1
store i8 71, i8* %25
%26 = load i8*, i8** %7
store i8 70, i8* %26
%27 = load i8*, i8** %7
%28 = getelementptr inbounds i8, i8* %27, i64 1
store i8 67, i8* %28
%29 = load i8*, i8** %10
store i8 70, i8* %29
%30 = load i8*, i8** %10
%31 = getelementptr inbounds i8, i8* %30, i64 1
store i8 66, i8* %31
%32 = load i8*, i8** %13
store i8 67, i8* %32
%33 = load i8*, i8** %13
%34 = getelementptr inbounds i8, i8* %33, i64 1
store i8 65, i8* %34
%35 = load i8*, i8** %16
store i8 67, i8* %35
%36 = load i8*, i8** %16
%37 = getelementptr inbounds i8, i8* %36, i64 1
store i8 68, i8* %37
%38 = load i8*, i8** %19
store i8 66, i8* %38
%39 = load i8*, i8** %19
%40 = getelementptr inbounds i8, i8* %39, i64 1
store i8 69, i8* %40
%41 = load i8*, i8** %22
store i8 69, i8* %41
%42 = load i8*, i8** %22
%43 = getelementptr inbounds i8, i8* %42, i64 1
store i8 68, i8* %43
ret i8** %2
}