#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 *, ...);
int /*<<< orphan*/ gen_bound(int /*<<< orphan*/ *, char *, int, int);
int /*<<< orphan*/ gen_fluffval(int /*<<< orphan*/ *, int, int, int, char *);
int /*<<< orphan*/ gen_lohi(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ gen_my_bound(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ gen_reg_test(int /*<<< orphan*/ *, char *, int, int);
int /*<<< orphan*/ gen_set_bound(int /*<<< orphan*/ *, char *, int, int);
void gen_set_fluff(FILE *outfile, char *regname, int dim, int fluffval,
                   int unk_fluff, int lohi, int strided, int wrapfluff) {
  gen_lohi(outfile, lohi);
  fprintf(outfile, " = ");
  gen_my_bound(outfile, lohi, dim);
  if (lohi == 0) {
    fprintf(outfile, "-");
  } else {
    fprintf(outfile, "+");
  }
  gen_fluffval(outfile, fluffval, unk_fluff, dim, regname);
  fprintf(outfile, ";\n");
  if (!wrapfluff) {
    gen_reg_test(outfile, regname, lohi, dim);
  }
  gen_lohi(outfile, (((lohi) == 0) ? 1 : 0));
  fprintf(outfile, " = ");
  gen_my_bound(outfile, lohi, dim);
  if (lohi == 0) {
    fprintf(outfile, "-");
  } else {
    fprintf(outfile, "+");
  }
  fprintf(outfile, "1;\n");
  if (strided) {
    fprintf(outfile, "_lo = _SNAP_UP(_lo, %s, %d);\n", regname, dim);
    fprintf(outfile, "_hi = _SNAP_DN(_hi, %s, %d);\n", regname, dim);
    fprintf(outfile, "if (_lo <= _hi) {\n");
  }
  fprintf(outfile, "if (");
  gen_bound(outfile, regname, dim, 0);
  fprintf(outfile, " > ");
  gen_bound(outfile, regname, dim, 1);
  fprintf(outfile, ") {\n");
  gen_set_bound(outfile, regname, dim, (((lohi) == 0) ? 1 : 0));
  fprintf(outfile, "}\n");
  gen_set_bound(outfile, regname, dim, lohi);
  if (strided) {
    fprintf(outfile, "}\n");
  }
  if (!wrapfluff) {
    fprintf(outfile, "}\n");
  }
}


x86 assembly (clang, -O0):
<gen_set_fluff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1080 <gen_lohi@plt>
mov    -0x8(%rbp),%rdi
lea    0xe55(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1050 <gen_my_bound@plt>
cmpl   $0x0,-0x20(%rbp)
jne    11e2 <gen_set_fluff+0x72>
mov    -0x8(%rbp),%rdi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    11f4 <gen_set_fluff+0x84>
mov    -0x8(%rbp),%rdi
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%r8
call   1070 <gen_fluffval@plt>
mov    -0x8(%rbp),%rdi
lea    0xe30(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
cmpl   $0x0,0x18(%rbp)
jne    1239 <gen_set_fluff+0xc9>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1090 <gen_reg_test@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmove  %eax,%esi
call   1080 <gen_lohi@plt>
mov    -0x8(%rbp),%rdi
lea    0xda3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1050 <gen_my_bound@plt>
cmpl   $0x0,-0x20(%rbp)
jne    1294 <gen_set_fluff+0x124>
mov    -0x8(%rbp),%rdi
lea    0xd7c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    12a6 <gen_set_fluff+0x136>
mov    -0x8(%rbp),%rdi
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
cmpl   $0x0,0x10(%rbp)
je     1306 <gen_set_fluff+0x196>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xd38(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xd3d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xd49(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xd4a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
call   1040 <gen_bound@plt>
mov    -0x8(%rbp),%rdi
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%ecx
call   1040 <gen_bound@plt>
mov    -0x8(%rbp),%rdi
lea    0xcfa(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%r8d
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x0,%r8d
cmove  %eax,%ecx
call   1030 <gen_set_bound@plt>
mov    -0x8(%rbp),%rdi
lea    0xcd4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%ecx
call   1030 <gen_set_bound@plt>
cmpl   $0x0,0x10(%rbp)
je     13c6 <gen_set_fluff+0x256>
mov    -0x8(%rbp),%rdi
lea    0xca5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
cmpl   $0x0,0x18(%rbp)
jne    13e2 <gen_set_fluff+0x272>
mov    -0x8(%rbp),%rdi
lea    0xc89(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_set_fluff>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,(%rsp)
mov    %ecx,%r12d
mov    %edx,%ebp
mov    %rsi,%r15
mov    %rdi,%rbx
mov    0x48(%rsp),%r13d
mov    0x40(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    %r9d,%esi
call   10a0 <gen_lohi@plt>
lea    0xe37(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
call   1050 <gen_my_bound@plt>
xor    %eax,%eax
test   %r14d,%r14d
sete   %al
lea    (%rax,%rax,1),%edi
add    $0x2b,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    (%rsp),%edx
mov    %ebp,%ecx
mov    %r15,%r8
call   1080 <gen_fluffval@plt>
lea    0xe29(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
test   %r13d,%r13d
jne    123f <gen_set_fluff+0xaf>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
mov    %ebp,%ecx
call   10b0 <gen_reg_test@plt>
xor    %r12d,%r12d
test   %r14d,%r14d
sete   %r12b
mov    %rbx,%rdi
mov    %r12d,%esi
call   10a0 <gen_lohi@plt>
lea    0xda5(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
call   1050 <gen_my_bound@plt>
lea    (%r12,%r12,1),%edi
add    $0x2b,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
lea    0xd74(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
cmpl   $0x0,0x4(%rsp)
je     13c7 <gen_set_fluff+0x237>
lea    0xd54(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %ebp,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xd5c(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %ebp,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xd64(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xd5e(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
call   1040 <gen_bound@plt>
lea    0xd3b(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    $0x1,%ecx
call   1040 <gen_bound@plt>
lea    0xd06(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %r12d,%ecx
call   1030 <gen_set_bound@plt>
lea    0xceb(%rip),%r12
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <gen_set_bound@plt>
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
test   %r13d,%r13d
je     1475 <gen_set_fluff+0x2e5>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc89(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
call   1040 <gen_bound@plt>
lea    0xc66(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    $0x1,%ecx
call   1040 <gen_bound@plt>
lea    0xc31(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %r12d,%ecx
call   1030 <gen_set_bound@plt>
lea    0xc16(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <gen_set_bound@plt>
test   %r13d,%r13d
jne    13b8 <gen_set_fluff+0x228>
lea    0xbe4(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <fwrite@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" = \00"
@.str.1 = [2 x i8] c"-\00"
@.str.2 = [2 x i8] c"+\00"
@.str.3 = [3 x i8] c";\0A\00"
@.str.4 = [4 x i8] c"1;\0A\00"
@.str.5 = [30 x i8] c"_lo = _SNAP_UP(_lo, %s, %d);\0A\00"
@.str.6 = [30 x i8] c"_hi = _SNAP_DN(_hi, %s, %d);\0A\00"
@.str.7 = [19 x i8] c"if (_lo <= _hi) {\0A\00"
@.str.8 = [5 x i8] c"if (\00"
@.str.9 = [4 x i8] c" > \00"
@.str.10 = [5 x i8] c") {\0A\00"
@.str.11 = [3 x i8] c"}\0A\00"
define void @gen_set_fluff(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %9
store i8* %1, i8** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32*, i32** %9
%18 = load i32, i32* %14
%19 = call i32 @gen_lohi(i32* %17, i32 %18)
%20 = load i32*, i32** %9
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%22 = load i32*, i32** %9
%23 = load i32, i32* %14
%24 = load i32, i32* %11
%25 = call i32 @gen_my_bound(i32* %22, i32 %23, i32 %24)
%26 = load i32, i32* %14
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %8
%29 = load i32*, i32** %9
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %34
31: ; preds = %8
%32 = load i32*, i32** %9
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %34
34: ; preds = %31, %28
%35 = load i32*, i32** %9
%36 = load i32, i32* %12
%37 = load i32, i32* %13
%38 = load i32, i32* %11
%39 = load i8*, i8** %10
%40 = call i32 @gen_fluffval(i32* %35, i32 %36, i32 %37, i32 %38, i8* %39)
%41 = load i32*, i32** %9
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* %16
%44 = icmp ne i32 %43, 0
br i1 %44, label %51, label %45
45: ; preds = %34
%46 = load i32*, i32** %9
%47 = load i8*, i8** %10
%48 = load i32, i32* %14
%49 = load i32, i32* %11
%50 = call i32 @gen_reg_test(i32* %46, i8* %47, i32 %48, i32 %49)
br label %51
51: ; preds = %45, %34
%52 = load i32*, i32** %9
%53 = load i32, i32* %14
%54 = icmp eq i32 %53, 0
%55 = zext i1 %54 to i64
%56 = select i1 %54, i32 1, i32 0
%57 = call i32 @gen_lohi(i32* %52, i32 %56)
%58 = load i32*, i32** %9
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%60 = load i32*, i32** %9
%61 = load i32, i32* %14
%62 = load i32, i32* %11
%63 = call i32 @gen_my_bound(i32* %60, i32 %61, i32 %62)
%64 = load i32, i32* %14
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %51
%67 = load i32*, i32** %9
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %72
69: ; preds = %51
%70 = load i32*, i32** %9
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %72
72: ; preds = %69, %66
%73 = load i32*, i32** %9
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%75 = load i32, i32* %15
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %88
77: ; preds = %72
%78 = load i32*, i32** %9
%79 = load i8*, i8** %10
%80 = load i32, i32* %11
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %79, i32 %80)
%82 = load i32*, i32** %9
%83 = load i8*, i8** %10
%84 = load i32, i32* %11
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %83, i32 %84)
%86 = load i32*, i32** %9
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
br label %88
88: ; preds = %77, %72
%89 = load i32*, i32** %9
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %89, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%91 = load i32*, i32** %9
%92 = load i8*, i8** %10
%93 = load i32, i32* %11
%94 = call i32 @gen_bound(i32* %91, i8* %92, i32 %93, i32 0)
%95 = load i32*, i32** %9
%96 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%97 = load i32*, i32** %9
%98 = load i8*, i8** %10
%99 = load i32, i32* %11
%100 = call i32 @gen_bound(i32* %97, i8* %98, i32 %99, i32 1)
%101 = load i32*, i32** %9
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%103 = load i32*, i32** %9
%104 = load i8*, i8** %10
%105 = load i32, i32* %11
%106 = load i32, i32* %14
%107 = icmp eq i32 %106, 0
%108 = zext i1 %107 to i64
%109 = select i1 %107, i32 1, i32 0
%110 = call i32 @gen_set_bound(i32* %103, i8* %104, i32 %105, i32 %109)
%111 = load i32*, i32** %9
%112 = call i32 (i32*, i8*, ...) @fprintf(i32* %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%113 = load i32*, i32** %9
%114 = load i8*, i8** %10
%115 = load i32, i32* %11
%116 = load i32, i32* %14
%117 = call i32 @gen_set_bound(i32* %113, i8* %114, i32 %115, i32 %116)
%118 = load i32, i32* %15
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %88
%121 = load i32*, i32** %9
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %123
123: ; preds = %120, %88
%124 = load i32, i32* %16
%125 = icmp ne i32 %124, 0
br i1 %125, label %129, label %126
126: ; preds = %123
%127 = load i32*, i32** %9
%128 = call i32 (i32*, i8*, ...) @fprintf(i32* %127, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %129
129: ; preds = %126, %123
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" = \00"
@.str.3 = [3 x i8] c";\0A\00"
@.str.4 = [4 x i8] c"1;\0A\00"
@.str.5 = [30 x i8] c"_lo = _SNAP_UP(_lo, %s, %d);\0A\00"
@.str.6 = [30 x i8] c"_hi = _SNAP_DN(_hi, %s, %d);\0A\00"
@.str.7 = [19 x i8] c"if (_lo <= _hi) {\0A\00"
@.str.8 = [5 x i8] c"if (\00"
@.str.9 = [4 x i8] c" > \00"
@.str.10 = [5 x i8] c") {\0A\00"
@.str.11 = [3 x i8] c"}\0A\00"
define void @gen_set_fluff(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = tail call i32 @gen_lohi(i32* %0, i32 %5)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 3, i64 1, i32* %0)
%11 = tail call i32 @gen_my_bound(i32* %0, i32 %5, i32 %2)
%12 = icmp eq i32 %5, 0
%13 = select i1 %12, i32 45, i32 43
%14 = tail call i32 @fputc(i32 %13, i32* %0)
%15 = tail call i32 @gen_fluffval(i32* %0, i32 %3, i32 %4, i32 %2, i8* %1)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i64 2, i64 1, i32* %0)
%17 = icmp eq i32 %7, 0
br i1 %17, label %18, label %20
18: ; preds = %8
%19 = tail call i32 @gen_reg_test(i32* %0, i8* %1, i32 %5, i32 %2)
br label %20
20: ; preds = %18, %8
%21 = zext i1 %12 to i32
%22 = tail call i32 @gen_lohi(i32* %0, i32 %21)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 3, i64 1, i32* %0)
%24 = tail call i32 @gen_my_bound(i32* %0, i32 %5, i32 %2)
%25 = select i1 %12, i32 45, i32 43
%26 = tail call i32 @fputc(i32 %25, i32* %0)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 3, i64 1, i32* %0)
%28 = icmp eq i32 %6, 0
br i1 %28, label %42, label %29
29: ; preds = %20
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %1, i32 %2)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %1, i32 %2)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i64 18, i64 1, i32* %0)
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i64 4, i64 1, i32* %0)
%34 = tail call i32 @gen_bound(i32* %0, i8* %1, i32 %2, i32 0)
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64 3, i64 1, i32* %0)
%36 = tail call i32 @gen_bound(i32* %0, i8* %1, i32 %2, i32 1)
%37 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 4, i64 1, i32* %0)
%38 = tail call i32 @gen_set_bound(i32* %0, i8* %1, i32 %2, i32 %21)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i64 2, i64 1, i32* %0)
%40 = tail call i32 @gen_set_bound(i32* %0, i8* %1, i32 %2, i32 %5)
%41 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i64 2, i64 1, i32* %0)
br label %51
42: ; preds = %20
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i64 4, i64 1, i32* %0)
%44 = tail call i32 @gen_bound(i32* %0, i8* %1, i32 %2, i32 0)
%45 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64 3, i64 1, i32* %0)
%46 = tail call i32 @gen_bound(i32* %0, i8* %1, i32 %2, i32 1)
%47 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 4, i64 1, i32* %0)
%48 = tail call i32 @gen_set_bound(i32* %0, i8* %1, i32 %2, i32 %21)
%49 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i64 2, i64 1, i32* %0)
%50 = tail call i32 @gen_set_bound(i32* %0, i8* %1, i32 %2, i32 %5)
br label %51
51: ; preds = %42, %29
br i1 %17, label %52, label %54
52: ; preds = %51
%53 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i64 2, i64 1, i32* %0)
br label %54
54: ; preds = %52, %51
ret void
}