#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 atoi(char const *);
int /*<<< orphan*/ dwgetoptresetfortestingonly();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char const *, char *);
int test1();
int test2();
int test3();
int test5();
int test6();
int test7();
int test8();
int main(int argc, const char **argv) {
  int ct = 0;
  int failct = 0;
  printf("argc: %d\n", argc);
  for (ct = 0; ct < argc; ++ct) {
    printf("argv[%d] = %s\n", ct, argv[ct]);
  }
  if (argc == 3) {
    int num = 0;
    if (strcmp(argv[1], "-c")) {
      printf("FAIL: invalid arg list\n");
      exit(1);
    }
    num = atoi(argv[2]);
    printf("Run one test, number %d\n", num);
    switch (num) {
    case 1:
      failct = test1();
      break;
    case 2:
      failct = test2();
      break;
    case 3:
      failct = test3();
      break;
    case 5:
      failct = test5();
      break;
    case 6:
      failct = test6();
      break;
    case 7:
      failct = test7();
      break;
    case 8:
      failct = test8();
      break;
    default:
      printf("FAIL: invalid test number %d\n", num);
      exit(1);
    }
    if (failct) {
      printf("FAIL getopttest\n");
      exit(1);
    }
    printf("PASS getopttest\n");
    exit(0);
  } else if (argc != 1) {
    printf("FAIL: invalid arg list\n");
    exit(1);
  }
  failct += test5();
  dwgetoptresetfortestingonly();
  failct += test1();
  dwgetoptresetfortestingonly();
  failct += test2();
  dwgetoptresetfortestingonly();
  failct += test3();
  dwgetoptresetfortestingonly();
  failct += test6();
  dwgetoptresetfortestingonly();
  failct += test7();
  dwgetoptresetfortestingonly();
  failct += test8();
  if (failct) {
    printf("FAIL getopttest\n");
    exit(1);
  }
  printf("PASS getopttest\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1233 <main+0x73>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11fc <main+0x3c>
cmpl   $0x3,-0x8(%rbp)
jne    137f <main+0x1bf>
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xde6(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     127a <main+0xba>
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xdc0(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x7,%eax
ja     132d <main+0x16d>
mov    -0x28(%rbp),%rax
lea    0xd45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1060 <test1@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   10b0 <test2@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   1050 <test3@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   1040 <test5@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   10a0 <test6@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   1030 <test7@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    $0x0,%al
call   10d0 <test8@plt>
mov    %eax,-0x18(%rbp)
jmp    1348 <main+0x188>
mov    -0x1c(%rbp),%esi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x0,-0x18(%rbp)
je     136a <main+0x1aa>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
cmpl   $0x1,-0x8(%rbp)
je     13a1 <main+0x1e1>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    13a6 <main+0x1e6>
mov    $0x0,%al
call   1040 <test5@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   1060 <test1@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   10b0 <test2@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   1050 <test3@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   10a0 <test6@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   1030 <test7@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <dwgetoptresetfortestingonly@plt>
mov    $0x0,%al
call   10d0 <test8@plt>
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     144d <main+0x28d>
lea    0xc4f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r12
mov    %edi,%r14d
lea    0xe3b(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
test   %r14d,%r14d
jle    1219 <main+0x49>
mov    %r14d,%ebx
lea    0xe2c(%rip),%r15
xor    %ebp,%ebp
mov    (%r12,%rbp,8),%rdx
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1080 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1200 <main+0x30>
cmp    $0x1,%r14d
jne    12b3 <main+0xe3>
xor    %eax,%eax
call   1050 <test5@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   1070 <test1@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   10c0 <test2@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   1060 <test3@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   10b0 <test6@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   1040 <test7@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   10a0 <dwgetoptresetfortestingonly@plt>
xor    %eax,%eax
call   10e0 <test8@plt>
add    %ebp,%eax
jne    137a <main+0x1aa>
lea    0xdd0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x3,%r14d
jne    130c <main+0x13c>
mov    0x8(%r12),%rdi
lea    0xd74(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    130c <main+0x13c>
mov    0x10(%r12),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
lea    0xd5a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    -0x1(%rbx),%eax
cmp    $0x7,%eax
ja     1327 <main+0x157>
lea    0xd06(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   1070 <test1@plt>
jmp    1363 <main+0x193>
lea    0xd80(%rip),%rdi
jmp    1381 <main+0x1b1>
xor    %eax,%eax
call   10c0 <test2@plt>
jmp    1363 <main+0x193>
xor    %eax,%eax
call   1060 <test3@plt>
jmp    1363 <main+0x193>
lea    0xd27(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
xor    %eax,%eax
call   1050 <test5@plt>
jmp    1363 <main+0x193>
xor    %eax,%eax
call   1040 <test7@plt>
jmp    1363 <main+0x193>
xor    %eax,%eax
call   10e0 <test8@plt>
jmp    1363 <main+0x193>
xor    %eax,%eax
call   10b0 <test6@plt>
test   %eax,%eax
jne    137a <main+0x1aa>
lea    0xd05(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
lea    0xd02(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"argc: %d\0A\00"
@.str.1 = [15 x i8] c"argv[%d] = %s\0A\00"
@.str.2 = [3 x i8] c"-c\00"
@.str.3 = [24 x i8] c"FAIL: invalid arg list\0A\00"
@.str.4 = [25 x i8] c"Run one test, number %d\0A\00"
@.str.5 = [30 x i8] c"FAIL: invalid test number %d\0A\00"
@.str.6 = [17 x i8] c"FAIL getopttest\0A\00"
@.str.7 = [17 x i8] c"PASS getopttest\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%9 = load i32, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %9)
store i32 0, i32* %6
br label %11
11: ; preds = %23, %2
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i32, i32* %6
%17 = load i8**, i8*** %5
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %16, i8* %21)
br label %23
23: ; preds = %15
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
store i32 %25, i32* %6
br label %11
26: ; preds = %11
%27 = load i32, i32* %4
%28 = icmp eq i32 %27, 3
br i1 %28, label %29, label %73
29: ; preds = %26
store i32 0, i32* %8
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %29
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32 @atoi(i8* %41)
store i32 %42, i32* %8
%43 = load i32, i32* %8
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %43)
%45 = load i32, i32* %8
switch i32 %45, label %60 [
i32 1, label %46
i32 2, label %48
i32 3, label %50
i32 5, label %52
i32 6, label %54
i32 7, label %56
i32 8, label %58
]
46: ; preds = %38
%47 = call i32 (...) @test1()
store i32 %47, i32* %7
br label %64
48: ; preds = %38
%49 = call i32 (...) @test2()
store i32 %49, i32* %7
br label %64
50: ; preds = %38
%51 = call i32 (...) @test3()
store i32 %51, i32* %7
br label %64
52: ; preds = %38
%53 = call i32 (...) @test5()
store i32 %53, i32* %7
br label %64
54: ; preds = %38
%55 = call i32 (...) @test6()
store i32 %55, i32* %7
br label %64
56: ; preds = %38
%57 = call i32 (...) @test7()
store i32 %57, i32* %7
br label %64
58: ; preds = %38
%59 = call i32 (...) @test8()
store i32 %59, i32* %7
br label %64
60: ; preds = %38
%61 = load i32, i32* %8
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %61)
%63 = call i32 @exit(i32 1)
unreachable
64: ; preds = %58, %56, %54, %52, %50, %48, %46
%65 = load i32, i32* %7
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %64
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%72 = call i32 @exit(i32 0)
unreachable
73: ; preds = %26
%74 = load i32, i32* %4
%75 = icmp ne i32 %74, 1
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%78 = call i32 @exit(i32 1)
unreachable
79: ; preds = %73
br label %80
80: ; preds = %79
%81 = call i32 (...) @test5()
%82 = load i32, i32* %7
%83 = add nsw i32 %82, %81
store i32 %83, i32* %7
%84 = call i32 (...) @dwgetoptresetfortestingonly()
%85 = call i32 (...) @test1()
%86 = load i32, i32* %7
%87 = add nsw i32 %86, %85
store i32 %87, i32* %7
%88 = call i32 (...) @dwgetoptresetfortestingonly()
%89 = call i32 (...) @test2()
%90 = load i32, i32* %7
%91 = add nsw i32 %90, %89
store i32 %91, i32* %7
%92 = call i32 (...) @dwgetoptresetfortestingonly()
%93 = call i32 (...) @test3()
%94 = load i32, i32* %7
%95 = add nsw i32 %94, %93
store i32 %95, i32* %7
%96 = call i32 (...) @dwgetoptresetfortestingonly()
%97 = call i32 (...) @test6()
%98 = load i32, i32* %7
%99 = add nsw i32 %98, %97
store i32 %99, i32* %7
%100 = call i32 (...) @dwgetoptresetfortestingonly()
%101 = call i32 (...) @test7()
%102 = load i32, i32* %7
%103 = add nsw i32 %102, %101
store i32 %103, i32* %7
%104 = call i32 (...) @dwgetoptresetfortestingonly()
%105 = call i32 (...) @test8()
%106 = load i32, i32* %7
%107 = add nsw i32 %106, %105
store i32 %107, i32* %7
%108 = load i32, i32* %7
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %80
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%112 = call i32 @exit(i32 1)
unreachable
113: ; preds = %80
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"argc: %d\0A\00"
@.str.1 = [15 x i8] c"argv[%d] = %s\0A\00"
@.str.2 = [3 x i8] c"-c\00"
@.str.4 = [25 x i8] c"Run one test, number %d\0A\00"
@.str.5 = [30 x i8] c"FAIL: invalid test number %d\0A\00"
@str.10 = [16 x i8] c"PASS getopttest\00"
@str.11 = [16 x i8] c"FAIL getopttest\00"
@str.12 = [23 x i8] c"FAIL: invalid arg list\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %15
5: ; preds = %2
%6 = zext i32 %0 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %13, %7 ]
%9 = getelementptr inbounds i8*, i8** %1, i64 %8
%10 = load i8*, i8** %9
%11 = trunc i64 %8 to i32
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %11, i8* %10)
%13 = add nuw nsw i64 %8, 1
%14 = icmp eq i64 %13, %6
br i1 %14, label %15, label %7
15: ; preds = %7, %2
switch i32 %0, label %55 [
i32 3, label %16
i32 1, label %58
]
16: ; preds = %15
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = load i8*, i8** %17
%19 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.12, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %16
%25 = getelementptr inbounds i8*, i8** %1, i64 2
%26 = load i8*, i8** %25
%27 = tail call i32 @atoi(i8* %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %27)
switch i32 %27, label %43 [
i32 1, label %29
i32 2, label %31
i32 3, label %33
i32 5, label %35
i32 6, label %37
i32 7, label %39
i32 8, label %41
]
29: ; preds = %24
%30 = tail call i32 (...) @test1()
br label %46
31: ; preds = %24
%32 = tail call i32 (...) @test2()
br label %46
33: ; preds = %24
%34 = tail call i32 (...) @test3()
br label %46
35: ; preds = %24
%36 = tail call i32 (...) @test5()
br label %46
37: ; preds = %24
%38 = tail call i32 (...) @test6()
br label %46
39: ; preds = %24
%40 = tail call i32 (...) @test7()
br label %46
41: ; preds = %24
%42 = tail call i32 (...) @test8()
br label %46
43: ; preds = %24
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %27)
%45 = tail call i32 @exit(i32 1)
unreachable
46: ; preds = %41, %39, %37, %35, %33, %31, %29
%47 = phi i32 [ %42, %41 ], [ %40, %39 ], [ %38, %37 ], [ %36, %35 ], [ %34, %33 ], [ %32, %31 ], [ %30, %29 ]
%48 = icmp eq i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.11, i64 0, i64 0))
%51 = tail call i32 @exit(i32 1)
unreachable
52: ; preds = %46
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.10, i64 0, i64 0))
%54 = tail call i32 @exit(i32 0)
unreachable
55: ; preds = %15
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.12, i64 0, i64 0))
%57 = tail call i32 @exit(i32 1)
unreachable
58: ; preds = %15
%59 = tail call i32 (...) @test5()
%60 = tail call i32 (...) @dwgetoptresetfortestingonly()
%61 = tail call i32 (...) @test1()
%62 = add nsw i32 %61, %59
%63 = tail call i32 (...) @dwgetoptresetfortestingonly()
%64 = tail call i32 (...) @test2()
%65 = add nsw i32 %62, %64
%66 = tail call i32 (...) @dwgetoptresetfortestingonly()
%67 = tail call i32 (...) @test3()
%68 = add nsw i32 %65, %67
%69 = tail call i32 (...) @dwgetoptresetfortestingonly()
%70 = tail call i32 (...) @test6()
%71 = add nsw i32 %68, %70
%72 = tail call i32 (...) @dwgetoptresetfortestingonly()
%73 = tail call i32 (...) @test7()
%74 = add nsw i32 %71, %73
%75 = tail call i32 (...) @dwgetoptresetfortestingonly()
%76 = tail call i32 (...) @test8()
%77 = sub i32 0, %76
%78 = icmp eq i32 %74, %77
br i1 %78, label %82, label %79
79: ; preds = %58
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.11, i64 0, i64 0))
%81 = tail call i32 @exit(i32 1)
unreachable
82: ; preds = %58
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}