#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*/ dcTest_deInitPlatform();
int /*<<< orphan*/ dcTest_initPlatform();
int /*<<< orphan*/ printf(char *, int);
scalar_t__ testCallC();
scalar_t__ testStructSizes();
int main(int argc, char *argv[]) {
  int b = (1);
  dcTest_initPlatform();
  b = b && testCallC();
  printf("C:%d\n", b);
  b = b && testStructSizes();
  printf("Struct Sizes:%d\n", b);
  printf("result: plain: %d\n", b);
  dcTest_deInitPlatform();
  return b;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    $0x0,%al
call   1030 <dcTest_initPlatform@plt>
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x15(%rbp)
je     1194 <main+0x44>
mov    $0x0,%al
call   1050 <testCallC@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe57(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x16(%rbp)
je     11ce <main+0x7e>
mov    $0x0,%al
call   1060 <testStructSizes@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x16(%rbp)
mov    -0x16(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe23(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe25(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <dcTest_deInitPlatform@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <dcTest_initPlatform@plt>
xor    %eax,%eax
call   1050 <testCallC@plt>
mov    %rax,%rbx
xor    %esi,%esi
test   %rax,%rax
setne  %sil
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
test   %rbx,%rbx
je     1190 <main+0x40>
xor    %eax,%eax
call   1060 <testStructSizes@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
lea    0xe6f(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
lea    0xe72(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <dcTest_deInitPlatform@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"C:%d\0A\00"
@.str.1 = [17 x i8] c"Struct Sizes:%d\0A\00"
@.str.2 = [19 x i8] c"result: plain: %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%7 = call i32 (...) @dcTest_initPlatform()
%8 = load i32, i32* %6
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i64 (...) @testCallC()
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %10, %2
%14 = phi i1 [ false, %2 ], [ %12, %10 ]
%15 = zext i1 %14 to i32
store i32 %15, i32* %6
%16 = load i32, i32* %6
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %6
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = call i64 (...) @testStructSizes()
%22 = icmp ne i64 %21, 0
br label %23
23: ; preds = %20, %13
%24 = phi i1 [ false, %13 ], [ %22, %20 ]
%25 = zext i1 %24 to i32
store i32 %25, i32* %6
%26 = load i32, i32* %6
%27 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %6
%29 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = call i32 (...) @dcTest_deInitPlatform()
%31 = load i32, i32* %6
ret i32 %31
}

LLVM IR (-O2):
@.str = [6 x i8] c"C:%d\0A\00"
@.str.1 = [17 x i8] c"Struct Sizes:%d\0A\00"
@.str.2 = [19 x i8] c"result: plain: %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @dcTest_initPlatform()
%4 = tail call i64 (...) @testCallC()
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %6)
br i1 %5, label %8, label %12
8: ; preds = %2
%9 = tail call i64 (...) @testStructSizes()
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %8, %2
%13 = phi i32 [ 0, %2 ], [ %11, %8 ]
%14 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%16 = tail call i32 (...) @dcTest_deInitPlatform()
ret i32 %13
}