#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int lint(char *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  if (argc == 1) {
    fprintf(stderr,
            "usage: %s FILE ...\n\nLints Scheme code, printing errors for any "
            "style violations.\nIf a file ends in .md (Markdown), lints fenced "
            "code blocks.\n",
            argv[0]);
    return 1;
  }
  int status = 0;
  for (int i = 1; i < argc; i++) {
    status |= lint(argv[i]);
  }
  return status;
}


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)
cmpl   $0x1,-0x8(%rbp)
jne    1168 <main+0x48>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xea9(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11ad <main+0x8d>
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11a7 <main+0x87>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <lint@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1176 <main+0x56>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
cmp    $0x1,%edi
jne    114e <main+0x2e>
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xebe(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%ebp
jmp    1174 <main+0x54>
xor    %ebp,%ebp
cmp    $0x2,%edi
jl     1174 <main+0x54>
mov    %edi,%r15d
xor    %ebp,%ebp
mov    $0x1,%ebx
nop
mov    (%r14,%rbx,8),%rdi
call   1030 <lint@plt>
or     %eax,%ebp
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1160 <main+0x40>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [142 x i8] c"usage: %s FILE ...\0A\0ALints Scheme code, printing errors for any style violations.\0AIf a file ends in .md (Markdown), lints fenced code blocks.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str, i64 0, i64 0), i8* %14)
store i32 1, i32* %3
br label %35
16: ; preds = %2
store i32 0, i32* %6
store i32 1, i32* %7
br label %17
17: ; preds = %30, %16
%18 = load i32, i32* %7
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %33
21: ; preds = %17
%22 = load i8**, i8*** %5
%23 = load i32, i32* %7
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %22, i64 %24
%26 = load i8*, i8** %25
%27 = call i32 @lint(i8* %26)
%28 = load i32, i32* %6
%29 = or i32 %28, %27
store i32 %29, i32* %6
br label %30
30: ; preds = %21
%31 = load i32, i32* %7
%32 = add nsw i32 %31, 1
store i32 %32, i32* %7
br label %17
33: ; preds = %17
%34 = load i32, i32* %6
store i32 %34, i32* %3
br label %35
35: ; preds = %33, %10
%36 = load i32, i32* %3
ret i32 %36
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [142 x i8] c"usage: %s FILE ...\0A\0ALints Scheme code, printing errors for any style violations.\0AIf a file ends in .md (Markdown), lints fenced code blocks.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %21
6: ; preds = %4
%7 = zext i32 %0 to i64
br label %12
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %21
12: ; preds = %6, %12
%13 = phi i64 [ 1, %6 ], [ %19, %12 ]
%14 = phi i32 [ 0, %6 ], [ %18, %12 ]
%15 = getelementptr inbounds i8*, i8** %1, i64 %13
%16 = load i8*, i8** %15
%17 = tail call i32 @lint(i8* %16)
%18 = or i32 %17, %14
%19 = add nuw nsw i64 %13, 1
%20 = icmp eq i64 %19, %7
br i1 %20, label %21, label %12
21: ; preds = %12, %4, %8
%22 = phi i32 [ 1, %8 ], [ 0, %4 ], [ %18, %12 ]
ret i32 %22
}