#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int /*<<< orphan*/ JohnsonTrotter(int, char const *, int *);
double difftime(int /*<<< orphan*/, int /*<<< orphan*/);
int getopt(int, char **, char *);
scalar_t__ malloc(int);
char *optarg;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  int num_cities;
  const char *score_file;
  const char *citieschar;
  int *cities;
  int opt = 0;
  opt = getopt(argc, argv, "n:o:c:");
  while (opt != -1) {
    switch (opt) {
    case 'n':
      sscanf(optarg, "%d", &num_cities);
      break;
    case 'o':
      score_file = optarg;
      break;
    case 'c':
      citieschar = optarg;
      cities = (int *)malloc(sizeof(int) * 20);
      for (int i = 0; i < 20; i++) {
        cities[i] = (int)(citieschar[i] - 48);
      }
      break;
    default:
      printf("Invalid arguments.\n");
      break;
    }
    opt = getopt(argc, argv, "n:o:c:");
  }
  printf("%d\t%s\t", num_cities, score_file);
  for (int i = 0; i < 20; i++) {
    printf("%d", cities[i]);
  }
  printf("\n");
  time_t start, stop;
  time(&start);
  JohnsonTrotter(num_cities, score_file, cities);
  time(&stop);
  double diff = difftime(stop, start);
  printf("time elapsed: %.f\n", diff);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe65(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0xffffffff,-0x34(%rbp)
je     1298 <main+0x128>
mov    -0x34(%rbp),%eax
mov    %eax,-0x54(%rbp)
sub    $0x63,%eax
je     1215 <main+0xa5>
jmp    11c1 <main+0x51>
mov    -0x54(%rbp),%eax
sub    $0x6e,%eax
je     11e3 <main+0x73>
jmp    11d2 <main+0x62>
mov    -0x54(%rbp),%eax
sub    $0x6f,%eax
je     1202 <main+0x92>
jmp    126f <main+0xff>
mov    0x2e0e(%rip),%rax
mov    (%rax),%rdi
lea    0xe13(%rip),%rsi
lea    -0x14(%rbp),%rdx
call   1070 <sscanf@plt>
jmp    127d <main+0x10d>
mov    0x2def(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    127d <main+0x10d>
mov    0x2ddc(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    $0x50,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x14,-0x38(%rbp)
jge    126a <main+0xfa>
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
sub    $0x30,%edx
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1238 <main+0xc8>
jmp    127d <main+0x10d>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xd75(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x34(%rbp)
jmp    11a3 <main+0x33>
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x14,-0x3c(%rbp)
jge    12e5 <main+0x175>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b4 <main+0x144>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <time@plt>
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1080 <JohnsonTrotter@plt>
lea    -0x44(%rbp),%rdi
call   1050 <time@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1040 <difftime@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xcf4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
lea    0xe56(%rip),%r12
mov    %r12,%rdx
call   10b0 <getopt@plt>
mov    0x2e3f(%rip),%r13
jmp    11d6 <main+0x46>
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13),%rax
mov    %rax,0x10(%rsp)
mov    %ebp,%edi
mov    %r15,%rsi
mov    %r12,%rdx
call   10b0 <getopt@plt>
cmp    $0x6d,%eax
jle    1200 <main+0x70>
cmp    $0x6f,%eax
je     11c0 <main+0x30>
cmp    $0x6e,%eax
jne    12fe <main+0x16e>
mov    0x0(%r13),%rdi
lea    0xe13(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1090 <sscanf@plt>
jmp    11c9 <main+0x39>
cmp    $0x63,%eax
jne    12f9 <main+0x169>
mov    0x0(%r13),%r14
mov    $0x50,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
movsbl (%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,(%rbx)
movsbl 0x1(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x4(%rbx)
movsbl 0x2(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x8(%rbx)
movsbl 0x3(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0xc(%rbx)
movsbl 0x4(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x10(%rbx)
movsbl 0x5(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x14(%rbx)
movsbl 0x6(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x18(%rbx)
movsbl 0x7(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x1c(%rbx)
movsbl 0x8(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x20(%rbx)
movsbl 0x9(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x24(%rbx)
movsbl 0xa(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x28(%rbx)
movsbl 0xb(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x2c(%rbx)
movsbl 0xc(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x30(%rbx)
movsbl 0xd(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x34(%rbx)
movsbl 0xe(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x38(%rbx)
movsbl 0xf(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x3c(%rbx)
movsbl 0x10(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x40(%rbx)
movsbl 0x11(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x44(%rbx)
movsbl 0x12(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x48(%rbx)
movsbl 0x13(%r14),%eax
add    $0xffffffd0,%eax
mov    %eax,0x4c(%rbx)
jmp    11c9 <main+0x39>
cmp    $0xffffffff,%eax
je     130f <main+0x17f>
lea    0xd1f(%rip),%rdi
call   1040 <puts@plt>
jmp    11c9 <main+0x39>
mov    0x4(%rsp),%esi
lea    0xcf0(%rip),%rdi
mov    0x10(%rsp),%r14
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%esi
lea    0xcd5(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rbx),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc(%rsp),%rdi
call   1070 <time@plt>
mov    0x4(%rsp),%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10a0 <JohnsonTrotter@plt>
lea    0x8(%rsp),%rdi
call   1070 <time@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1060 <difftime@plt>
lea    0xb9d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"n:o:c:\00"
@optarg = global i8* null
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"Invalid arguments.\0A\00"
@.str.3 = [7 x i8] c"%d\09%s\09\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [19 x i8] c"time elapsed: %.f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %10
%16 = load i32, i32* %4
%17 = load i8**, i8*** %5
%18 = call i32 @getopt(i32 %16, i8** %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 %18, i32* %10
br label %19
19: ; preds = %54, %2
%20 = load i32, i32* %10
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %58
22: ; preds = %19
%23 = load i32, i32* %10
switch i32 %23, label %52 [
i32 110, label %24
i32 111, label %27
i32 99, label %29
]
24: ; preds = %22
%25 = load i8*, i8** @optarg
%26 = call i32 @sscanf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
br label %54
27: ; preds = %22
%28 = load i8*, i8** @optarg
store i8* %28, i8** %7
br label %54
29: ; preds = %22
%30 = load i8*, i8** @optarg
store i8* %30, i8** %8
%31 = call i64 @malloc(i32 80)
%32 = inttoptr i64 %31 to i32*
store i32* %32, i32** %9
store i32 0, i32* %11
br label %33
33: ; preds = %48, %29
%34 = load i32, i32* %11
%35 = icmp slt i32 %34, 20
br i1 %35, label %36, label %51
36: ; preds = %33
%37 = load i8*, i8** %8
%38 = load i32, i32* %11
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = load i32*, i32** %9
%45 = load i32, i32* %11
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, i32* %44, i64 %46
store i32 %43, i32* %47
br label %48
48: ; preds = %36
%49 = load i32, i32* %11
%50 = add nsw i32 %49, 1
store i32 %50, i32* %11
br label %33
51: ; preds = %33
br label %54
52: ; preds = %22
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %54
54: ; preds = %52, %51, %27, %24
%55 = load i32, i32* %4
%56 = load i8**, i8*** %5
%57 = call i32 @getopt(i32 %55, i8** %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 %57, i32* %10
br label %19
58: ; preds = %19
%59 = load i32, i32* %6
%60 = load i8*, i8** %7
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %59, i8* %60)
store i32 0, i32* %12
br label %62
62: ; preds = %72, %58
%63 = load i32, i32* %12
%64 = icmp slt i32 %63, 20
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load i32*, i32** %9
%67 = load i32, i32* %12
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %66, i64 %68
%70 = load i32, i32* %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %70)
br label %72
72: ; preds = %65
%73 = load i32, i32* %12
%74 = add nsw i32 %73, 1
store i32 %74, i32* %12
br label %62
75: ; preds = %62
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%77 = call i32 @time(i32* %13)
%78 = load i32, i32* %6
%79 = load i8*, i8** %7
%80 = load i32*, i32** %9
%81 = call i32 @JohnsonTrotter(i32 %78, i8* %79, i32* %80)
%82 = call i32 @time(i32* %14)
%83 = load i32, i32* %14
%84 = load i32, i32* %13
%85 = call double @difftime(i32 %83, i32 %84)
store double %85, double* %15
%86 = load double, double* %15
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %86)
%88 = load i32, i32* %3
ret i32 %88
}

LLVM IR (-O2):
@.str = [7 x i8] c"n:o:c:\00"
@optarg = global i8* null
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [7 x i8] c"%d\09%s\09\00"
@.str.5 = [19 x i8] c"time elapsed: %.f\0A\00"
@str = [19 x i8] c"Invalid arguments.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %121, %2
%9 = phi i32* [ undef, %2 ], [ %122, %121 ]
%10 = phi i32 [ %7, %2 ], [ %124, %121 ]
%11 = phi i8* [ undef, %2 ], [ %123, %121 ]
switch i32 %10, label %119 [
i32 -1, label %125
i32 110, label %12
i32 111, label %15
i32 99, label %17
]
12: ; preds = %8
%13 = load i8*, i8** @optarg
%14 = call i32 @sscanf(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
br label %121
15: ; preds = %8
%16 = load i8*, i8** @optarg
br label %121
17: ; preds = %8
%18 = load i8*, i8** @optarg
%19 = call i64 @malloc(i32 80)
%20 = inttoptr i64 %19 to i32*
%21 = load i8, i8* %18
%22 = sext i8 %21 to i32
%23 = add nsw i32 %22, -48
store i32 %23, i32* %20
%24 = getelementptr inbounds i8, i8* %18, i64 1
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = add nsw i32 %26, -48
%28 = getelementptr inbounds i32, i32* %20, i64 1
store i32 %27, i32* %28
%29 = getelementptr inbounds i8, i8* %18, i64 2
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = add nsw i32 %31, -48
%33 = getelementptr inbounds i32, i32* %20, i64 2
store i32 %32, i32* %33
%34 = getelementptr inbounds i8, i8* %18, i64 3
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = add nsw i32 %36, -48
%38 = getelementptr inbounds i32, i32* %20, i64 3
store i32 %37, i32* %38
%39 = getelementptr inbounds i8, i8* %18, i64 4
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = add nsw i32 %41, -48
%43 = getelementptr inbounds i32, i32* %20, i64 4
store i32 %42, i32* %43
%44 = getelementptr inbounds i8, i8* %18, i64 5
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = add nsw i32 %46, -48
%48 = getelementptr inbounds i32, i32* %20, i64 5
store i32 %47, i32* %48
%49 = getelementptr inbounds i8, i8* %18, i64 6
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = add nsw i32 %51, -48
%53 = getelementptr inbounds i32, i32* %20, i64 6
store i32 %52, i32* %53
%54 = getelementptr inbounds i8, i8* %18, i64 7
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = add nsw i32 %56, -48
%58 = getelementptr inbounds i32, i32* %20, i64 7
store i32 %57, i32* %58
%59 = getelementptr inbounds i8, i8* %18, i64 8
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = add nsw i32 %61, -48
%63 = getelementptr inbounds i32, i32* %20, i64 8
store i32 %62, i32* %63
%64 = getelementptr inbounds i8, i8* %18, i64 9
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = add nsw i32 %66, -48
%68 = getelementptr inbounds i32, i32* %20, i64 9
store i32 %67, i32* %68
%69 = getelementptr inbounds i8, i8* %18, i64 10
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = add nsw i32 %71, -48
%73 = getelementptr inbounds i32, i32* %20, i64 10
store i32 %72, i32* %73
%74 = getelementptr inbounds i8, i8* %18, i64 11
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = add nsw i32 %76, -48
%78 = getelementptr inbounds i32, i32* %20, i64 11
store i32 %77, i32* %78
%79 = getelementptr inbounds i8, i8* %18, i64 12
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = add nsw i32 %81, -48
%83 = getelementptr inbounds i32, i32* %20, i64 12
store i32 %82, i32* %83
%84 = getelementptr inbounds i8, i8* %18, i64 13
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = add nsw i32 %86, -48
%88 = getelementptr inbounds i32, i32* %20, i64 13
store i32 %87, i32* %88
%89 = getelementptr inbounds i8, i8* %18, i64 14
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = add nsw i32 %91, -48
%93 = getelementptr inbounds i32, i32* %20, i64 14
store i32 %92, i32* %93
%94 = getelementptr inbounds i8, i8* %18, i64 15
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = add nsw i32 %96, -48
%98 = getelementptr inbounds i32, i32* %20, i64 15
store i32 %97, i32* %98
%99 = getelementptr inbounds i8, i8* %18, i64 16
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = add nsw i32 %101, -48
%103 = getelementptr inbounds i32, i32* %20, i64 16
store i32 %102, i32* %103
%104 = getelementptr inbounds i8, i8* %18, i64 17
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = add nsw i32 %106, -48
%108 = getelementptr inbounds i32, i32* %20, i64 17
store i32 %107, i32* %108
%109 = getelementptr inbounds i8, i8* %18, i64 18
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = add nsw i32 %111, -48
%113 = getelementptr inbounds i32, i32* %20, i64 18
store i32 %112, i32* %113
%114 = getelementptr inbounds i8, i8* %18, i64 19
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = add nsw i32 %116, -48
%118 = getelementptr inbounds i32, i32* %20, i64 19
store i32 %117, i32* %118
br label %121
119: ; preds = %8
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
br label %121
121: ; preds = %17, %119, %15, %12
%122 = phi i32* [ %9, %119 ], [ %9, %15 ], [ %9, %12 ], [ %20, %17 ]
%123 = phi i8* [ %11, %119 ], [ %16, %15 ], [ %11, %12 ], [ %11, %17 ]
%124 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %8
125: ; preds = %8
%126 = load i32, i32* %3
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %126, i8* %11)
%128 = load i32, i32* %9
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %128)
%130 = getelementptr inbounds i32, i32* %9, i64 1
%131 = load i32, i32* %130
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %131)
%133 = getelementptr inbounds i32, i32* %9, i64 2
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %134)
%136 = getelementptr inbounds i32, i32* %9, i64 3
%137 = load i32, i32* %136
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %137)
%139 = getelementptr inbounds i32, i32* %9, i64 4
%140 = load i32, i32* %139
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %140)
%142 = getelementptr inbounds i32, i32* %9, i64 5
%143 = load i32, i32* %142
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %143)
%145 = getelementptr inbounds i32, i32* %9, i64 6
%146 = load i32, i32* %145
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %146)
%148 = getelementptr inbounds i32, i32* %9, i64 7
%149 = load i32, i32* %148
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %149)
%151 = getelementptr inbounds i32, i32* %9, i64 8
%152 = load i32, i32* %151
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds i32, i32* %9, i64 9
%155 = load i32, i32* %154
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %155)
%157 = getelementptr inbounds i32, i32* %9, i64 10
%158 = load i32, i32* %157
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %158)
%160 = getelementptr inbounds i32, i32* %9, i64 11
%161 = load i32, i32* %160
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %161)
%163 = getelementptr inbounds i32, i32* %9, i64 12
%164 = load i32, i32* %163
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %164)
%166 = getelementptr inbounds i32, i32* %9, i64 13
%167 = load i32, i32* %166
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %167)
%169 = getelementptr inbounds i32, i32* %9, i64 14
%170 = load i32, i32* %169
%171 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %170)
%172 = getelementptr inbounds i32, i32* %9, i64 15
%173 = load i32, i32* %172
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %173)
%175 = getelementptr inbounds i32, i32* %9, i64 16
%176 = load i32, i32* %175
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %176)
%178 = getelementptr inbounds i32, i32* %9, i64 17
%179 = load i32, i32* %178
%180 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %179)
%181 = getelementptr inbounds i32, i32* %9, i64 18
%182 = load i32, i32* %181
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %182)
%184 = getelementptr inbounds i32, i32* %9, i64 19
%185 = load i32, i32* %184
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %185)
%187 = call i32 @putchar(i32 10)
%188 = bitcast i32* %4 to i8*
%189 = bitcast i32* %5 to i8*
%190 = call i32 @time(i32* %4)
%191 = load i32, i32* %3
%192 = call i32 @JohnsonTrotter(i32 %191, i8* %11, i32* %9)
%193 = call i32 @time(i32* %5)
%194 = load i32, i32* %5
%195 = load i32, i32* %4
%196 = call double @difftime(i32 %194, i32 %195)
%197 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %196)
ret i32 0
}