#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(struct zint_symbol *, unsigned char *, int);
int ZBarcode_Print(struct zint_symbol *, int);
int ZBarcode_Encode_and_Print(struct zint_symbol *symbol, unsigned char *input,
                              int length, int rotate_angle) {
  int error_number;
  error_number = ZBarcode_Encode(symbol, input, length);
  if (error_number != 0) {
    return error_number;
  }
  error_number = ZBarcode_Print(symbol, rotate_angle);
  return error_number;
}


x86 assembly (clang, -O0):
<ZBarcode_Encode_and_Print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <ZBarcode_Encode@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     115e <ZBarcode_Encode_and_Print+0x3e>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1173 <ZBarcode_Encode_and_Print+0x53>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1040 <ZBarcode_Print@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ZBarcode_Encode_and_Print>:
push   %rbp
push   %rbx
push   %rax
mov    %ecx,%ebp
mov    %rdi,%rbx
call   1030 <ZBarcode_Encode@plt>
test   %eax,%eax
je     1138 <ZBarcode_Encode_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_and_Print(%struct.zint_symbol* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca %struct.zint_symbol*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %struct.zint_symbol* %0, %struct.zint_symbol** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%11 = load %struct.zint_symbol*, %struct.zint_symbol** %6
%12 = load i8*, i8** %7
%13 = load i32, i32* %8
%14 = call i32 @ZBarcode_Encode(%struct.zint_symbol* %11, i8* %12, i32 %13)
store i32 %14, i32* %10
%15 = load i32, i32* %10
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load i32, i32* %10
store i32 %18, i32* %5
br label %24
19: ; preds = %4
%20 = load %struct.zint_symbol*, %struct.zint_symbol** %6
%21 = load i32, i32* %9
%22 = call i32 @ZBarcode_Print(%struct.zint_symbol* %20, i32 %21)
store i32 %22, i32* %10
%23 = load i32, i32* %10
store i32 %23, i32* %5
br label %24
24: ; preds = %19, %17
%25 = load i32, i32* %5
ret i32 %25
}

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