#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 utsname {
  char *sysname;
};
typedef scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ execlp(char *, char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
size_t strcspn(char *, char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ uname(struct utsname *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  char cmdArg[512];
  char input[256];
  pid_t pChild;
  struct utsname unameData;
  pChild = fork();
  if (pChild == 0) {
    uname(&unameData);
    if (strcmp(argv[1], "git") == 0) {
      system("git add .");
      strcpy(cmdArg, "git commit -m ");
      printf("please enter commit message: ");
      fgets(input, 256, stdin);
      input[strcspn(input, "\n")] = 0;
      strcat(cmdArg, input);
      system(cmdArg);
      system("git push -u origin master");
    } else if (strcmp(argv[1], "dev") == 0) {
      if (strcmp(unameData.sysname, "Linux\n")) {
        system("code .");
      } else {
        system("atom .");
      }
    } else if (strcmp(argv[1], "phonehome") == 0) {
      system("git fetch upstream && git rebase upstream/master");
    } else if (strcmp(argv[1], "clone") == 0) {
      char str[80];
      strcat(str, "git clone https://github.com/joshua-xavier/");
      strcat(str, argv[2]);
      printf("%s", str);
      system(str);
    } else if (strcmp(argv[1], "open") == 0) {
      if (strcmp(unameData.sysname, "Linux") == 0) {
        execlp("/usr/bin/nautilus", "nautilus", ".", NULL);
      } else {
        execlp("/usr/bin/open", "open", ".", NULL);
      }
    } else {
      printf("Im sorry cmd [%s] is not recognised\n", argv[1]);
    }
  } else if (pChild > 0) {
    wait(NULL);
  } else {
    printf("Fatal Error creating process...\n");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   10e0 <fork@plt>
mov    %rax,-0x318(%rbp)
cmpq   $0x0,-0x318(%rbp)
jne    1458 <main+0x298>
lea    -0x320(%rbp),%rdi
call   1060 <uname@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdf0(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12b1 <main+0xf1>
lea    0xdde(%rip),%rdi
call   1040 <system@plt>
lea    -0x210(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x310(%rbp),%rdi
mov    0x2d8e(%rip),%rax
mov    (%rax),%edx
mov    $0x100,%esi
call   1080 <fgets@plt>
lea    -0x310(%rbp),%rdi
lea    0xed4(%rip),%rsi
call   1070 <strcspn@plt>
movb   $0x0,-0x310(%rbp,%rax,1)
lea    -0x210(%rbp),%rdi
lea    -0x310(%rbp),%rsi
call   10a0 <strcat@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
lea    0xd94(%rip),%rdi
call   1040 <system@plt>
jmp    1453 <main+0x293>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd95(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    130e <main+0x14e>
mov    -0x320(%rbp),%rdi
lea    0xd7c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     12fd <main+0x13d>
lea    0xd6d(%rip),%rdi
call   1040 <system@plt>
jmp    1309 <main+0x149>
lea    0xd63(%rip),%rdi
call   1040 <system@plt>
jmp    144e <main+0x28e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd51(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    133d <main+0x17d>
lea    0xd45(%rip),%rdi
call   1040 <system@plt>
jmp    1449 <main+0x289>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5d(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13a8 <main+0x1e8>
lea    -0x370(%rbp),%rdi
lea    0xd46(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x370(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   10a0 <strcat@plt>
lea    -0x370(%rbp),%rsi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x370(%rbp),%rdi
call   1040 <system@plt>
jmp    1444 <main+0x284>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd48(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1429 <main+0x269>
mov    -0x320(%rbp),%rdi
lea    0xd0a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1406 <main+0x246>
lea    0xcfa(%rip),%rdi
lea    0xcfc(%rip),%rsi
lea    0xc14(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   10c0 <execlp@plt>
jmp    1424 <main+0x264>
lea    0xce9(%rip),%rdi
lea    0xceb(%rip),%rsi
lea    0xbf1(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   10c0 <execlp@plt>
jmp    143f <main+0x27f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1444 <main+0x284>
jmp    1449 <main+0x289>
jmp    144e <main+0x28e>
jmp    1453 <main+0x293>
jmp    1491 <main+0x2d1>
cmpq   $0x0,-0x318(%rbp)
jle    1474 <main+0x2b4>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <wait@plt>
jmp    148c <main+0x2cc>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    1491 <main+0x2d1>
mov    -0x4(%rbp),%eax
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x318,%rsp
mov    %rsi,%rbx
xor    %eax,%eax
call   10f0 <fork@plt>
test   %rax,%rax
je     11fb <main+0x2b>
jle    13cf <main+0x1ff>
xor    %edi,%edi
call   10e0 <wait@plt>
jmp    137e <main+0x1ae>
lea    0x8(%rsp),%rdi
call   1070 <uname@plt>
mov    0x8(%rbx),%rdi
lea    0xdf0(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1295 <main+0xc5>
mov    0x8(%rbx),%rdi
lea    0xe30(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1311 <main+0x141>
mov    0x8(%rbx),%rdi
lea    0xe30(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1330 <main+0x160>
mov    0x8(%rbx),%rdi
lea    0xe52(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1339 <main+0x169>
mov    0x8(%rbx),%rdi
lea    0xe8f(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     138b <main+0x1bb>
mov    0x8(%rbx),%rsi
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    137e <main+0x1ae>
lea    0xd68(%rip),%rdi
call   1050 <system@plt>
lea    0xd66(%rip),%rsi
lea    0x110(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
lea    0xd5e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2d1b(%rip),%rax
mov    (%rax),%edx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
call   1090 <fgets@plt>
lea    0xe3f(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcspn@plt>
movb   $0x0,0x10(%rsp,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   10b0 <strcat@plt>
mov    %r14,%rdi
call   1050 <system@plt>
lea    0xd2c(%rip),%rdi
jmp    1379 <main+0x1a9>
mov    0x8(%rsp),%rdi
lea    0xd3c(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1372 <main+0x1a2>
lea    0xd32(%rip),%rdi
jmp    1379 <main+0x1a9>
lea    0xd41(%rip),%rdi
jmp    1379 <main+0x1a9>
lea    0xd6f(%rip),%rsi
lea    0x110(%rsp),%r14
mov    %r14,%rdi
call   10b0 <strcat@plt>
mov    0x10(%rbx),%rsi
mov    %r14,%rdi
call   10b0 <strcat@plt>
lea    0xd78(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
jmp    1379 <main+0x1a9>
lea    0xcee(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x318,%rsp
pop    %rbx
pop    %r14
ret
mov    0x8(%rsp),%rdi
lea    0xd47(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13b1 <main+0x1e1>
lea    0xd4e(%rip),%rdi
lea    0xd50(%rip),%rsi
jmp    13bf <main+0x1ef>
lea    0xd2c(%rip),%rdi
lea    0xd2e(%rip),%rsi
lea    0xc46(%rip),%rdx
xor    %ecx,%ecx
call   10d0 <execlp@plt>
jmp    137e <main+0x1ae>
lea    0xd53(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.utsname = type { i8* }
@.str = [4 x i8] c"git\00"
@.str.1 = [10 x i8] c"git add .\00"
@.str.2 = [15 x i8] c"git commit -m \00"
@.str.3 = [30 x i8] c"please enter commit message: \00"
@stdin = global i32 0
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [26 x i8] c"git push -u origin master\00"
@.str.6 = [4 x i8] c"dev\00"
@.str.7 = [7 x i8] c"Linux\0A\00"
@.str.8 = [7 x i8] c"code .\00"
@.str.9 = [7 x i8] c"atom .\00"
@.str.10 = [10 x i8] c"phonehome\00"
@.str.11 = [49 x i8] c"git fetch upstream && git rebase upstream/master\00"
@.str.12 = [6 x i8] c"clone\00"
@.str.13 = [44 x i8] c"git clone https://github.com/joshua-xavier/\00"
@.str.14 = [3 x i8] c"%s\00"
@.str.15 = [5 x i8] c"open\00"
@.str.16 = [6 x i8] c"Linux\00"
@.str.17 = [18 x i8] c"/usr/bin/nautilus\00"
@.str.18 = [9 x i8] c"nautilus\00"
@.str.19 = [2 x i8] c".\00"
@.str.20 = [14 x i8] c"/usr/bin/open\00"
@.str.21 = [37 x i8] c"Im sorry cmd [%s] is not recognised\0A\00"
@.str.22 = [33 x i8] c"Fatal Error creating process...\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [512 x i8]
%7 = alloca [256 x i8]
%8 = alloca i64
%9 = alloca %struct.utsname
%10 = alloca [80 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i64 (...) @fork()
store i64 %11, i64* %8
%12 = load i64, i64* %8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %106
14: ; preds = %2
%15 = call i32 @uname(%struct.utsname* %9)
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %38
21: ; preds = %14
%22 = call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%23 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%24 = call i32 @strcpy(i8* %23, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%27 = load i32, i32* @stdin
%28 = call i32 @fgets(i8* %26, i32 256, i32 %27)
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%30 = call i64 @strcspn(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%31 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %30
store i8 0, i8* %31
%32 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%34 = call i32 @strcat(i8* %32, i8* %33)
%35 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%36 = call i32 @system(i8* %35)
%37 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %105
38: ; preds = %14
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %54
44: ; preds = %38
%45 = getelementptr inbounds %struct.utsname, %struct.utsname* %9, i32 0, i32 0
%46 = load i8*, i8** %45
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %44
%50 = call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %53
51: ; preds = %44
%52 = call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %53
53: ; preds = %51, %49
br label %104
54: ; preds = %38
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = call i32 @system(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0))
br label %103
62: ; preds = %54
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 1
%65 = load i8*, i8** %64
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %80
68: ; preds = %62
%69 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%70 = call i32 @strcat(i8* %69, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
%71 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 2
%74 = load i8*, i8** %73
%75 = call i32 @strcat(i8* %71, i8* %74)
%76 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %76)
%78 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%79 = call i32 @system(i8* %78)
br label %102
80: ; preds = %62
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 1
%83 = load i8*, i8** %82
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %96
86: ; preds = %80
%87 = getelementptr inbounds %struct.utsname, %struct.utsname* %9, i32 0, i32 0
%88 = load i8*, i8** %87
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %86
%92 = call i32 @execlp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %95
93: ; preds = %86
%94 = call i32 @execlp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %95
95: ; preds = %93, %91
br label %101
96: ; preds = %80
%97 = load i8**, i8*** %5
%98 = getelementptr inbounds i8*, i8** %97, i64 1
%99 = load i8*, i8** %98
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.21, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %96, %95
br label %102
102: ; preds = %101, %68
br label %103
103: ; preds = %102, %60
br label %104
104: ; preds = %103, %53
br label %105
105: ; preds = %104, %21
br label %115
106: ; preds = %2
%107 = load i64, i64* %8
%108 = icmp sgt i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = call i32 @wait(i32* null)
br label %114
111: ; preds = %106
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.22, i64 0, i64 0))
%113 = call i32 @exit(i32 1)
unreachable
114: ; preds = %109
br label %115
115: ; preds = %114, %105
%116 = load i32, i32* %3
ret i32 %116
}

LLVM IR (-O2):
%struct.utsname = type { i8* }
@.str = [4 x i8] c"git\00"
@.str.1 = [10 x i8] c"git add .\00"
@.str.2 = [15 x i8] c"git commit -m \00"
@.str.3 = [30 x i8] c"please enter commit message: \00"
@stdin = global i32 0
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [26 x i8] c"git push -u origin master\00"
@.str.6 = [4 x i8] c"dev\00"
@.str.7 = [7 x i8] c"Linux\0A\00"
@.str.8 = [7 x i8] c"code .\00"
@.str.9 = [7 x i8] c"atom .\00"
@.str.10 = [10 x i8] c"phonehome\00"
@.str.11 = [49 x i8] c"git fetch upstream && git rebase upstream/master\00"
@.str.12 = [6 x i8] c"clone\00"
@.str.13 = [44 x i8] c"git clone https://github.com/joshua-xavier/\00"
@.str.14 = [3 x i8] c"%s\00"
@.str.15 = [5 x i8] c"open\00"
@.str.16 = [6 x i8] c"Linux\00"
@.str.17 = [18 x i8] c"/usr/bin/nautilus\00"
@.str.18 = [9 x i8] c"nautilus\00"
@.str.19 = [2 x i8] c".\00"
@.str.20 = [14 x i8] c"/usr/bin/open\00"
@.str.21 = [37 x i8] c"Im sorry cmd [%s] is not recognised\0A\00"
@str = [32 x i8] c"Fatal Error creating process...\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = alloca [256 x i8]
%5 = alloca %struct.utsname
%6 = alloca [80 x i8]
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%9 = bitcast %struct.utsname* %5 to i8*
%10 = tail call i64 (...) @fork()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %76
12: ; preds = %2
%13 = call i32 @uname(%struct.utsname* %5)
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %29
18: ; preds = %12
%19 = tail call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%22 = load i32, i32* @stdin
%23 = call i32 @fgets(i8* %8, i32 256, i32 %22)
%24 = call i64 @strcspn(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %24
store i8 0, i8* %25
%26 = call i32 @strcat(i8* %7, i8* %8)
%27 = call i32 @system(i8* %7)
%28 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %83
29: ; preds = %12
%30 = load i8*, i8** %14
%31 = tail call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %29
%34 = getelementptr inbounds %struct.utsname, %struct.utsname* %5, i64 0, i32 0
%35 = load i8*, i8** %34
%36 = tail call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %33
%39 = tail call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %83
40: ; preds = %33
%41 = tail call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %83
42: ; preds = %29
%43 = load i8*, i8** %14
%44 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = tail call i32 @system(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0))
br label %83
48: ; preds = %42
%49 = load i8*, i8** %14
%50 = tail call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %60
52: ; preds = %48
%53 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%54 = call i32 @strcat(i8* %53, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
%55 = getelementptr inbounds i8*, i8** %1, i64 2
%56 = load i8*, i8** %55
%57 = call i32 @strcat(i8* %53, i8* %56)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %53)
%59 = call i32 @system(i8* %53)
br label %83
60: ; preds = %48
%61 = load i8*, i8** %14
%62 = tail call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %73
64: ; preds = %60
%65 = getelementptr inbounds %struct.utsname, %struct.utsname* %5, i64 0, i32 0
%66 = load i8*, i8** %65
%67 = tail call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = tail call i32 @execlp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %83
71: ; preds = %64
%72 = tail call i32 @execlp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %83
73: ; preds = %60
%74 = load i8*, i8** %14
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.21, i64 0, i64 0), i8* %74)
br label %83
76: ; preds = %2
%77 = icmp sgt i64 %10, 0
br i1 %77, label %78, label %80
78: ; preds = %76
%79 = tail call i32 @wait(i32* null)
br label %83
80: ; preds = %76
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%82 = tail call i32 @exit(i32 1)
unreachable
83: ; preds = %18, %46, %73, %71, %69, %52, %38, %40, %78
ret i32 0
}