#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*/ SEEK_END;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ fseek(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ generateUUID(char *);
int /*<<< orphan*/ initializeString(char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sanitizeInput(char *, int);
int /*<<< orphan*/ sanitizeSpace(char *, int);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strncat(char *, char *, int);
void createUser() {
  char usernameBuffer[20];
  initializeString(usernameBuffer, 20);
  char passwordBuffer[20];
  initializeString(passwordBuffer, 20);
  char num[10];
  initializeString(num, 10);
  char uuid[33];
  initializeString(uuid, 33);
  generateUUID(uuid);
  char filePath[50] = {'r', 'e', 'c', 'o', 'r', 'd', 's', '/', '\0'};
  int numInt = -1;
  if (fgets(usernameBuffer, 20, stdin) == NULL) {
  }
  printf("Enter Username: ");
  if (fseek(stdin, 0, SEEK_END) != 0) {
  }
  if (fgets(usernameBuffer, 20, stdin) == NULL) {
  }
  sanitizeInput(usernameBuffer, 20);
  sanitizeSpace(usernameBuffer, 20);
  printf("Enter Password: ");
  if (fseek(stdin, 0, SEEK_END) != 0) {
  }
  if (fgets(passwordBuffer, 20, stdin) == NULL) {
  }
  sanitizeInput(passwordBuffer, 20);
  sanitizeSpace(passwordBuffer, 20);
  while (numInt < 0 || numInt > 5) {
    printf("Enter Permission level: ");
    if (fseek(stdin, 0, SEEK_END) != 0) {
    }
    if (fgets(num, 10, stdin) == NULL) {
    }
    sanitizeInput(num, 1);
    numInt = (int)((num[0] - 48));
  }
  strncat(filePath, uuid, 33);
  FILE *newUUIDFile = fopen(filePath, "w+");
  fclose(newUUIDFile);
  FILE *logins = fopen("logins", "a");
  fprintf(logins, "\n%s", usernameBuffer);
  fprintf(logins, " %s", passwordBuffer);
  fprintf(logins, " %i", numInt);
  fprintf(logins, " %s", uuid);
  fclose(logins);
}


x86 assembly (clang, -O0):
<createUser>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
lea    -0x20(%rbp),%rdi
mov    $0x14,%esi
call   1050 <initializeString@plt>
lea    -0x40(%rbp),%rdi
mov    $0x14,%esi
call   1050 <initializeString@plt>
lea    -0x4a(%rbp),%rdi
mov    $0xa,%esi
call   1050 <initializeString@plt>
lea    -0x70(%rbp),%rdi
mov    $0x21,%esi
call   1050 <initializeString@plt>
lea    -0x70(%rbp),%rdi
call   1030 <generateUUID@plt>
lea    -0xb0(%rbp),%rdi
lea    0xde6(%rip),%rsi
mov    $0x32,%edx
call   10b0 <memcpy@plt>
movl   $0xffffffff,-0xb4(%rbp)
ff ff ff
lea    -0x20(%rbp),%rdi
mov    0x2da7(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
jne    1254 <createUser+0x94>
jmp    1254 <createUser+0x94>
lea    0xdd7(%rip),%rdi
call   1070 <printf@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
mov    0x2d78(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
cmp    $0x0,%rax
je     1288 <createUser+0xc8>
jmp    1288 <createUser+0xc8>
lea    -0x20(%rbp),%rdi
mov    0x2d4d(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
jne    12ae <createUser+0xee>
jmp    12ae <createUser+0xee>
lea    -0x20(%rbp),%rdi
mov    $0x14,%esi
call   10c0 <sanitizeInput@plt>
lea    -0x20(%rbp),%rdi
mov    $0x14,%esi
call   1040 <sanitizeSpace@plt>
lea    0xd72(%rip),%rdi
call   1070 <printf@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
mov    0x2d02(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
cmp    $0x0,%rax
je     12fe <createUser+0x13e>
jmp    12fe <createUser+0x13e>
lea    -0x40(%rbp),%rdi
mov    0x2cd7(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
jne    1324 <createUser+0x164>
jmp    1324 <createUser+0x164>
lea    -0x40(%rbp),%rdi
mov    $0x14,%esi
call   10c0 <sanitizeInput@plt>
lea    -0x40(%rbp),%rdi
mov    $0x14,%esi
call   1040 <sanitizeSpace@plt>
mov    $0x1,%al
cmpl   $0x0,-0xb4(%rbp)
mov    %al,-0xc9(%rbp)
jl     1365 <createUser+0x1a5>
cmpl   $0x5,-0xb4(%rbp)
setg   %al
mov    %al,-0xc9(%rbp)
mov    -0xc9(%rbp),%al
test   $0x1,%al
jne    1378 <createUser+0x1b8>
jmp    13f2 <createUser+0x232>
lea    0xcd5(%rip),%rdi
call   1070 <printf@plt>
mov    0x2c55(%rip),%rax
mov    (%rax),%edi
mov    0x2c54(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
cmp    $0x0,%rax
je     13ac <createUser+0x1ec>
jmp    13ac <createUser+0x1ec>
lea    -0x4a(%rbp),%rdi
mov    0x2c29(%rip),%rax
mov    (%rax),%edx
mov    $0xa,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
jne    13d2 <createUser+0x212>
jmp    13d2 <createUser+0x212>
lea    -0x4a(%rbp),%rdi
mov    $0x1,%esi
call   10c0 <sanitizeInput@plt>
movsbl -0x4a(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0xb4(%rbp)
jmp    1340 <createUser+0x180>
lea    -0xb0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    $0x21,%edx
call   1080 <strncat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xc58(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rdi
call   1060 <fclose@plt>
lea    0xc3c(%rip),%rdi
lea    0xc3c(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rdi
lea    -0x20(%rbp),%rdx
lea    0xc20(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0xc8(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xc0b(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0xc8(%rbp),%rdi
mov    -0xb4(%rbp),%edx
lea    0xbf4(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0xc8(%rbp),%rdi
lea    -0x70(%rbp),%rdx
lea    0xbd7(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0xc8(%rbp),%rdi
call   1060 <fclose@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createUser>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
lea    0x70(%rsp),%r15
mov    %r15,%rdi
mov    $0x14,%esi
call   1050 <initializeString@plt>
lea    0x50(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x14,%esi
call   1050 <initializeString@plt>
lea    0x6(%rsp),%r12
mov    %r12,%rdi
mov    $0xa,%esi
call   1050 <initializeString@plt>
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x21,%esi
call   1050 <initializeString@plt>
mov    %rbx,%rdi
call   1030 <generateUUID@plt>
movzwl 0xe15(%rip),%eax
mov    %ax,0x40(%rsp)
movaps 0xdf9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xddd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xdc1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0x2d95(%rip),%r13
mov    0x0(%r13),%edx
mov    %r15,%rdi
mov    $0x14,%esi
call   1090 <fgets@plt>
lea    0xdcf(%rip),%rdi
call   1070 <printf@plt>
mov    0x0(%r13),%edi
mov    0x2d75(%rip),%r14
mov    (%r14),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    0x0(%r13),%edx
mov    %r15,%rdi
mov    $0x14,%esi
call   1090 <fgets@plt>
mov    %r15,%rdi
mov    $0x14,%esi
call   10b0 <sanitizeInput@plt>
mov    %r15,%rdi
mov    $0x14,%esi
call   1040 <sanitizeSpace@plt>
lea    0xd94(%rip),%rdi
call   1070 <printf@plt>
mov    0x0(%r13),%edi
mov    (%r14),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    0x0(%r13),%edx
mov    %rbp,%rdi
mov    $0x14,%esi
call   1090 <fgets@plt>
mov    %rbp,%rdi
mov    $0x14,%esi
call   10b0 <sanitizeInput@plt>
mov    %rbp,%rdi
mov    $0x14,%esi
call   1040 <sanitizeSpace@plt>
lea    0xd60(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1070 <printf@plt>
mov    0x0(%r13),%edi
mov    (%r14),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    0x0(%r13),%edx
mov    %r12,%rdi
mov    $0xa,%esi
call   1090 <fgets@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   10b0 <sanitizeInput@plt>
movsbl 0x6(%rsp),%ebp
add    $0xffffffd0,%ebp
cmp    $0x5,%ebp
ja     1300 <createUser+0x150>
lea    0x10(%rsp),%rbx
lea    0x90(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x21,%edx
call   1080 <strncat@plt>
lea    0xd08(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <fopen@plt>
mov    %rax,%rdi
call   1060 <fclose@plt>
lea    0xcf4(%rip),%rdi
lea    0xcf4(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%rbx
lea    0xce7(%rip),%rsi
lea    0x70(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fprintf@plt>
lea    0xcd5(%rip),%r15
lea    0x50(%rsp),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
lea    0xcc0(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.createUser.filePath = <{ [8 x i8], [42 x i8] }> <{ [8 x i8] c"records/", [42 x i8] zeroinitializer }>
@stdin = global i32 0
@.str = [17 x i8] c"Enter Username: \00"
@SEEK_END = global i32 0
@.str.1 = [17 x i8] c"Enter Password: \00"
@.str.2 = [25 x i8] c"Enter Permission level: \00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [7 x i8] c"logins\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [4 x i8] c"\0A%s\00"
@.str.7 = [4 x i8] c" %s\00"
@.str.8 = [4 x i8] c" %i\00"
define void @createUser() {
%1 = alloca [20 x i8]
%2 = alloca [20 x i8]
%3 = alloca [10 x i8]
%4 = alloca [33 x i8]
%5 = alloca [50 x i8]
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%10 = call i32 @initializeString(i8* %9, i32 20)
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%12 = call i32 @initializeString(i8* %11, i32 20)
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%14 = call i32 @initializeString(i8* %13, i32 10)
%15 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%16 = call i32 @initializeString(i8* %15, i32 33)
%17 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%18 = call i32 @generateUUID(i8* %17)
%19 = bitcast [50 x i8]* %5 to i8*
store i32 -1, i32* %6
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%21 = load i32, i32* @stdin
%22 = call i32* @fgets(i8* %20, i32 20, i32 %21)
%23 = icmp eq i32* %22, null
br i1 %23, label %24, label %25
24: ; preds = %0
br label %25
25: ; preds = %24, %0
%26 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%27 = load i32, i32* @stdin
%28 = load i32, i32* @SEEK_END
%29 = call i64 @fseek(i32 %27, i32 0, i32 %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %25
br label %32
32: ; preds = %31, %25
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%34 = load i32, i32* @stdin
%35 = call i32* @fgets(i8* %33, i32 20, i32 %34)
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %38
37: ; preds = %32
br label %38
38: ; preds = %37, %32
%39 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%40 = call i32 @sanitizeInput(i8* %39, i32 20)
%41 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%42 = call i32 @sanitizeSpace(i8* %41, i32 20)
%43 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%44 = load i32, i32* @stdin
%45 = load i32, i32* @SEEK_END
%46 = call i64 @fseek(i32 %44, i32 0, i32 %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %38
%50 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%51 = load i32, i32* @stdin
%52 = call i32* @fgets(i8* %50, i32 20, i32 %51)
%53 = icmp eq i32* %52, null
br i1 %53, label %54, label %55
54: ; preds = %49
br label %55
55: ; preds = %54, %49
%56 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%57 = call i32 @sanitizeInput(i8* %56, i32 20)
%58 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%59 = call i32 @sanitizeSpace(i8* %58, i32 20)
br label %60
60: ; preds = %81, %55
%61 = load i32, i32* %6
%62 = icmp slt i32 %61, 0
br i1 %62, label %66, label %63
63: ; preds = %60
%64 = load i32, i32* %6
%65 = icmp sgt i32 %64, 5
br label %66
66: ; preds = %63, %60
%67 = phi i1 [ true, %60 ], [ %65, %63 ]
br i1 %67, label %68, label %88
68: ; preds = %66
%69 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%70 = load i32, i32* @stdin
%71 = load i32, i32* @SEEK_END
%72 = call i64 @fseek(i32 %70, i32 0, i32 %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %68
br label %75
75: ; preds = %74, %68
%76 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%77 = load i32, i32* @stdin
%78 = call i32* @fgets(i8* %76, i32 10, i32 %77)
%79 = icmp eq i32* %78, null
br i1 %79, label %80, label %81
80: ; preds = %75
br label %81
81: ; preds = %80, %75
%82 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%83 = call i32 @sanitizeInput(i8* %82, i32 1)
%84 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = sub nsw i32 %86, 48
store i32 %87, i32* %6
br label %60
88: ; preds = %66
%89 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%90 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%91 = call i32 @strncat(i8* %89, i8* %90, i32 33)
%92 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%93 = call i32* @fopen(i8* %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %93, i32** %7
%94 = load i32*, i32** %7
%95 = call i32 @fclose(i32* %94)
%96 = call i32* @fopen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %96, i32** %8
%97 = load i32*, i32** %8
%98 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%99 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %98)
%100 = load i32*, i32** %8
%101 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %101)
%103 = load i32*, i32** %8
%104 = load i32, i32* %6
%105 = call i32 (i32*, i8*, ...) @fprintf(i32* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %104)
%106 = load i32*, i32** %8
%107 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %107)
%109 = load i32*, i32** %8
%110 = call i32 @fclose(i32* %109)
ret void
}

LLVM IR (-O2):
@__const.createUser.filePath = <{ [8 x i8], [42 x i8] }> <{ [8 x i8] c"records/", [42 x i8] zeroinitializer }>
@stdin = global i32 0
@.str = [17 x i8] c"Enter Username: \00"
@SEEK_END = global i32 0
@.str.1 = [17 x i8] c"Enter Password: \00"
@.str.2 = [25 x i8] c"Enter Permission level: \00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [7 x i8] c"logins\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [4 x i8] c"\0A%s\00"
@.str.7 = [4 x i8] c" %s\00"
@.str.8 = [4 x i8] c" %i\00"
define void @createUser() {
%1 = alloca [20 x i8]
%2 = alloca [20 x i8]
%3 = alloca [10 x i8]
%4 = alloca [33 x i8]
%5 = alloca [50 x i8]
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%7 = call i32 @initializeString(i8* %6, i32 20)
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%9 = call i32 @initializeString(i8* %8, i32 20)
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%11 = call i32 @initializeString(i8* %10, i32 10)
%12 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%13 = call i32 @initializeString(i8* %12, i32 33)
%14 = call i32 @generateUUID(i8* %12)
%15 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%16 = load i32, i32* @stdin
%17 = call i32* @fgets(i8* %6, i32 20, i32 %16)
%18 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @stdin
%20 = load i32, i32* @SEEK_END
%21 = call i64 @fseek(i32 %19, i32 0, i32 %20)
%22 = load i32, i32* @stdin
%23 = call i32* @fgets(i8* %6, i32 20, i32 %22)
%24 = call i32 @sanitizeInput(i8* %6, i32 20)
%25 = call i32 @sanitizeSpace(i8* %6, i32 20)
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* @stdin
%28 = load i32, i32* @SEEK_END
%29 = call i64 @fseek(i32 %27, i32 0, i32 %28)
%30 = load i32, i32* @stdin
%31 = call i32* @fgets(i8* %8, i32 20, i32 %30)
%32 = call i32 @sanitizeInput(i8* %8, i32 20)
%33 = call i32 @sanitizeSpace(i8* %8, i32 20)
br label %34
34: ; preds = %0, %34
%35 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%36 = load i32, i32* @stdin
%37 = load i32, i32* @SEEK_END
%38 = call i64 @fseek(i32 %36, i32 0, i32 %37)
%39 = load i32, i32* @stdin
%40 = call i32* @fgets(i8* %10, i32 10, i32 %39)
%41 = call i32 @sanitizeInput(i8* %10, i32 1)
%42 = load i8, i8* %10
%43 = sext i8 %42 to i32
%44 = add nsw i32 %43, -48
%45 = icmp ugt i32 %44, 5
br i1 %45, label %34, label %46
46: ; preds = %34
%47 = call i32 @strncat(i8* %15, i8* %12, i32 33)
%48 = call i32* @fopen(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%49 = call i32 @fclose(i32* %48)
%50 = call i32* @fopen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %6)
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %8)
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %44)
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %12)
%55 = call i32 @fclose(i32* %50)
ret void
}