main(argc, argv) char **argv;
int argc;
{
  char word[30], map[128];
  int i;
  int getword(), isomorphic();
  while (getword(word))
    if (isomorphic(word, argv[1], map))
      printf("%s\n", word);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x0,%al
call   1040 <getword@plt>
cmp    $0x0,%eax
je     1197 <main+0x67>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    -0xb0(%rbp),%rdx
mov    $0x0,%al
call   1050 <isomorphic@plt>
cmp    $0x0,%eax
je     1192 <main+0x62>
lea    -0x30(%rbp),%rsi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1149 <main+0x19>
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xa0,%rsp
mov    %rsi,%r14
mov    %rsp,%rdi
xor    %eax,%eax
call   1040 <getword@plt>
test   %eax,%eax
je     118d <main+0x5d>
mov    %rsp,%rbx
lea    0x20(%rsp),%r15
jmp    116e <main+0x3e>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <getword@plt>
test   %eax,%eax
je     118d <main+0x5d>
mov    0x8(%r14),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <isomorphic@plt>
test   %eax,%eax
je     1160 <main+0x30>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    1160 <main+0x30>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [30 x i8]
%7 = alloca [128 x i8]
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %9
9: ; preds = %24, %2
%10 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @getword to i32 (i8*, ...)*)(i8* %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %25
13: ; preds = %9
%14 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%19 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @isomorphic to i32 (i8*, i8*, i8*, ...)*)(i8* %14, i8* %17, i8* %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %13
%22 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %22)
br label %24
24: ; preds = %21, %13
br label %9
25: ; preds = %9
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [30 x i8]
%4 = alloca [128 x i8]
%5 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @getword to i32 (i8*, ...)*)(i8* %5)
%8 = icmp eq i32 %7, 0
br i1 %8, label %20, label %9
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
br label %11
11: ; preds = %9, %17
%12 = load i8*, i8** %10
%13 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @isomorphic to i32 (i8*, i8*, i8*, ...)*)(i8* %5, i8* %12, i8* %6)
%14 = icmp eq i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %11
%16 = call i32 @puts(i8* %5)
br label %17
17: ; preds = %15, %11
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @getword to i32 (i8*, ...)*)(i8* %5)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %11
20: ; preds = %17, %2
ret i32 0
}