#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*/ Widget;
typedef int /*<<< orphan*/ String;
typedef int Cardinal;

/* Variables and functions */
int /*<<< orphan*/ XtAppWarningMsg(int /*<<< orphan*/, char *, char *, char *,
                                   char *, int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ XtName(int /*<<< orphan*/);
int /*<<< orphan*/ XtWidgetToApplicationContext(int /*<<< orphan*/);
void ShapeError(Widget w) {
  String params[1];
  Cardinal num_params = 1;
  params[0] = XtName(w);
  XtAppWarningMsg(XtWidgetToApplicationContext(w), "shapeUnknown",
                  "xmuReshapeWidget", "XmuLibrary",
                  "Unsupported shape style for Command widget \"%s\"", params,
                  &num_params);
}


x86 assembly (clang, -O0):
<ShapeError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <XtName@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <XtWidgetToApplicationContext@plt>
mov    %eax,%edi
lea    -0x8(%rbp),%r9
lea    0xe9e(%rip),%rsi
lea    0xea4(%rip),%rdx
lea    0xeae(%rip),%rcx
lea    0xeb2(%rip),%r8
lea    -0xc(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <XtAppWarningMsg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShapeError>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
movl   $0x1,0x8(%rsp)
call   1040 <XtName@plt>
mov    %eax,0xc(%rsp)
mov    %ebx,%edi
call   1050 <XtWidgetToApplicationContext@plt>
lea    0x8(%rsp),%rcx
mov    %rcx,(%rsp)
lea    0xea1(%rip),%rsi
lea    0xea7(%rip),%rdx
lea    0xeb1(%rip),%rcx
lea    0xeb5(%rip),%r8
lea    0xc(%rsp),%r9
mov    %eax,%edi
call   1030 <XtAppWarningMsg@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"shapeUnknown\00"
@.str.1 = [17 x i8] c"xmuReshapeWidget\00"
@.str.2 = [11 x i8] c"XmuLibrary\00"
@.str.3 = [48 x i8] c"Unsupported shape style for Command widget \22%s\22\00"
define void @ShapeError(i32 %0) {
%2 = alloca i32
%3 = alloca [1 x i32]
%4 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %4
%5 = load i32, i32* %2
%6 = call i32 @XtName(i32 %5)
%7 = getelementptr inbounds [1 x i32], [1 x i32]* %3, i64 0, i64 0
store i32 %6, i32* %7
%8 = load i32, i32* %2
%9 = call i32 @XtWidgetToApplicationContext(i32 %8)
%10 = getelementptr inbounds [1 x i32], [1 x i32]* %3, i64 0, i64 0
%11 = call i32 @XtAppWarningMsg(i32 %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32* %10, i32* %4)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"shapeUnknown\00"
@.str.1 = [17 x i8] c"xmuReshapeWidget\00"
@.str.2 = [11 x i8] c"XmuLibrary\00"
@.str.3 = [48 x i8] c"Unsupported shape style for Command widget \22%s\22\00"
define void @ShapeError(i32 %0) {
%2 = alloca [1 x i32]
%3 = alloca i32
%4 = bitcast [1 x i32]* %2 to i8*
%5 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%6 = tail call i32 @XtName(i32 %0)
%7 = getelementptr inbounds [1 x i32], [1 x i32]* %2, i64 0, i64 0
store i32 %6, i32* %7
%8 = tail call i32 @XtWidgetToApplicationContext(i32 %0)
%9 = call i32 @XtAppWarningMsg(i32 %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32* %7, i32* %3)
ret void
}