int main(int argc, char const *argv[]) {
  int N;
  int M;
  int MAX;
  double *b;
  double *x;
  double *val;
  int *col;
  int *ptr;
  if (argc != 6) {
    printf("Usage \n");
    printf("%s colval ptr bx maxloop thread\n", argv[0]);
    exit(0);
  }
  printf("--set OpenMP\n");
  omp_set_num_threads(atoi(argv[5]));
  printf("--check error\n");
  gethead(argv[1], argv[2], argv[3], &N, &M);
  b = (double *)malloc(sizeof(double) * N);
  x = (double *)malloc(sizeof(double) * N);
  if (!b || !x) {
    printf("malloc b x error");
    if (b)
      free(b);
    if (x)
      free(x);
    exit(1);
  }
  val = (double *)malloc(sizeof(double) * M);
  col = (int *)malloc(sizeof(int) * M);
  ptr = (int *)malloc(sizeof(int) * (N + 1));
  if (!val || !col || !ptr) {
    printf("malloc val col ptr error");
    if (b)
      free(b);
    if (x)
      free(x);
    if (val)
      free(val);
    if (col)
      free(col);
    if (ptr)
      free(ptr);
    exit(1);
  }
  getdata(argv[1], argv[2], argv[3], col, ptr, val, b, x, N, M);
  int alpha = atoi(argv[4]);
  MAX = alpha;
  printf("--result--\n");
  cgm_CRS(val, col, ptr, b, x, N, 1e-10, MAX, M);
  free(b);
  free(x);
  free(val);
  free(col);
  free(ptr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x78,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpl   $0x6,-0x10(%rbp)
je     11db <main+0x4b>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x28(%rax),%rdi
mov    $0x0,%al
call   10a0 <atoi@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1090 <omp_set_num_threads@plt>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rdx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
mov    $0x0,%al
call   1050 <gethead@plt>
movslq -0x1c(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x1c(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     126e <main+0xde>
cmpq   $0x0,-0x38(%rbp)
jne    12ae <main+0x11e>
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
je     1290 <main+0x100>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x38(%rbp)
je     12a4 <main+0x114>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
movslq -0x20(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x20(%rbp),%rdi
shl    $0x2,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rdi
shl    $0x2,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     1307 <main+0x177>
cmpq   $0x0,-0x48(%rbp)
je     1307 <main+0x177>
cmpq   $0x0,-0x50(%rbp)
jne    1383 <main+0x1f3>
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
je     1329 <main+0x199>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x38(%rbp)
je     133d <main+0x1ad>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x40(%rbp)
je     1351 <main+0x1c1>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x48(%rbp)
je     1365 <main+0x1d5>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x50(%rbp)
je     1379 <main+0x1e9>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x30(%rbp),%rbx
mov    -0x38(%rbp),%r11
mov    -0x1c(%rbp),%r10d
mov    -0x20(%rbp),%eax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1080 <getdata@plt>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
mov    $0x0,%al
call   10a0 <atoi@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x24(%rbp)
lea    0xc8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x1c(%rbp),%r9d
mov    -0x24(%rbp),%r10d
mov    -0x20(%rbp),%eax
movsd  0xbe4(%rip),%xmm0
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x1,%al
call   1060 <cgm_CRS@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r13
cmp    $0x6,%edi
jne    134f <main+0x1af>
lea    0xe92(%rip),%rdi
call   1040 <puts@plt>
mov    0x28(%r13),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    %eax,%edi
xor    %eax,%eax
call   10a0 <omp_set_num_threads@plt>
lea    0xe7f(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%r13),%rdi
mov    0x10(%r13),%rsi
mov    0x18(%r13),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
xor    %eax,%eax
call   1060 <gethead@plt>
movslq 0xc(%rsp),%r14
lea    0x0(,%r14,8),%rbp
mov    %rbp,%rdi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1080 <malloc@plt>
mov    %rbx,0x10(%rsp)
test   %rbx,%rbx
je     1374 <main+0x1d4>
test   %rax,%rax
je     1374 <main+0x1d4>
mov    %rax,0x18(%rsp)
movslq 0x8(%rsp),%r15
lea    0x0(,%r15,8),%rdi
call   1080 <malloc@plt>
mov    %rax,%r12
lea    0x0(,%r15,4),%rdi
call   1080 <malloc@plt>
mov    %rax,%rbx
lea    0x4(,%r14,4),%rdi
call   1080 <malloc@plt>
test   %r12,%r12
je     13a1 <main+0x201>
test   %rbx,%rbx
je     13a1 <main+0x201>
test   %rax,%rax
je     13a1 <main+0x201>
mov    0x8(%r13),%rdi
mov    0x10(%r13),%rsi
mov    0x18(%r13),%rdx
mov    %rbx,%rcx
mov    %rax,%r8
mov    %r12,%r9
mov    %rax,0x20(%rsp)
xor    %eax,%eax
push   %r15
push   %r14
mov    0x28(%rsp),%rbp
push   %rbp
mov    %rbx,%r15
mov    0x28(%rsp),%rbx
push   %rbx
call   1090 <getdata@plt>
add    $0x20,%rsp
mov    0x20(%r13),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    %eax,%r14d
lea    0xd95(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%r9d
mov    0x8(%rsp),%r10d
movsd  0xd10(%rip),%xmm0
mov    %r12,%r13
mov    %r12,%rdi
mov    %r15,%rsi
mov    0x20(%rsp),%r12
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    $0x1,%al
push   %r10
push   %r14
call   1070 <cgm_CRS@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd23(%rip),%rdi
call   1040 <puts@plt>
mov    0x0(%r13),%rsi
lea    0xca2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    %rax,%rbp
lea    0xcab(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpq   $0x0,0x10(%rsp)
je     1397 <main+0x1f7>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
test   %rbp,%rbp
je     13f9 <main+0x259>
mov    %rbp,%rdi
jmp    13f4 <main+0x254>
mov    %rax,%r14
lea    0xc8f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
test   %r12,%r12
jne    13d7 <main+0x237>
test   %rbx,%rbx
jne    13e4 <main+0x244>
test   %r14,%r14
jne    13f1 <main+0x251>
jmp    13f9 <main+0x259>
mov    %r12,%rdi
call   1030 <free@plt>
test   %rbx,%rbx
je     13d0 <main+0x230>
mov    %rbx,%rdi
call   1030 <free@plt>
test   %r14,%r14
je     13f9 <main+0x259>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage \0A\00"
@.str.1 = [33 x i8] c"%s colval ptr bx maxloop thread\0A\00"
@.str.2 = [14 x i8] c"--set OpenMP\0A\00"
@.str.3 = [15 x i8] c"--check error\0A\00"
@.str.4 = [17 x i8] c"malloc b x error\00"
@.str.5 = [25 x i8] c"malloc val col ptr error\00"
@.str.6 = [12 x i8] c"--result--\0A\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 double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 6
br i1 %16, label %17, label %23
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %21)
unreachable
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 5
%27 = load i8*, i8** %26
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %27)
%29 = call i32 (i32, ...) bitcast (i32 (...)* @omp_set_num_threads to i32 (i32, ...)*)(i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 3
%39 = load i8*, i8** %38
%40 = call i32 (i8*, i8*, i8*, i32*, i32*, ...) bitcast (i32 (...)* @gethead to i32 (i8*, i8*, i8*, i32*, i32*, ...)*)(i8* %33, i8* %36, i8* %39, i32* %6, i32* %7)
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = mul i64 8, %42
%44 = call i8* @malloc(i64 %43)
%45 = bitcast i8* %44 to double*
store double* %45, double** %9
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = mul i64 8, %47
%49 = call i8* @malloc(i64 %48)
%50 = bitcast i8* %49 to double*
store double* %50, double** %10
%51 = load double*, double** %9
%52 = icmp ne double* %51, null
br i1 %52, label %53, label %56
53: ; preds = %23
%54 = load double*, double** %10
%55 = icmp ne double* %54, null
br i1 %55, label %70, label %56
56: ; preds = %53, %23
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%58 = load double*, double** %9
%59 = icmp ne double* %58, null
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load double*, double** %9
%62 = bitcast double* %61 to i8*
br label %63
63: ; preds = %60, %56
%64 = load double*, double** %10
%65 = icmp ne double* %64, null
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load double*, double** %10
%68 = bitcast double* %67 to i8*
br label %69
69: ; preds = %66, %63
unreachable
70: ; preds = %53
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = mul i64 8, %72
%74 = call i8* @malloc(i64 %73)
%75 = bitcast i8* %74 to double*
store double* %75, double** %11
%76 = load i32, i32* %7
%77 = sext i32 %76 to i64
%78 = mul i64 4, %77
%79 = call i8* @malloc(i64 %78)
%80 = bitcast i8* %79 to i32*
store i32* %80, i32** %12
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = mul i64 4, %83
%85 = call i8* @malloc(i64 %84)
%86 = bitcast i8* %85 to i32*
store i32* %86, i32** %13
%87 = load double*, double** %11
%88 = icmp ne double* %87, null
br i1 %88, label %89, label %95
89: ; preds = %70
%90 = load i32*, i32** %12
%91 = icmp ne i32* %90, null
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load i32*, i32** %13
%94 = icmp ne i32* %93, null
br i1 %94, label %127, label %95
95: ; preds = %92, %89, %70
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%97 = load double*, double** %9
%98 = icmp ne double* %97, null
br i1 %98, label %99, label %102
99: ; preds = %95
%100 = load double*, double** %9
%101 = bitcast double* %100 to i8*
br label %102
102: ; preds = %99, %95
%103 = load double*, double** %10
%104 = icmp ne double* %103, null
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load double*, double** %10
%107 = bitcast double* %106 to i8*
br label %108
108: ; preds = %105, %102
%109 = load double*, double** %11
%110 = icmp ne double* %109, null
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = load double*, double** %11
%113 = bitcast double* %112 to i8*
br label %114
114: ; preds = %111, %108
%115 = load i32*, i32** %12
%116 = icmp ne i32* %115, null
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = load i32*, i32** %12
%119 = bitcast i32* %118 to i8*
br label %120
120: ; preds = %117, %114
%121 = load i32*, i32** %13
%122 = icmp ne i32* %121, null
br i1 %122, label %123, label %126
123: ; preds = %120
%124 = load i32*, i32** %13
%125 = bitcast i32* %124 to i8*
br label %126
126: ; preds = %123, %120
unreachable
127: ; preds = %92
%128 = load i8**, i8*** %5
%129 = getelementptr inbounds i8*, i8** %128, i64 1
%130 = load i8*, i8** %129
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 2
%133 = load i8*, i8** %132
%134 = load i8**, i8*** %5
%135 = getelementptr inbounds i8*, i8** %134, i64 3
%136 = load i8*, i8** %135
%137 = load i32*, i32** %12
%138 = load i32*, i32** %13
%139 = load double*, double** %11
%140 = load double*, double** %9
%141 = load double*, double** %10
%142 = load i32, i32* %6
%143 = load i32, i32* %7
%144 = call i32 (i8*, i8*, i8*, i32*, i32*, double*, double*, double*, i32, i32, ...) bitcast (i32 (...)* @getdata to i32 (i8*, i8*, i8*, i32*, i32*, double*, double*, double*, i32, i32, ...)*)(i8* %130, i8* %133, i8* %136, i32* %137, i32* %138, double* %139, double* %140, double* %141, i32 %142, i32 %143)
%145 = load i8**, i8*** %5
%146 = getelementptr inbounds i8*, i8** %145, i64 4
%147 = load i8*, i8** %146
%148 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %147)
store i32 %148, i32* %14
%149 = load i32, i32* %14
store i32 %149, i32* %8
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%151 = load double*, double** %11
%152 = load i32*, i32** %12
%153 = load i32*, i32** %13
%154 = load double*, double** %9
%155 = load double*, double** %10
%156 = load i32, i32* %6
%157 = load i32, i32* %8
%158 = load i32, i32* %7
%159 = call i32 (double*, i32*, i32*, double*, double*, i32, double, i32, i32, ...) bitcast (i32 (...)* @cgm_CRS to i32 (double*, i32*, i32*, double*, double*, i32, double, i32, i32, ...)*)(double* %151, i32* %152, i32* %153, double* %154, double* %155, i32 %156, double 1.000000e-10, i32 %157, i32 %158)
%160 = load double*, double** %9
%161 = bitcast double* %160 to i8*
%162 = load double*, double** %10
%163 = bitcast double* %162 to i8*
%164 = load double*, double** %11
%165 = bitcast double* %164 to i8*
%166 = load i32*, i32** %12
%167 = bitcast i32* %166 to i8*
%168 = load i32*, i32** %13
%169 = bitcast i32* %168 to i8*
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"%s colval ptr bx maxloop thread\0A\00"
@.str.4 = [17 x i8] c"malloc b x error\00"
@.str.5 = [25 x i8] c"malloc val col ptr error\00"
@str = [13 x i8] c"--set OpenMP\00"
@str.7 = [14 x i8] c"--check error\00"
@str.8 = [11 x i8] c"--result--\00"
@str.9 = [7 x i8] c"Usage \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = icmp eq i32 %0, 6
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0))
%10 = load i8*, i8** %1
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %10)
tail call void @exit(i32 0)
unreachable
12: ; preds = %2
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%14 = getelementptr inbounds i8*, i8** %1, i64 5
%15 = load i8*, i8** %14
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %15)
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @omp_set_num_threads to i32 (i32, ...)*)(i32 %16)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.7, i64 0, i64 0))
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = call i32 (i8*, i8*, i8*, i32*, i32*, ...) bitcast (i32 (...)* @gethead to i32 (i8*, i8*, i8*, i32*, i32*, ...)*)(i8* %20, i8* %22, i8* %24, i32* %3, i32* %4)
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = shl nsw i64 %27, 3
%29 = call i8* @malloc(i64 %28)
%30 = bitcast i8* %29 to double*
%31 = call i8* @malloc(i64 %28)
%32 = bitcast i8* %31 to double*
%33 = icmp ne i8* %29, null
%34 = icmp ne i8* %31, null
%35 = and i1 %33, %34
br i1 %35, label %42, label %36
36: ; preds = %12
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br i1 %33, label %38, label %39
38: ; preds = %36
br label %39
39: ; preds = %38, %36
br i1 %34, label %40, label %41
40: ; preds = %39
br label %41
41: ; preds = %40, %39
unreachable
42: ; preds = %12
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = shl nsw i64 %44, 3
%46 = call i8* @malloc(i64 %45)
%47 = bitcast i8* %46 to double*
%48 = shl nsw i64 %44, 2
%49 = call i8* @malloc(i64 %48)
%50 = bitcast i8* %49 to i32*
%51 = add nsw i32 %26, 1
%52 = sext i32 %51 to i64
%53 = shl nsw i64 %52, 2
%54 = call i8* @malloc(i64 %53)
%55 = bitcast i8* %54 to i32*
%56 = icmp ne i8* %46, null
%57 = icmp ne i8* %49, null
%58 = and i1 %56, %57
%59 = icmp ne i8* %54, null
%60 = and i1 %58, %59
br i1 %60, label %69, label %61
61: ; preds = %42
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br i1 %56, label %63, label %64
63: ; preds = %61
br label %64
64: ; preds = %63, %61
br i1 %57, label %65, label %66
65: ; preds = %64
br label %66
66: ; preds = %65, %64
br i1 %59, label %67, label %68
67: ; preds = %66
br label %68
68: ; preds = %67, %66
unreachable
69: ; preds = %42
%70 = load i8*, i8** %19
%71 = load i8*, i8** %21
%72 = load i8*, i8** %23
%73 = call i32 (i8*, i8*, i8*, i32*, i32*, double*, double*, double*, i32, i32, ...) bitcast (i32 (...)* @getdata to i32 (i8*, i8*, i8*, i32*, i32*, double*, double*, double*, i32, i32, ...)*)(i8* %70, i8* %71, i8* %72, i32* %50, i32* %55, double* %47, double* %30, double* %32, i32 %26, i32 %43)
%74 = getelementptr inbounds i8*, i8** %1, i64 4
%75 = load i8*, i8** %74
%76 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %75)
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
%78 = load i32, i32* %3
%79 = load i32, i32* %4
%80 = call i32 (double*, i32*, i32*, double*, double*, i32, double, i32, i32, ...) bitcast (i32 (...)* @cgm_CRS to i32 (double*, i32*, i32*, double*, double*, i32, double, i32, i32, ...)*)(double* %47, i32* %50, i32* %55, double* %30, double* %32, i32 %78, double 1.000000e-10, i32 %76, i32 %79)
ret i32 0
}