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

/* Variables and functions */
int ZBarcode_Encode_File(struct zint_symbol *, char *);
int ZBarcode_Print(struct zint_symbol *, int);
int ZBarcode_Encode_File_and_Print(struct zint_symbol *symbol, char *filename,
                                   int rotate_angle) {
  int error_number;
  error_number = 0;
  error_number = ZBarcode_Encode_File(symbol, filename);
  if (error_number != 0) {
    return error_number;
  }
  return ZBarcode_Print(symbol, rotate_angle);
}


x86 assembly (clang, -O0):
<ZBarcode_Encode_File_and_Print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <ZBarcode_Encode_File@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     115f <ZBarcode_Encode_File_and_Print+0x3f>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116e <ZBarcode_Encode_File_and_Print+0x4e>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1040 <ZBarcode_Print@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ZBarcode_Encode_File_and_Print>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%rbx
call   1030 <ZBarcode_Encode_File@plt>
test   %eax,%eax
je     1138 <ZBarcode_Encode_File_and_Print+0x18>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <ZBarcode_Print@plt>

LLVM IR (-O0):
%struct.zint_symbol = type { i32 }
define i32 @ZBarcode_Encode_File_and_Print(%struct.zint_symbol* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.zint_symbol*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store %struct.zint_symbol* %0, %struct.zint_symbol** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 0, i32* %8
%9 = load %struct.zint_symbol*, %struct.zint_symbol** %5
%10 = load i8*, i8** %6
%11 = call i32 @ZBarcode_Encode_File(%struct.zint_symbol* %9, i8* %10)
store i32 %11, i32* %8
%12 = load i32, i32* %8
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load i32, i32* %8
store i32 %15, i32* %4
br label %20
16: ; preds = %3
%17 = load %struct.zint_symbol*, %struct.zint_symbol** %5
%18 = load i32, i32* %7
%19 = call i32 @ZBarcode_Print(%struct.zint_symbol* %17, i32 %18)
store i32 %19, i32* %4
br label %20
20: ; preds = %16, %14
%21 = load i32, i32* %4
ret i32 %21
}

LLVM IR (-O2):
%struct.zint_symbol = type { i32 }
define i32 @ZBarcode_Encode_File_and_Print(%struct.zint_symbol* %0, i8* %1, i32 %2) {
%4 = tail call i32 @ZBarcode_Encode_File(%struct.zint_symbol* %0, i8* %1)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @ZBarcode_Print(%struct.zint_symbol* %0, i32 %2)
br label %8
8: ; preds = %3, %6
%9 = phi i32 [ %7, %6 ], [ %4, %3 ]
ret i32 %9
}