#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*/ free(char *);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *);
int /*<<< orphan*/ separate_test(char const *, char **, char **, char **);
void assert_is_false(bool condition, const char *test_name) {
  char *function = NULL;
  char *scenario = NULL;
  char *expected_result = NULL;
  separate_test(test_name, &function, &scenario, &expected_result);
  if (condition == false) {
    printf("%50s  %30s %30s %10s \n", function, scenario, expected_result,
           "SUCCESS");
  } else {
    printf("%50s %30s %30s 10%s \n", function, scenario, expected_result,
           "FAILED");
  }
  free(function);
  free(scenario);
  free(expected_result);
}


x86 assembly (clang, -O0):
<assert_is_false>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1050 <separate_test@plt>
cmpl   $0x0,-0x4(%rbp)
jne    119a <assert_is_false+0x6a>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xe77(%rip),%rdi
lea    0xe87(%rip),%r8
call   1040 <printf@plt>
jmp    11b9 <assert_is_false+0x89>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xe72(%rip),%rdi
lea    0xe81(%rip),%r8
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<assert_is_false>:
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rax
mov    %edi,%ebx
movq   $0x0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rax,%rdi
call   1050 <separate_test@plt>
mov    0x18(%rsp),%rsi
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
test   %ebx,%ebx
je     118f <assert_is_false+0x5f>
lea    0xe99(%rip),%rdi
lea    0xea8(%rip),%r8
jmp    119d <assert_is_false+0x6d>
lea    0xe6a(%rip),%rdi
lea    0xe7a(%rip),%r8
call   1040 <printf@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"%50s %30s %30s %10s \0A\00"
@.str.1 = [8 x i8] c"SUCCESS\00"
@.str.2 = [22 x i8] c"%50s %30s %30s 10%s \0A\00"
@.str.3 = [7 x i8] c"FAILED\00"
define void @assert_is_false(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
store i8* null, i8** %5
store i8* null, i8** %6
store i8* null, i8** %7
%8 = load i8*, i8** %4
%9 = call i32 @separate_test(i8* %8, i8** %5, i8** %6, i8** %7)
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8*, i8** %5
%14 = load i8*, i8** %6
%15 = load i8*, i8** %7
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %13, i8* %14, i8* %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %22
17: ; preds = %2
%18 = load i8*, i8** %5
%19 = load i8*, i8** %6
%20 = load i8*, i8** %7
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %18, i8* %19, i8* %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %17, %12
%23 = load i8*, i8** %5
%24 = call i32 @free(i8* %23)
%25 = load i8*, i8** %6
%26 = call i32 @free(i8* %25)
%27 = load i8*, i8** %7
%28 = call i32 @free(i8* %27)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"%50s %30s %30s %10s \0A\00"
@.str.1 = [8 x i8] c"SUCCESS\00"
@.str.2 = [22 x i8] c"%50s %30s %30s 10%s \0A\00"
@.str.3 = [7 x i8] c"FAILED\00"
define void @assert_is_false(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%7 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%8 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%9 = call i32 @separate_test(i8* %1, i8** %3, i8** %4, i8** %5)
%10 = icmp eq i32 %0, 0
%11 = load i8*, i8** %3
%12 = load i8*, i8** %4
%13 = load i8*, i8** %5
br i1 %10, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %2
%17 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
%19 = load i8*, i8** %3
%20 = call i32 @free(i8* %19)
%21 = load i8*, i8** %4
%22 = call i32 @free(i8* %21)
%23 = load i8*, i8** %5
%24 = call i32 @free(i8* %23)
ret void
}