#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 dmtcpCheckpoint();
char *getenv(char *);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  char *user = malloc(strlen(getenv("USER")) + 1);
  strcpy(user, getenv("USER"));
  printf("These tests depend on dmtcp_env.txt in local directory.\n");
  int retval = dmtcpCheckpoint();
  switch (retval) {
  case 3:
    printf(""
           " test.c:  Not launched under DMTCP.  Please try again.\n");
    return 1;
  case 1:
    return 0;
  case 2:
    break;
  default:
    printf("*** test.c:  Internal error");
    return 1;
  }
  int newuser_len =
      strlen("new-") + strlen(getenv("HOME")) + 1 + strlen(user) + 1;
  char *newuser = malloc(newuser_len);
  strcpy(newuser, "new-");
  strcpy(newuser + strlen(newuser), getenv("HOME"));
  strcpy(newuser + strlen(newuser), "-");
  strcpy(newuser + strlen(newuser), user);
  printf("getenv(\"HOME\"): %s\ngetenv(\"FOO\"): %s\ngetenv(\"USER\"): %s\n",
         getenv("HOME"), getenv("FOO"), getenv("USER"));
  if (getenv("EDITOR")) {
    printf("Failure!  EDITOR (was): %s; EDITOR (should be): NULL\n",
           getenv("EDITOR"));
    return 1;
  }
  if (strcmp(newuser, getenv("USER")) == 0) {
    printf("Success!\n");
    return 0;
  } else {
    printf("Failure!  USER (was): %s; USER (should be): %s\n", getenv("USER"),
           newuser);
    return 1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe70(%rip),%rdi
mov    %rdi,-0x40(%rbp)
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1060 <strlen@plt>
mov    %eax,%edi
add    $0x1,%edi
call   1090 <malloc@plt>
mov    -0x40(%rbp),%rdi
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
call   1030 <getenv@plt>
mov    -0x38(%rbp),%rdi
mov    %rax,%rsi
call   1050 <strcpy@plt>
lea    0xe32(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x2d(%rbp)
call   1070 <printf@plt>
mov    -0x2d(%rbp),%al
call   1040 <dmtcpCheckpoint@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
sub    $0x1,%eax
je     1238 <main+0xc8>
jmp    11fc <main+0x8c>
mov    -0x2c(%rbp),%eax
sub    $0x2,%eax
je     1244 <main+0xd4>
jmp    120d <main+0x9d>
mov    -0x2c(%rbp),%eax
sub    $0x3,%eax
jne    1249 <main+0xd9>
jmp    121e <main+0xae>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1437 <main+0x2c7>
movl   $0x0,-0x4(%rbp)
jmp    1437 <main+0x2c7>
jmp    1263 <main+0xf3>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1437 <main+0x2c7>
lea    0xe28(%rip),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x78(%rbp)
lea    0xe1e(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xdd2(%rip),%rsi
call   1050 <strcpy@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x70(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
lea    0xdaa(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x68(%rbp),%rdi
mov    %rax,%rsi
call   1050 <strcpy@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x60(%rbp),%rdi
cltq
add    %rax,%rdi
lea    0xd76(%rip),%rsi
call   1050 <strcpy@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x58(%rbp),%rdi
cltq
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
call   1050 <strcpy@plt>
lea    0xd49(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x50(%rbp)
lea    0xd77(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x48(%rbp)
lea    0xc92(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x50(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xd17(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd46(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     13cb <main+0x25b>
lea    0xd30(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rsi
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1437 <main+0x2c7>
mov    -0x28(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    0xc26(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x80(%rbp),%rdi
mov    %rax,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    140f <main+0x29f>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1437 <main+0x2c7>
lea    0xbea(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rsi
mov    -0x28(%rbp),%rdx
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
lea    0xe71(%rip),%rbp
mov    %rbp,%rdi
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1070 <strlen@plt>
lea    0x1(%rax),%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1030 <getenv@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <strcpy@plt>
lea    0xf11(%rip),%rdi
call   1060 <puts@plt>
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <dmtcpCheckpoint@plt>
cmp    $0x1,%eax
je     130e <main+0x18e>
cmp    $0x2,%eax
je     11fa <main+0x7a>
cmp    $0x3,%eax
jne    12fb <main+0x17b>
lea    0xf26(%rip),%rdi
call   1060 <puts@plt>
jmp    1309 <main+0x189>
lea    0xe20(%rip),%r12
mov    %r12,%rdi
call   1070 <strlen@plt>
mov    %eax,%r14d
lea    0xe13(%rip),%r15
mov    %r15,%rdi
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1070 <strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1070 <strlen@plt>
add    %r14d,%ebp
lea    (%rax,%rbp,1),%edi
add    $0x2,%edi
call   10a0 <malloc@plt>
mov    %rax,%r14
mov    %rax,%rdi
mov    %r12,%rsi
call   1050 <strcpy@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
movslq %eax,%rbp
add    %r14,%rbp
mov    %r15,%rdi
call   1030 <getenv@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1050 <strcpy@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
movslq %eax,%rdi
add    %r14,%rdi
lea    0xda5(%rip),%rsi
call   1050 <strcpy@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
movslq %eax,%rdi
add    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcpy@plt>
mov    %r15,%rdi
call   1030 <getenv@plt>
mov    %rax,%rbx
lea    0xdb8(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rbp
lea    0xd45(%rip),%rdi
call   1030 <getenv@plt>
lea    0xd64(%rip),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xd8a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1319 <main+0x199>
lea    0xd80(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1309 <main+0x189>
lea    0xd03(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xce0(%rip),%rdi
call   1030 <getenv@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1357 <main+0x1d7>
lea    0xcc4(%rip),%rdi
call   1030 <getenv@plt>
lea    0xd5d(%rip),%rdi
mov    %rax,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1309 <main+0x189>
lea    0xdaf(%rip),%rdi
call   1060 <puts@plt>
xor    %ebp,%ebp
jmp    130e <main+0x18e>

LLVM IR (-O0):
@.str = [5 x i8] c"USER\00"
@.str.1 = [57 x i8] c"These tests depend on dmtcp_env.txt in local directory.\0A\00"
@.str.2 = [56 x i8] c" test.c: Not launched under DMTCP. Please try again.\0A\00"
@.str.3 = [28 x i8] c"*** test.c: Internal error\00"
@.str.4 = [5 x i8] c"new-\00"
@.str.5 = [5 x i8] c"HOME\00"
@.str.6 = [2 x i8] c"-\00"
@.str.7 = [57 x i8] c"getenv(\22HOME\22): %s\0Agetenv(\22FOO\22): %s\0Agetenv(\22USER\22): %s\0A\00"
@.str.8 = [4 x i8] c"FOO\00"
@.str.9 = [7 x i8] c"EDITOR\00"
@.str.10 = [54 x i8] c"Failure! EDITOR (was): %s; EDITOR (should be): NULL\0A\00"
@.str.11 = [10 x i8] c"Success!\0A\00"
@.str.12 = [48 x i8] c"Failure! USER (was): %s; USER (should be): %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @strlen(i8* %10)
%12 = add nsw i32 %11, 1
%13 = call i8* @malloc(i32 %12)
store i8* %13, i8** %6
%14 = load i8*, i8** %6
%15 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @strcpy(i8* %14, i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 (...) @dmtcpCheckpoint()
store i32 %18, i32* %7
%19 = load i32, i32* %7
switch i32 %19, label %24 [
i32 3, label %20
i32 1, label %22
i32 2, label %23
]
20: ; preds = %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %80
22: ; preds = %2
store i32 0, i32* %3
br label %80
23: ; preds = %2
br label %26
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %80
26: ; preds = %23
%27 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%28 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%29 = call i32 @strlen(i8* %28)
%30 = add nsw i32 %27, %29
%31 = add nsw i32 %30, 1
%32 = load i8*, i8** %6
%33 = call i32 @strlen(i8* %32)
%34 = add nsw i32 %31, %33
%35 = add nsw i32 %34, 1
store i32 %35, i32* %8
%36 = load i32, i32* %8
%37 = call i8* @malloc(i32 %36)
store i8* %37, i8** %9
%38 = load i8*, i8** %9
%39 = call i32 @strcpy(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%40 = load i8*, i8** %9
%41 = load i8*, i8** %9
%42 = call i32 @strlen(i8* %41)
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %40, i64 %43
%45 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%46 = call i32 @strcpy(i8* %44, i8* %45)
%47 = load i8*, i8** %9
%48 = load i8*, i8** %9
%49 = call i32 @strlen(i8* %48)
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, i8* %47, i64 %50
%52 = call i32 @strcpy(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%53 = load i8*, i8** %9
%54 = load i8*, i8** %9
%55 = call i32 @strlen(i8* %54)
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %53, i64 %56
%58 = load i8*, i8** %6
%59 = call i32 @strcpy(i8* %57, i8* %58)
%60 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%61 = call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%62 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i8* %60, i8* %61, i8* %62)
%64 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%65 = icmp ne i8* %64, null
br i1 %65, label %66, label %69
66: ; preds = %26
%67 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0), i8* %67)
store i32 1, i32* %3
br label %80
69: ; preds = %26
%70 = load i8*, i8** %9
%71 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%72 = call i64 @strcmp(i8* %70, i8* %71)
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %69
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %3
br label %80
76: ; preds = %69
%77 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%78 = load i8*, i8** %9
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0), i8* %77, i8* %78)
store i32 1, i32* %3
br label %80
80: ; preds = %76, %74, %66, %24, %22, %20
%81 = load i32, i32* %3
ret i32 %81
}

LLVM IR (-O2):
@.str = [5 x i8] c"USER\00"
@.str.3 = [28 x i8] c"*** test.c: Internal error\00"
@.str.4 = [5 x i8] c"new-\00"
@.str.5 = [5 x i8] c"HOME\00"
@.str.6 = [2 x i8] c"-\00"
@.str.7 = [57 x i8] c"getenv(\22HOME\22): %s\0Agetenv(\22FOO\22): %s\0Agetenv(\22USER\22): %s\0A\00"
@.str.8 = [4 x i8] c"FOO\00"
@.str.9 = [7 x i8] c"EDITOR\00"
@.str.10 = [54 x i8] c"Failure! EDITOR (was): %s; EDITOR (should be): NULL\0A\00"
@.str.12 = [48 x i8] c"Failure! USER (was): %s; USER (should be): %s\0A\00"
@str = [56 x i8] c"These tests depend on dmtcp_env.txt in local directory.\00"
@str.13 = [9 x i8] c"Success!\00"
@str.14 = [55 x i8] c" test.c: Not launched under DMTCP. Please try again.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @strlen(i8* %3)
%5 = add nsw i32 %4, 1
%6 = tail call i8* @malloc(i32 %5)
%7 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @strcpy(i8* %6, i8* %7)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 (...) @dmtcpCheckpoint()
switch i32 %10, label %13 [
i32 3, label %11
i32 1, label %55
i32 2, label %15
]
11: ; preds = %2
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.14, i64 0, i64 0))
br label %55
13: ; preds = %2
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
br label %55
15: ; preds = %2
%16 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%17 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%18 = tail call i32 @strlen(i8* %17)
%19 = tail call i32 @strlen(i8* %6)
%20 = add i32 %16, 2
%21 = add i32 %20, %18
%22 = add i32 %21, %19
%23 = tail call i8* @malloc(i32 %22)
%24 = tail call i32 @strcpy(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%25 = tail call i32 @strlen(i8* %23)
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %23, i64 %26
%28 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%29 = tail call i32 @strcpy(i8* %27, i8* %28)
%30 = tail call i32 @strlen(i8* %23)
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %23, i64 %31
%33 = tail call i32 @strcpy(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%34 = tail call i32 @strlen(i8* %23)
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %23, i64 %35
%37 = tail call i32 @strcpy(i8* %36, i8* %6)
%38 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%39 = tail call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%40 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i8* %38, i8* %39, i8* %40)
%42 = tail call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%43 = icmp eq i8* %42, null
br i1 %43, label %46, label %44
44: ; preds = %15
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0), i8* %42)
br label %55
46: ; preds = %15
%47 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%48 = tail call i64 @strcmp(i8* %23, i8* %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.13, i64 0, i64 0))
br label %55
52: ; preds = %46
%53 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0), i8* %53, i8* %23)
br label %55
55: ; preds = %44, %50, %52, %2, %13, %11
%56 = phi i32 [ 1, %13 ], [ 1, %11 ], [ 0, %2 ], [ 1, %44 ], [ 0, %50 ], [ 1, %52 ]
ret i32 %56
}