#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int fid;
  int direction;
  int min_char_or_byte2;
  int max_char_or_byte2;
  int min_byte1;
  int max_byte1;
  int all_chars_exist;
  int default_char;
  int n_properties;
  int ascent;
  int descent;
  int /*<<< orphan*/ *per_char;
  int /*<<< orphan*/ max_bounds;
  int /*<<< orphan*/ min_bounds;
};
typedef TYPE_1__ XFontStruct;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
TYPE_1__ *XLoadQueryFont(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printc(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, int, int);
int main(int ac, char **av) {
  Display *d;
  XFontStruct *fs;
  char *font;
  if (ac > 1)
    font = av[1];
  else
    font = "-adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1";
  d = XOpenDisplay(NULL);
  if (!d)
    exit(1);
  fs = XLoadQueryFont(d, font);
  if (fs) {
    int i, size;
    printf("font %s\n", font);
    printf("fid 0x%x\n", fs->fid);
    printf("direction %d\n", fs->direction);
    printf("min_byte2 %d\n", fs->min_char_or_byte2);
    printf("max_byte2 %d\n", fs->max_char_or_byte2);
    printf("min_byte1 %d\n", fs->min_byte1);
    printf("max_byte1 %d\n", fs->max_byte1);
    printf("all_exist %d\n", fs->all_chars_exist);
    printf("default_char %d\n", fs->default_char);
    printf("n_props %d\n", fs->n_properties);
    printf("ascent %d\n", fs->ascent);
    printf("descent %d\n", fs->descent);
    printc("min bounds", &fs->min_bounds);
    printc("max bounds", &fs->max_bounds);
    size = (fs->max_byte1 - fs->min_byte1 + 1) *
           (fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1);
    printf("size %d\n", size);
    for (i = 0; i < size; ++i) {
      char buf[32];
      if (!fs->per_char)
        continue;
      sprintf(buf, "char %d (%d):", i, i + fs->min_char_or_byte2);
      printc(buf, &fs->per_char[i]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1191 <main+0x31>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
jmp    119c <main+0x3c>
lea    0xe68(%rip),%rax
mov    %rax,-0x28(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <XOpenDisplay@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11be <main+0x5e>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <XLoadQueryFont@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     13a6 <main+0x246>
mov    -0x28(%rbp),%rsi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%esi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x14(%rax),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%esi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x1c(%rax),%esi
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x20(%rax),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x24(%rax),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    0x28(%rax),%esi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
add    $0x3c,%rsi
lea    0xdf9(%rip),%rdi
call   1060 <printc@plt>
mov    -0x20(%rbp),%rsi
add    $0x38,%rsi
lea    0xdf0(%rip),%rdi
call   1060 <printc@plt>
mov    -0x20(%rbp),%rax
mov    0x14(%rax),%eax
mov    -0x20(%rbp),%rcx
sub    0x10(%rcx),%eax
add    $0x1,%eax
mov    -0x20(%rbp),%rcx
mov    0xc(%rcx),%ecx
mov    -0x20(%rbp),%rdx
sub    0x8(%rdx),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%esi
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    13a1 <main+0x241>
mov    -0x20(%rbp),%rax
cmpq   $0x0,0x30(%rax)
jne    135a <main+0x1fa>
jmp    1393 <main+0x233>
lea    -0x50(%rbp),%rdi
mov    -0x2c(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    -0x20(%rbp),%rax
add    0x8(%rax),%ecx
lea    0xd87(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x30(%rax),%rsi
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
call   1060 <printc@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    133a <main+0x1da>
jmp    13a6 <main+0x246>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jl     1179 <main+0x19>
mov    0x8(%rsi),%r15
jmp    1180 <main+0x20>
lea    0xe80(%rip),%r15
xor    %edi,%edi
call   1050 <XOpenDisplay@plt>
test   %rax,%rax
je     1338 <main+0x1d8>
mov    %rax,%rdi
mov    %r15,%rsi
call   1040 <XLoadQueryFont@plt>
test   %rax,%rax
je     1327 <main+0x1c7>
mov    %rax,%r14
lea    0xe91(%rip),%rdi
xor    %ebx,%ebx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%r14),%esi
lea    0xe84(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%r14),%esi
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%r14),%esi
lea    0xe78(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%r14),%esi
lea    0xe74(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%r14),%esi
lea    0xe70(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%r14),%esi
lea    0xe6c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%r14),%esi
lea    0xe68(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%r14),%esi
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%r14),%esi
lea    0xe63(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%r14),%esi
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x28(%r14),%esi
lea    0xe56(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x3c(%r14),%rsi
lea    0xe50(%rip),%rdi
call   1060 <printc@plt>
mov    %r14,%rsi
add    $0x38,%rsi
lea    0xe48(%rip),%rdi
call   1060 <printc@plt>
mov    0xc(%r14),%ebp
mov    0x14(%r14),%eax
sub    0x10(%r14),%eax
add    $0x1,%eax
sub    0x8(%r14),%ebp
add    $0x1,%ebp
imul   %eax,%ebp
lea    0xe2e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
test   %ebp,%ebp
jle    1327 <main+0x1c7>
mov    %ebp,%r13d
shl    $0x2,%r13
lea    0xe1c(%rip),%r15
mov    %rsp,%r12
xor    %ebp,%ebp
jmp    12fc <main+0x19c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebx
add    $0x4,%rbp
cmp    %rbp,%r13
je     1327 <main+0x1c7>
cmpq   $0x0,0x30(%r14)
je     12f0 <main+0x190>
mov    0x8(%r14),%ecx
add    %ebx,%ecx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1070 <sprintf@plt>
mov    0x30(%r14),%rsi
add    %rbp,%rsi
mov    %r12,%rdi
call   1060 <printc@plt>
jmp    12f0 <main+0x190>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32*, i32, i32 }
@.str = [63 x i8] c"-adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1\00"
@.str.1 = [9 x i8] c"font %s\0A\00"
@.str.2 = [10 x i8] c"fid 0x%x\0A\00"
@.str.3 = [14 x i8] c"direction %d\0A\00"
@.str.4 = [14 x i8] c"min_byte2 %d\0A\00"
@.str.5 = [14 x i8] c"max_byte2 %d\0A\00"
@.str.6 = [14 x i8] c"min_byte1 %d\0A\00"
@.str.7 = [14 x i8] c"max_byte1 %d\0A\00"
@.str.8 = [14 x i8] c"all_exist %d\0A\00"
@.str.9 = [17 x i8] c"default_char %d\0A\00"
@.str.10 = [12 x i8] c"n_props %d\0A\00"
@.str.11 = [11 x i8] c"ascent %d\0A\00"
@.str.12 = [12 x i8] c"descent %d\0A\00"
@.str.13 = [11 x i8] c"min bounds\00"
@.str.14 = [11 x i8] c"max bounds\00"
@.str.15 = [9 x i8] c"size %d\0A\00"
@.str.16 = [14 x i8] c"char %d (%d):\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca %struct.TYPE_3__*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca [32 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
store i8* %17, i8** %8
br label %19
18: ; preds = %2
store i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8** %8
br label %19
19: ; preds = %18, %14
%20 = call i32* @XOpenDisplay(i32* null)
store i32* %20, i32** %6
%21 = load i32*, i32** %6
%22 = icmp ne i32* %21, null
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %19
%26 = load i32*, i32** %6
%27 = load i8*, i8** %8
%28 = call %struct.TYPE_3__* @XLoadQueryFont(i32* %26, i8* %27)
store %struct.TYPE_3__* %28, %struct.TYPE_3__** %7
%29 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%30 = icmp ne %struct.TYPE_3__* %29, null
br i1 %30, label %31, label %134
31: ; preds = %25
%32 = load i8*, i8** %8
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %32)
%34 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%35 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %34, i32 0, i32 0
%36 = load i32, i32* %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %36)
%38 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%39 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %38, i32 0, i32 1
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%43 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %42, i32 0, i32 2
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%47 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %46, i32 0, i32 3
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %48)
%50 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%51 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %50, i32 0, i32 4
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %52)
%54 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%55 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %54, i32 0, i32 5
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %56)
%58 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%59 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %58, i32 0, i32 6
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %60)
%62 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%63 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %62, i32 0, i32 7
%64 = load i32, i32* %63
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %64)
%66 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%67 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %66, i32 0, i32 8
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %68)
%70 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%71 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %70, i32 0, i32 9
%72 = load i32, i32* %71
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %72)
%74 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%75 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %74, i32 0, i32 10
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 %76)
%78 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%79 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %78, i32 0, i32 13
%80 = call i32 @printc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32* %79)
%81 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%82 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %81, i32 0, i32 12
%83 = call i32 @printc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32* %82)
%84 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%85 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %84, i32 0, i32 5
%86 = load i32, i32* %85
%87 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%88 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %87, i32 0, i32 4
%89 = load i32, i32* %88
%90 = sub nsw i32 %86, %89
%91 = add nsw i32 %90, 1
%92 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%93 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %92, i32 0, i32 3
%94 = load i32, i32* %93
%95 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%96 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %95, i32 0, i32 2
%97 = load i32, i32* %96
%98 = sub nsw i32 %94, %97
%99 = add nsw i32 %98, 1
%100 = mul nsw i32 %91, %99
store i32 %100, i32* %10
%101 = load i32, i32* %10
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %101)
store i32 0, i32* %9
br label %103
103: ; preds = %130, %31
%104 = load i32, i32* %9
%105 = load i32, i32* %10
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %133
107: ; preds = %103
%108 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%109 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %108, i32 0, i32 11
%110 = load i32*, i32** %109
%111 = icmp ne i32* %110, null
br i1 %111, label %113, label %112
112: ; preds = %107
br label %130
113: ; preds = %107
%114 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%115 = load i32, i32* %9
%116 = load i32, i32* %9
%117 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%118 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %117, i32 0, i32 2
%119 = load i32, i32* %118
%120 = add nsw i32 %116, %119
%121 = call i32 @sprintf(i8* %114, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i32 %115, i32 %120)
%122 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%123 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%124 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %123, i32 0, i32 11
%125 = load i32*, i32** %124
%126 = load i32, i32* %9
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, i32* %125, i64 %127
%129 = call i32 @printc(i8* %122, i32* %128)
br label %130
130: ; preds = %113, %112
%131 = load i32, i32* %9
%132 = add nsw i32 %131, 1
store i32 %132, i32* %9
br label %103
133: ; preds = %103
br label %134
134: ; preds = %133, %25
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32*, i32, i32 }
@.str = [63 x i8] c"-adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1\00"
@.str.1 = [9 x i8] c"font %s\0A\00"
@.str.2 = [10 x i8] c"fid 0x%x\0A\00"
@.str.3 = [14 x i8] c"direction %d\0A\00"
@.str.4 = [14 x i8] c"min_byte2 %d\0A\00"
@.str.5 = [14 x i8] c"max_byte2 %d\0A\00"
@.str.6 = [14 x i8] c"min_byte1 %d\0A\00"
@.str.7 = [14 x i8] c"max_byte1 %d\0A\00"
@.str.8 = [14 x i8] c"all_exist %d\0A\00"
@.str.9 = [17 x i8] c"default_char %d\0A\00"
@.str.10 = [12 x i8] c"n_props %d\0A\00"
@.str.11 = [11 x i8] c"ascent %d\0A\00"
@.str.12 = [12 x i8] c"descent %d\0A\00"
@.str.13 = [11 x i8] c"min bounds\00"
@.str.14 = [11 x i8] c"max bounds\00"
@.str.15 = [9 x i8] c"size %d\0A\00"
@.str.16 = [14 x i8] c"char %d (%d):\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = icmp sgt i32 %0, 1
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
br label %8
8: ; preds = %2, %5
%9 = phi i8* [ %7, %5 ], [ getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), %2 ]
%10 = tail call i32* @XOpenDisplay(i32* null)
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %8
%15 = tail call %struct.TYPE_3__* @XLoadQueryFont(i32* %10, i8* %9)
%16 = icmp eq %struct.TYPE_3__* %15, null
br i1 %16, label %86, label %17
17: ; preds = %14
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%19 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 0
%20 = load i32, i32* %19
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 1
%23 = load i32, i32* %22
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 2
%26 = load i32, i32* %25
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 3
%29 = load i32, i32* %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 4
%32 = load i32, i32* %31
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 5
%35 = load i32, i32* %34
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %35)
%37 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 6
%38 = load i32, i32* %37
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 7
%41 = load i32, i32* %40
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 8
%44 = load i32, i32* %43
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 9
%47 = load i32, i32* %46
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %47)
%49 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 10
%50 = load i32, i32* %49
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 %50)
%52 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 13
%53 = tail call i32 @printc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32* %52)
%54 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 12
%55 = tail call i32 @printc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32* %54)
%56 = load i32, i32* %34
%57 = load i32, i32* %31
%58 = add i32 %56, 1
%59 = sub i32 %58, %57
%60 = load i32, i32* %28
%61 = load i32, i32* %25
%62 = add i32 %60, 1
%63 = sub i32 %62, %61
%64 = mul nsw i32 %63, %59
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %64)
%66 = icmp sgt i32 %64, 0
br i1 %66, label %67, label %86
67: ; preds = %17
%68 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%69 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i64 0, i32 11
%70 = zext i32 %64 to i64
br label %71
71: ; preds = %67, %83
%72 = phi i64 [ 0, %67 ], [ %84, %83 ]
%73 = load i32*, i32** %69
%74 = icmp eq i32* %73, null
br i1 %74, label %83, label %75
75: ; preds = %71
%76 = load i32, i32* %25
%77 = trunc i64 %72 to i32
%78 = add nsw i32 %76, %77
%79 = call i32 @sprintf(i8* %68, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i32 %77, i32 %78)
%80 = load i32*, i32** %69
%81 = getelementptr inbounds i32, i32* %80, i64 %72
%82 = call i32 @printc(i8* %68, i32* %81)
br label %83
83: ; preds = %71, %75
%84 = add nuw nsw i64 %72, 1
%85 = icmp eq i64 %84, %70
br i1 %85, label %86, label %71
86: ; preds = %83, %17, %14
ret i32 0
}