#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 */
struct timezone {
  int dummy;
};
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(float **);
int /*<<< orphan*/ gettimeofday(struct timeval *, struct timezone *);
scalar_t__ malloc(int);
int omp_get_num_threads();
int /*<<< orphan*/ omp_set_num_threads(int);
int /*<<< orphan*/ printf(char *, ...);
main(int argc, char **argv) {
  int NoofRows, NoofCols, i, j, Total_threads, Noofthreads;
  float **Matrix, **Trans, **Checkoutput, flops;
  struct timeval TimeValue_Start;
  struct timezone TimeZone_Start;
  struct timeval TimeValue_Final;
  struct timezone TimeZone_Final;
  long time_start, time_end;
  double time_overhead;
  printf("\n\t\t---------------------------------------------------------------"
         "------------");
  printf("\n\t\t Email : RarchK");
  printf("\n\t\t---------------------------------------------------------------"
         "------------");
  printf("\n\t\t Objective : Implementation of the transpose of matrix .");
  printf("\n\t\t using OpenMP Parallel for directive,Private Clause. ");
  printf("\n\t\t..............................................................."
         "...........\n");
  if (argc != 4) {
    printf("\t\t Very Few Arguments\n ");
    printf("\t\t Syntax : exec <Threads> <NoOfRows> <NoOfColumns>\n");
    exit(-1);
  }
  Noofthreads = atoi(argv[1]);
  if ((Noofthreads != 1) && (Noofthreads != 2) && (Noofthreads != 4) &&
      (Noofthreads != 8) && (Noofthreads != 16)) {
    printf("\n Number of threads should be 1,2,4,8 or 16 for the execution of "
           "program. \n\n");
    exit(-1);
  }
  NoofRows = atoi(argv[2]);
  NoofCols = atoi(argv[3]);
  printf("\n\t\t Threads : %d ", Noofthreads);
  printf("\n\t\t Matrix Size  : %d X %d \n  ", NoofRows, NoofCols);
  if (NoofRows <= 0 || NoofCols <= 0) {
    printf("\n\t\t The NoofRows And NoofCols Should Be Of Positive Sign\n");
    exit(1);
  }
  Matrix = (float **)malloc(sizeof(float *) * NoofRows);
  for (i = 0; i < NoofRows; i++) {
    Matrix[i] = (float *)malloc(sizeof(float) * NoofCols);
    for (j = 0; j < NoofCols; j++)
      Matrix[i][j] = (i * j) * 5 + i;
  }
  Trans = (float **)malloc(sizeof(float *) * NoofCols);
  Checkoutput = (float **)malloc(sizeof(float *) * NoofCols);
  for (i = 0; i < NoofCols; i++) {
    Checkoutput[i] = (float *)malloc(sizeof(float) * NoofRows);
    Trans[i] = (float *)malloc(sizeof(float) * NoofRows);
    for (j = 0; j < NoofRows; j++) {
      Checkoutput[i][j] = 0;
      Trans[i][j] = 0;
    }
  }
  gettimeofday(&TimeValue_Start, &TimeZone_Start);
  omp_set_num_threads(Noofthreads);
#pragma omp parallel for private(j)
  for (i = 0; i < NoofRows; i = i + 1) {
    Total_threads = omp_get_num_threads();
    for (j = 0; j < NoofCols; j = j + 1) {
      Trans[j][i] = Matrix[i][j];
    }
  }
  gettimeofday(&TimeValue_Final, &TimeZone_Final);
  time_start = TimeValue_Start.tv_sec * 1000000 + TimeValue_Start.tv_usec;
  time_end = TimeValue_Final.tv_sec * 1000000 + TimeValue_Final.tv_usec;
  time_overhead = (time_end - time_start) / 1000000.0;
  for (i = 0; i < NoofRows; i = i + 1)
    for (j = 0; j < NoofCols; j = j + 1)
      Checkoutput[j][i] = Matrix[i][j];
  for (i = 0; i < NoofCols; i = i + 1)
    for (j = 0; j < NoofRows; j = j + 1)
      if (Checkoutput[i][j] == Trans[i][j])
        continue;
      else {
        printf("There Is A Difference From Serial And Parallel Calculation \n");
        exit(-1);
      }
  printf("\n\n\t\t Transpose of the matrix is ................ Done");
  printf("\n\n\t\t Time in Seconds (T)         : %lf", time_overhead);
  printf("\n\n\t\t   ( T represents the Time taken for computation )");
  printf("\n\t\t..............................................................."
         "...........\n");
  free(Matrix);
  free(Checkoutput);
  free(Trans);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
je     121d <main+0x9d>
lea    0xf30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     1277 <main+0xf7>
cmpl   $0x2,-0x28(%rbp)
je     1277 <main+0xf7>
cmpl   $0x4,-0x28(%rbp)
je     1277 <main+0xf7>
cmpl   $0x8,-0x28(%rbp)
je     1277 <main+0xf7>
cmpl   $0x10,-0x28(%rbp)
je     1277 <main+0xf7>
lea    0xf15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x28(%rbp),%esi
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
jle    12d0 <main+0x150>
cmpl   $0x0,-0x18(%rbp)
jg     12e8 <main+0x168>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1386 <main+0x206>
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1373 <main+0x1f3>
mov    -0x1c(%rbp),%eax
imul   -0x20(%rbp),%eax
imul   $0x5,%eax,%eax
add    -0x1c(%rbp),%eax
cvtsi2ss %eax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1333 <main+0x1b3>
jmp    1378 <main+0x1f8>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1302 <main+0x182>
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    145f <main+0x2df>
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    144c <main+0x2cc>
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1402 <main+0x282>
jmp    1451 <main+0x2d1>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13b3 <main+0x233>
lea    -0x50(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   1050 <gettimeofday@plt>
mov    -0x28(%rbp),%edi
call   1080 <omp_set_num_threads@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14ef <main+0x36f>
mov    $0x0,%al
call   1060 <omp_get_num_threads@plt>
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    14dc <main+0x35c>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1498 <main+0x318>
jmp    14e1 <main+0x361>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    147b <main+0x2fb>
lea    -0x60(%rbp),%rdi
lea    -0x68(%rbp),%rsi
call   1050 <gettimeofday@plt>
imul   $0xf4240,-0x50(%rbp),%eax
add    -0x4c(%rbp),%eax
cltq
mov    %rax,-0x70(%rbp)
imul   $0xf4240,-0x60(%rbp),%eax
add    -0x5c(%rbp),%eax
cltq
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
sub    -0x70(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0xacf(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15ab <main+0x42b>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1598 <main+0x418>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1554 <main+0x3d4>
jmp    159d <main+0x41d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1541 <main+0x3c1>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1644 <main+0x4c4>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1631 <main+0x4b1>
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
ucomiss (%rax,%rcx,4),%xmm0
jne    160b <main+0x48b>
jp     160b <main+0x48b>
jmp    1623 <main+0x4a3>
lea    0xc21(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    15c5 <main+0x445>
jmp    1636 <main+0x4b6>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    15b2 <main+0x432>
lea    0xc25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x80(%rbp),%xmm0
lea    0xc48(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xc61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%rbx
mov    %edi,%r14d
lea    0xead(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeeb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf14(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x101c(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x4,%r14d
jne    1a77 <main+0x8e7>
mov    0x8(%rbx),%rdi
call   10a0 <atoi@plt>
cmp    $0x10,%eax
ja     1aa4 <main+0x914>
mov    %eax,%ebp
mov    $0x10116,%eax
bt     %ebp,%eax
jae    1aa4 <main+0x914>
mov    0x10(%rbx),%rdi
call   10a0 <atoi@plt>
mov    0x18(%rbx),%rdi
mov    %rax,%rbx
call   10a0 <atoi@plt>
mov    %eax,%r15d
lea    0xf07(%rip),%rdi
mov    %ebp,0x2c(%rsp)
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf05(%rip),%rdi
mov    %ebx,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebx,%ebx
jle    1a8e <main+0x8fe>
test   %r15d,%r15d
jle    1a8e <main+0x8fe>
movabs $0x3ffffffffffffffc,%r12
ff ff 3f
lea    0x0(,%rbx,8),%edi
call   1080 <malloc@plt>
mov    %rax,0x30(%rsp)
lea    0x0(,%r15,4),%r14d
mov    %rbx,0x8(%rsp)
mov    %ebx,%eax
mov    %rax,(%rsp)
mov    %r15d,%ebp
mov    %ebp,%ebx
and    $0xfffffff8,%ebx
lea    -0x8(%rbx),%rax
mov    %rax,0x10(%rsp)
shr    $0x3,%rax
add    $0x1,%rax
lea    0x2(%r12),%rdx
mov    %rax,%rcx
mov    %rax,0x20(%rsp)
and    %rax,%rdx
mov    %rdx,0x18(%rsp)
xor    %r12d,%r12d
xor    %r13d,%r13d
jmp    12f1 <main+0x161>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13
add    $0x5,%r12d
cmp    %rsi,%r13
je     1510 <main+0x380>
mov    %r14d,%edi
call   1080 <malloc@plt>
mov    0x30(%rsp),%rcx
mov    %rax,(%rcx,%r13,8)
cmp    $0x8,%r15d
jae    1320 <main+0x190>
xor    %ecx,%ecx
mov    (%rsp),%rsi
jmp    14c4 <main+0x334>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x0(%r13,%r13,4),%ecx
movd   %ecx,%xmm0
pshufd $0x0,%xmm0,%xmm1
movd   %r13d,%xmm0
pshufd $0x0,%xmm0,%xmm0
pshufd $0xf5,%xmm1,%xmm2
cmpq   $0x0,0x10(%rsp)
je     14ed <main+0x35d>
mov    0x18(%rsp),%rdx
xor    %ecx,%ecx
movdqa 0xca8(%rip),%xmm3
mov    (%rsp),%rsi
movdqa 0xcac(%rip),%xmm7
movdqa 0xcb3(%rip),%xmm8
movdqa 0xcba(%rip),%xmm9
movdqa 0xcc1(%rip),%xmm10
nop
movdqa %xmm3,%xmm4
paddd  %xmm7,%xmm4
movdqa %xmm1,%xmm5
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm2,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
movdqa %xmm1,%xmm6
pmuludq %xmm4,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pshufd $0xf5,%xmm4,%xmm4
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm6
paddd  %xmm0,%xmm5
paddd  %xmm0,%xmm6
cvtdq2ps %xmm5,%xmm4
cvtdq2ps %xmm6,%xmm5
movups %xmm4,(%rax,%rcx,4)
movups %xmm5,0x10(%rax,%rcx,4)
movdqa %xmm3,%xmm4
paddd  %xmm8,%xmm4
movdqa %xmm3,%xmm5
paddd  %xmm9,%xmm5
movdqa %xmm1,%xmm6
pmuludq %xmm4,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pshufd $0xf5,%xmm4,%xmm4
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm6
movdqa %xmm1,%xmm4
pmuludq %xmm5,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
paddd  %xmm0,%xmm6
paddd  %xmm0,%xmm4
cvtdq2ps %xmm6,%xmm5
cvtdq2ps %xmm4,%xmm4
movups %xmm5,0x20(%rax,%rcx,4)
movups %xmm4,0x30(%rax,%rcx,4)
add    $0x10,%rcx
paddd  %xmm10,%xmm3
add    $0xfffffffffffffffe,%rdx
jne    1380 <main+0x1f0>
testb  $0x1,0x20(%rsp)
je     14b8 <main+0x328>
movdqa %xmm3,%xmm4
paddd  %xmm7,%xmm4
movdqa %xmm1,%xmm5
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm5
pmuludq %xmm4,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm4,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm1
paddd  %xmm0,%xmm5
paddd  %xmm0,%xmm1
cvtdq2ps %xmm5,%xmm0
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rax,%rcx,4)
movups %xmm1,0x10(%rax,%rcx,4)
mov    %rbx,%rcx
cmp    %rbp,%rbx
je     12e0 <main+0x150>
mov    %r12d,%edx
imul   %ecx,%edx
add    %r13d,%edx
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2ss %edx,%xmm0
movss  %xmm0,(%rax,%rcx,4)
add    $0x1,%rcx
add    %r12d,%edx
cmp    %rcx,%rbp
jne    14d0 <main+0x340>
jmp    12e0 <main+0x150>
xor    %ecx,%ecx
movdqa 0xb09(%rip),%xmm3
mov    (%rsp),%rsi
movdqa 0xb0d(%rip),%xmm7
testb  $0x1,0x20(%rsp)
jne    145f <main+0x2cf>
jmp    14b8 <main+0x328>
mov    %rbp,0x10(%rsp)
lea    0x0(,%r15,8),%ebx
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %r15,0x20(%rsp)
test   %r15d,%r15d
jle    1775 <main+0x5e5>
mov    0x8(%rsp),%rax
lea    0x0(,%rax,4),%eax
mov    %eax,0x18(%rsp)
mov    (%rsp),%rax
mov    %eax,%ecx
and    $0xfffffff8,%ecx
mov    %rcx,0x60(%rsp)
add    $0xfffffffffffffff8,%rcx
mov    %rcx,0x58(%rsp)
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
mov    %edx,%ebp
and    $0x3,%ebp
movabs $0x3ffffffffffffffc,%rcx
ff ff 3f
and    %rcx,%rdx
mov    %rdx,0x48(%rsp)
mov    %eax,%r15d
and    $0x3,%r15d
mov    %rbp,0x50(%rsp)
shl    $0x5,%rbp
xor    %r12d,%r12d
jmp    15af <main+0x41f>
nopl   (%rax)
add    $0x1,%r12
cmp    0x10(%rsp),%r12
je     1775 <main+0x5e5>
mov    0x18(%rsp),%ebx
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,(%r14,%r12,8)
mov    %ebx,%edi
call   1080 <malloc@plt>
pxor   %xmm0,%xmm0
mov    %rax,0x0(%r13,%r12,8)
cmpl   $0x0,0x8(%rsp)
mov    (%rsp),%rbx
jle    15a0 <main+0x410>
mov    (%r14,%r12,8),%rcx
cmpl   $0x8,0x8(%rsp)
jb     15fe <main+0x46e>
lea    (%rax,%rbx,4),%rdx
cmp    %rdx,%rcx
jae    169c <main+0x50c>
lea    (%rcx,%rbx,4),%rdx
cmp    %rdx,%rax
jae    169c <main+0x50c>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %rbx,%rsi
test   %r15,%r15
je     1638 <main+0x4a8>
mov    %r15,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movl   $0x0,(%rcx,%rdx,4)
movl   $0x0,(%rax,%rdx,4)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1620 <main+0x490>
cmp    $0x3,%rsi
jb     15a0 <main+0x410>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movl   $0x0,(%rcx,%rdx,4)
movl   $0x0,(%rax,%rdx,4)
movl   $0x0,0x4(%rcx,%rdx,4)
movl   $0x0,0x4(%rax,%rdx,4)
movl   $0x0,0x8(%rcx,%rdx,4)
movl   $0x0,0x8(%rax,%rdx,4)
movl   $0x0,0xc(%rcx,%rdx,4)
movl   $0x0,0xc(%rax,%rdx,4)
add    $0x4,%rdx
cmp    %rdx,%rbx
jne    1650 <main+0x4c0>
jmp    15a0 <main+0x410>
cmpq   $0x18,0x58(%rsp)
jae    16a8 <main+0x518>
xor    %edx,%edx
jmp    1718 <main+0x588>
mov    0x48(%rsp),%rsi
xor    %edx,%edx
nop
movdqu %xmm0,(%rcx,%rdx,4)
movdqu %xmm0,0x10(%rcx,%rdx,4)
movdqu %xmm0,(%rax,%rdx,4)
movdqu %xmm0,0x10(%rax,%rdx,4)
movdqu %xmm0,0x20(%rcx,%rdx,4)
movdqu %xmm0,0x30(%rcx,%rdx,4)
movdqu %xmm0,0x20(%rax,%rdx,4)
movdqu %xmm0,0x30(%rax,%rdx,4)
movdqu %xmm0,0x40(%rcx,%rdx,4)
movdqu %xmm0,0x50(%rcx,%rdx,4)
movdqu %xmm0,0x40(%rax,%rdx,4)
movdqu %xmm0,0x50(%rax,%rdx,4)
movdqu %xmm0,0x60(%rcx,%rdx,4)
movdqu %xmm0,0x70(%rcx,%rdx,4)
movdqu %xmm0,0x60(%rax,%rdx,4)
movdqu %xmm0,0x70(%rax,%rdx,4)
add    $0x20,%rdx
add    $0xfffffffffffffffc,%rsi
jne    16b0 <main+0x520>
cmpq   $0x0,0x50(%rsp)
je     175f <main+0x5cf>
lea    (%rax,%rdx,4),%rsi
add    $0x10,%rsi
lea    (%rcx,%rdx,4),%rdx
add    $0x10,%rdx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqu %xmm0,-0x10(%rdx,%rdi,1)
movdqu %xmm0,(%rdx,%rdi,1)
movdqu %xmm0,-0x10(%rsi,%rdi,1)
movdqu %xmm0,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rbp
jne    1740 <main+0x5b0>
mov    0x60(%rsp),%rsi
mov    %rsi,%rdx
cmp    %rbx,%rsi
je     15a0 <main+0x410>
jmp    1600 <main+0x470>
mov    0x30(%rsp),%rbx
lea    0x40(%rsp),%rdi
lea    0x70(%rsp),%rsi
call   1060 <gettimeofday@plt>
mov    0x2c(%rsp),%edi
call   1090 <omp_set_num_threads@plt>
cmpl   $0x0,0x8(%rsp)
jle    188d <main+0x6fd>
mov    0x10(%rsp),%r15
lea    -0x1(%r15),%rax
mov    %rax,0x18(%rsp)
mov    %r15d,%ebp
and    $0x3,%ebp
and    $0xfffffffc,%r15d
xor    %r12d,%r12d
jmp    17cd <main+0x63d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r12
cmp    %rdi,%r12
je     188d <main+0x6fd>
xor    %eax,%eax
call   1070 <omp_get_num_threads@plt>
cmpl   $0x0,0x20(%rsp)
mov    (%rsp),%rdi
jle    17c0 <main+0x630>
mov    (%rbx,%r12,8),%rax
cmpq   $0x3,0x18(%rsp)
jae    17f0 <main+0x660>
xor    %ecx,%ecx
jmp    184c <main+0x6bc>
nop
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  (%rax,%rcx,4),%xmm0
mov    0x0(%r13,%rcx,8),%rdx
movss  %xmm0,(%rdx,%r12,4)
movss  0x4(%rax,%rcx,4),%xmm0
mov    0x8(%r13,%rcx,8),%rdx
movss  %xmm0,(%rdx,%r12,4)
movss  0x8(%rax,%rcx,4),%xmm0
mov    0x10(%r13,%rcx,8),%rdx
movss  %xmm0,(%rdx,%r12,4)
movd   0xc(%rax,%rcx,4),%xmm0
mov    0x18(%r13,%rcx,8),%rdx
movd   %xmm0,(%rdx,%r12,4)
add    $0x4,%rcx
cmp    %rcx,%r15
jne    1800 <main+0x670>
test   %rbp,%rbp
je     17c0 <main+0x630>
lea    0x0(,%rcx,8),%rdx
add    %r13,%rdx
lea    (%rax,%rcx,4),%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movd   (%rax,%rcx,4),%xmm0
mov    (%rdx,%rcx,8),%rsi
movd   %xmm0,(%rsi,%r12,4)
add    $0x1,%rcx
cmp    %rcx,%rbp
jne    1870 <main+0x6e0>
jmp    17c0 <main+0x630>
lea    0x38(%rsp),%rdi
lea    0x68(%rsp),%rsi
call   1060 <gettimeofday@plt>
cmpl   $0x0,0x8(%rsp)
mov    %rbx,%r15
mov    (%rsp),%rdx
jle    196c <main+0x7dc>
mov    0x10(%rsp),%r9
lea    -0x1(%r9),%r8
mov    %r9d,%ecx
and    $0x3,%ecx
and    $0xfffffffc,%r9d
xor    %esi,%esi
jmp    18dd <main+0x74d>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rsi
cmp    %rdx,%rsi
je     196c <main+0x7dc>
cmpl   $0x0,0x20(%rsp)
jle    18d0 <main+0x740>
mov    (%r15,%rsi,8),%rdi
xor    %ebp,%ebp
cmp    $0x3,%r8
jb     1937 <main+0x7a7>
movss  (%rdi,%rbp,4),%xmm0
mov    (%r14,%rbp,8),%rax
movss  %xmm0,(%rax,%rsi,4)
movss  0x4(%rdi,%rbp,4),%xmm0
mov    0x8(%r14,%rbp,8),%rax
movss  %xmm0,(%rax,%rsi,4)
movss  0x8(%rdi,%rbp,4),%xmm0
mov    0x10(%r14,%rbp,8),%rax
movss  %xmm0,(%rax,%rsi,4)
movd   0xc(%rdi,%rbp,4),%xmm0
mov    0x18(%r14,%rbp,8),%rax
movd   %xmm0,(%rax,%rsi,4)
add    $0x4,%rbp
cmp    %rbp,%r9
jne    18f0 <main+0x760>
test   %rcx,%rcx
je     18d0 <main+0x740>
lea    (%r14,%rbp,8),%rax
lea    (%rdi,%rbp,4),%rdi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movd   (%rdi,%rbp,4),%xmm0
mov    (%rax,%rbp,8),%rbx
movd   %xmm0,(%rbx,%rsi,4)
add    $0x1,%rbp
cmp    %rbp,%rcx
jne    1950 <main+0x7c0>
jmp    18d0 <main+0x740>
movslq 0x40(%rsp),%r9
movslq 0x44(%rsp),%r8
movslq 0x38(%rsp),%rsi
movslq 0x3c(%rsp),%r10
cmpl   $0x0,0x20(%rsp)
mov    0x8(%rsp),%rbx
jle    19d1 <main+0x841>
xor    %edi,%edi
jmp    199b <main+0x80b>
add    $0x1,%rdi
cmp    0x10(%rsp),%rdi
je     19d1 <main+0x841>
test   %ebx,%ebx
jle    1990 <main+0x800>
mov    (%r14,%rdi,8),%rbp
mov    0x0(%r13,%rdi,8),%rax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movss  0x0(%rbp,%rcx,4),%xmm0
ucomiss (%rax,%rcx,4),%xmm0
jne    1a61 <main+0x8d1>
jp     1a61 <main+0x8d1>
add    $0x1,%rcx
cmp    %rcx,%rdx
jne    19b0 <main+0x820>
jmp    1990 <main+0x800>
imul   $0xf4240,%rsi,%rax
add    %r10,%rax
imul   $0xf4240,%r9,%rcx
add    %r8,%rcx
sub    %rcx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x658(%rip),%xmm0
movsd  %xmm0,(%rsp)
lea    0x774(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x79c(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0x7b0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x7d9(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x7f2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
lea    0x6b1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x88f(%rip),%rdi
jmp    1a68 <main+0x8d8>
lea    0x801(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    0x824(%rip),%rdi
jmp    1a68 <main+0x8d8>

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
%struct.timezone = type { i32 }
@.str = [79 x i8] c"\0A\09\09---------------------------------------------------------------------------\00"
@.str.1 = [19 x i8] c"\0A\09\09 Email : RarchK\00"
@.str.2 = [60 x i8] c"\0A\09\09 Objective : Implementation of the transpose of matrix .\00"
@.str.3 = [57 x i8] c"\0A\09\09 using OpenMP Parallel for directive,Private Clause. \00"
@.str.4 = [79 x i8] c"\0A\09\09..........................................................................\0A\00"
@.str.5 = [24 x i8] c"\09\09 Very Few Arguments\0A \00"
@.str.6 = [53 x i8] c"\09\09 Syntax : exec <Threads> <NoOfRows> <NoOfColumns>\0A\00"
@.str.7 = [77 x i8] c"\0A Number of threads should be 1,2,4,8 or 16 for the execution of program. \0A\0A\00"
@.str.8 = [18 x i8] c"\0A\09\09 Threads : %d \00"
@.str.9 = [31 x i8] c"\0A\09\09 Matrix Size : %d X %d \0A \00"
@.str.10 = [58 x i8] c"\0A\09\09 The NoofRows And NoofCols Should Be Of Positive Sign\0A\00"
@.str.11 = [61 x i8] c"There Is A Difference From Serial And Parallel Calculation \0A\00"
@.str.12 = [54 x i8] c"\0A\0A\09\09 Transpose of the matrix is ................ Done\00"
@.str.13 = [39 x i8] c"\0A\0A\09\09 Time in Seconds (T) : %lf\00"
@.str.14 = [55 x i8] c"\0A\0A\09\09 ( T represents the Time taken for computation )\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float**
%13 = alloca float**
%14 = alloca float**
%15 = alloca float
%16 = alloca %struct.timeval
%17 = alloca %struct.timezone
%18 = alloca %struct.timeval
%19 = alloca %struct.timezone
%20 = alloca i64
%21 = alloca i64
%22 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%29 = load i32, i32* %4
%30 = icmp ne i32 %29, 4
br i1 %30, label %31, label %35
31: ; preds = %2
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%34 = call i32 @exit(i32 -1)
unreachable
35: ; preds = %2
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
store i32 %39, i32* %11
%40 = load i32, i32* %11
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %57
42: ; preds = %35
%43 = load i32, i32* %11
%44 = icmp ne i32 %43, 2
br i1 %44, label %45, label %57
45: ; preds = %42
%46 = load i32, i32* %11
%47 = icmp ne i32 %46, 4
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = load i32, i32* %11
%50 = icmp ne i32 %49, 8
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load i32, i32* %11
%53 = icmp ne i32 %52, 16
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0))
%56 = call i32 @exit(i32 -1)
unreachable
57: ; preds = %51, %48, %45, %42, %35
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 2
%60 = load i8*, i8** %59
%61 = call i32 @atoi(i8* %60)
store i32 %61, i32* %6
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 3
%64 = load i8*, i8** %63
%65 = call i32 @atoi(i8* %64)
store i32 %65, i32* %7
%66 = load i32, i32* %11
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %66)
%68 = load i32, i32* %6
%69 = load i32, i32* %7
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %68, i32 %69)
%71 = load i32, i32* %6
%72 = icmp sle i32 %71, 0
br i1 %72, label %76, label %73
73: ; preds = %57
%74 = load i32, i32* %7
%75 = icmp sle i32 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %73, %57
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%78 = call i32 @exit(i32 1)
unreachable
79: ; preds = %73
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = mul i64 8, %81
%83 = trunc i64 %82 to i32
%84 = call i64 @malloc(i32 %83)
%85 = inttoptr i64 %84 to float**
store float** %85, float*** %12
store i32 0, i32* %8
br label %86
86: ; preds = %125, %79
%87 = load i32, i32* %8
%88 = load i32, i32* %6
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %128
90: ; preds = %86
%91 = load i32, i32* %7
%92 = sext i32 %91 to i64
%93 = mul i64 4, %92
%94 = trunc i64 %93 to i32
%95 = call i64 @malloc(i32 %94)
%96 = inttoptr i64 %95 to float*
%97 = load float**, float*** %12
%98 = load i32, i32* %8
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds float*, float** %97, i64 %99
store float* %96, float** %100
store i32 0, i32* %9
br label %101
101: ; preds = %121, %90
%102 = load i32, i32* %9
%103 = load i32, i32* %7
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %124
105: ; preds = %101
%106 = load i32, i32* %8
%107 = load i32, i32* %9
%108 = mul nsw i32 %106, %107
%109 = mul nsw i32 %108, 5
%110 = load i32, i32* %8
%111 = add nsw i32 %109, %110
%112 = sitofp i32 %111 to float
%113 = load float**, float*** %12
%114 = load i32, i32* %8
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds float*, float** %113, i64 %115
%117 = load float*, float** %116
%118 = load i32, i32* %9
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, float* %117, i64 %119
store float %112, float* %120
br label %121
121: ; preds = %105
%122 = load i32, i32* %9
%123 = add nsw i32 %122, 1
store i32 %123, i32* %9
br label %101
124: ; preds = %101
br label %125
125: ; preds = %124
%126 = load i32, i32* %8
%127 = add nsw i32 %126, 1
store i32 %127, i32* %8
br label %86
128: ; preds = %86
%129 = load i32, i32* %7
%130 = sext i32 %129 to i64
%131 = mul i64 8, %130
%132 = trunc i64 %131 to i32
%133 = call i64 @malloc(i32 %132)
%134 = inttoptr i64 %133 to float**
store float** %134, float*** %13
%135 = load i32, i32* %7
%136 = sext i32 %135 to i64
%137 = mul i64 8, %136
%138 = trunc i64 %137 to i32
%139 = call i64 @malloc(i32 %138)
%140 = inttoptr i64 %139 to float**
store float** %140, float*** %14
store i32 0, i32* %8
br label %141
141: ; preds = %191, %128
%142 = load i32, i32* %8
%143 = load i32, i32* %7
%144 = icmp slt i32 %142, %143
br i1 %144, label %145, label %194
145: ; preds = %141
%146 = load i32, i32* %6
%147 = sext i32 %146 to i64
%148 = mul i64 4, %147
%149 = trunc i64 %148 to i32
%150 = call i64 @malloc(i32 %149)
%151 = inttoptr i64 %150 to float*
%152 = load float**, float*** %14
%153 = load i32, i32* %8
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds float*, float** %152, i64 %154
store float* %151, float** %155
%156 = load i32, i32* %6
%157 = sext i32 %156 to i64
%158 = mul i64 4, %157
%159 = trunc i64 %158 to i32
%160 = call i64 @malloc(i32 %159)
%161 = inttoptr i64 %160 to float*
%162 = load float**, float*** %13
%163 = load i32, i32* %8
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds float*, float** %162, i64 %164
store float* %161, float** %165
store i32 0, i32* %9
br label %166
166: ; preds = %187, %145
%167 = load i32, i32* %9
%168 = load i32, i32* %6
%169 = icmp slt i32 %167, %168
br i1 %169, label %170, label %190
170: ; preds = %166
%171 = load float**, float*** %14
%172 = load i32, i32* %8
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float*, float** %171, i64 %173
%175 = load float*, float** %174
%176 = load i32, i32* %9
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds float, float* %175, i64 %177
store float 0.000000e+00, float* %178
%179 = load float**, float*** %13
%180 = load i32, i32* %8
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds float*, float** %179, i64 %181
%183 = load float*, float** %182
%184 = load i32, i32* %9
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds float, float* %183, i64 %185
store float 0.000000e+00, float* %186
br label %187
187: ; preds = %170
%188 = load i32, i32* %9
%189 = add nsw i32 %188, 1
store i32 %189, i32* %9
br label %166
190: ; preds = %166
br label %191
191: ; preds = %190
%192 = load i32, i32* %8
%193 = add nsw i32 %192, 1
store i32 %193, i32* %8
br label %141
194: ; preds = %141
%195 = call i32 @gettimeofday(%struct.timeval* %16, %struct.timezone* %17)
%196 = load i32, i32* %11
%197 = call i32 @omp_set_num_threads(i32 %196)
store i32 0, i32* %8
br label %198
198: ; preds = %230, %194
%199 = load i32, i32* %8
%200 = load i32, i32* %6
%201 = icmp slt i32 %199, %200
br i1 %201, label %202, label %233
202: ; preds = %198
%203 = call i32 (...) @omp_get_num_threads()
store i32 %203, i32* %10
store i32 0, i32* %9
br label %204
204: ; preds = %226, %202
%205 = load i32, i32* %9
%206 = load i32, i32* %7
%207 = icmp slt i32 %205, %206
br i1 %207, label %208, label %229
208: ; preds = %204
%209 = load float**, float*** %12
%210 = load i32, i32* %8
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds float*, float** %209, i64 %211
%213 = load float*, float** %212
%214 = load i32, i32* %9
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds float, float* %213, i64 %215
%217 = load float, float* %216
%218 = load float**, float*** %13
%219 = load i32, i32* %9
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds float*, float** %218, i64 %220
%222 = load float*, float** %221
%223 = load i32, i32* %8
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds float, float* %222, i64 %224
store float %217, float* %225
br label %226
226: ; preds = %208
%227 = load i32, i32* %9
%228 = add nsw i32 %227, 1
store i32 %228, i32* %9
br label %204
229: ; preds = %204
br label %230
230: ; preds = %229
%231 = load i32, i32* %8
%232 = add nsw i32 %231, 1
store i32 %232, i32* %8
br label %198
233: ; preds = %198
%234 = call i32 @gettimeofday(%struct.timeval* %18, %struct.timezone* %19)
%235 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 0
%236 = load i32, i32* %235
%237 = mul nsw i32 %236, 1000000
%238 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 1
%239 = load i32, i32* %238
%240 = add nsw i32 %237, %239
%241 = sext i32 %240 to i64
store i64 %241, i64* %20
%242 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 0
%243 = load i32, i32* %242
%244 = mul nsw i32 %243, 1000000
%245 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 1
%246 = load i32, i32* %245
%247 = add nsw i32 %244, %246
%248 = sext i32 %247 to i64
store i64 %248, i64* %21
%249 = load i64, i64* %21
%250 = load i64, i64* %20
%251 = sub nsw i64 %249, %250
%252 = sitofp i64 %251 to double
%253 = fdiv double %252, 1.000000e+06
store double %253, double* %22
store i32 0, i32* %8
br label %254
254: ; preds = %285, %233
%255 = load i32, i32* %8
%256 = load i32, i32* %6
%257 = icmp slt i32 %255, %256
br i1 %257, label %258, label %288
258: ; preds = %254
store i32 0, i32* %9
br label %259
259: ; preds = %281, %258
%260 = load i32, i32* %9
%261 = load i32, i32* %7
%262 = icmp slt i32 %260, %261
br i1 %262, label %263, label %284
263: ; preds = %259
%264 = load float**, float*** %12
%265 = load i32, i32* %8
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds float*, float** %264, i64 %266
%268 = load float*, float** %267
%269 = load i32, i32* %9
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds float, float* %268, i64 %270
%272 = load float, float* %271
%273 = load float**, float*** %14
%274 = load i32, i32* %9
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds float*, float** %273, i64 %275
%277 = load float*, float** %276
%278 = load i32, i32* %8
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds float, float* %277, i64 %279
store float %272, float* %280
br label %281
281: ; preds = %263
%282 = load i32, i32* %9
%283 = add nsw i32 %282, 1
store i32 %283, i32* %9
br label %259
284: ; preds = %259
br label %285
285: ; preds = %284
%286 = load i32, i32* %8
%287 = add nsw i32 %286, 1
store i32 %287, i32* %8
br label %254
288: ; preds = %254
store i32 0, i32* %8
br label %289
289: ; preds = %326, %288
%290 = load i32, i32* %8
%291 = load i32, i32* %7
%292 = icmp slt i32 %290, %291
br i1 %292, label %293, label %329
293: ; preds = %289
store i32 0, i32* %9
br label %294
294: ; preds = %322, %293
%295 = load i32, i32* %9
%296 = load i32, i32* %6
%297 = icmp slt i32 %295, %296
br i1 %297, label %298, label %325
298: ; preds = %294
%299 = load float**, float*** %14
%300 = load i32, i32* %8
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds float*, float** %299, i64 %301
%303 = load float*, float** %302
%304 = load i32, i32* %9
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds float, float* %303, i64 %305
%307 = load float, float* %306
%308 = load float**, float*** %13
%309 = load i32, i32* %8
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds float*, float** %308, i64 %310
%312 = load float*, float** %311
%313 = load i32, i32* %9
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds float, float* %312, i64 %314
%316 = load float, float* %315
%317 = fcmp oeq float %307, %316
br i1 %317, label %318, label %319
318: ; preds = %298
br label %322
319: ; preds = %298
%320 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
%321 = call i32 @exit(i32 -1)
unreachable
322: ; preds = %318
%323 = load i32, i32* %9
%324 = add nsw i32 %323, 1
store i32 %324, i32* %9
br label %294
325: ; preds = %294
br label %326
326: ; preds = %325
%327 = load i32, i32* %8
%328 = add nsw i32 %327, 1
store i32 %328, i32* %8
br label %289
329: ; preds = %289
%330 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%331 = load double, double* %22
%332 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0), double %331)
%333 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0))
%334 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%335 = load float**, float*** %12
%336 = call i32 @free(float** %335)
%337 = load float**, float*** %14
%338 = call i32 @free(float** %337)
%339 = load float**, float*** %13
%340 = call i32 @free(float** %339)
%341 = load i32, i32* %3
ret i32 %341
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
%struct.timezone = type { i32 }
@.str = [79 x i8] c"\0A\09\09---------------------------------------------------------------------------\00"
@.str.1 = [19 x i8] c"\0A\09\09 Email : RarchK\00"
@.str.2 = [60 x i8] c"\0A\09\09 Objective : Implementation of the transpose of matrix .\00"
@.str.3 = [57 x i8] c"\0A\09\09 using OpenMP Parallel for directive,Private Clause. \00"
@.str.5 = [24 x i8] c"\09\09 Very Few Arguments\0A \00"
@.str.8 = [18 x i8] c"\0A\09\09 Threads : %d \00"
@.str.9 = [31 x i8] c"\0A\09\09 Matrix Size : %d X %d \0A \00"
@.str.12 = [54 x i8] c"\0A\0A\09\09 Transpose of the matrix is ................ Done\00"
@.str.13 = [39 x i8] c"\0A\0A\09\09 Time in Seconds (T) : %lf\00"
@.str.14 = [55 x i8] c"\0A\0A\09\09 ( T represents the Time taken for computation )\00"
@str.15 = [78 x i8] c"\0A\09\09..........................................................................\00"
@str.16 = [60 x i8] c"There Is A Difference From Serial And Parallel Calculation \00"
@str.17 = [57 x i8] c"\0A\09\09 The NoofRows And NoofCols Should Be Of Positive Sign\00"
@str.18 = [76 x i8] c"\0A Number of threads should be 1,2,4,8 or 16 for the execution of program. \0A\00"
@str.19 = [52 x i8] c"\09\09 Syntax : exec <Threads> <NoOfRows> <NoOfColumns>\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.timeval
%4 = alloca %struct.timezone
%5 = alloca %struct.timeval
%6 = alloca %struct.timezone
%7 = bitcast %struct.timeval* %3 to i8*
%8 = bitcast %struct.timezone* %4 to i8*
%9 = bitcast %struct.timeval* %5 to i8*
%10 = bitcast %struct.timezone* %6 to i8*
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.15, i64 0, i64 0))
%17 = icmp eq i32 %0, 4
br i1 %17, label %22, label %18
18: ; preds = %2
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.19, i64 0, i64 0))
%21 = tail call i32 @exit(i32 -1)
unreachable
22: ; preds = %2
%23 = getelementptr inbounds i8*, i8** %1, i64 1
%24 = load i8*, i8** %23
%25 = tail call i32 @atoi(i8* %24)
switch i32 %25, label %26 [
i32 16, label %29
i32 8, label %29
i32 4, label %29
i32 2, label %29
i32 1, label %29
]
26: ; preds = %22
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.18, i64 0, i64 0))
%28 = tail call i32 @exit(i32 -1)
unreachable
29: ; preds = %22, %22, %22, %22, %22
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i32 @atoi(i8* %31)
%33 = getelementptr inbounds i8*, i8** %1, i64 3
%34 = load i8*, i8** %33
%35 = tail call i32 @atoi(i8* %34)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %25)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %32, i32 %35)
%38 = icmp slt i32 %32, 1
%39 = icmp slt i32 %35, 1
%40 = select i1 %38, i1 true, i1 %39
br i1 %40, label %41, label %44
41: ; preds = %29
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.17, i64 0, i64 0))
%43 = tail call i32 @exit(i32 1)
unreachable
44: ; preds = %29
%45 = shl i32 %32, 3
%46 = tail call i64 @malloc(i32 %45)
%47 = inttoptr i64 %46 to float**
%48 = shl i32 %35, 2
%49 = zext i32 %32 to i64
%50 = zext i32 %35 to i64
%51 = and i64 %50, 4294967288
%52 = add nsw i64 %51, -8
%53 = lshr exact i64 %52, 3
%54 = add nuw nsw i64 %53, 1
%55 = icmp ult i32 %35, 8
%56 = and i64 %50, 4294967288
%57 = and i64 %54, 1
%58 = icmp eq i64 %52, 0
%59 = and i64 %54, 4611686018427387902
%60 = icmp eq i64 %57, 0
%61 = icmp eq i64 %56, %50
br label %62
62: ; preds = %44, %137
%63 = phi i64 [ 0, %44 ], [ %138, %137 ]
%64 = tail call i64 @malloc(i32 %48)
%65 = inttoptr i64 %64 to float*
%66 = getelementptr inbounds float*, float** %47, i64 %63
store float* %65, float** %66
%67 = trunc i64 %63 to i32
%68 = mul i32 %67, 5
br i1 %55, label %126, label %69
69: ; preds = %62
%70 = insertelement <4 x i32> poison, i32 %68, i64 0
%71 = shufflevector <4 x i32> %70, <4 x i32> poison, <4 x i32> zeroinitializer
%72 = insertelement <4 x i32> poison, i32 %68, i64 0
%73 = shufflevector <4 x i32> %72, <4 x i32> poison, <4 x i32> zeroinitializer
%74 = insertelement <4 x i32> poison, i32 %67, i64 0
%75 = shufflevector <4 x i32> %74, <4 x i32> poison, <4 x i32> zeroinitializer
%76 = insertelement <4 x i32> poison, i32 %67, i64 0
%77 = shufflevector <4 x i32> %76, <4 x i32> poison, <4 x i32> zeroinitializer
br i1 %58, label %110, label %78
78: ; preds = %69, %78
%79 = phi i64 [ %106, %78 ], [ 0, %69 ]
%80 = phi <4 x i32> [ %107, %78 ], [ <i32 0, i32 1, i32 2, i32 3>, %69 ]
%81 = phi i64 [ %108, %78 ], [ 0, %69 ]
%82 = add <4 x i32> %80, <i32 4, i32 4, i32 4, i32 4>
%83 = mul <4 x i32> %71, %80
%84 = mul <4 x i32> %73, %82
%85 = add nuw nsw <4 x i32> %83, %75
%86 = add nuw nsw <4 x i32> %84, %77
%87 = sitofp <4 x i32> %85 to <4 x float>
%88 = sitofp <4 x i32> %86 to <4 x float>
%89 = getelementptr inbounds float, float* %65, i64 %79
%90 = bitcast float* %89 to <4 x float>*
store <4 x float> %87, <4 x float>* %90
%91 = getelementptr inbounds float, float* %89, i64 4
%92 = bitcast float* %91 to <4 x float>*
store <4 x float> %88, <4 x float>* %92
%93 = or i64 %79, 8
%94 = add <4 x i32> %80, <i32 8, i32 8, i32 8, i32 8>
%95 = add <4 x i32> %80, <i32 12, i32 12, i32 12, i32 12>
%96 = mul <4 x i32> %71, %94
%97 = mul <4 x i32> %73, %95
%98 = add nuw nsw <4 x i32> %96, %75
%99 = add nuw nsw <4 x i32> %97, %77
%100 = sitofp <4 x i32> %98 to <4 x float>
%101 = sitofp <4 x i32> %99 to <4 x float>
%102 = getelementptr inbounds float, float* %65, i64 %93
%103 = bitcast float* %102 to <4 x float>*
store <4 x float> %100, <4 x float>* %103
%104 = getelementptr inbounds float, float* %102, i64 4
%105 = bitcast float* %104 to <4 x float>*
store <4 x float> %101, <4 x float>* %105
%106 = add nuw i64 %79, 16
%107 = add <4 x i32> %80, <i32 16, i32 16, i32 16, i32 16>
%108 = add i64 %81, 2
%109 = icmp eq i64 %108, %59
br i1 %109, label %110, label %78
110: ; preds = %78, %69
%111 = phi i64 [ 0, %69 ], [ %106, %78 ]
%112 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %69 ], [ %107, %78 ]
br i1 %60, label %125, label %113
113: ; preds = %110
%114 = add <4 x i32> %112, <i32 4, i32 4, i32 4, i32 4>
%115 = mul <4 x i32> %71, %112
%116 = mul <4 x i32> %73, %114
%117 = add nuw nsw <4 x i32> %115, %75
%118 = add nuw nsw <4 x i32> %116, %77
%119 = sitofp <4 x i32> %117 to <4 x float>
%120 = sitofp <4 x i32> %118 to <4 x float>
%121 = getelementptr inbounds float, float* %65, i64 %111
%122 = bitcast float* %121 to <4 x float>*
store <4 x float> %119, <4 x float>* %122
%123 = getelementptr inbounds float, float* %121, i64 4
%124 = bitcast float* %123 to <4 x float>*
store <4 x float> %120, <4 x float>* %124
br label %125
125: ; preds = %110, %113
br i1 %61, label %137, label %126
126: ; preds = %62, %125
%127 = phi i64 [ 0, %62 ], [ %56, %125 ]
br label %128
128: ; preds = %126, %128
%129 = phi i64 [ %135, %128 ], [ %127, %126 ]
%130 = trunc i64 %129 to i32
%131 = mul i32 %68, %130
%132 = add nuw nsw i32 %131, %67
%133 = sitofp i32 %132 to float
%134 = getelementptr inbounds float, float* %65, i64 %129
store float %133, float* %134
%135 = add nuw nsw i64 %129, 1
%136 = icmp eq i64 %135, %50
br i1 %136, label %137, label %128
137: ; preds = %128, %125
%138 = add nuw nsw i64 %63, 1
%139 = icmp eq i64 %138, %49
br i1 %139, label %140, label %62
140: ; preds = %137
%141 = shl i32 %35, 3
%142 = tail call i64 @malloc(i32 %141)
%143 = inttoptr i64 %142 to float**
%144 = tail call i64 @malloc(i32 %141)
%145 = inttoptr i64 %144 to float**
%146 = icmp sgt i32 %35, 0
br i1 %146, label %147, label %275
147: ; preds = %140
%148 = shl i32 %32, 2
%149 = icmp sgt i32 %32, 0
%150 = zext i32 %35 to i64
%151 = zext i32 %32 to i64
%152 = and i64 %49, 4294967288
%153 = add nsw i64 %152, -8
%154 = lshr exact i64 %153, 3
%155 = add nuw nsw i64 %154, 1
%156 = icmp ult i32 %32, 8
%157 = and i64 %49, 4294967288
%158 = and i64 %155, 3
%159 = icmp ult i64 %153, 24
%160 = and i64 %155, 4611686018427387900
%161 = icmp eq i64 %158, 0
%162 = icmp eq i64 %157, %49
%163 = and i64 %49, 3
%164 = icmp eq i64 %163, 0
br label %165
165: ; preds = %147, %272
%166 = phi i64 [ 0, %147 ], [ %273, %272 ]
%167 = tail call i64 @malloc(i32 %148)
%168 = inttoptr i64 %167 to float*
%169 = getelementptr inbounds float*, float** %145, i64 %166
store float* %168, float** %169
%170 = tail call i64 @malloc(i32 %148)
%171 = inttoptr i64 %170 to float*
%172 = inttoptr i64 %170 to i8*
%173 = getelementptr inbounds float*, float** %143, i64 %166
store float* %171, float** %173
br i1 %149, label %174, label %272
174: ; preds = %165
%175 = load float*, float** %169
br i1 %156, label %242, label %176
176: ; preds = %174
%177 = getelementptr float, float* %175, i64 %49
%178 = bitcast float* %177 to i8*
%179 = getelementptr float, float* %171, i64 %49
%180 = icmp ult float* %175, %179
%181 = icmp ult i8* %172, %178
%182 = and i1 %180, %181
br i1 %182, label %242, label %183
183: ; preds = %176
br i1 %159, label %225, label %184
184: ; preds = %183, %184
%185 = phi i64 [ %222, %184 ], [ 0, %183 ]
%186 = phi i64 [ %223, %184 ], [ 0, %183 ]
%187 = getelementptr inbounds float, float* %175, i64 %185
%188 = bitcast float* %187 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %188
%189 = getelementptr inbounds float, float* %187, i64 4
%190 = bitcast float* %189 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %190
%191 = getelementptr inbounds float, float* %171, i64 %185
%192 = bitcast float* %191 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %192
%193 = getelementptr inbounds float, float* %191, i64 4
%194 = bitcast float* %193 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %194
%195 = or i64 %185, 8
%196 = getelementptr inbounds float, float* %175, i64 %195
%197 = bitcast float* %196 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %197
%198 = getelementptr inbounds float, float* %196, i64 4
%199 = bitcast float* %198 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %199
%200 = getelementptr inbounds float, float* %171, i64 %195
%201 = bitcast float* %200 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %201
%202 = getelementptr inbounds float, float* %200, i64 4
%203 = bitcast float* %202 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %203
%204 = or i64 %185, 16
%205 = getelementptr inbounds float, float* %175, i64 %204
%206 = bitcast float* %205 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %206
%207 = getelementptr inbounds float, float* %205, i64 4
%208 = bitcast float* %207 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %208
%209 = getelementptr inbounds float, float* %171, i64 %204
%210 = bitcast float* %209 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %210
%211 = getelementptr inbounds float, float* %209, i64 4
%212 = bitcast float* %211 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %212
%213 = or i64 %185, 24
%214 = getelementptr inbounds float, float* %175, i64 %213
%215 = bitcast float* %214 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %215
%216 = getelementptr inbounds float, float* %214, i64 4
%217 = bitcast float* %216 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %217
%218 = getelementptr inbounds float, float* %171, i64 %213
%219 = bitcast float* %218 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %219
%220 = getelementptr inbounds float, float* %218, i64 4
%221 = bitcast float* %220 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %221
%222 = add nuw i64 %185, 32
%223 = add i64 %186, 4
%224 = icmp eq i64 %223, %160
br i1 %224, label %225, label %184
225: ; preds = %184, %183
%226 = phi i64 [ 0, %183 ], [ %222, %184 ]
br i1 %161, label %241, label %227
227: ; preds = %225, %227
%228 = phi i64 [ %238, %227 ], [ %226, %225 ]
%229 = phi i64 [ %239, %227 ], [ 0, %225 ]
%230 = getelementptr inbounds float, float* %175, i64 %228
%231 = bitcast float* %230 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %231
%232 = getelementptr inbounds float, float* %230, i64 4
%233 = bitcast float* %232 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %233
%234 = getelementptr inbounds float, float* %171, i64 %228
%235 = bitcast float* %234 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %235
%236 = getelementptr inbounds float, float* %234, i64 4
%237 = bitcast float* %236 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %237
%238 = add nuw i64 %228, 8
%239 = add i64 %229, 1
%240 = icmp eq i64 %239, %158
br i1 %240, label %241, label %227
241: ; preds = %227, %225
br i1 %162, label %272, label %242
242: ; preds = %176, %174, %241
%243 = phi i64 [ 0, %176 ], [ 0, %174 ], [ %157, %241 ]
%244 = xor i64 %243, -1
%245 = add nsw i64 %244, %49
br i1 %164, label %254, label %246
246: ; preds = %242, %246
%247 = phi i64 [ %251, %246 ], [ %243, %242 ]
%248 = phi i64 [ %252, %246 ], [ 0, %242 ]
%249 = getelementptr inbounds float, float* %175, i64 %247
store float 0.000000e+00, float* %249
%250 = getelementptr inbounds float, float* %171, i64 %247
store float 0.000000e+00, float* %250
%251 = add nuw nsw i64 %247, 1
%252 = add i64 %248, 1
%253 = icmp eq i64 %252, %163
br i1 %253, label %254, label %246
254: ; preds = %246, %242
%255 = phi i64 [ %243, %242 ], [ %251, %246 ]
%256 = icmp ult i64 %245, 3
br i1 %256, label %272, label %257
257: ; preds = %254, %257
%258 = phi i64 [ %270, %257 ], [ %255, %254 ]
%259 = getelementptr inbounds float, float* %175, i64 %258
store float 0.000000e+00, float* %259
%260 = getelementptr inbounds float, float* %171, i64 %258
store float 0.000000e+00, float* %260
%261 = add nuw nsw i64 %258, 1
%262 = getelementptr inbounds float, float* %175, i64 %261
store float 0.000000e+00, float* %262
%263 = getelementptr inbounds float, float* %171, i64 %261
store float 0.000000e+00, float* %263
%264 = add nuw nsw i64 %258, 2
%265 = getelementptr inbounds float, float* %175, i64 %264
store float 0.000000e+00, float* %265
%266 = getelementptr inbounds float, float* %171, i64 %264
store float 0.000000e+00, float* %266
%267 = add nuw nsw i64 %258, 3
%268 = getelementptr inbounds float, float* %175, i64 %267
store float 0.000000e+00, float* %268
%269 = getelementptr inbounds float, float* %171, i64 %267
store float 0.000000e+00, float* %269
%270 = add nuw nsw i64 %258, 4
%271 = icmp eq i64 %270, %151
br i1 %271, label %272, label %257
272: ; preds = %254, %257, %241, %165
%273 = add nuw nsw i64 %166, 1
%274 = icmp eq i64 %273, %150
br i1 %274, label %275, label %165
275: ; preds = %272, %140
%276 = call i32 @gettimeofday(%struct.timeval* %3, %struct.timezone* %4)
%277 = tail call i32 @omp_set_num_threads(i32 %25)
%278 = icmp sgt i32 %32, 0
br i1 %278, label %279, label %337
279: ; preds = %275
%280 = zext i32 %32 to i64
%281 = add nsw i64 %50, -1
%282 = and i64 %50, 3
%283 = icmp ult i64 %281, 3
%284 = and i64 %50, 4294967292
%285 = icmp eq i64 %282, 0
br label %286
286: ; preds = %279, %334
%287 = phi i64 [ 0, %279 ], [ %335, %334 ]
%288 = tail call i32 (...) @omp_get_num_threads()
br i1 %146, label %289, label %334
289: ; preds = %286
%290 = getelementptr inbounds float*, float** %47, i64 %287
%291 = load float*, float** %290
br i1 %283, label %321, label %292
292: ; preds = %289, %292
%293 = phi i64 [ %318, %292 ], [ 0, %289 ]
%294 = phi i64 [ %319, %292 ], [ 0, %289 ]
%295 = getelementptr inbounds float, float* %291, i64 %293
%296 = load float, float* %295
%297 = getelementptr inbounds float*, float** %143, i64 %293
%298 = load float*, float** %297
%299 = getelementptr inbounds float, float* %298, i64 %287
store float %296, float* %299
%300 = or i64 %293, 1
%301 = getelementptr inbounds float, float* %291, i64 %300
%302 = load float, float* %301
%303 = getelementptr inbounds float*, float** %143, i64 %300
%304 = load float*, float** %303
%305 = getelementptr inbounds float, float* %304, i64 %287
store float %302, float* %305
%306 = or i64 %293, 2
%307 = getelementptr inbounds float, float* %291, i64 %306
%308 = load float, float* %307
%309 = getelementptr inbounds float*, float** %143, i64 %306
%310 = load float*, float** %309
%311 = getelementptr inbounds float, float* %310, i64 %287
store float %308, float* %311
%312 = or i64 %293, 3
%313 = getelementptr inbounds float, float* %291, i64 %312
%314 = load float, float* %313
%315 = getelementptr inbounds float*, float** %143, i64 %312
%316 = load float*, float** %315
%317 = getelementptr inbounds float, float* %316, i64 %287
store float %314, float* %317
%318 = add nuw nsw i64 %293, 4
%319 = add i64 %294, 4
%320 = icmp eq i64 %319, %284
br i1 %320, label %321, label %292
321: ; preds = %292, %289
%322 = phi i64 [ 0, %289 ], [ %318, %292 ]
br i1 %285, label %334, label %323
323: ; preds = %321, %323
%324 = phi i64 [ %331, %323 ], [ %322, %321 ]
%325 = phi i64 [ %332, %323 ], [ 0, %321 ]
%326 = getelementptr inbounds float, float* %291, i64 %324
%327 = load float, float* %326
%328 = getelementptr inbounds float*, float** %143, i64 %324
%329 = load float*, float** %328
%330 = getelementptr inbounds float, float* %329, i64 %287
store float %327, float* %330
%331 = add nuw nsw i64 %324, 1
%332 = add i64 %325, 1
%333 = icmp eq i64 %332, %282
br i1 %333, label %334, label %323
334: ; preds = %321, %323, %286
%335 = add nuw nsw i64 %287, 1
%336 = icmp eq i64 %335, %280
br i1 %336, label %337, label %286
337: ; preds = %334, %275
%338 = call i32 @gettimeofday(%struct.timeval* %5, %struct.timezone* %6)
%339 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%340 = load i32, i32* %339
%341 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%342 = load i32, i32* %341
%343 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%344 = load i32, i32* %343
%345 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%346 = load i32, i32* %345
br i1 %278, label %347, label %359
347: ; preds = %337
%348 = zext i32 %32 to i64
%349 = add nsw i64 %50, -1
%350 = and i64 %50, 3
%351 = icmp ult i64 %349, 3
%352 = and i64 %50, 4294967292
%353 = icmp eq i64 %350, 0
br label %354
354: ; preds = %347, %405
%355 = phi i64 [ 0, %347 ], [ %406, %405 ]
br i1 %146, label %356, label %405
356: ; preds = %354
%357 = getelementptr inbounds float*, float** %47, i64 %355
%358 = load float*, float** %357
br i1 %351, label %392, label %363
359: ; preds = %405, %337
br i1 %146, label %360, label %431
360: ; preds = %359
%361 = zext i32 %35 to i64
%362 = zext i32 %32 to i64
br label %408
363: ; preds = %356, %363
%364 = phi i64 [ %389, %363 ], [ 0, %356 ]
%365 = phi i64 [ %390, %363 ], [ 0, %356 ]
%366 = getelementptr inbounds float, float* %358, i64 %364
%367 = load float, float* %366
%368 = getelementptr inbounds float*, float** %145, i64 %364
%369 = load float*, float** %368
%370 = getelementptr inbounds float, float* %369, i64 %355
store float %367, float* %370
%371 = or i64 %364, 1
%372 = getelementptr inbounds float, float* %358, i64 %371
%373 = load float, float* %372
%374 = getelementptr inbounds float*, float** %145, i64 %371
%375 = load float*, float** %374
%376 = getelementptr inbounds float, float* %375, i64 %355
store float %373, float* %376
%377 = or i64 %364, 2
%378 = getelementptr inbounds float, float* %358, i64 %377
%379 = load float, float* %378
%380 = getelementptr inbounds float*, float** %145, i64 %377
%381 = load float*, float** %380
%382 = getelementptr inbounds float, float* %381, i64 %355
store float %379, float* %382
%383 = or i64 %364, 3
%384 = getelementptr inbounds float, float* %358, i64 %383
%385 = load float, float* %384
%386 = getelementptr inbounds float*, float** %145, i64 %383
%387 = load float*, float** %386
%388 = getelementptr inbounds float, float* %387, i64 %355
store float %385, float* %388
%389 = add nuw nsw i64 %364, 4
%390 = add i64 %365, 4
%391 = icmp eq i64 %390, %352
br i1 %391, label %392, label %363
392: ; preds = %363, %356
%393 = phi i64 [ 0, %356 ], [ %389, %363 ]
br i1 %353, label %405, label %394
394: ; preds = %392, %394
%395 = phi i64 [ %402, %394 ], [ %393, %392 ]
%396 = phi i64 [ %403, %394 ], [ 0, %392 ]
%397 = getelementptr inbounds float, float* %358, i64 %395
%398 = load float, float* %397
%399 = getelementptr inbounds float*, float** %145, i64 %395
%400 = load float*, float** %399
%401 = getelementptr inbounds float, float* %400, i64 %355
store float %398, float* %401
%402 = add nuw nsw i64 %395, 1
%403 = add i64 %396, 1
%404 = icmp eq i64 %403, %350
br i1 %404, label %405, label %394
405: ; preds = %392, %394, %354
%406 = add nuw nsw i64 %355, 1
%407 = icmp eq i64 %406, %348
br i1 %407, label %359, label %354
408: ; preds = %360, %428
%409 = phi i64 [ 0, %360 ], [ %429, %428 ]
br i1 %278, label %410, label %428
410: ; preds = %408
%411 = getelementptr inbounds float*, float** %145, i64 %409
%412 = load float*, float** %411
%413 = getelementptr inbounds float*, float** %143, i64 %409
%414 = load float*, float** %413
br label %417
415: ; preds = %417
%416 = icmp eq i64 %424, %362
br i1 %416, label %428, label %417
417: ; preds = %410, %415
%418 = phi i64 [ 0, %410 ], [ %424, %415 ]
%419 = getelementptr inbounds float, float* %412, i64 %418
%420 = load float, float* %419
%421 = getelementptr inbounds float, float* %414, i64 %418
%422 = load float, float* %421
%423 = fcmp oeq float %420, %422
%424 = add nuw nsw i64 %418, 1
br i1 %423, label %415, label %425
425: ; preds = %417
%426 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.16, i64 0, i64 0))
%427 = tail call i32 @exit(i32 -1)
unreachable
428: ; preds = %415, %408
%429 = add nuw nsw i64 %409, 1
%430 = icmp eq i64 %429, %361
br i1 %430, label %431, label %408
431: ; preds = %428, %359
%432 = mul nsw i32 %344, 1000000
%433 = add nsw i32 %432, %346
%434 = sext i32 %433 to i64
%435 = mul nsw i32 %340, 1000000
%436 = add nsw i32 %435, %342
%437 = sext i32 %436 to i64
%438 = sub nsw i64 %434, %437
%439 = sitofp i64 %438 to double
%440 = fdiv double %439, 1.000000e+06
%441 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%442 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0), double %440)
%443 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0))
%444 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.15, i64 0, i64 0))
%445 = tail call i32 @free(float** %47)
%446 = tail call i32 @free(float** %145)
%447 = tail call i32 @free(float** %143)
ret i32 0
}