main(argc, argv) int argc;
char *argv[];
{
  if (diff(argv[0], "t11b"))
    e(31);
  if (diff(argv[1], "abc"))
    e(32);
  if (diff(argv[2], "defghi"))
    e(33);
  if (diff(argv[3], "j"))
    e(34);
  if (argv[4] != 0)
    e(35);
  if (argc != 4)
    e(36);
  exit(75);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xeac(%rip),%rsi
mov    $0x0,%al
call   1050 <diff@plt>
cmp    $0x0,%eax
je     1170 <main+0x40>
mov    $0x1f,%edi
mov    $0x0,%al
call   1030 <e@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe86(%rip),%rsi
mov    $0x0,%al
call   1050 <diff@plt>
cmp    $0x0,%eax
je     119b <main+0x6b>
mov    $0x20,%edi
mov    $0x0,%al
call   1030 <e@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1050 <diff@plt>
cmp    $0x0,%eax
je     11c6 <main+0x96>
mov    $0x21,%edi
mov    $0x0,%al
call   1030 <e@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1050 <diff@plt>
cmp    $0x0,%eax
je     11f1 <main+0xc1>
mov    $0x22,%edi
mov    $0x0,%al
call   1030 <e@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x20(%rax)
je     120c <main+0xdc>
mov    $0x23,%edi
mov    $0x0,%al
call   1030 <e@plt>
cmpl   $0x4,-0x8(%rbp)
je     1222 <main+0xf2>
mov    $0x24,%edi
mov    $0x0,%al
call   1030 <e@plt>
mov    $0x4b,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%rdi
lea    0xebe(%rip),%rsi
xor    %eax,%eax
call   1050 <diff@plt>
test   %eax,%eax
je     1159 <main+0x29>
mov    $0x1f,%edi
xor    %eax,%eax
call   1030 <e@plt>
mov    0x8(%rbx),%rdi
lea    0xea1(%rip),%rsi
xor    %eax,%eax
call   1050 <diff@plt>
test   %eax,%eax
je     117b <main+0x4b>
mov    $0x20,%edi
xor    %eax,%eax
call   1030 <e@plt>
mov    0x10(%rbx),%rdi
lea    0xe83(%rip),%rsi
xor    %eax,%eax
call   1050 <diff@plt>
test   %eax,%eax
je     119d <main+0x6d>
mov    $0x21,%edi
xor    %eax,%eax
call   1030 <e@plt>
mov    0x18(%rbx),%rdi
lea    0xe68(%rip),%rsi
xor    %eax,%eax
call   1050 <diff@plt>
test   %eax,%eax
jne    11c9 <main+0x99>
cmpq   $0x0,0x20(%rbx)
jne    11dc <main+0xac>
cmp    $0x4,%ebp
jne    11ed <main+0xbd>
mov    $0x4b,%edi
call   1040 <exit@plt>
mov    $0x22,%edi
xor    %eax,%eax
call   1030 <e@plt>
cmpq   $0x0,0x20(%rbx)
je     11ba <main+0x8a>
mov    $0x23,%edi
xor    %eax,%eax
call   1030 <e@plt>
cmp    $0x4,%ebp
je     11bf <main+0x8f>
mov    $0x24,%edi
xor    %eax,%eax
call   1030 <e@plt>
mov    $0x4b,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"t11b\00"
@.str.1 = [4 x i8] c"abc\00"
@.str.2 = [7 x i8] c"defghi\00"
@.str.3 = [2 x i8] c"j\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 31)
br label %13
13: ; preds = %11, %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 32)
br label %21
21: ; preds = %19, %13
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 2
%24 = load i8*, i8** %23
%25 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 33)
br label %29
29: ; preds = %27, %21
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 3
%32 = load i8*, i8** %31
%33 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 34)
br label %37
37: ; preds = %35, %29
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 4
%40 = load i8*, i8** %39
%41 = icmp ne i8* %40, null
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 35)
br label %44
44: ; preds = %42, %37
%45 = load i32, i32* %4
%46 = icmp ne i32 %45, 4
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 36)
br label %49
49: ; preds = %47, %44
unreachable
}

LLVM IR (-O2):
@.str = [5 x i8] c"t11b\00"
@.str.1 = [4 x i8] c"abc\00"
@.str.2 = [7 x i8] c"defghi\00"
@.str.3 = [2 x i8] c"j\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 31)
br label %8
8: ; preds = %6, %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %8
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 32)
br label %15
15: ; preds = %13, %8
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 33)
br label %22
22: ; preds = %20, %15
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @diff to i32 (i8*, i8*, ...)*)(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %22
%28 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 34)
br label %29
29: ; preds = %27, %22
%30 = getelementptr inbounds i8*, i8** %1, i64 4
%31 = load i8*, i8** %30
%32 = icmp eq i8* %31, null
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 35)
br label %35
35: ; preds = %33, %29
%36 = icmp eq i32 %0, 4
br i1 %36, label %39, label %37
37: ; preds = %35
%38 = tail call i32 (i32, ...) bitcast (i32 (...)* @e to i32 (i32, ...)*)(i32 36)
br label %39
39: ; preds = %37, %35
tail call void @exit(i32 75)
unreachable
}