#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 timespec {
  int dummy;
};

/* Variables and functions */
scalar_t__ EINVAL;
int INT32_MAX;
int INT32_MIN;
int clock_getres(int, struct timespec *);
scalar_t__ errno;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  struct timespec res;
  int invalid_tests[8] = {INT32_MIN,   INT32_MAX,  2147483647, -2147483647,
                          -1073743192, 1073743192, -1,         17};
  int i;
  int failure = 0;
  for (i = 0; i < 8; i++) {
    printf("clock_getres(%d, &res);\n", invalid_tests[i]);
    if (clock_getres(invalid_tests[i], &res) == -1) {
      if (EINVAL != errno) {
        printf("errno != EINVAL\n");
        failure = 1;
      }
    } else {
      printf("clock_getres() != -1\n");
      failure = 1;
    }
  }
  if (failure) {
    printf("At least one test FAILED -- see above\n");
    return 1;
  }
  printf("All tests PASSED\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2e96(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x7fffffff,-0x28(%rbp)
movl   $0x80000001,-0x24(%rbp)
movl   $0xbffffaa8,-0x20(%rbp)
movl   $0x40000558,-0x1c(%rbp)
movl   $0xffffffff,-0x18(%rbp)
movl   $0x11,-0x14(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    1215 <main+0xf5>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
lea    -0x8(%rbp),%rsi
call   1040 <clock_getres@plt>
cmp    $0xffffffff,%eax
jne    11ed <main+0xcd>
mov    0x2e08(%rip),%rax
mov    (%rax),%rax
mov    0x2e16(%rip),%rcx
cmp    (%rcx),%rax
je     11e8 <main+0xc8>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x38(%rbp)
jmp    1202 <main+0xe2>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x38(%rbp)
jmp    1207 <main+0xe7>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    117f <main+0x5f>
cmpl   $0x0,-0x38(%rbp)
je     1239 <main+0x119>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    124e <main+0x12e>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x38,%rsp
mov    0x2e93(%rip),%rax
mov    (%rax),%ebp
mov    %ebp,0x10(%rsp)
mov    0x2e8e(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
movaps 0xea9(%rip),%xmm0
movups %xmm0,0x18(%rsp)
movabs $0x11ffffffff,%rax
mov    %rax,0x28(%rsp)
lea    0xe9e(%rip),%rdi
xor    %ebx,%ebx
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     1197 <main+0x67>
lea    0xecb(%rip),%rdi
jmp    11b4 <main+0x84>
mov    0x2e2a(%rip),%rax
mov    (%rax),%rax
mov    0x2e38(%rip),%rcx
cmp    (%rcx),%rax
je     11be <main+0x8e>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x14(%rsp),%ebp
lea    0xe47(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     11ec <main+0xbc>
lea    0xe76(%rip),%rdi
jmp    1209 <main+0xd9>
mov    0x2dd5(%rip),%rax
mov    (%rax),%rax
mov    0x2de3(%rip),%rcx
cmp    (%rcx),%rax
je     1213 <main+0xe3>
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x18(%rsp),%ebp
lea    0xdf2(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     1241 <main+0x111>
lea    0xe21(%rip),%rdi
jmp    125e <main+0x12e>
mov    0x2d80(%rip),%rax
mov    (%rax),%rax
mov    0x2d8e(%rip),%rcx
cmp    (%rcx),%rax
je     1268 <main+0x138>
lea    0xe17(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x1c(%rsp),%ebp
lea    0xd9d(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     1296 <main+0x166>
lea    0xdcc(%rip),%rdi
jmp    12b3 <main+0x183>
mov    0x2d2b(%rip),%rax
mov    (%rax),%rax
mov    0x2d39(%rip),%rcx
cmp    (%rcx),%rax
je     12bd <main+0x18d>
lea    0xdc2(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x20(%rsp),%ebp
lea    0xd48(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     12eb <main+0x1bb>
lea    0xd77(%rip),%rdi
jmp    1308 <main+0x1d8>
mov    0x2cd6(%rip),%rax
mov    (%rax),%rax
mov    0x2ce4(%rip),%rcx
cmp    (%rcx),%rax
je     1312 <main+0x1e2>
lea    0xd6d(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x24(%rsp),%ebp
lea    0xcf3(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     1340 <main+0x210>
lea    0xd22(%rip),%rdi
jmp    135d <main+0x22d>
mov    0x2c81(%rip),%rax
mov    (%rax),%rax
mov    0x2c8f(%rip),%rcx
cmp    (%rcx),%rax
je     1367 <main+0x237>
lea    0xd18(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x28(%rsp),%ebp
lea    0xc9e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     1395 <main+0x265>
lea    0xccd(%rip),%rdi
jmp    13b2 <main+0x282>
mov    0x2c2c(%rip),%rax
mov    (%rax),%rax
mov    0x2c3a(%rip),%rcx
cmp    (%rcx),%rax
je     13bc <main+0x28c>
lea    0xcc3(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    0x2c(%rsp),%ebp
lea    0xc49(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %ebp,%edi
call   1050 <clock_getres@plt>
cmp    $0xffffffff,%eax
je     13ea <main+0x2ba>
lea    0xc78(%rip),%rdi
jmp    1407 <main+0x2d7>
mov    0x2bd7(%rip),%rax
mov    (%rax),%rax
mov    0x2be5(%rip),%rcx
cmp    (%rcx),%rax
je     1411 <main+0x2e1>
lea    0xc6e(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
test   %ebx,%ebx
lea    0xc0f(%rip),%rax
lea    0xc19(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@INT32_MIN = global i32 0
@INT32_MAX = global i32 0
@.str = [25 x i8] c"clock_getres(%d, &res);\0A\00"
@EINVAL = global i64 0
@errno = global i64 0
@.str.1 = [17 x i8] c"errno != EINVAL\0A\00"
@.str.2 = [22 x i8] c"clock_getres() != -1\0A\00"
@.str.3 = [39 x i8] c"At least one test FAILED -- see above\0A\00"
@.str.4 = [18 x i8] c"All tests PASSED\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.timespec
%3 = alloca [8 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%7 = load i32, i32* @INT32_MIN
store i32 %7, i32* %6
%8 = getelementptr inbounds i32, i32* %6, i64 1
%9 = load i32, i32* @INT32_MAX
store i32 %9, i32* %8
%10 = getelementptr inbounds i32, i32* %8, i64 1
store i32 2147483647, i32* %10
%11 = getelementptr inbounds i32, i32* %10, i64 1
store i32 -2147483647, i32* %11
%12 = getelementptr inbounds i32, i32* %11, i64 1
store i32 -1073743192, i32* %12
%13 = getelementptr inbounds i32, i32* %12, i64 1
store i32 1073743192, i32* %13
%14 = getelementptr inbounds i32, i32* %13, i64 1
store i32 -1, i32* %14
%15 = getelementptr inbounds i32, i32* %14, i64 1
store i32 17, i32* %15
store i32 0, i32* %5
store i32 0, i32* %4
br label %16
16: ; preds = %41, %0
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 8
br i1 %18, label %19, label %44
19: ; preds = %16
%20 = load i32, i32* %4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = call i32 @clock_getres(i32 %28, %struct.timespec* %2)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %38
31: ; preds = %19
%32 = load i64, i64* @EINVAL
%33 = load i64, i64* @errno
%34 = icmp ne i64 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %5
br label %37
37: ; preds = %35, %31
br label %40
38: ; preds = %19
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %5
br label %40
40: ; preds = %38, %37
br label %41
41: ; preds = %40
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
store i32 %43, i32* %4
br label %16
44: ; preds = %16
%45 = load i32, i32* %5
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %1
br label %51
49: ; preds = %44
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %51
51: ; preds = %49, %47
%52 = load i32, i32* %1
ret i32 %52
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@INT32_MIN = global i32 0
@INT32_MAX = global i32 0
@.str = [25 x i8] c"clock_getres(%d, &res);\0A\00"
@EINVAL = global i64 0
@errno = global i64 0
@str = [17 x i8] c"All tests PASSED\00"
@str.5 = [38 x i8] c"At least one test FAILED -- see above\00"
@str.6 = [21 x i8] c"clock_getres() != -1\00"
@str.7 = [16 x i8] c"errno != EINVAL\00"
define i32 @main() {
%1 = alloca %struct.timespec
%2 = alloca [8 x i32]
%3 = bitcast %struct.timespec* %1 to i8*
%4 = bitcast [8 x i32]* %2 to i8*
%5 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 0
%6 = load i32, i32* @INT32_MIN
store i32 %6, i32* %5
%7 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 1
%8 = load i32, i32* @INT32_MAX
store i32 %8, i32* %7
%9 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 2
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 2147483647, i32 -2147483647, i32 -1073743192, i32 1073743192>, <4 x i32>* %10
%11 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 6
store i32 -1, i32* %11
%12 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 7
store i32 17, i32* %12
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %6)
%14 = call i32 @clock_getres(i32 %6, %struct.timespec* %1)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %0
%17 = load i64, i64* @EINVAL
%18 = load i64, i64* @errno
%19 = icmp eq i64 %17, %18
br i1 %19, label %23, label %20
20: ; preds = %0, %16
%21 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %16 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %0 ]
%22 = call i32 @puts(i8* dereferenceable(1) %21)
br label %23
23: ; preds = %16, %20
%24 = phi i32 [ 0, %16 ], [ 1, %20 ]
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 1
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %26)
%28 = call i32 @clock_getres(i32 %26, %struct.timespec* %1)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %23
%31 = load i64, i64* @EINVAL
%32 = load i64, i64* @errno
%33 = icmp eq i64 %31, %32
br i1 %33, label %37, label %34
34: ; preds = %30, %23
%35 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %30 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %23 ]
%36 = call i32 @puts(i8* dereferenceable(1) %35)
br label %37
37: ; preds = %30, %34
%38 = phi i32 [ %24, %30 ], [ 1, %34 ]
%39 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 2
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %40)
%42 = call i32 @clock_getres(i32 %40, %struct.timespec* %1)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %48
44: ; preds = %37
%45 = load i64, i64* @EINVAL
%46 = load i64, i64* @errno
%47 = icmp eq i64 %45, %46
br i1 %47, label %51, label %48
48: ; preds = %44, %37
%49 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %44 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %37 ]
%50 = call i32 @puts(i8* dereferenceable(1) %49)
br label %51
51: ; preds = %44, %48
%52 = phi i32 [ %38, %44 ], [ 1, %48 ]
%53 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 3
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %54)
%56 = call i32 @clock_getres(i32 %54, %struct.timespec* %1)
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %62
58: ; preds = %51
%59 = load i64, i64* @EINVAL
%60 = load i64, i64* @errno
%61 = icmp eq i64 %59, %60
br i1 %61, label %65, label %62
62: ; preds = %58, %51
%63 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %58 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %51 ]
%64 = call i32 @puts(i8* dereferenceable(1) %63)
br label %65
65: ; preds = %58, %62
%66 = phi i32 [ %52, %58 ], [ 1, %62 ]
%67 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 4
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %68)
%70 = call i32 @clock_getres(i32 %68, %struct.timespec* %1)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %76
72: ; preds = %65
%73 = load i64, i64* @EINVAL
%74 = load i64, i64* @errno
%75 = icmp eq i64 %73, %74
br i1 %75, label %79, label %76
76: ; preds = %72, %65
%77 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %72 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %65 ]
%78 = call i32 @puts(i8* dereferenceable(1) %77)
br label %79
79: ; preds = %72, %76
%80 = phi i32 [ %66, %72 ], [ 1, %76 ]
%81 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 5
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %82)
%84 = call i32 @clock_getres(i32 %82, %struct.timespec* %1)
%85 = icmp eq i32 %84, -1
br i1 %85, label %86, label %90
86: ; preds = %79
%87 = load i64, i64* @EINVAL
%88 = load i64, i64* @errno
%89 = icmp eq i64 %87, %88
br i1 %89, label %93, label %90
90: ; preds = %86, %79
%91 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %86 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %79 ]
%92 = call i32 @puts(i8* dereferenceable(1) %91)
br label %93
93: ; preds = %86, %90
%94 = phi i32 [ %80, %86 ], [ 1, %90 ]
%95 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 6
%96 = load i32, i32* %95
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %96)
%98 = call i32 @clock_getres(i32 %96, %struct.timespec* %1)
%99 = icmp eq i32 %98, -1
br i1 %99, label %100, label %104
100: ; preds = %93
%101 = load i64, i64* @EINVAL
%102 = load i64, i64* @errno
%103 = icmp eq i64 %101, %102
br i1 %103, label %107, label %104
104: ; preds = %100, %93
%105 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %100 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %93 ]
%106 = call i32 @puts(i8* dereferenceable(1) %105)
br label %107
107: ; preds = %100, %104
%108 = phi i32 [ %94, %100 ], [ 1, %104 ]
%109 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 7
%110 = load i32, i32* %109
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %110)
%112 = call i32 @clock_getres(i32 %110, %struct.timespec* %1)
%113 = icmp eq i32 %112, -1
br i1 %113, label %114, label %118
114: ; preds = %107
%115 = load i64, i64* @EINVAL
%116 = load i64, i64* @errno
%117 = icmp eq i64 %115, %116
br i1 %117, label %121, label %118
118: ; preds = %114, %107
%119 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.7, i64 0, i64 0), %114 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0), %107 ]
%120 = call i32 @puts(i8* dereferenceable(1) %119)
br label %121
121: ; preds = %114, %118
%122 = phi i32 [ %108, %114 ], [ 1, %118 ]
%123 = icmp eq i32 %122, 0
%124 = select i1 %123, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @str.5, i64 0, i64 0)
%125 = xor i1 %123, true
%126 = zext i1 %125 to i32
%127 = call i32 @puts(i8* dereferenceable(1) %124)
ret i32 %126
}