#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ isspace(char);
char *mod_end(char *, int /*<<< orphan*/);
char *mod_start(char *, int /*<<< orphan*/);
int starts_code(char *line, char *filename, int lineno) {
  char *tail;
  if (mod_start(line, 0) != line + 2)
    return 0;
  tail = mod_end(line + 2, 0);
  if (tail == NULL || *tail++ != '=')
    return 0;
  while (isspace(*tail))
    tail++;
  return (*tail == '\0');
}


x86 assembly (clang, -O0):
<starts_code>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1050 <mod_start@plt>
mov    -0x10(%rbp),%rcx
add    $0x2,%rcx
cmp    %rcx,%rax
je     116b <starts_code+0x3b>
movl   $0x0,-0x4(%rbp)
jmp    11f1 <starts_code+0xc1>
mov    -0x10(%rbp),%rdi
add    $0x2,%rdi
xor    %esi,%esi
call   1030 <mod_end@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     11a4 <starts_code+0x74>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x28(%rbp)
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     11b0 <starts_code+0x80>
movl   $0x0,-0x4(%rbp)
jmp    11f1 <starts_code+0xc1>
jmp    11b5 <starts_code+0x85>
mov    -0x28(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     11dc <starts_code+0xac>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    11b5 <starts_code+0x85>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<starts_code>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %ebp,%ebp
xor    %esi,%esi
call   1050 <mod_start@plt>
add    $0x2,%rbx
cmp    %rbx,%rax
je     1151 <starts_code+0x21>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
xor    %ebp,%ebp
mov    %rax,%rdi
xor    %esi,%esi
call   1030 <mod_end@plt>
test   %rax,%rax
je     1148 <starts_code+0x18>
mov    %rax,%rbx
cmpb   $0x3d,(%rax)
jne    1148 <starts_code+0x18>
add    $0x1,%rbx
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1040 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1170 <starts_code+0x40>
xor    %ebp,%ebp
cmpb   $0x0,-0x1(%rbx)
sete   %bpl
jmp    1148 <starts_code+0x18>

LLVM IR (-O0):
define i32 @starts_code(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%9 = load i8*, i8** %5
%10 = call i8* @mod_start(i8* %9, i32 0)
%11 = load i8*, i8** %5
%12 = getelementptr inbounds i8, i8* %11, i64 2
%13 = icmp ne i8* %10, %12
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 0, i32* %4
br label %43
15: ; preds = %3
%16 = load i8*, i8** %5
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = call i8* @mod_end(i8* %17, i32 0)
store i8* %18, i8** %8
%19 = load i8*, i8** %8
%20 = icmp eq i8* %19, null
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load i8*, i8** %8
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %8
%24 = load i8, i8* %22
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 61
br i1 %26, label %27, label %28
27: ; preds = %21, %15
store i32 0, i32* %4
br label %43
28: ; preds = %21
br label %29
29: ; preds = %34, %28
%30 = load i8*, i8** %8
%31 = load i8, i8* %30
%32 = call i64 @isspace(i8 signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i8*, i8** %8
%36 = getelementptr inbounds i8, i8* %35, i32 1
store i8* %36, i8** %8
br label %29
37: ; preds = %29
%38 = load i8*, i8** %8
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
store i32 %42, i32* %4
br label %43
43: ; preds = %37, %27, %14
%44 = load i32, i32* %4
ret i32 %44
}

LLVM IR (-O2):
define i32 @starts_code(i8* %0, i8* nocapture readnone %1, i32 %2) {
%4 = tail call i8* @mod_start(i8* %0, i32 0)
%5 = getelementptr inbounds i8, i8* %0, i64 2
%6 = icmp eq i8* %4, %5
br i1 %6, label %7, label %23
7: ; preds = %3
%8 = tail call i8* @mod_end(i8* %4, i32 0)
%9 = icmp eq i8* %8, null
br i1 %9, label %23, label %10
10: ; preds = %7
%11 = load i8, i8* %8
%12 = icmp eq i8 %11, 61
br i1 %12, label %13, label %23
13: ; preds = %10, %13
%14 = phi i8* [ %15, %13 ], [ %8, %10 ]
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = load i8, i8* %15
%17 = tail call i64 @isspace(i8 signext %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %13
19: ; preds = %13
%20 = load i8, i8* %15
%21 = icmp eq i8 %20, 0
%22 = zext i1 %21 to i32
br label %23
23: ; preds = %7, %10, %3, %19
%24 = phi i32 [ %22, %19 ], [ 0, %3 ], [ 0, %10 ], [ 0, %7 ]
ret i32 %24
}