#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
void format_error(FILE *f, const char *seq_name, const char *err) {
  if (NULL != seq_name)
    fprintf(f, "PRIMER PICKING RESULTS FOR %s\n\n", seq_name);
  if (err != NULL)
    fprintf(f, "INPUT PROBLEM: %s\n\n", err);
}


x86 assembly (clang, -O0):
<format_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
je     1144 <format_error+0x34>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xec1(%rip),%rsi
call   1030 <fprintf@plt>
cmpq   $0x0,-0x18(%rbp)
je     1163 <format_error+0x53>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<format_error>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rdi,%r14
test   %rsi,%rsi
je     1131 <format_error+0x21>
mov    %rsi,%rdx
lea    0xed7(%rip),%rsi
mov    %r14,%rdi
call   1030 <fprintf@plt>
test   %rbx,%rbx
je     114f <format_error+0x3f>
lea    0xee3(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [32 x i8] c"PRIMER PICKING RESULTS FOR %s\0A\0A\00"
@.str.1 = [20 x i8] c"INPUT PROBLEM: %s\0A\0A\00"
define void @format_error(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %5
%8 = icmp ne i8* null, %7
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32*, i32** %4
%11 = load i8*, i8** %5
%12 = call i32 @fprintf(i32* %10, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %11)
br label %13
13: ; preds = %9, %3
%14 = load i8*, i8** %6
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i32*, i32** %4
%18 = load i8*, i8** %6
%19 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %18)
br label %20
20: ; preds = %16, %13
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"PRIMER PICKING RESULTS FOR %s\0A\0A\00"
@.str.1 = [20 x i8] c"INPUT PROBLEM: %s\0A\0A\00"
define void @format_error(i32* nocapture %0, i8* %1, i8* %2) {
%4 = icmp eq i8* %1, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %1)
br label %7
7: ; preds = %5, %3
%8 = icmp eq i8* %2, null
br i1 %8, label %11, label %9
9: ; preds = %7
%10 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %2)
br label %11
11: ; preds = %9, %7
ret void
}