main(argc, argv) int argc;
char *argv[];
{
  char buffer[255 + 1];
  printf("PostMark %s\n", "v1.51 : 8/14/01");
  if (read_config_file((argc == 2) ? argv[1] : ".pmrc", buffer, 1))
    while (cli_read_line(buffer, 255) && cli_parse_line(buffer))
      ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea0(%rip),%rdi
lea    0xea6(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    118c <main+0x4c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x118(%rbp)
jmp    119f <main+0x5f>
lea    0xe8a(%rip),%rax
mov    %rax,-0x118(%rbp)
jmp    119f <main+0x5f>
mov    -0x118(%rbp),%rdi
lea    -0x110(%rbp),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1050 <read_config_file@plt>
cmp    $0x0,%eax
je     1224 <main+0xe4>
jmp    11c7 <main+0x87>
lea    -0x110(%rbp),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1060 <cli_read_line@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x119(%rbp)
je     1207 <main+0xc7>
lea    -0x110(%rbp),%rdi
mov    $0x0,%al
call   1030 <cli_parse_line@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0x119(%rbp)
mov    -0x119(%rbp),%al
test   $0x1,%al
jne    121a <main+0xda>
jmp    121f <main+0xdf>
jmp    11c7 <main+0x87>
jmp    1224 <main+0xe4>
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x108,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xeab(%rip),%rdi
lea    0xeb1(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%ebp
jne    116e <main+0x2e>
mov    0x8(%rbx),%rdi
jmp    1175 <main+0x35>
lea    0xea8(%rip),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <read_config_file@plt>
test   %eax,%eax
je     11b1 <main+0x71>
mov    %rsp,%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1060 <cli_read_line@plt>
test   %eax,%eax
je     11b1 <main+0x71>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cli_parse_line@plt>
test   %eax,%eax
jne    1190 <main+0x50>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"PostMark %s\0A\00"
@.str.1 = [16 x i8] c"v1.51 : 8/14/01\00"
@.str.2 = [6 x i8] c".pmrc\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [256 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 2
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %10
%16 = phi i8* [ %13, %10 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %14 ]
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%18 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @read_config_file to i32 (i8*, i8*, i32, ...)*)(i8* %16, i8* %17, i32 1)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %15
br label %21
21: ; preds = %31, %20
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%23 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @cli_read_line to i32 (i8*, i32, ...)*)(i8* %22, i32 255)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @cli_parse_line to i32 (i8*, ...)*)(i8* %26)
%28 = icmp ne i32 %27, 0
br label %29
29: ; preds = %25, %21
%30 = phi i1 [ false, %21 ], [ %28, %25 ]
br i1 %30, label %31, label %32
31: ; preds = %29
br label %21
32: ; preds = %29
br label %33
33: ; preds = %32, %15
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
@.str = [13 x i8] c"PostMark %s\0A\00"
@.str.1 = [16 x i8] c"v1.51 : 8/14/01\00"
@.str.2 = [6 x i8] c".pmrc\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32 %0, 2
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
br label %10
10: ; preds = %2, %7
%11 = phi i8* [ %9, %7 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %2 ]
%12 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @read_config_file to i32 (i8*, i8*, i32, ...)*)(i8* %11, i8* %4, i32 1)
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %10, %17
%15 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @cli_read_line to i32 (i8*, i32, ...)*)(i8* %4, i32 255)
%16 = icmp eq i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @cli_parse_line to i32 (i8*, ...)*)(i8* %4)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %14
20: ; preds = %17, %14, %10
ret i32 0
}