#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*/ byte_align();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ transform_data();
int /*<<< orphan*/ transform_parameters();
int wavelet_transform() {
  do {
    if (!(transform_parameters())) {
      fprintf(stderr, "'%s' check failed at line %d\n",
              "transform_parameters()", 1211);
      return 0;
    }
  } while (0);
  byte_align();
  do {
    if (!(transform_data())) {
      fprintf(stderr, "'%s' check failed at line %d\n", "transform_data()",
              1213);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<wavelet_transform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <transform_parameters@plt>
cmp    $0x0,%eax
jne    1185 <wavelet_transform+0x45>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
lea    0xe98(%rip),%rsi
lea    0xeaf(%rip),%rdx
mov    $0x4bb,%ecx
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11da <wavelet_transform+0x9a>
jmp    118a <wavelet_transform+0x4a>
mov    $0x0,%al
call   1060 <byte_align@plt>
mov    $0x0,%al
call   1040 <transform_data@plt>
cmp    $0x0,%eax
jne    11ce <wavelet_transform+0x8e>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
lea    0xe4f(%rip),%rsi
lea    0xe7d(%rip),%rdx
mov    $0x4bd,%ecx
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11da <wavelet_transform+0x9a>
jmp    11d3 <wavelet_transform+0x93>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wavelet_transform>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <transform_parameters@plt>
test   %eax,%eax
je     118a <wavelet_transform+0x4a>
xor    %eax,%eax
call   1060 <byte_align@plt>
xor    %eax,%eax
call   1040 <transform_data@plt>
mov    $0x1,%ebx
test   %eax,%eax
jne    11ab <wavelet_transform+0x6b>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xe8b(%rip),%rsi
lea    0xeb9(%rip),%rdx
mov    $0x4bd,%ecx
call   1050 <fprintf@plt>
xor    %ebx,%ebx
jmp    11ab <wavelet_transform+0x6b>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
lea    0xe66(%rip),%rsi
lea    0xe7d(%rip),%rdx
mov    $0x4bb,%ecx
call   1050 <fprintf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [30 x i8] c"'%s' check failed at line %d\0A\00"
@.str.1 = [23 x i8] c"transform_parameters()\00"
@.str.2 = [17 x i8] c"transform_data()\00"
define i32 @wavelet_transform() {
%1 = alloca i32
br label %2
2: ; preds = %0
%3 = call i32 (...) @transform_parameters()
%4 = icmp ne i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 1211)
store i32 0, i32* %1
br label %19
8: ; preds = %2
br label %9
9: ; preds = %8
%10 = call i32 (...) @byte_align()
br label %11
11: ; preds = %9
%12 = call i32 (...) @transform_data()
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 1213)
store i32 0, i32* %1
br label %19
17: ; preds = %11
br label %18
18: ; preds = %17
store i32 1, i32* %1
br label %19
19: ; preds = %18, %14, %5
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [30 x i8] c"'%s' check failed at line %d\0A\00"
@.str.1 = [23 x i8] c"transform_parameters()\00"
@.str.2 = [17 x i8] c"transform_data()\00"
define i32 @wavelet_transform() {
%1 = tail call i32 (...) @transform_parameters()
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 1211)
br label %13
6: ; preds = %0
%7 = tail call i32 (...) @byte_align()
%8 = tail call i32 (...) @transform_data()
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 1213)
br label %13
13: ; preds = %6, %10, %3
%14 = phi i32 [ 0, %10 ], [ 0, %3 ], [ 1, %6 ]
ret i32 %14
}