#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*/ copy_list(int *, int *, int);
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ generate(int *, int, int *, int, int, int, int *, int, int,
                            int, int *, int, int **, int *, int *, int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ one_orbit(int, int *, int, int, int *, int *);
int /*<<< orphan*/ sortB(int *, int *, int, int *, int);
int /*<<< orphan*/ stabilizer(int *, int, int *, int, int, int *, int *);
void search(int *base, int bl, int *GS, int m, int n, int prop, int *info,
            int infol, int s, int **GSK, int *mK, int *num) {
  int *stab = (int *)malloc(m * n * sizeof(int)), sl;
  int *orbit = (int *)malloc(n * sizeof(int)), ol;
  int *tmp = (int *)malloc(n * sizeof(int));
  int *Korbit = (int *)malloc(n * sizeof(int)), Kol;
  int *list = (int *)malloc(n * sizeof(int)), ll;
  int gammas, minKorbit, i, mark;
  if (s == bl + 1) {
    *mK = 0;
  } else {
    search(base, bl, GS, m, n, prop, info, infol, s + 1, GSK, mK, num);
    stabilizer(base, s - 1, GS, m, n, stab, &sl);
    one_orbit(base[s - 1], stab, sl, n, orbit, &ol);
    for (i = 1; i < ol; i++) {
      gammas = orbit[i];
      one_orbit(gammas, *GSK, *mK, n, Korbit, &Kol);
      sortB(Korbit, tmp, Kol, base, bl);
      minKorbit = tmp[0];
      if (minKorbit == gammas) {
        copy_list(base, list, s - 1);
        list[s - 1] = gammas;
        ll = s;
        mark = 0;
        generate(base, bl, GS, m, n, prop, info, infol, s, s + 1, list, ll, GSK,
                 mK, &mark, num);
      }
    }
  }
  free(stab);
  free(orbit);
  free(tmp);
  free(Korbit);
  free(list);
}


x86 assembly (clang, -O0):
<search>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %ecx,-0x44(%rbp)
mov    %r8d,-0x48(%rbp)
mov    %r9d,-0x4c(%rbp)
mov    -0x44(%rbp),%eax
imul   -0x48(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x68(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x78(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x80(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x90(%rbp)
mov    0x20(%rbp),%eax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jne    1247 <search+0xc7>
mov    0x30(%rbp),%rax
movl   $0x0,(%rax)
jmp    146c <search+0x2ec>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x4c(%rbp),%r9d
mov    0x10(%rbp),%r15
mov    0x18(%rbp),%r14d
mov    0x20(%rbp),%ebx
add    $0x1,%ebx
mov    0x28(%rbp),%r11
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1050 <search@plt>
mov    -0x30(%rbp),%rdi
mov    0x20(%rbp),%esi
sub    $0x1,%esi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x58(%rbp),%r9
lea    -0x5c(%rbp),%rax
mov    %rax,(%rsp)
call   1080 <stabilizer@plt>
mov    -0x30(%rbp),%rax
mov    0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x58(%rbp),%rsi
mov    -0x5c(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x68(%rbp),%r8
lea    -0x6c(%rbp),%r9
call   1040 <one_orbit@plt>
movl   $0x1,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jge    1467 <search+0x2e7>
mov    -0x68(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%edi
mov    0x28(%rbp),%rax
mov    (%rax),%rsi
mov    0x30(%rbp),%rax
mov    (%rax),%edx
mov    -0x48(%rbp),%ecx
mov    -0x80(%rbp),%r8
lea    -0x84(%rbp),%r9
call   1040 <one_orbit@plt>
mov    -0x80(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x84(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x34(%rbp),%r8d
call   1060 <sortB@plt>
mov    -0x78(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x98(%rbp),%eax
jne    144e <search+0x2ce>
mov    -0x30(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    0x20(%rbp),%edx
sub    $0x1,%edx
call   1090 <copy_list@plt>
mov    -0x98(%rbp),%edx
mov    -0x90(%rbp),%rax
mov    0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x20(%rbp),%eax
mov    %eax,-0x94(%rbp)
movl   $0x0,-0xa4(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x4c(%rbp),%r9d
mov    0x10(%rbp),%rax
mov    0x18(%rbp),%r10d
mov    %r10d,-0xb4(%rbp)
mov    0x20(%rbp),%r13d
mov    0x20(%rbp),%r12d
add    $0x1,%r12d
mov    -0x90(%rbp),%r15
mov    -0x94(%rbp),%r14d
mov    0x28(%rbp),%rbx
mov    0x30(%rbp),%r11
mov    0x38(%rbp),%r10
mov    %r10,-0xb0(%rbp)
lea    -0xa4(%rbp),%r10
mov    %rax,(%rsp)
mov    -0xb4(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xb0(%rbp),%rax
mov    %r13d,0x10(%rsp)
mov    %r12d,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14d,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   10a0 <generate@plt>
jmp    1453 <search+0x2d3>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    12ef <search+0x16f>
jmp    146c <search+0x2ec>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<search>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9d,%r15d
mov    %r8d,%r13d
mov    %ecx,%r12d
mov    %rdx,0x38(%rsp)
mov    %esi,%r14d
mov    %rdi,%rbp
mov    %ecx,%edi
imul   %r8d,%edi
shl    $0x2,%edi
call   1070 <malloc@plt>
mov    %rax,0x28(%rsp)
lea    0x0(,%r13,4),%ebx
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,0x50(%rsp)
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,0x48(%rsp)
mov    %ebx,%edi
mov    0xc0(%rsp),%ebx
call   1070 <malloc@plt>
mov    %rax,0x40(%rsp)
lea    0x1(%r14),%eax
cmp    %ebx,%eax
jne    1214 <search+0x94>
mov    0xd0(%rsp),%rax
movl   $0x0,(%rax)
mov    0x8(%rsp),%rbp
jmp    13f4 <search+0x274>
mov    0xb8(%rsp),%r10d
lea    0x1(%rbx),%eax
mov    %rbp,%rdi
mov    %r14,0x60(%rsp)
mov    %r14d,%esi
mov    %rbp,%r14
mov    %r15d,%r9d
mov    0x38(%rsp),%r15
mov    %r15,%rdx
mov    %r12d,%ecx
mov    %r13d,%r8d
mov    %r9d,0x18(%rsp)
push   0xd8(%rsp)
push   0xd8(%rsp)
push   0xd8(%rsp)
mov    %rax,0x80(%rsp)
push   %rax
push   %r10
push   0xd8(%rsp)
call   1050 <search@plt>
add    $0x30,%rsp
movslq %ebx,%rbp
lea    -0x1(%rbx),%esi
sub    $0x8,%rsp
lea    0x2c(%rsp),%rax
mov    %r14,%rdi
mov    %r15,%rdx
mov    %r12d,0x1c(%rsp)
mov    %r12d,%ecx
mov    %r13d,%r8d
mov    0x30(%rsp),%rbx
mov    %rbx,%r9
push   %rax
call   1080 <stabilizer@plt>
add    $0x10,%rsp
mov    %r14,0x70(%rsp)
mov    %rbp,0x30(%rsp)
mov    -0x4(%r14,%rbp,4),%edi
mov    0x24(%rsp),%edx
lea    0x4(%rsp),%r9
mov    %rbx,%rsi
mov    %r13,0x58(%rsp)
mov    %r13d,%ecx
mov    0x8(%rsp),%rbp
mov    %rbp,%r8
call   1040 <one_orbit@plt>
cmpl   $0x2,0x4(%rsp)
jl     13f4 <search+0x274>
addq   $0xffffffffffffffff,0x30(%rsp)
mov    $0x1,%ebx
lea    0x20(%rsp),%r15
mov    0x30(%rsp),%r14
jmp    1317 <search+0x197>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
mov    0x8(%rsp),%rbp
jge    13f4 <search+0x274>
mov    0x0(%rbp,%rbx,4),%r13d
mov    0xc8(%rsp),%rax
mov    (%rax),%rsi
mov    0xd0(%rsp),%rax
mov    (%rax),%edx
mov    %r13d,%edi
mov    0x58(%rsp),%rcx
mov    0x48(%rsp),%rbp
mov    %rbp,%r8
mov    %r15,%r9
call   1040 <one_orbit@plt>
mov    0x20(%rsp),%edx
mov    %rbp,%rdi
mov    0x50(%rsp),%r12
mov    %r12,%rsi
mov    0x70(%rsp),%rbp
mov    %rbp,%rcx
mov    0x60(%rsp),%r8
call   1060 <sortB@plt>
cmp    %r13d,(%r12)
jne    1300 <search+0x180>
mov    %rbp,%rdi
mov    0x40(%rsp),%r12
mov    %r12,%rsi
mov    %r14d,%edx
call   1090 <copy_list@plt>
mov    %r13d,(%r12,%r14,4)
movl   $0x0,0x1c(%rsp)
mov    %rbp,%rdi
mov    0x60(%rsp),%rsi
mov    0x38(%rsp),%rdx
mov    0x14(%rsp),%ecx
mov    0x58(%rsp),%r8
mov    0x18(%rsp),%r9d
push   0xd8(%rsp)
lea    0x24(%rsp),%rax
push   %rax
push   0xe0(%rsp)
push   0xe0(%rsp)
mov    0xe0(%rsp),%eax
push   %rax
push   %r12
push   0x98(%rsp)
push   %rax
mov    0xf8(%rsp),%eax
push   %rax
push   0xf8(%rsp)
call   10a0 <generate@plt>
add    $0x50,%rsp
jmp    1300 <search+0x180>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    0x50(%rsp),%rdi
call   1030 <free@plt>
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
mov    0x40(%rsp),%rdi
call   1030 <free@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @search(i32* %0, i32 %1, i32* %2, i32 %3, i32 %4, i32 %5, i32* %6, i32 %7, i32 %8, i32** %9, i32* %10, i32* %11) {
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32*
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32**
%23 = alloca i32*
%24 = alloca i32*
%25 = alloca i32*
%26 = alloca i32
%27 = alloca i32*
%28 = alloca i32
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32
%32 = alloca i32*
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
store i32* %0, i32** %13
store i32 %1, i32* %14
store i32* %2, i32** %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store i32* %6, i32** %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32** %9, i32*** %22
store i32* %10, i32** %23
store i32* %11, i32** %24
%38 = load i32, i32* %16
%39 = load i32, i32* %17
%40 = mul nsw i32 %38, %39
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 4
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 %43)
%45 = inttoptr i64 %44 to i32*
store i32* %45, i32** %25
%46 = load i32, i32* %17
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 4
%49 = trunc i64 %48 to i32
%50 = call i64 @malloc(i32 %49)
%51 = inttoptr i64 %50 to i32*
store i32* %51, i32** %27
%52 = load i32, i32* %17
%53 = sext i32 %52 to i64
%54 = mul i64 %53, 4
%55 = trunc i64 %54 to i32
%56 = call i64 @malloc(i32 %55)
%57 = inttoptr i64 %56 to i32*
store i32* %57, i32** %29
%58 = load i32, i32* %17
%59 = sext i32 %58 to i64
%60 = mul i64 %59, 4
%61 = trunc i64 %60 to i32
%62 = call i64 @malloc(i32 %61)
%63 = inttoptr i64 %62 to i32*
store i32* %63, i32** %30
%64 = load i32, i32* %17
%65 = sext i32 %64 to i64
%66 = mul i64 %65, 4
%67 = trunc i64 %66 to i32
%68 = call i64 @malloc(i32 %67)
%69 = inttoptr i64 %68 to i32*
store i32* %69, i32** %32
%70 = load i32, i32* %21
%71 = load i32, i32* %14
%72 = add nsw i32 %71, 1
%73 = icmp eq i32 %70, %72
br i1 %73, label %74, label %76
74: ; preds = %12
%75 = load i32*, i32** %23
store i32 0, i32* %75
br label %174
76: ; preds = %12
%77 = load i32*, i32** %13
%78 = load i32, i32* %14
%79 = load i32*, i32** %15
%80 = load i32, i32* %16
%81 = load i32, i32* %17
%82 = load i32, i32* %18
%83 = load i32*, i32** %19
%84 = load i32, i32* %20
%85 = load i32, i32* %21
%86 = add nsw i32 %85, 1
%87 = load i32**, i32*** %22
%88 = load i32*, i32** %23
%89 = load i32*, i32** %24
%90 = load i32*, i32** %13
%91 = load i32, i32* %21
%92 = sub nsw i32 %91, 1
%93 = load i32*, i32** %15
%94 = load i32, i32* %16
%95 = load i32, i32* %17
%96 = load i32*, i32** %25
%97 = call i32 @stabilizer(i32* %90, i32 %92, i32* %93, i32 %94, i32 %95, i32* %96, i32* %26)
%98 = load i32*, i32** %13
%99 = load i32, i32* %21
%100 = sub nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %98, i64 %101
%103 = load i32, i32* %102
%104 = load i32*, i32** %25
%105 = load i32, i32* %26
%106 = load i32, i32* %17
%107 = load i32*, i32** %27
%108 = call i32 @one_orbit(i32 %103, i32* %104, i32 %105, i32 %106, i32* %107, i32* %28)
store i32 1, i32* %36
br label %109
109: ; preds = %170, %76
%110 = load i32, i32* %36
%111 = load i32, i32* %28
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %173
113: ; preds = %109
%114 = load i32*, i32** %27
%115 = load i32, i32* %36
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, i32* %114, i64 %116
%118 = load i32, i32* %117
store i32 %118, i32* %34
%119 = load i32, i32* %34
%120 = load i32**, i32*** %22
%121 = load i32*, i32** %120
%122 = load i32*, i32** %23
%123 = load i32, i32* %122
%124 = load i32, i32* %17
%125 = load i32*, i32** %30
%126 = call i32 @one_orbit(i32 %119, i32* %121, i32 %123, i32 %124, i32* %125, i32* %31)
%127 = load i32*, i32** %30
%128 = load i32*, i32** %29
%129 = load i32, i32* %31
%130 = load i32*, i32** %13
%131 = load i32, i32* %14
%132 = call i32 @sortB(i32* %127, i32* %128, i32 %129, i32* %130, i32 %131)
%133 = load i32*, i32** %29
%134 = getelementptr inbounds i32, i32* %133, i64 0
%135 = load i32, i32* %134
store i32 %135, i32* %35
%136 = load i32, i32* %35
%137 = load i32, i32* %34
%138 = icmp eq i32 %136, %137
br i1 %138, label %139, label %169
139: ; preds = %113
%140 = load i32*, i32** %13
%141 = load i32*, i32** %32
%142 = load i32, i32* %21
%143 = sub nsw i32 %142, 1
%144 = call i32 @copy_list(i32* %140, i32* %141, i32 %143)
%145 = load i32, i32* %34
%146 = load i32*, i32** %32
%147 = load i32, i32* %21
%148 = sub nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, i32* %146, i64 %149
store i32 %145, i32* %150
%151 = load i32, i32* %21
store i32 %151, i32* %33
store i32 0, i32* %37
%152 = load i32*, i32** %13
%153 = load i32, i32* %14
%154 = load i32*, i32** %15
%155 = load i32, i32* %16
%156 = load i32, i32* %17
%157 = load i32, i32* %18
%158 = load i32*, i32** %19
%159 = load i32, i32* %20
%160 = load i32, i32* %21
%161 = load i32, i32* %21
%162 = add nsw i32 %161, 1
%163 = load i32*, i32** %32
%164 = load i32, i32* %33
%165 = load i32**, i32*** %22
%166 = load i32*, i32** %23
%167 = load i32*, i32** %24
%168 = call i32 @generate(i32* %152, i32 %153, i32* %154, i32 %155, i32 %156, i32 %157, i32* %158, i32 %159, i32 %160, i32 %162, i32* %163, i32 %164, i32** %165, i32* %166, i32* %37, i32* %167)
br label %169
169: ; preds = %139, %113
br label %170
170: ; preds = %169
%171 = load i32, i32* %36
%172 = add nsw i32 %171, 1
store i32 %172, i32* %36
br label %109
173: ; preds = %109
br label %174
174: ; preds = %173, %74
%175 = load i32*, i32** %25
%176 = call i32 @free(i32* %175)
%177 = load i32*, i32** %27
%178 = call i32 @free(i32* %177)
%179 = load i32*, i32** %29
%180 = call i32 @free(i32* %179)
%181 = load i32*, i32** %30
%182 = call i32 @free(i32* %181)
%183 = load i32*, i32** %32
%184 = call i32 @free(i32* %183)
ret void
}

LLVM IR (-O2):
define void @search(i32* %0, i32 %1, i32* %2, i32 %3, i32 %4, i32 %5, i32* %6, i32 %7, i32 %8, i32** %9, i32* %10, i32* %11) {
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = shl i32 %3, 2
%18 = mul i32 %17, %4
%19 = tail call i64 @malloc(i32 %18)
%20 = inttoptr i64 %19 to i32*
%21 = bitcast i32* %13 to i8*
%22 = shl i32 %4, 2
%23 = tail call i64 @malloc(i32 %22)
%24 = inttoptr i64 %23 to i32*
%25 = bitcast i32* %14 to i8*
%26 = tail call i64 @malloc(i32 %22)
%27 = inttoptr i64 %26 to i32*
%28 = tail call i64 @malloc(i32 %22)
%29 = inttoptr i64 %28 to i32*
%30 = bitcast i32* %15 to i8*
%31 = tail call i64 @malloc(i32 %22)
%32 = inttoptr i64 %31 to i32*
%33 = bitcast i32* %16 to i8*
%34 = add nsw i32 %1, 1
%35 = icmp eq i32 %34, %8
br i1 %35, label %36, label %37
36: ; preds = %12
store i32 0, i32* %10
br label %69
37: ; preds = %12
%38 = add nsw i32 %8, 1
tail call void @search(i32* %0, i32 %1, i32* %2, i32 %3, i32 %4, i32 %5, i32* %6, i32 %7, i32 %38, i32** %9, i32* %10, i32* %11)
%39 = add nsw i32 %8, -1
%40 = call i32 @stabilizer(i32* %0, i32 %39, i32* %2, i32 %3, i32 %4, i32* %20, i32* %13)
%41 = sext i32 %39 to i64
%42 = getelementptr inbounds i32, i32* %0, i64 %41
%43 = load i32, i32* %42
%44 = load i32, i32* %13
%45 = call i32 @one_orbit(i32 %43, i32* %20, i32 %44, i32 %4, i32* %24, i32* %14)
%46 = load i32, i32* %14
%47 = icmp sgt i32 %46, 1
br i1 %47, label %48, label %69
48: ; preds = %37
%49 = getelementptr inbounds i32, i32* %32, i64 %41
br label %50
50: ; preds = %48, %64
%51 = phi i64 [ 1, %48 ], [ %65, %64 ]
%52 = getelementptr inbounds i32, i32* %24, i64 %51
%53 = load i32, i32* %52
%54 = load i32*, i32** %9
%55 = load i32, i32* %10
%56 = call i32 @one_orbit(i32 %53, i32* %54, i32 %55, i32 %4, i32* %29, i32* %15)
%57 = load i32, i32* %15
%58 = call i32 @sortB(i32* %29, i32* %27, i32 %57, i32* %0, i32 %1)
%59 = load i32, i32* %27
%60 = icmp eq i32 %59, %53
br i1 %60, label %61, label %64
61: ; preds = %50
%62 = call i32 @copy_list(i32* %0, i32* %32, i32 %39)
store i32 %53, i32* %49
store i32 0, i32* %16
%63 = call i32 @generate(i32* %0, i32 %1, i32* %2, i32 %3, i32 %4, i32 %5, i32* %6, i32 %7, i32 %8, i32 %38, i32* %32, i32 %8, i32** %9, i32* %10, i32* %16, i32* %11)
br label %64
64: ; preds = %50, %61
%65 = add nuw nsw i64 %51, 1
%66 = load i32, i32* %14
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %50, label %69
69: ; preds = %64, %37, %36
%70 = call i32 @free(i32* %20)
%71 = call i32 @free(i32* %24)
%72 = call i32 @free(i32* %27)
%73 = call i32 @free(i32* %29)
%74 = call i32 @free(i32* %32)
ret void
}