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

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ memcmp(char const *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(const int argc, const char **argv) {
  static const char *sats[] = {"00041B ! Cluster II-FM7",
                               "00045A ! Cluster II-FM5",
                               "00045B ! Cluster II-FM8",
                               "02048A ! INTEGRAL",
                               "07004A   THEMIS-A",
                               "07004D   THEMIS-D",
                               "07004E   THEMIS-E",
                               "07004G   THEMIS booster",
                               "11037ND  Spektr-R booster",
                               "12003B ! Delta 4 R/B",
                               "13024B ! WGS-5 R/B",
                               "15005B ! Inmarsat 5F2 booster",
                               "15011A ! MMS 1",
                               "15011B ! MMS 2",
                               "15011C ! MMS 3",
                               "15011D ! MMS 4",
                               "15019C   YZ-1 booster",
                               "18038A   TESS",
                               "19021B   Falcon 9 booster",
                               "65058B   Vela 6",
                               "67040F   Titan 3C transtage booster",
                               "69046F   Titan 3C transtage booster",
                               "72073A   IMP-7",
                               "77093E   SL-6 R/B(2)",
                               "83020A   ASTRON",
                               "83020D   ASTRON booster",
                               "92044A   GEOTAIL",
                               "99040B ! Chandra X-Ray Observatory",
                               "99066A ! XMM/Newton",
                               "99066B ! XMM/Newton booster",
                               NULL};
  FILE *ifile = fopen(argc == 1 ? "all_tle.txt" : argv[1], "rb");
  char buff[100];
  size_t i;
  int trouble_found = 0;
  assert(ifile);
  while (fgets(buff, sizeof(buff), ifile))
    if (*buff == '1' && buff[1] == ' ')
      for (i = 0; sats[i]; i++)
        if (sats[i][0] == buff[9] && !memcmp(sats[i], buff + 9, 7))
          sats[i] = "";
  fclose(ifile);
  printf(
      "This will list high-flying artsats for which TLEs are not provided :\n");
  for (i = 0; sats[i]; i++)
    if (sats[i][0]) {
      printf("%s\n", sats[i]);
      if (sats[i][7] == '!') {
        trouble_found = 1;
        printf("\033[7m");
        printf("DANGER!!! We do NOT have an independent source of TLEs\n");
        printf("for this object.  Please report to "
               "pluto\x40\x70roject\x70luto\x2e\x63om.\n");
        printf("This needs to be fixed.\n");
        printf("\033[0m");
      }
    }
  if (!trouble_found)
    printf("Any missing objects are covered by other sources.  Nothing\n"
           "to worry about here.\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1196 <main+0x36>
lea    0x1100(%rip),%rax
mov    %rax,-0x98(%rbp)
jmp    11a5 <main+0x45>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rdi
lea    0x10e3(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x8c(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <assert@plt>
lea    -0x80(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x64,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     12b6 <main+0x156>
movsbl -0x80(%rbp),%eax
cmp    $0x31,%eax
jne    12b1 <main+0x151>
movsbl -0x7f(%rbp),%eax
cmp    $0x20,%eax
jne    12b1 <main+0x151>
movq   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%rcx
lea    0x2e42(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     12ac <main+0x14c>
mov    -0x88(%rbp),%rcx
lea    0x2e29(%rip),%rax
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
movsbl -0x77(%rbp),%ecx
cmp    %ecx,%eax
jne    1290 <main+0x130>
mov    -0x88(%rbp),%rcx
lea    0x2e08(%rip),%rax
mov    (%rax,%rcx,8),%rdi
lea    -0x80(%rbp),%rsi
add    $0x9,%rsi
mov    $0x7,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%eax
jne    1290 <main+0x130>
mov    -0x88(%rbp),%rcx
lea    0x2ddb(%rip),%rax
lea    0x10e8(%rip),%rdx
mov    %rdx,(%rax,%rcx,8)
jmp    1295 <main+0x135>
mov    -0x88(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x88(%rbp)
jmp    1210 <main+0xb0>
jmp    12b1 <main+0x151>
jmp    11cf <main+0x6f>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xfd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movq   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%rcx
lea    0x2d7a(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     13bc <main+0x25c>
mov    -0x88(%rbp),%rcx
lea    0x2d61(%rip),%rax
mov    (%rax,%rcx,8),%rax
cmpb   $0x0,(%rax)
je     13a0 <main+0x240>
mov    -0x88(%rbp),%rcx
lea    0x2d46(%rip),%rax
mov    (%rax,%rcx,8),%rsi
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x88(%rbp),%rcx
lea    0x2d26(%rip),%rax
mov    (%rax,%rcx,8),%rax
movsbl 0x7(%rax),%eax
cmp    $0x21,%eax
jne    139b <main+0x23b>
movl   $0x1,-0x8c(%rbp)
lea    0xf87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfa8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfe1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13a0 <main+0x240>
jmp    13a5 <main+0x245>
mov    -0x88(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x88(%rbp)
jmp    12d8 <main+0x178>
cmpl   $0x0,-0x8c(%rbp)
jne    13d7 <main+0x277>
lea    0xfaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
cmp    $0x1,%edi
jne    118c <main+0x1c>
lea    0x1100(%rip),%rdi
jmp    1190 <main+0x20>
mov    0x8(%rsi),%rdi
lea    0x10ff(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   1080 <assert@plt>
mov    %rsp,%rdi
mov    $0x64,%esi
mov    %r14,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     124d <main+0xdd>
lea    0x9(%rsp),%rbx
mov    %rsp,%r15
lea    0x2e99(%rip),%r12
lea    0x1027(%rip),%r13
jmp    11f5 <main+0x85>
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    $0x64,%esi
mov    %r14,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     124d <main+0xdd>
cmpb   $0x31,(%rsp)
jne    11e0 <main+0x70>
cmpb   $0x20,0x1(%rsp)
jne    11e0 <main+0x70>
mov    0x2e57(%rip),%rdi
test   %rdi,%rdi
je     11e0 <main+0x70>
mov    %r12,%rbp
jmp    122d <main+0xbd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x0(%rbp),%rdi
add    $0x8,%rbp
test   %rdi,%rdi
je     11e0 <main+0x70>
movzbl (%rdi),%eax
cmp    0x9(%rsp),%al
jne    1220 <main+0xb0>
mov    %rbx,%rsi
mov    $0x7,%edx
call   1060 <memcmp@plt>
test   %eax,%eax
jne    1220 <main+0xb0>
mov    %r13,-0x8(%rbp)
jmp    1220 <main+0xb0>
mov    %r14,%rdi
call   1040 <fclose@plt>
lea    0x1047(%rip),%rdi
call   1030 <puts@plt>
mov    0x2df8(%rip),%rdi
test   %rdi,%rdi
je     12fe <main+0x18e>
lea    0x2df0(%rip),%rbp
lea    0x10b9(%rip),%r15
lea    0x10e9(%rip),%r12
lea    0x111d(%rip),%r13
lea    0x100a(%rip),%rbx
xor    %r14d,%r14d
jmp    12ad <main+0x13d>
nopl   0x0(%rax)
mov    0x0(%rbp),%rdi
add    $0x8,%rbp
test   %rdi,%rdi
je     12f9 <main+0x189>
cmpb   $0x0,(%rdi)
je     12a0 <main+0x130>
call   1030 <puts@plt>
mov    -0x8(%rbp),%rax
cmpb   $0x21,0x7(%rax)
jne    12a0 <main+0x130>
lea    0xfd1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%r14d
jmp    12a0 <main+0x130>
test   %r14d,%r14d
jne    130a <main+0x19a>
lea    0xfe3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.sats = internal global [31 x i8*] [i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i32 0, i32 0), i8* null]
@.str = [24 x i8] c"00041B ! Cluster II-FM7\00"
@.str.1 = [24 x i8] c"00045A ! Cluster II-FM5\00"
@.str.2 = [24 x i8] c"00045B ! Cluster II-FM8\00"
@.str.3 = [18 x i8] c"02048A ! INTEGRAL\00"
@.str.4 = [18 x i8] c"07004A THEMIS-A\00"
@.str.5 = [18 x i8] c"07004D THEMIS-D\00"
@.str.6 = [18 x i8] c"07004E THEMIS-E\00"
@.str.7 = [24 x i8] c"07004G THEMIS booster\00"
@.str.8 = [26 x i8] c"11037ND Spektr-R booster\00"
@.str.9 = [21 x i8] c"12003B ! Delta 4 R/B\00"
@.str.10 = [19 x i8] c"13024B ! WGS-5 R/B\00"
@.str.11 = [30 x i8] c"15005B ! Inmarsat 5F2 booster\00"
@.str.12 = [15 x i8] c"15011A ! MMS 1\00"
@.str.13 = [15 x i8] c"15011B ! MMS 2\00"
@.str.14 = [15 x i8] c"15011C ! MMS 3\00"
@.str.15 = [15 x i8] c"15011D ! MMS 4\00"
@.str.16 = [22 x i8] c"15019C YZ-1 booster\00"
@.str.17 = [14 x i8] c"18038A TESS\00"
@.str.18 = [26 x i8] c"19021B Falcon 9 booster\00"
@.str.19 = [16 x i8] c"65058B Vela 6\00"
@.str.20 = [36 x i8] c"67040F Titan 3C transtage booster\00"
@.str.21 = [36 x i8] c"69046F Titan 3C transtage booster\00"
@.str.22 = [15 x i8] c"72073A IMP-7\00"
@.str.23 = [21 x i8] c"77093E SL-6 R/B(2)\00"
@.str.24 = [16 x i8] c"83020A ASTRON\00"
@.str.25 = [24 x i8] c"83020D ASTRON booster\00"
@.str.26 = [17 x i8] c"92044A GEOTAIL\00"
@.str.27 = [35 x i8] c"99040B ! Chandra X-Ray Observatory\00"
@.str.28 = [20 x i8] c"99066A ! XMM/Newton\00"
@.str.29 = [28 x i8] c"99066B ! XMM/Newton booster\00"
@.str.30 = [12 x i8] c"all_tle.txt\00"
@.str.31 = [3 x i8] c"rb\00"
@.str.32 = [1 x i8] zeroinitializer
@.str.33 = [70 x i8] c"This will list high-flying artsats for which TLEs are not provided :\0A\00"
@.str.34 = [4 x i8] c"%s\0A\00"
@.str.35 = [5 x i8] c"\1B[7m\00"
@.str.36 = [56 x i8] c"DANGER!!! We do NOT have an independent source of TLEs\0A\00"
@.str.37 = [60 x i8] c"for this object. Please report to pluto@projectpluto.com.\0A\00"
@.str.38 = [25 x i8] c"This needs to be fixed.\0A\00"
@.str.39 = [5 x i8] c"\1B[0m\00"
@.str.40 = [81 x i8] c"Any missing objects are covered by other sources. Nothing\0Ato worry about here.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [100 x i8]
%8 = alloca i64
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
br label %17
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
br label %17
17: ; preds = %13, %12
%18 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.30, i64 0, i64 0), %12 ], [ %16, %13 ]
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
store i32* %19, i32** %6
store i32 0, i32* %9
%20 = load i32*, i32** %6
%21 = call i32 @assert(i32* %20)
br label %22
22: ; preds = %70, %17
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%24 = load i32*, i32** %6
%25 = call i64 @fgets(i8* %23, i32 100, i32* %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %71
27: ; preds = %22
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 49
br i1 %31, label %32, label %70
32: ; preds = %27
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 1
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 32
br i1 %36, label %37, label %70
37: ; preds = %32
store i64 0, i64* %8
br label %38
38: ; preds = %66, %37
%39 = load i64, i64* %8
%40 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %69
43: ; preds = %38
%44 = load i64, i64* %8
%45 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %44
%46 = load i8*, i8** %45
%47 = getelementptr inbounds i8, i8* %46, i64 0
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 9
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %49, %52
br i1 %53, label %54, label %65
54: ; preds = %43
%55 = load i64, i64* %8
%56 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %55
%57 = load i8*, i8** %56
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%59 = getelementptr inbounds i8, i8* %58, i64 9
%60 = call i32 @memcmp(i8* %57, i8* %59, i32 7)
%61 = icmp ne i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %54
%63 = load i64, i64* %8
%64 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %63
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i8** %64
br label %65
65: ; preds = %62, %54, %43
br label %66
66: ; preds = %65
%67 = load i64, i64* %8
%68 = add i64 %67, 1
store i64 %68, i64* %8
br label %38
69: ; preds = %38
br label %70
70: ; preds = %69, %32, %27
br label %22
71: ; preds = %22
%72 = load i32*, i32** %6
%73 = call i32 @fclose(i32* %72)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.33, i64 0, i64 0))
store i64 0, i64* %8
br label %75
75: ; preds = %107, %71
%76 = load i64, i64* %8
%77 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %76
%78 = load i8*, i8** %77
%79 = icmp ne i8* %78, null
br i1 %79, label %80, label %110
80: ; preds = %75
%81 = load i64, i64* %8
%82 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %81
%83 = load i8*, i8** %82
%84 = getelementptr inbounds i8, i8* %83, i64 0
%85 = load i8, i8* %84
%86 = icmp ne i8 %85, 0
br i1 %86, label %87, label %106
87: ; preds = %80
%88 = load i64, i64* %8
%89 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %88
%90 = load i8*, i8** %89
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i64 0, i64 0), i8* %90)
%92 = load i64, i64* %8
%93 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %92
%94 = load i8*, i8** %93
%95 = getelementptr inbounds i8, i8* %94, i64 7
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 33
br i1 %98, label %99, label %105
99: ; preds = %87
store i32 1, i32* %9
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.36, i64 0, i64 0))
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.37, i64 0, i64 0))
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.38, i64 0, i64 0))
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.39, i64 0, i64 0))
br label %105
105: ; preds = %99, %87
br label %106
106: ; preds = %105, %80
br label %107
107: ; preds = %106
%108 = load i64, i64* %8
%109 = add i64 %108, 1
store i64 %109, i64* %8
br label %75
110: ; preds = %75
%111 = load i32, i32* %9
%112 = icmp ne i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %110
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.40, i64 0, i64 0))
br label %115
115: ; preds = %113, %110
ret i32 0
}

LLVM IR (-O2):
@main.sats = internal unnamed_addr global [31 x i8*] [i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i32 0, i32 0), i8* null]
@.str = [24 x i8] c"00041B ! Cluster II-FM7\00"
@.str.1 = [24 x i8] c"00045A ! Cluster II-FM5\00"
@.str.2 = [24 x i8] c"00045B ! Cluster II-FM8\00"
@.str.3 = [18 x i8] c"02048A ! INTEGRAL\00"
@.str.4 = [18 x i8] c"07004A THEMIS-A\00"
@.str.5 = [18 x i8] c"07004D THEMIS-D\00"
@.str.6 = [18 x i8] c"07004E THEMIS-E\00"
@.str.7 = [24 x i8] c"07004G THEMIS booster\00"
@.str.8 = [26 x i8] c"11037ND Spektr-R booster\00"
@.str.9 = [21 x i8] c"12003B ! Delta 4 R/B\00"
@.str.10 = [19 x i8] c"13024B ! WGS-5 R/B\00"
@.str.11 = [30 x i8] c"15005B ! Inmarsat 5F2 booster\00"
@.str.12 = [15 x i8] c"15011A ! MMS 1\00"
@.str.13 = [15 x i8] c"15011B ! MMS 2\00"
@.str.14 = [15 x i8] c"15011C ! MMS 3\00"
@.str.15 = [15 x i8] c"15011D ! MMS 4\00"
@.str.16 = [22 x i8] c"15019C YZ-1 booster\00"
@.str.17 = [14 x i8] c"18038A TESS\00"
@.str.18 = [26 x i8] c"19021B Falcon 9 booster\00"
@.str.19 = [16 x i8] c"65058B Vela 6\00"
@.str.20 = [36 x i8] c"67040F Titan 3C transtage booster\00"
@.str.21 = [36 x i8] c"69046F Titan 3C transtage booster\00"
@.str.22 = [15 x i8] c"72073A IMP-7\00"
@.str.23 = [21 x i8] c"77093E SL-6 R/B(2)\00"
@.str.24 = [16 x i8] c"83020A ASTRON\00"
@.str.25 = [24 x i8] c"83020D ASTRON booster\00"
@.str.26 = [17 x i8] c"92044A GEOTAIL\00"
@.str.27 = [35 x i8] c"99040B ! Chandra X-Ray Observatory\00"
@.str.28 = [20 x i8] c"99066A ! XMM/Newton\00"
@.str.29 = [28 x i8] c"99066B ! XMM/Newton booster\00"
@.str.30 = [12 x i8] c"all_tle.txt\00"
@.str.31 = [3 x i8] c"rb\00"
@.str.32 = [1 x i8] zeroinitializer
@.str.35 = [5 x i8] c"\1B[7m\00"
@.str.39 = [5 x i8] c"\1B[0m\00"
@str = [69 x i8] c"This will list high-flying artsats for which TLEs are not provided :\00"
@str.41 = [80 x i8] c"Any missing objects are covered by other sources. Nothing\0Ato worry about here.\00"
@str.42 = [55 x i8] c"DANGER!!! We do NOT have an independent source of TLEs\00"
@str.43 = [59 x i8] c"for this object. Please report to pluto@projectpluto.com.\00"
@str.44 = [24 x i8] c"This needs to be fixed.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = icmp eq i32 %0, 1
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
br label %8
8: ; preds = %2, %5
%9 = phi i8* [ %7, %5 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.30, i64 0, i64 0), %2 ]
%10 = tail call i32* @fopen(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%12 = tail call i32 @assert(i32* %10)
%13 = call i64 @fgets(i8* %11, i32 100, i32* %10)
%14 = icmp eq i64 %13, 0
br i1 %14, label %46, label %15
15: ; preds = %8
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 1
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 9
br label %18
18: ; preds = %15, %43
%19 = load i8, i8* %11
%20 = icmp ne i8 %19, 49
%21 = load i8, i8* %16
%22 = icmp ne i8 %21, 32
%23 = select i1 %20, i1 true, i1 %22
%24 = load i8*, i8** getelementptr inbounds ([31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 0)
%25 = icmp eq i8* %24, null
%26 = select i1 %23, i1 true, i1 %25
br i1 %26, label %43, label %27
27: ; preds = %18, %38
%28 = phi i8* [ %41, %38 ], [ %24, %18 ]
%29 = phi i8** [ %40, %38 ], [ getelementptr inbounds ([31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 0), %18 ]
%30 = phi i64 [ %39, %38 ], [ 0, %18 ]
%31 = load i8, i8* %28
%32 = load i8, i8* %17
%33 = icmp eq i8 %31, %32
br i1 %33, label %34, label %38
34: ; preds = %27
%35 = call i32 @memcmp(i8* %28, i8* %17, i32 7)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i8** %29
br label %38
38: ; preds = %27, %34, %37
%39 = add i64 %30, 1
%40 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = icmp eq i8* %41, null
br i1 %42, label %43, label %27
43: ; preds = %38, %18
%44 = call i64 @fgets(i8* %11, i32 100, i32* %10)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %18
46: ; preds = %43, %8
%47 = call i32 @fclose(i32* %10)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%49 = load i8*, i8** getelementptr inbounds ([31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 0)
%50 = icmp eq i8* %49, null
br i1 %50, label %78, label %51
51: ; preds = %46, %70
%52 = phi i8* [ %74, %70 ], [ %49, %46 ]
%53 = phi i8** [ %73, %70 ], [ getelementptr inbounds ([31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 0), %46 ]
%54 = phi i32 [ %71, %70 ], [ 0, %46 ]
%55 = phi i64 [ %72, %70 ], [ 0, %46 ]
%56 = load i8, i8* %52
%57 = icmp eq i8 %56, 0
br i1 %57, label %70, label %58
58: ; preds = %51
%59 = call i32 @puts(i8* %52)
%60 = load i8*, i8** %53
%61 = getelementptr inbounds i8, i8* %60, i64 7
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 33
br i1 %63, label %64, label %70
64: ; preds = %58
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.42, i64 0, i64 0))
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.43, i64 0, i64 0))
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.44, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.39, i64 0, i64 0))
br label %70
70: ; preds = %51, %64, %58
%71 = phi i32 [ 1, %64 ], [ %54, %58 ], [ %54, %51 ]
%72 = add i64 %55, 1
%73 = getelementptr inbounds [31 x i8*], [31 x i8*]* @main.sats, i64 0, i64 %72
%74 = load i8*, i8** %73
%75 = icmp eq i8* %74, null
br i1 %75, label %76, label %51
76: ; preds = %70
%77 = icmp eq i32 %71, 0
br i1 %77, label %78, label %80
78: ; preds = %46, %76
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.41, i64 0, i64 0))
br label %80
80: ; preds = %78, %76
ret i32 0
}