#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 */
char *getenv(char *);
int /*<<< orphan*/ printf(char *, char *);
int getallenv() {
  char buffer[1024];
  char *p;
  p = getenv("COLUMNS");
  if (p)
    printf("COLUMNS = %s\n", p);
  p = getenv("DATEMSK");
  if (p)
    printf("DATEMSK = %s\n", p);
  p = getenv("HOME");
  if (p)
    printf("HOME = %s\n", p);
  p = getenv("LANG");
  if (p)
    printf("LANG = %s\n", p);
  p = getenv("LC_ALL");
  if (p)
    printf("LC_ALL = %s\n", p);
  p = getenv("LC_COLLATE");
  if (p)
    printf("LC_COLLATE = %s\n", p);
  p = getenv("LC_CTYPE");
  if (p)
    printf("LC_CTYPE = %s\n", p);
  p = getenv("LC_MESSAGES");
  if (p)
    printf("LC_MESSAGES = %s\n", p);
  p = getenv("LC_NUMERIC");
  if (p)
    printf("LC_NUMERIC = %s\n", p);
  p = getenv("LC_TIME");
  if (p)
    printf("LC_TIME = %s\n", p);
  p = getenv("LINES");
  if (p)
    printf("LINES = %s\n", p);
  p = getenv("MSGVERB");
  if (p)
    printf("MSGVERB = %s\n", p);
  p = getenv("NLSPATH");
  if (p)
    printf("NLSPATH = %s\n", p);
  p = getenv("PATH");
  if (p)
    printf("PATH = %s\n", p);
  p = getenv("PWD");
  if (p)
    printf("PWD = %s\n", p);
  p = getenv("SHELL");
  if (p)
    printf("SHELL = %s\n", p);
  p = getenv("TERM");
  if (p)
    printf("TERM = %s\n", p);
  p = getenv("TMPDIR");
  if (p)
    printf("TMPDIR = %s\n", p);
  p = getenv("TZ");
  if (p)
    printf("TZ = %s\n", p);
  return 0;
}


x86 assembly (clang, -O0):
<getallenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
lea    0xece(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     115f <getallenv+0x3f>
mov    -0x408(%rbp),%rsi
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1193 <getallenv+0x73>
mov    -0x408(%rbp),%rsi
lea    0xe90(%rip),%rdi
call   1040 <printf@plt>
lea    0xe92(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     11c7 <getallenv+0xa7>
mov    -0x408(%rbp),%rsi
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
lea    0xe6e(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     11fb <getallenv+0xdb>
mov    -0x408(%rbp),%rsi
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
lea    0xe4a(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     122f <getallenv+0x10f>
mov    -0x408(%rbp),%rsi
lea    0xe29(%rip),%rdi
call   1040 <printf@plt>
lea    0xe2a(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1263 <getallenv+0x143>
mov    -0x408(%rbp),%rsi
lea    0xe0d(%rip),%rdi
call   1040 <printf@plt>
lea    0xe12(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1297 <getallenv+0x177>
mov    -0x408(%rbp),%rsi
lea    0xdf3(%rip),%rdi
call   1040 <printf@plt>
lea    0xdf6(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     12cb <getallenv+0x1ab>
mov    -0x408(%rbp),%rsi
lea    0xdda(%rip),%rdi
call   1040 <printf@plt>
lea    0xde0(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     12ff <getallenv+0x1df>
mov    -0x408(%rbp),%rsi
lea    0xdc3(%rip),%rdi
call   1040 <printf@plt>
lea    0xdc8(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1333 <getallenv+0x213>
mov    -0x408(%rbp),%rsi
lea    0xda8(%rip),%rdi
call   1040 <printf@plt>
lea    0xdaa(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1367 <getallenv+0x247>
mov    -0x408(%rbp),%rsi
lea    0xd88(%rip),%rdi
call   1040 <printf@plt>
lea    0xd88(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     139b <getallenv+0x27b>
mov    -0x408(%rbp),%rsi
lea    0xd68(%rip),%rdi
call   1040 <printf@plt>
lea    0xd6a(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     13cf <getallenv+0x2af>
mov    -0x408(%rbp),%rsi
lea    0xd4a(%rip),%rdi
call   1040 <printf@plt>
lea    0xd39(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1403 <getallenv+0x2e3>
mov    -0x408(%rbp),%rsi
lea    0xd19(%rip),%rdi
call   1040 <printf@plt>
lea    0xd18(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1437 <getallenv+0x317>
mov    -0x408(%rbp),%rsi
lea    0xcf4(%rip),%rdi
call   1040 <printf@plt>
lea    0xcf2(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     146b <getallenv+0x34b>
mov    -0x408(%rbp),%rsi
lea    0xcd0(%rip),%rdi
call   1040 <printf@plt>
lea    0xcd0(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     149f <getallenv+0x37f>
mov    -0x408(%rbp),%rsi
lea    0xcad(%rip),%rdi
call   1040 <printf@plt>
lea    0xcac(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     14d3 <getallenv+0x3b3>
mov    -0x408(%rbp),%rsi
lea    0xc8b(%rip),%rdi
call   1040 <printf@plt>
lea    0xc8c(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     1507 <getallenv+0x3e7>
mov    -0x408(%rbp),%rsi
lea    0xc67(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getallenv>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1141 <getallenv+0x21>
lea    0xecf(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1161 <getallenv+0x41>
lea    0xec5(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1181 <getallenv+0x61>
lea    0xeb8(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     11a1 <getallenv+0x81>
lea    0xea8(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     11c1 <getallenv+0xa1>
lea    0xe9a(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe98(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     11e1 <getallenv+0xc1>
lea    0xe92(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe94(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1201 <getallenv+0xe1>
lea    0xe8c(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe8c(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1221 <getallenv+0x101>
lea    0xe87(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe8a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1241 <getallenv+0x121>
lea    0xe84(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe86(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1261 <getallenv+0x141>
lea    0xe7d(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe7c(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1281 <getallenv+0x161>
lea    0xe71(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe6e(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     12a1 <getallenv+0x181>
lea    0xe65(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe64(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     12c1 <getallenv+0x1a1>
lea    0xe5b(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe47(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     12e1 <getallenv+0x1c1>
lea    0xe3e(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe3a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1301 <getallenv+0x1e1>
lea    0xe2d(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe28(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1321 <getallenv+0x201>
lea    0xe1d(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe1a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1341 <getallenv+0x221>
lea    0xe0e(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xe0a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1361 <getallenv+0x241>
lea    0xe00(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
lea    0xdfe(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1381 <getallenv+0x261>
lea    0xdf0(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"COLUMNS\00"
@.str.1 = [14 x i8] c"COLUMNS = %s\0A\00"
@.str.2 = [8 x i8] c"DATEMSK\00"
@.str.3 = [14 x i8] c"DATEMSK = %s\0A\00"
@.str.4 = [5 x i8] c"HOME\00"
@.str.5 = [11 x i8] c"HOME = %s\0A\00"
@.str.6 = [5 x i8] c"LANG\00"
@.str.7 = [11 x i8] c"LANG = %s\0A\00"
@.str.8 = [7 x i8] c"LC_ALL\00"
@.str.9 = [13 x i8] c"LC_ALL = %s\0A\00"
@.str.10 = [11 x i8] c"LC_COLLATE\00"
@.str.11 = [17 x i8] c"LC_COLLATE = %s\0A\00"
@.str.12 = [9 x i8] c"LC_CTYPE\00"
@.str.13 = [15 x i8] c"LC_CTYPE = %s\0A\00"
@.str.14 = [12 x i8] c"LC_MESSAGES\00"
@.str.15 = [18 x i8] c"LC_MESSAGES = %s\0A\00"
@.str.16 = [11 x i8] c"LC_NUMERIC\00"
@.str.17 = [17 x i8] c"LC_NUMERIC = %s\0A\00"
@.str.18 = [8 x i8] c"LC_TIME\00"
@.str.19 = [14 x i8] c"LC_TIME = %s\0A\00"
@.str.20 = [6 x i8] c"LINES\00"
@.str.21 = [12 x i8] c"LINES = %s\0A\00"
@.str.22 = [8 x i8] c"MSGVERB\00"
@.str.23 = [14 x i8] c"MSGVERB = %s\0A\00"
@.str.24 = [8 x i8] c"NLSPATH\00"
@.str.25 = [14 x i8] c"NLSPATH = %s\0A\00"
@.str.26 = [5 x i8] c"PATH\00"
@.str.27 = [11 x i8] c"PATH = %s\0A\00"
@.str.28 = [4 x i8] c"PWD\00"
@.str.29 = [10 x i8] c"PWD = %s\0A\00"
@.str.30 = [6 x i8] c"SHELL\00"
@.str.31 = [12 x i8] c"SHELL = %s\0A\00"
@.str.32 = [5 x i8] c"TERM\00"
@.str.33 = [11 x i8] c"TERM = %s\0A\00"
@.str.34 = [7 x i8] c"TMPDIR\00"
@.str.35 = [13 x i8] c"TMPDIR = %s\0A\00"
@.str.36 = [3 x i8] c"TZ\00"
@.str.37 = [9 x i8] c"TZ = %s\0A\00"
define i32 @getallenv() {
%1 = alloca [1024 x i8]
%2 = alloca i8*
%3 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i8* %3, i8** %2
%4 = load i8*, i8** %2
%5 = icmp ne i8* %4, null
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %6, %0
%10 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i8* %10, i8** %2
%11 = load i8*, i8** %2
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i8*, i8** %2
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %14)
br label %16
16: ; preds = %13, %9
%17 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
store i8* %17, i8** %2
%18 = load i8*, i8** %2
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i8*, i8** %2
%22 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %21)
br label %23
23: ; preds = %20, %16
%24 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
store i8* %24, i8** %2
%25 = load i8*, i8** %2
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i8*, i8** %2
%29 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %28)
br label %30
30: ; preds = %27, %23
%31 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
store i8* %31, i8** %2
%32 = load i8*, i8** %2
%33 = icmp ne i8* %32, null
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i8*, i8** %2
%36 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %35)
br label %37
37: ; preds = %34, %30
%38 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
store i8* %38, i8** %2
%39 = load i8*, i8** %2
%40 = icmp ne i8* %39, null
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i8*, i8** %2
%43 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* %42)
br label %44
44: ; preds = %41, %37
%45 = call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
store i8* %45, i8** %2
%46 = load i8*, i8** %2
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load i8*, i8** %2
%50 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %49)
br label %51
51: ; preds = %48, %44
%52 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
store i8* %52, i8** %2
%53 = load i8*, i8** %2
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = load i8*, i8** %2
%57 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* %56)
br label %58
58: ; preds = %55, %51
%59 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
store i8* %59, i8** %2
%60 = load i8*, i8** %2
%61 = icmp ne i8* %60, null
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load i8*, i8** %2
%64 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i8* %63)
br label %65
65: ; preds = %62, %58
%66 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
store i8* %66, i8** %2
%67 = load i8*, i8** %2
%68 = icmp ne i8* %67, null
br i1 %68, label %69, label %72
69: ; preds = %65
%70 = load i8*, i8** %2
%71 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8* %70)
br label %72
72: ; preds = %69, %65
%73 = call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
store i8* %73, i8** %2
%74 = load i8*, i8** %2
%75 = icmp ne i8* %74, null
br i1 %75, label %76, label %79
76: ; preds = %72
%77 = load i8*, i8** %2
%78 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.21, i64 0, i64 0), i8* %77)
br label %79
79: ; preds = %76, %72
%80 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
store i8* %80, i8** %2
%81 = load i8*, i8** %2
%82 = icmp ne i8* %81, null
br i1 %82, label %83, label %86
83: ; preds = %79
%84 = load i8*, i8** %2
%85 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.23, i64 0, i64 0), i8* %84)
br label %86
86: ; preds = %83, %79
%87 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
store i8* %87, i8** %2
%88 = load i8*, i8** %2
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %93
90: ; preds = %86
%91 = load i8*, i8** %2
%92 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.25, i64 0, i64 0), i8* %91)
br label %93
93: ; preds = %90, %86
%94 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
store i8* %94, i8** %2
%95 = load i8*, i8** %2
%96 = icmp ne i8* %95, null
br i1 %96, label %97, label %100
97: ; preds = %93
%98 = load i8*, i8** %2
%99 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %97, %93
%101 = call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
store i8* %101, i8** %2
%102 = load i8*, i8** %2
%103 = icmp ne i8* %102, null
br i1 %103, label %104, label %107
104: ; preds = %100
%105 = load i8*, i8** %2
%106 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i8* %105)
br label %107
107: ; preds = %104, %100
%108 = call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
store i8* %108, i8** %2
%109 = load i8*, i8** %2
%110 = icmp ne i8* %109, null
br i1 %110, label %111, label %114
111: ; preds = %107
%112 = load i8*, i8** %2
%113 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8* %112)
br label %114
114: ; preds = %111, %107
%115 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
store i8* %115, i8** %2
%116 = load i8*, i8** %2
%117 = icmp ne i8* %116, null
br i1 %117, label %118, label %121
118: ; preds = %114
%119 = load i8*, i8** %2
%120 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8* %119)
br label %121
121: ; preds = %118, %114
%122 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.34, i64 0, i64 0))
store i8* %122, i8** %2
%123 = load i8*, i8** %2
%124 = icmp ne i8* %123, null
br i1 %124, label %125, label %128
125: ; preds = %121
%126 = load i8*, i8** %2
%127 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i8* %126)
br label %128
128: ; preds = %125, %121
%129 = call i8* @getenv(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
store i8* %129, i8** %2
%130 = load i8*, i8** %2
%131 = icmp ne i8* %130, null
br i1 %131, label %132, label %135
132: ; preds = %128
%133 = load i8*, i8** %2
%134 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.37, i64 0, i64 0), i8* %133)
br label %135
135: ; preds = %132, %128
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"COLUMNS\00"
@.str.1 = [14 x i8] c"COLUMNS = %s\0A\00"
@.str.2 = [8 x i8] c"DATEMSK\00"
@.str.3 = [14 x i8] c"DATEMSK = %s\0A\00"
@.str.4 = [5 x i8] c"HOME\00"
@.str.5 = [11 x i8] c"HOME = %s\0A\00"
@.str.6 = [5 x i8] c"LANG\00"
@.str.7 = [11 x i8] c"LANG = %s\0A\00"
@.str.8 = [7 x i8] c"LC_ALL\00"
@.str.9 = [13 x i8] c"LC_ALL = %s\0A\00"
@.str.10 = [11 x i8] c"LC_COLLATE\00"
@.str.11 = [17 x i8] c"LC_COLLATE = %s\0A\00"
@.str.12 = [9 x i8] c"LC_CTYPE\00"
@.str.13 = [15 x i8] c"LC_CTYPE = %s\0A\00"
@.str.14 = [12 x i8] c"LC_MESSAGES\00"
@.str.15 = [18 x i8] c"LC_MESSAGES = %s\0A\00"
@.str.16 = [11 x i8] c"LC_NUMERIC\00"
@.str.17 = [17 x i8] c"LC_NUMERIC = %s\0A\00"
@.str.18 = [8 x i8] c"LC_TIME\00"
@.str.19 = [14 x i8] c"LC_TIME = %s\0A\00"
@.str.20 = [6 x i8] c"LINES\00"
@.str.21 = [12 x i8] c"LINES = %s\0A\00"
@.str.22 = [8 x i8] c"MSGVERB\00"
@.str.23 = [14 x i8] c"MSGVERB = %s\0A\00"
@.str.24 = [8 x i8] c"NLSPATH\00"
@.str.25 = [14 x i8] c"NLSPATH = %s\0A\00"
@.str.26 = [5 x i8] c"PATH\00"
@.str.27 = [11 x i8] c"PATH = %s\0A\00"
@.str.28 = [4 x i8] c"PWD\00"
@.str.29 = [10 x i8] c"PWD = %s\0A\00"
@.str.30 = [6 x i8] c"SHELL\00"
@.str.31 = [12 x i8] c"SHELL = %s\0A\00"
@.str.32 = [5 x i8] c"TERM\00"
@.str.33 = [11 x i8] c"TERM = %s\0A\00"
@.str.34 = [7 x i8] c"TMPDIR\00"
@.str.35 = [13 x i8] c"TMPDIR = %s\0A\00"
@.str.36 = [3 x i8] c"TZ\00"
@.str.37 = [9 x i8] c"TZ = %s\0A\00"
define i32 @getallenv() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i8* %1, null
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %5
5: ; preds = %3, %0
%6 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %6)
br label %10
10: ; preds = %8, %5
%11 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i8* %11, null
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %11)
br label %15
15: ; preds = %13, %10
%16 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%17 = icmp eq i8* %16, null
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %16)
br label %20
20: ; preds = %18, %15
%21 = tail call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%22 = icmp eq i8* %21, null
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %21)
br label %25
25: ; preds = %23, %20
%26 = tail call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%27 = icmp eq i8* %26, null
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* %26)
br label %30
30: ; preds = %28, %25
%31 = tail call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%32 = icmp eq i8* %31, null
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %31)
br label %35
35: ; preds = %33, %30
%36 = tail call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%37 = icmp eq i8* %36, null
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* %36)
br label %40
40: ; preds = %38, %35
%41 = tail call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
%42 = icmp eq i8* %41, null
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i8* %41)
br label %45
45: ; preds = %43, %40
%46 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%47 = icmp eq i8* %46, null
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8* %46)
br label %50
50: ; preds = %48, %45
%51 = tail call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%52 = icmp eq i8* %51, null
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.21, i64 0, i64 0), i8* %51)
br label %55
55: ; preds = %53, %50
%56 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%57 = icmp eq i8* %56, null
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.23, i64 0, i64 0), i8* %56)
br label %60
60: ; preds = %58, %55
%61 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
%62 = icmp eq i8* %61, null
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.25, i64 0, i64 0), i8* %61)
br label %65
65: ; preds = %63, %60
%66 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
%67 = icmp eq i8* %66, null
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), i8* %66)
br label %70
70: ; preds = %68, %65
%71 = tail call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
%72 = icmp eq i8* %71, null
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i8* %71)
br label %75
75: ; preds = %73, %70
%76 = tail call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
%77 = icmp eq i8* %76, null
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8* %76)
br label %80
80: ; preds = %78, %75
%81 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%82 = icmp eq i8* %81, null
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8* %81)
br label %85
85: ; preds = %83, %80
%86 = tail call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.34, i64 0, i64 0))
%87 = icmp eq i8* %86, null
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i8* %86)
br label %90
90: ; preds = %88, %85
%91 = tail call i8* @getenv(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
%92 = icmp eq i8* %91, null
br i1 %92, label %95, label %93
93: ; preds = %90
%94 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.37, i64 0, i64 0), i8* %91)
br label %95
95: ; preds = %93, %90
ret i32 0
}