#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 /*<<< orphan*/ _exit(int);
scalar_t__ env_get(int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *,
                           unsigned long long, char *);
int /*<<< orphan*/ stderr;
void test_zero(void) {
  if (env_get(0))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/envtest.c"),
              (unsigned long long)(16), (("env_get accepts zero input")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
}


x86 assembly (clang, -O0):
<test_zero>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1060 <env_get@plt>
cmp    $0x0,%rax
je     119a <test_zero+0x5a>
jmp    115a <test_zero+0x1a>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
lea    0xe96(%rip),%rsi
lea    0xe9c(%rip),%rdx
mov    $0x10,%ecx
lea    0xf26(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_zero>:
push   %rbx
xor    %edi,%edi
call   1060 <env_get@plt>
test   %rax,%rax
jne    114f <test_zero+0xf>
pop    %rbx
ret
mov    0x2e8a(%rip),%rbx
mov    (%rbx),%edi
lea    0xea1(%rip),%rsi
lea    0xea7(%rip),%rdx
lea    0xf36(%rip),%r8
mov    $0x10,%ecx
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"%s:%llu: %s\0A\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh-tests/envtest.c\00"
@.str.2 = [27 x i8] c"env_get accepts zero input\00"
define void @test_zero() {
%1 = call i64 @env_get(i32 0)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %11
3: ; preds = %0
br label %4
4: ; preds = %3
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i64 16, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fflush(i32 %7)
%9 = call i32 @_exit(i32 111)
unreachable
10: ; No predecessors!
br label %11
11: ; preds = %10, %0
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"%s:%llu: %s\0A\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh-tests/envtest.c\00"
@.str.2 = [27 x i8] c"env_get accepts zero input\00"
define void @test_zero() {
%1 = tail call i64 @env_get(i32 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label %9, label %3
3: ; preds = %0
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i64 16, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 @fflush(i32 %6)
%8 = tail call i32 @_exit(i32 111)
unreachable
9: ; preds = %0
ret void
}