#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*/ printf_unfiltered(char *);
void set_logging_command(char *args, int from_tty) {
  printf_unfiltered("\"set logging\" lets you log output to a file.\n");
  printf_unfiltered("Usage: set logging on [FILENAME]\n");
  printf_unfiltered("       set logging off\n");
  printf_unfiltered("       set logging file FILENAME\n");
  printf_unfiltered("       set logging overwrite [on|off]\n");
  printf_unfiltered("       set logging redirect [on|off]\n");
}


x86 assembly (clang, -O0):
<set_logging_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf_unfiltered@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_logging_command>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf0a(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf2c(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf42(%rip),%rdi
call   1030 <printf_unfiltered@plt>
lea    0xf5d(%rip),%rdi
pop    %rax
jmp    1030 <printf_unfiltered@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"\22set logging\22 lets you log output to a file.\0A\00"
@.str.1 = [34 x i8] c"Usage: set logging on [FILENAME]\0A\00"
@.str.2 = [24 x i8] c" set logging off\0A\00"
@.str.3 = [34 x i8] c" set logging file FILENAME\0A\00"
@.str.4 = [39 x i8] c" set logging overwrite [on|off]\0A\00"
@.str.5 = [38 x i8] c" set logging redirect [on|off]\0A\00"
define void @set_logging_command(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf_unfiltered(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"\22set logging\22 lets you log output to a file.\0A\00"
@.str.1 = [34 x i8] c"Usage: set logging on [FILENAME]\0A\00"
@.str.2 = [24 x i8] c" set logging off\0A\00"
@.str.3 = [34 x i8] c" set logging file FILENAME\0A\00"
@.str.4 = [39 x i8] c" set logging overwrite [on|off]\0A\00"
@.str.5 = [38 x i8] c" set logging redirect [on|off]\0A\00"
define void @set_logging_command(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @printf_unfiltered(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
ret void
}