pr_CALL_or_QUEST(str) char *str;
{
  if (strncmp(str, "if", 2) == 0 &&
      !((isalpha(*(str + 2)) || isdigit(*(str + 2)) || *(str + 2) == '_')))
    pr_if(str);
  else if (strncmp(str, "elsif", 5) == 0 &&
           !((isalpha(*(str + 5)) || isdigit(*(str + 5)) || *(str + 5) == '_')))
    pr_elsif(str);
  else
    pr_call(str);
}


x86 assembly (clang, -O0):
<pr_CALL_or_QUEST>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x2,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    11d7 <pr_CALL_or_QUEST+0x77>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%edi
call   1070 <isalpha@plt>
cmp    $0x0,%eax
jne    11d7 <pr_CALL_or_QUEST+0x77>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
jne    11d7 <pr_CALL_or_QUEST+0x77>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x5f,%eax
je     11d7 <pr_CALL_or_QUEST+0x77>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1080 <pr_if@plt>
jmp    1252 <pr_CALL_or_QUEST+0xf2>
mov    -0x10(%rbp),%rdi
lea    0xe1e(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1242 <pr_CALL_or_QUEST+0xe2>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%edi
call   1070 <isalpha@plt>
cmp    $0x0,%eax
jne    1242 <pr_CALL_or_QUEST+0xe2>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
jne    1242 <pr_CALL_or_QUEST+0xe2>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x5f,%eax
je     1242 <pr_CALL_or_QUEST+0xe2>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <pr_elsif@plt>
jmp    124d <pr_CALL_or_QUEST+0xed>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <pr_call@plt>
jmp    1252 <pr_CALL_or_QUEST+0xf2>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pr_CALL_or_QUEST>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xea5(%rip),%rsi
mov    $0x2,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
je     1190 <pr_CALL_or_QUEST+0x40>
lea    0xe8d(%rip),%rsi
mov    $0x5,%edx
mov    %rbx,%rdi
call   1040 <strncmp@plt>
test   %eax,%eax
je     11bd <pr_CALL_or_QUEST+0x6d>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <pr_call@plt>
jmp    11e8 <pr_CALL_or_QUEST+0x98>
mov    0x2(%rbx),%r14b
movsbl %r14b,%ebp
mov    %ebp,%edi
call   1060 <isalpha@plt>
test   %eax,%eax
jne    116c <pr_CALL_or_QUEST+0x1c>
add    $0xffffffd0,%ebp
cmp    $0xa,%ebp
jb     116c <pr_CALL_or_QUEST+0x1c>
cmp    $0x5f,%r14b
je     116c <pr_CALL_or_QUEST+0x1c>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <pr_if@plt>
jmp    11e8 <pr_CALL_or_QUEST+0x98>
mov    0x5(%rbx),%r14b
movsbl %r14b,%ebp
mov    %ebp,%edi
call   1060 <isalpha@plt>
test   %eax,%eax
jne    1184 <pr_CALL_or_QUEST+0x34>
add    $0xffffffd0,%ebp
cmp    $0xa,%ebp
jb     1184 <pr_CALL_or_QUEST+0x34>
cmp    $0x5f,%r14b
je     1184 <pr_CALL_or_QUEST+0x34>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <pr_elsif@plt>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"if\00"
@.str.1 = [6 x i8] c"elsif\00"
define i32 @pr_CALL_or_QUEST(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %30
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 2
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = call i32 @isalpha(i32 %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %30, label %14
14: ; preds = %7
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 2
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = call i32 @isdigit(i32 %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %30, label %21
21: ; preds = %14
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 2
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 95
br i1 %26, label %30, label %27
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @pr_if to i32 (i8*, ...)*)(i8* %28)
br label %61
30: ; preds = %21, %14, %7, %1
%31 = load i8*, i8** %3
%32 = call i32 @strncmp(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 5)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %57
34: ; preds = %30
%35 = load i8*, i8** %3
%36 = getelementptr inbounds i8, i8* %35, i64 5
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = call i32 @isalpha(i32 %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %57, label %41
41: ; preds = %34
%42 = load i8*, i8** %3
%43 = getelementptr inbounds i8, i8* %42, i64 5
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = call i32 @isdigit(i32 %45)
%47 = icmp ne i32 %46, 0
br i1 %47, label %57, label %48
48: ; preds = %41
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 5
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 95
br i1 %53, label %57, label %54
54: ; preds = %48
%55 = load i8*, i8** %3
%56 = call i32 (i8*, ...) bitcast (i32 (...)* @pr_elsif to i32 (i8*, ...)*)(i8* %55)
br label %60
57: ; preds = %48, %41, %34, %30
%58 = load i8*, i8** %3
%59 = call i32 (i8*, ...) bitcast (i32 (...)* @pr_call to i32 (i8*, ...)*)(i8* %58)
br label %60
60: ; preds = %57, %54
br label %61
61: ; preds = %60, %27
%62 = load i32, i32* %2
ret i32 %62
}

LLVM IR (-O2):
@.str = [3 x i8] c"if\00"
@.str.1 = [6 x i8] c"elsif\00"
define i32 @pr_CALL_or_QUEST(i8* %0) {
%2 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %17
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 2
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = tail call i32 @isalpha(i32 %7)
%9 = icmp ne i32 %8, 0
%10 = add nsw i32 %7, -48
%11 = icmp ult i32 %10, 10
%12 = select i1 %9, i1 true, i1 %11
%13 = icmp eq i8 %6, 95
%14 = select i1 %12, i1 true, i1 %13
br i1 %14, label %17, label %15
15: ; preds = %4
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr_if to i32 (i8*, ...)*)(i8* %0)
br label %35
17: ; preds = %4, %1
%18 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 5)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %17
%21 = getelementptr inbounds i8, i8* %0, i64 5
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = tail call i32 @isalpha(i32 %23)
%25 = icmp ne i32 %24, 0
%26 = add nsw i32 %23, -48
%27 = icmp ult i32 %26, 10
%28 = select i1 %25, i1 true, i1 %27
%29 = icmp eq i8 %22, 95
%30 = select i1 %28, i1 true, i1 %29
br i1 %30, label %33, label %31
31: ; preds = %20
%32 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr_elsif to i32 (i8*, ...)*)(i8* %0)
br label %35
33: ; preds = %20, %17
%34 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr_call to i32 (i8*, ...)*)(i8* %0)
br label %35
35: ; preds = %31, %33, %15
ret i32 undef
}