#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 */
int /*<<< orphan*/ *strchr(char *, char);
int /*<<< orphan*/ *strstr(char *, char *);
int analyze_isStaticDefineLine_s(char *line) {
  if ((strstr(line, "static") != NULL) && (strchr(line, '(') != NULL) &&
      (strchr(line, ')') != NULL) && (strchr(line, ';') != NULL) &&
      (line[0] != '#')) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<analyze_isStaticDefineLine_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11aa <analyze_isStaticDefineLine_s+0x8a>
mov    -0x10(%rbp),%rdi
mov    $0x28,%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11aa <analyze_isStaticDefineLine_s+0x8a>
mov    -0x10(%rbp),%rdi
mov    $0x29,%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11aa <analyze_isStaticDefineLine_s+0x8a>
mov    -0x10(%rbp),%rdi
mov    $0x3b,%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11aa <analyze_isStaticDefineLine_s+0x8a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     11aa <analyze_isStaticDefineLine_s+0x8a>
movl   $0x1,-0x4(%rbp)
jmp    11b1 <analyze_isStaticDefineLine_s+0x91>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<analyze_isStaticDefineLine_s>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     1175 <analyze_isStaticDefineLine_s+0x55>
mov    %rbx,%rdi
mov    $0x28,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1175 <analyze_isStaticDefineLine_s+0x55>
mov    %rbx,%rdi
mov    $0x29,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1175 <analyze_isStaticDefineLine_s+0x55>
mov    %rbx,%rdi
mov    $0x3b,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1175 <analyze_isStaticDefineLine_s+0x55>
mov    $0x1,%eax
cmpb   $0x23,(%rbx)
jne    1177 <analyze_isStaticDefineLine_s+0x57>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"static\00"
define i32 @analyze_isStaticDefineLine_s(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32* @strstr(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32* %5, null
br i1 %6, label %7, label %26
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32* @strchr(i8* %8, i8 signext 40)
%10 = icmp ne i32* %9, null
br i1 %10, label %11, label %26
11: ; preds = %7
%12 = load i8*, i8** %3
%13 = call i32* @strchr(i8* %12, i8 signext 41)
%14 = icmp ne i32* %13, null
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i32* @strchr(i8* %16, i8 signext 59)
%18 = icmp ne i32* %17, null
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load i8*, i8** %3
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 35
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 1, i32* %2
br label %27
26: ; preds = %19, %15, %11, %7, %1
store i32 0, i32* %2
br label %27
27: ; preds = %26, %25
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
@.str = [7 x i8] c"static\00"
define i32 @analyze_isStaticDefineLine_s(i8* %0) {
%2 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %16, label %4
4: ; preds = %1
%5 = tail call i32* @strchr(i8* %0, i8 signext 40)
%6 = icmp eq i32* %5, null
br i1 %6, label %16, label %7
7: ; preds = %4
%8 = tail call i32* @strchr(i8* %0, i8 signext 41)
%9 = icmp eq i32* %8, null
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = tail call i32* @strchr(i8* %0, i8 signext 59)
%12 = icmp eq i32* %11, null
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i8, i8* %0
%15 = icmp eq i8 %14, 35
br i1 %15, label %16, label %17
16: ; preds = %13, %10, %7, %4, %1
br label %17
17: ; preds = %13, %16
%18 = phi i32 [ 0, %16 ], [ 1, %13 ]
ret i32 %18
}