#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 */
typedef int /*<<< orphan*/ z_stream;

/* Variables and functions */
int Z_OK;
int deflateEnd(int /*<<< orphan*/ *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ error_at_line(int, int /*<<< orphan*/, char *, int, char *,
                                 int /*<<< orphan*/);
int /*<<< orphan*/ zError(int);
void DeflateEnd(z_stream *stream) {
  int ret = deflateEnd(stream);
  if (ret != Z_OK) {
    error_at_line(
        -(142), errno,
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/uti7/foo/refs/heads/master/zlib-test.c",
        142, "%s", zError(ret));
  }
}


x86 assembly (clang, -O0):
<DeflateEnd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <deflateEnd@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    0x2e9e(%rip),%rcx
cmp    (%rcx),%eax
je     1191 <DeflateEnd+0x61>
mov    0x2e77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <zError@plt>
mov    -0x10(%rbp),%esi
mov    %eax,%r9d
mov    $0xffffff72,%edi
lea    0xe80(%rip),%rdx
mov    $0x8e,%ecx
lea    0xef5(%rip),%r8
call   1030 <error_at_line@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DeflateEnd>:
push   %rbx
call   1050 <deflateEnd@plt>
mov    0x2eb3(%rip),%rcx
cmp    (%rcx),%eax
jne    1143 <DeflateEnd+0x13>
pop    %rbx
ret
mov    0x2e8e(%rip),%rcx
mov    (%rcx),%ebx
mov    %eax,%edi
call   1040 <zError@plt>
lea    0xea6(%rip),%rdx
lea    0xf20(%rip),%r8
mov    $0xffffff72,%edi
mov    %ebx,%esi
mov    $0x8e,%ecx
mov    %eax,%r9d
pop    %rbx
jmp    1030 <error_at_line@plt>

LLVM IR (-O0):
@Z_OK = global i32 0
@errno = global i32 0
@.str = [129 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/uti7/foo/refs/heads/master/zlib-test.c\00"
@.str.1 = [3 x i8] c"%s\00"
define void @DeflateEnd(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = call i32 @deflateEnd(i32* %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = load i32, i32* @Z_OK
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load i32, i32* @errno
%11 = load i32, i32* %3
%12 = call i32 @zError(i32 %11)
%13 = call i32 @error_at_line(i32 -142, i32 %10, i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 142, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %9, %1
ret void
}

LLVM IR (-O2):
@Z_OK = global i32 0
@errno = global i32 0
@.str = [129 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/uti7/foo/refs/heads/master/zlib-test.c\00"
@.str.1 = [3 x i8] c"%s\00"
define void @DeflateEnd(i32* %0) {
%2 = tail call i32 @deflateEnd(i32* %0)
%3 = load i32, i32* @Z_OK
%4 = icmp eq i32 %2, %3
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = load i32, i32* @errno
%7 = tail call i32 @zError(i32 %2)
%8 = tail call i32 @error_at_line(i32 -142, i32 %6, i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 142, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %5, %1
ret void
}