#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__ strstr(char const *const, char *);
bool checkFor_FILE_PLACEHOLDER(const char *const *args) {
  for (int x = 0; args[x]; x++) {
    if (strstr(args[x], "___FILE___")) {
      return true;
    }
  }
  return false;
}


x86 assembly (clang, -O0):
<checkFor_FILE_PLACEHOLDER>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1177 <checkFor_FILE_PLACEHOLDER+0x67>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xeb7(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
je     1164 <checkFor_FILE_PLACEHOLDER+0x54>
movl   $0x1,-0x4(%rbp)
jmp    117e <checkFor_FILE_PLACEHOLDER+0x6e>
jmp    1169 <checkFor_FILE_PLACEHOLDER+0x59>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1123 <checkFor_FILE_PLACEHOLDER+0x13>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkFor_FILE_PLACEHOLDER>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1153 <checkFor_FILE_PLACEHOLDER+0x43>
add    $0x8,%rbx
lea    0xed6(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %r14,%rsi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1149 <checkFor_FILE_PLACEHOLDER+0x39>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <checkFor_FILE_PLACEHOLDER+0x20>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
jmp    1155 <checkFor_FILE_PLACEHOLDER+0x45>
xor    %ecx,%ecx
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"___FILE___\00"
define i32 @checkFor_FILE_PLACEHOLDER(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %17, label %8
4: ; preds = %8
%5 = getelementptr inbounds i8*, i8** %0, i64 %13
%6 = load i8*, i8** %5
%7 = icmp eq i8* %6, null
br i1 %7, label %14, label %8
8: ; preds = %1, %4
%9 = phi i64 [ %13, %4 ], [ 0, %1 ]
%10 = phi i8* [ %6, %4 ], [ %2, %1 ]
%11 = tail call i64 @strstr(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
%13 = add nuw i64 %9, 1
br i1 %12, label %4, label %14
14: ; preds = %8, %4
%15 = xor i1 %12, true
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %14, %1
%18 = phi i32 [ 0, %1 ], [ %16, %14 ]
ret i32 %18
}