#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 CheckSet(char *);
int /*<<< orphan*/ WrCompilerMacros();
int /*<<< orphan*/ WrDataTypes();
int /*<<< orphan*/ WrEnvironment(int, char *);
int /*<<< orphan*/ WrEvalOrder();
int /*<<< orphan*/ WrFileTest();
int /*<<< orphan*/ WrImplicitCast();
int /*<<< orphan*/ WrInputFeatures();
int /*<<< orphan*/ WrLogicExpr();
int /*<<< orphan*/ WrMallocErrors();
int /*<<< orphan*/ WrMemoryAlignm();
int /*<<< orphan*/ WrMessage(char *);
int /*<<< orphan*/ WrNumericErrors();
int /*<<< orphan*/ WrOpenFiles();
int /*<<< orphan*/ WrStringErrors();
int /*<<< orphan*/ WrStringOverflow();
int main(int argc, char **argv) {
  int check;
  WrMessage("@INTRODUCTION");
  check = CheckSet("@GENERAL");
  if (check) {
    WrEnvironment(argc, argv[0]);
    WrCompilerMacros();
    WrOpenFiles();
    WrDataTypes();
    WrMemoryAlignm();
    WrStringOverflow();
    WrImplicitCast();
    WrFileTest();
    WrLogicExpr();
    WrEvalOrder();
    WrInputFeatures();
  }
  WrNumericErrors();
  WrStringErrors();
  WrMallocErrors();
  return 0;
}


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)
lea    0xde3(%rip),%rdi
call   1110 <WrMessage@plt>
lea    0xde5(%rip),%rdi
call   1040 <CheckSet@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1290 <main+0x90>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
call   1100 <WrEnvironment@plt>
mov    $0x0,%al
call   1030 <WrCompilerMacros@plt>
mov    $0x0,%al
call   1060 <WrOpenFiles@plt>
mov    $0x0,%al
call   10b0 <WrDataTypes@plt>
mov    $0x0,%al
call   10e0 <WrMemoryAlignm@plt>
mov    $0x0,%al
call   1050 <WrStringOverflow@plt>
mov    $0x0,%al
call   10d0 <WrImplicitCast@plt>
mov    $0x0,%al
call   1070 <WrFileTest@plt>
mov    $0x0,%al
call   1080 <WrLogicExpr@plt>
mov    $0x0,%al
call   10a0 <WrEvalOrder@plt>
mov    $0x0,%al
call   10c0 <WrInputFeatures@plt>
mov    $0x0,%al
call   1120 <WrNumericErrors@plt>
mov    $0x0,%al
call   10f0 <WrStringErrors@plt>
mov    $0x0,%al
call   1090 <WrMallocErrors@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xdf1(%rip),%rdi
call   1110 <WrMessage@plt>
lea    0xdf3(%rip),%rdi
call   1040 <CheckSet@plt>
test   %eax,%eax
je     1274 <main+0x74>
mov    (%rbx),%rsi
mov    %ebp,%edi
call   1100 <WrEnvironment@plt>
xor    %eax,%eax
call   1030 <WrCompilerMacros@plt>
xor    %eax,%eax
call   1060 <WrOpenFiles@plt>
xor    %eax,%eax
call   10b0 <WrDataTypes@plt>
xor    %eax,%eax
call   10e0 <WrMemoryAlignm@plt>
xor    %eax,%eax
call   1050 <WrStringOverflow@plt>
xor    %eax,%eax
call   10d0 <WrImplicitCast@plt>
xor    %eax,%eax
call   1070 <WrFileTest@plt>
xor    %eax,%eax
call   1080 <WrLogicExpr@plt>
xor    %eax,%eax
call   10a0 <WrEvalOrder@plt>
xor    %eax,%eax
call   10c0 <WrInputFeatures@plt>
xor    %eax,%eax
call   1120 <WrNumericErrors@plt>
xor    %eax,%eax
call   10f0 <WrStringErrors@plt>
xor    %eax,%eax
call   1090 <WrMallocErrors@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"@INTRODUCTION\00"
@.str.1 = [9 x i8] c"@GENERAL\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
%7 = call i32 @WrMessage(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @CheckSet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 %8, i32* %6
%9 = load i32, i32* %6
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %2
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @WrEnvironment(i32 %12, i8* %15)
%17 = call i32 (...) @WrCompilerMacros()
%18 = call i32 (...) @WrOpenFiles()
%19 = call i32 (...) @WrDataTypes()
%20 = call i32 (...) @WrMemoryAlignm()
%21 = call i32 (...) @WrStringOverflow()
%22 = call i32 (...) @WrImplicitCast()
%23 = call i32 (...) @WrFileTest()
%24 = call i32 (...) @WrLogicExpr()
%25 = call i32 (...) @WrEvalOrder()
%26 = call i32 (...) @WrInputFeatures()
br label %27
27: ; preds = %11, %2
%28 = call i32 (...) @WrNumericErrors()
%29 = call i32 (...) @WrStringErrors()
%30 = call i32 (...) @WrMallocErrors()
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"@INTRODUCTION\00"
@.str.1 = [9 x i8] c"@GENERAL\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @WrMessage(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @CheckSet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %19, label %6
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 @WrEnvironment(i32 %0, i8* %7)
%9 = tail call i32 (...) @WrCompilerMacros()
%10 = tail call i32 (...) @WrOpenFiles()
%11 = tail call i32 (...) @WrDataTypes()
%12 = tail call i32 (...) @WrMemoryAlignm()
%13 = tail call i32 (...) @WrStringOverflow()
%14 = tail call i32 (...) @WrImplicitCast()
%15 = tail call i32 (...) @WrFileTest()
%16 = tail call i32 (...) @WrLogicExpr()
%17 = tail call i32 (...) @WrEvalOrder()
%18 = tail call i32 (...) @WrInputFeatures()
br label %19
19: ; preds = %6, %2
%20 = tail call i32 (...) @WrNumericErrors()
%21 = tail call i32 (...) @WrStringErrors()
%22 = tail call i32 (...) @WrMallocErrors()
ret i32 0
}