#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*/ seatest_simple_test_result(int, char *, char const *,
                                              unsigned int);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
scalar_t__ strstr(char *, char *);
void seatest_assert_string_doesnt_contain(char *expected, char *actual,
                                          const char *function,
                                          unsigned int line) {
  char s[100000];
  sprintf(s, "Expected %s not to have %s in it", actual, expected);
  seatest_simple_test_result(strstr(actual, expected) == 0, s, function, line);
}


x86 assembly (clang, -O0):
<seatest_assert_string_doesnt_contain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186c0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
lea    -0x186c0(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xea0(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    -0x186c0(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <seatest_simple_test_result@plt>
add    $0x186c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<seatest_assert_string_doesnt_contain>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x186a0,%rsp
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xeae(%rip),%rsi
mov    %rsp,%r12
mov    %r12,%rdi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   1040 <sprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <strstr@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <seatest_simple_test_result@plt>
add    $0x186a0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Expected %s not to have %s in it\00"
define void @seatest_assert_string_doesnt_contain(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca [100000 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = getelementptr inbounds [100000 x i8], [100000 x i8]* %9, i64 0, i64 0
%11 = load i8*, i8** %6
%12 = load i8*, i8** %5
%13 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12)
%14 = load i8*, i8** %6
%15 = load i8*, i8** %5
%16 = call i64 @strstr(i8* %14, i8* %15)
%17 = icmp eq i64 %16, 0
%18 = zext i1 %17 to i32
%19 = getelementptr inbounds [100000 x i8], [100000 x i8]* %9, i64 0, i64 0
%20 = load i8*, i8** %7
%21 = load i32, i32* %8
%22 = call i32 @seatest_simple_test_result(i32 %18, i8* %19, i8* %20, i32 %21)
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"Expected %s not to have %s in it\00"
define void @seatest_assert_string_doesnt_contain(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca [100000 x i8]
%6 = getelementptr inbounds [100000 x i8], [100000 x i8]* %5, i64 0, i64 0
%7 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %0)
%8 = tail call i64 @strstr(i8* %1, i8* %0)
%9 = icmp eq i64 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @seatest_simple_test_result(i32 %10, i8* %6, i8* %2, i32 %3)
ret void
}