#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char const *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
char *malloc(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ printhelp();
int /*<<< orphan*/ strcat(char *, char const *);
scalar_t__ strcmp(char const *, char *);
int strlen(char const *);
int /*<<< orphan*/ system(char *);
int main(int argc, const char *argv[]) {
  FILE *pn;
  if (argc == 1) {
    printhelp();
    exit(-1);
  }
  if (argc == 2 &&
      ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "help") == 0))) {
    printhelp();
    exit(-1);
  }
  if (argc == 3 && (strcmp(argv[1], "-d")) == 0) {
    pn = fopen("number.txt", "w");
    if (strlen(argv[2]) == 10) {
      fputs(argv[2], pn);
      fclose(pn);
    } else {
      printf("Invalid phone number lengnth!\n");
      exit(-1);
    }
  }
  pn = fopen("number.txt", "r");
  if (!pn) {
    printf("No phone number specified. Set the phone number first!\n");
    exit(-1);
  }
  char *number = malloc(sizeof(char) * 11);
  fread(number, 11, 1, pn);
  fclose(pn);
  char *firsthalf = "curl -X POST http://textbelt.com/text -d number=";
  char *secondhalf = " -d \"message=Your program execution has started! Go "
                     "take a coffee break :)\"";
  char *message = malloc(sizeof(char) * 200);
  message[0] = 0;
  strcat(message, firsthalf);
  strcat(message, number);
  strcat(message, secondhalf);
  int i;
  char *instruction = malloc(sizeof(char) * 4096);
  instruction[0] = 0;
  for (i = 1; i < argc; ++i) {
    strcat(instruction, argv[i]);
    strcat(instruction, " ");
  }
  system(message);
  system(instruction);
  char *finishedhalf = " -d \"message=Your program execution has finished! Get "
                       "back to work :)\"";
  message[0] = 0;
  strcat(message, firsthalf);
  strcat(message, number);
  strcat(message, finishedhalf);
  system(message);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11f1 <main+0x31>
mov    $0x0,%al
call   10e0 <printhelp@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
cmpl   $0x2,-0x8(%rbp)
jne    1248 <main+0x88>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdf6(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1237 <main+0x77>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xddb(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1248 <main+0x88>
mov    $0x0,%al
call   10e0 <printhelp@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
cmpl   $0x3,-0x8(%rbp)
jne    12d7 <main+0x117>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xda7(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12d7 <main+0x117>
lea    0xd94(%rip),%rdi
lea    0xd98(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1050 <strlen@plt>
cmp    $0xa,%eax
jne    12bc <main+0xfc>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x18(%rbp),%rsi
call   1080 <fputs@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
jmp    12d2 <main+0x112>
lea    0xd55(%rip),%rdi
call   1070 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
jmp    12d7 <main+0x117>
lea    0xd2d(%rip),%rdi
lea    0xd52(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    130f <main+0x14f>
lea    0xd39(%rip),%rdi
call   1070 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
mov    $0xb,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0xb,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xd2d(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xd53(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    $0xc8,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   10c0 <strcat@plt>
mov    $0x1000,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ea <main+0x22a>
mov    -0x48(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   10c0 <strcat@plt>
mov    -0x48(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13ab <main+0x1eb>
mov    -0x38(%rbp),%rdi
call   1060 <system@plt>
mov    -0x48(%rbp),%rdi
call   1060 <system@plt>
lea    0xced(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
call   1060 <system@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
mov    %edi,%r14d
cmp    $0x2,%edi
je     11e8 <main+0x28>
cmp    $0x3,%r14d
je     1225 <main+0x65>
cmp    $0x1,%r14d
jne    1279 <main+0xb9>
jmp    1214 <main+0x54>
mov    0x8(%r12),%rdi
lea    0xe0c(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1214 <main+0x54>
mov    0x8(%r12),%rdi
lea    0xdf9(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1279 <main+0xb9>
xor    %eax,%eax
call   10e0 <printhelp@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
mov    0x8(%r12),%rdi
lea    0xdd7(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1279 <main+0xb9>
lea    0xdc9(%rip),%rdi
lea    0xdcd(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
mov    0x10(%r12),%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jne    13be <main+0x1fe>
mov    0x10(%r12),%rdi
mov    %rbx,%rsi
call   1080 <fputs@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xd8b(%rip),%rdi
lea    0xd91(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13a8 <main+0x1e8>
mov    %rax,%rbx
mov    $0xb,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    $0xc8,%edi
call   10a0 <malloc@plt>
mov    %rax,%r13
movb   $0x0,(%rax)
lea    0xd41(%rip),%rsi
mov    %rax,%rdi
call   10c0 <strcat@plt>
mov    %r13,%rdi
mov    %rbp,(%rsp)
mov    %rbp,%rsi
call   10c0 <strcat@plt>
lea    0xd54(%rip),%rsi
mov    %r13,%rdi
call   10c0 <strcat@plt>
mov    $0x1000,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
movb   $0x0,(%rax)
cmp    $0x2,%r14d
jl     1350 <main+0x190>
mov    %r14d,%ebp
mov    $0x1,%r15d
lea    0xd72(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r12,%r15,8),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <strcat@plt>
add    $0x1,%r15
cmp    %r15,%rbp
jne    1330 <main+0x170>
mov    %r13,%rdi
call   1070 <system@plt>
mov    %rbx,%rdi
call   1070 <system@plt>
movb   $0x0,0x0(%r13)
lea    0xcae(%rip),%rsi
mov    %r13,%rdi
call   10c0 <strcat@plt>
mov    %r13,%rdi
mov    (%rsp),%rsi
call   10c0 <strcat@plt>
lea    0xd12(%rip),%rsi
mov    %r13,%rdi
call   10c0 <strcat@plt>
mov    %r13,%rdi
call   1070 <system@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd31(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
lea    0xd52(%rip),%rdi
jmp    13af <main+0x1ef>

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [11 x i8] c"number.txt\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [31 x i8] c"Invalid phone number lengnth!\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [56 x i8] c"No phone number specified. Set the phone number first!\0A\00"
@.str.8 = [49 x i8] c"curl -X POST http://textbelt.com/text -d number=\00"
@.str.9 = [76 x i8] c" -d \22message=Your program execution has started! Go take a coffee break :)\22\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [71 x i8] c" -d \22message=Your program execution has finished! Get back to work :)\22\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 i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (...) @printhelp()
%18 = call i32 @exit(i32 -1)
unreachable
19: ; preds = %2
%20 = load i32, i32* %4
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %34, label %28
28: ; preds = %22
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %28, %22
%35 = call i32 (...) @printhelp()
%36 = call i32 @exit(i32 -1)
unreachable
37: ; preds = %28, %19
%38 = load i32, i32* %4
%39 = icmp eq i32 %38, 3
br i1 %39, label %40, label %65
40: ; preds = %37
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %65
46: ; preds = %40
%47 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %47, i32** %6
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 2
%50 = load i8*, i8** %49
%51 = call i32 @strlen(i8* %50)
%52 = icmp eq i32 %51, 10
br i1 %52, label %53, label %61
53: ; preds = %46
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 2
%56 = load i8*, i8** %55
%57 = load i32*, i32** %6
%58 = call i32 @fputs(i8* %56, i32* %57)
%59 = load i32*, i32** %6
%60 = call i32 @fclose(i32* %59)
br label %64
61: ; preds = %46
%62 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%63 = call i32 @exit(i32 -1)
unreachable
64: ; preds = %53
br label %65
65: ; preds = %64, %40, %37
%66 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %66, i32** %6
%67 = load i32*, i32** %6
%68 = icmp ne i32* %67, null
br i1 %68, label %72, label %69
69: ; preds = %65
%70 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%71 = call i32 @exit(i32 -1)
unreachable
72: ; preds = %65
%73 = call i8* @malloc(i32 11)
store i8* %73, i8** %7
%74 = load i8*, i8** %7
%75 = load i32*, i32** %6
%76 = call i32 @fread(i8* %74, i32 11, i32 1, i32* %75)
%77 = load i32*, i32** %6
%78 = call i32 @fclose(i32* %77)
store i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0), i8** %8
store i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.9, i64 0, i64 0), i8** %9
%79 = call i8* @malloc(i32 200)
store i8* %79, i8** %10
%80 = load i8*, i8** %10
%81 = getelementptr inbounds i8, i8* %80, i64 0
store i8 0, i8* %81
%82 = load i8*, i8** %10
%83 = load i8*, i8** %8
%84 = call i32 @strcat(i8* %82, i8* %83)
%85 = load i8*, i8** %10
%86 = load i8*, i8** %7
%87 = call i32 @strcat(i8* %85, i8* %86)
%88 = load i8*, i8** %10
%89 = load i8*, i8** %9
%90 = call i32 @strcat(i8* %88, i8* %89)
%91 = call i8* @malloc(i32 4096)
store i8* %91, i8** %12
%92 = load i8*, i8** %12
%93 = getelementptr inbounds i8, i8* %92, i64 0
store i8 0, i8* %93
store i32 1, i32* %11
br label %94
94: ; preds = %108, %72
%95 = load i32, i32* %11
%96 = load i32, i32* %4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %111
98: ; preds = %94
%99 = load i8*, i8** %12
%100 = load i8**, i8*** %5
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %100, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 @strcat(i8* %99, i8* %104)
%106 = load i8*, i8** %12
%107 = call i32 @strcat(i8* %106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %108
108: ; preds = %98
%109 = load i32, i32* %11
%110 = add nsw i32 %109, 1
store i32 %110, i32* %11
br label %94
111: ; preds = %94
%112 = load i8*, i8** %10
%113 = call i32 @system(i8* %112)
%114 = load i8*, i8** %12
%115 = call i32 @system(i8* %114)
store i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0), i8** %13
%116 = load i8*, i8** %10
%117 = getelementptr inbounds i8, i8* %116, i64 0
store i8 0, i8* %117
%118 = load i8*, i8** %10
%119 = load i8*, i8** %8
%120 = call i32 @strcat(i8* %118, i8* %119)
%121 = load i8*, i8** %10
%122 = load i8*, i8** %7
%123 = call i32 @strcat(i8* %121, i8* %122)
%124 = load i8*, i8** %10
%125 = load i8*, i8** %13
%126 = call i32 @strcat(i8* %124, i8* %125)
%127 = load i8*, i8** %10
%128 = call i32 @system(i8* %127)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [11 x i8] c"number.txt\00"
@.str.4 = [2 x i8] c"w\00"
@.str.6 = [2 x i8] c"r\00"
@.str.8 = [49 x i8] c"curl -X POST http://textbelt.com/text -d number=\00"
@.str.9 = [76 x i8] c" -d \22message=Your program execution has started! Go take a coffee break :)\22\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [71 x i8] c" -d \22message=Your program execution has finished! Get back to work :)\22\00"
@str = [55 x i8] c"No phone number specified. Set the phone number first!\00"
@str.12 = [30 x i8] c"Invalid phone number lengnth!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
switch i32 %0, label %36 [
i32 1, label %3
i32 2, label %6
i32 3, label %18
]
3: ; preds = %2
%4 = tail call i32 (...) @printhelp()
%5 = tail call i32 @exit(i32 -1)
unreachable
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %6
%12 = load i8*, i8** %7
%13 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %36
15: ; preds = %11, %6
%16 = tail call i32 (...) @printhelp()
%17 = tail call i32 @exit(i32 -1)
unreachable
18: ; preds = %2
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %36
23: ; preds = %18
%24 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%25 = getelementptr inbounds i8*, i8** %1, i64 2
%26 = load i8*, i8** %25
%27 = tail call i32 @strlen(i8* %26)
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %33
29: ; preds = %23
%30 = load i8*, i8** %25
%31 = tail call i32 @fputs(i8* %30, i32* %24)
%32 = tail call i32 @fclose(i32* %24)
br label %36
33: ; preds = %23
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.12, i64 0, i64 0))
%35 = tail call i32 @exit(i32 -1)
unreachable
36: ; preds = %11, %2, %29, %18
%37 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i32* %37, null
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%41 = tail call i32 @exit(i32 -1)
unreachable
42: ; preds = %36
%43 = tail call dereferenceable_or_null(11) i8* @malloc(i32 11)
%44 = tail call i32 @fread(i8* %43, i32 11, i32 1, i32* %37)
%45 = tail call i32 @fclose(i32* %37)
%46 = tail call dereferenceable_or_null(200) i8* @malloc(i32 200)
store i8 0, i8* %46
%47 = tail call i32 @strcat(i8* %46, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%48 = tail call i32 @strcat(i8* %46, i8* %43)
%49 = tail call i32 @strcat(i8* %46, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.9, i64 0, i64 0))
%50 = tail call dereferenceable_or_null(4096) i8* @malloc(i32 4096)
store i8 0, i8* %50
%51 = icmp sgt i32 %0, 1
br i1 %51, label %52, label %62
52: ; preds = %42
%53 = zext i32 %0 to i64
br label %54
54: ; preds = %52, %54
%55 = phi i64 [ 1, %52 ], [ %60, %54 ]
%56 = getelementptr inbounds i8*, i8** %1, i64 %55
%57 = load i8*, i8** %56
%58 = tail call i32 @strcat(i8* %50, i8* %57)
%59 = tail call i32 @strcat(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%60 = add nuw nsw i64 %55, 1
%61 = icmp eq i64 %60, %53
br i1 %61, label %62, label %54
62: ; preds = %54, %42
%63 = tail call i32 @system(i8* %46)
%64 = tail call i32 @system(i8* %50)
store i8 0, i8* %46
%65 = tail call i32 @strcat(i8* %46, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%66 = tail call i32 @strcat(i8* %46, i8* %43)
%67 = tail call i32 @strcat(i8* %46, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0))
%68 = tail call i32 @system(i8* %46)
ret i32 0
}