dodcls(stclass) int stclass;
{
  blanks();
  if (amatch("char", 4))
    declglb(1, stclass);
  else if (amatch("int", 3))
    declglb(2, stclass);
  else if (stclass == 1)
    return (0);
  else
    declglb(2, stclass);
  ns();
  return (1);
}


x86 assembly (clang, -O0):
<dodcls>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <blanks@plt>
lea    0xea7(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1050 <amatch@plt>
cmp    $0x0,%eax
je     1182 <dodcls+0x42>
mov    -0x8(%rbp),%esi
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <declglb@plt>
jmp    11e1 <dodcls+0xa1>
lea    0xe7c(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1050 <amatch@plt>
cmp    $0x0,%eax
je     11b2 <dodcls+0x72>
mov    -0x8(%rbp),%esi
mov    $0x2,%edi
mov    $0x0,%al
call   1040 <declglb@plt>
jmp    11dc <dodcls+0x9c>
cmpl   $0x1,-0x8(%rbp)
jne    11c8 <dodcls+0x88>
movl   $0x0,-0x4(%rbp)
jmp    11ef <dodcls+0xaf>
mov    -0x8(%rbp),%esi
mov    $0x2,%edi
mov    $0x0,%al
call   1040 <declglb@plt>
jmp    11dc <dodcls+0x9c>
jmp    11e1 <dodcls+0xa1>
mov    $0x0,%al
call   1060 <ns@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dodcls>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <blanks@plt>
lea    0xeab(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <amatch@plt>
mov    $0x1,%edi
test   %eax,%eax
je     1188 <dodcls+0x48>
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <declglb@plt>
xor    %eax,%eax
call   1060 <ns@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xe76(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <amatch@plt>
mov    $0x2,%edi
test   %eax,%eax
jne    116a <dodcls+0x2a>
cmp    $0x1,%ebx
je     117f <dodcls+0x3f>
jmp    116a <dodcls+0x2a>

LLVM IR (-O0):
@.str = [5 x i8] c"char\00"
@.str.1 = [4 x i8] c"int\00"
define i32 @dodcls(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 (...) @blanks()
%5 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @amatch to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %3
%9 = call i32 (i32, i32, ...) bitcast (i32 (...)* @declglb to i32 (i32, i32, ...)*)(i32 1, i32 %8)
br label %25
10: ; preds = %1
%11 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @amatch to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %3
%15 = call i32 (i32, i32, ...) bitcast (i32 (...)* @declglb to i32 (i32, i32, ...)*)(i32 2, i32 %14)
br label %24
16: ; preds = %10
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %20
19: ; preds = %16
store i32 0, i32* %2
br label %27
20: ; preds = %16
%21 = load i32, i32* %3
%22 = call i32 (i32, i32, ...) bitcast (i32 (...)* @declglb to i32 (i32, i32, ...)*)(i32 2, i32 %21)
br label %23
23: ; preds = %20
br label %24
24: ; preds = %23, %13
br label %25
25: ; preds = %24, %7
%26 = call i32 (...) @ns()
store i32 1, i32* %2
br label %27
27: ; preds = %25, %19
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
@.str = [5 x i8] c"char\00"
@.str.1 = [4 x i8] c"int\00"
define i32 @dodcls(i32 %0) {
%2 = tail call i32 (...) @blanks()
%3 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @amatch to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @amatch to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%7 = icmp eq i32 %6, 0
%8 = icmp eq i32 %0, 1
%9 = and i1 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %5, %1
%11 = phi i32 [ 1, %1 ], [ 2, %5 ]
%12 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @declglb to i32 (i32, i32, ...)*)(i32 %11, i32 %0)
%13 = tail call i32 (...) @ns()
br label %14
14: ; preds = %5, %10
%15 = phi i32 [ 1, %10 ], [ 0, %5 ]
ret i32 %15
}