#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*/ convertlist(char *, char *, char *, char *,
                               int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int convertlists(int uid, FILE *outfile) {
  char buf[400];
  char fname[200];
  sprintf(fname, "USER%d", uid);
  sprintf(buf, "USER%d.OP", uid);
  convertlist("OP", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.ASK", uid);
  convertlist("ASK", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.BAN", uid);
  convertlist("BAN", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.DCC", uid);
  convertlist("DCC", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.LGI", uid);
  convertlist("LGI", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.AOP", uid);
  convertlist("AOP", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.TRA", uid);
  convertlist("TRA", "ENTRY%d", fname, buf, outfile);
  sprintf(buf, "USER%d.ENC", uid);
  convertlist("ENC", "ENTRY%d", fname, buf, outfile);
  return 0x0;
}


x86 assembly (clang, -O0):
<convertlists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x270,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x270(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xebd(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xeae(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe97(%rip),%rdi
lea    0xe93(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe85(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe6e(%rip),%rdi
lea    0xe58(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe55(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe3e(%rip),%rdi
lea    0xe1d(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe25(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe0e(%rip),%rdi
lea    0xde2(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xdf5(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xdde(%rip),%rdi
lea    0xda7(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xdc5(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xdae(%rip),%rdi
lea    0xd6c(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xd95(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xd7e(%rip),%rdi
lea    0xd31(%rip),%rsi
call   1030 <convertlist@plt>
lea    -0x1a0(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xd65(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x270(%rbp),%rdx
lea    -0x1a0(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xd4e(%rip),%rdi
lea    0xcf6(%rip),%rsi
call   1030 <convertlist@plt>
xor    %eax,%eax
add    $0x270,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convertlists>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x260,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
lea    0xec5(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xeb8(%rip),%rsi
lea    0xd0(%rsp),%rbx
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xea6(%rip),%rdi
lea    0xea2(%rip),%r12
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xe88(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xe74(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xe6a(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xe56(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xe4c(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xe38(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xe2e(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xe1a(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xe10(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xdf2(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xdd4(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
call   1030 <convertlist@plt>
xor    %eax,%eax
add    $0x260,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"USER%d\00"
@.str.1 = [10 x i8] c"USER%d.OP\00"
@.str.2 = [3 x i8] c"OP\00"
@.str.3 = [8 x i8] c"ENTRY%d\00"
@.str.4 = [11 x i8] c"USER%d.ASK\00"
@.str.5 = [4 x i8] c"ASK\00"
@.str.6 = [11 x i8] c"USER%d.BAN\00"
@.str.7 = [4 x i8] c"BAN\00"
@.str.8 = [11 x i8] c"USER%d.DCC\00"
@.str.9 = [4 x i8] c"DCC\00"
@.str.10 = [11 x i8] c"USER%d.LGI\00"
@.str.11 = [4 x i8] c"LGI\00"
@.str.12 = [11 x i8] c"USER%d.AOP\00"
@.str.13 = [4 x i8] c"AOP\00"
@.str.14 = [11 x i8] c"USER%d.TRA\00"
@.str.15 = [4 x i8] c"TRA\00"
@.str.16 = [11 x i8] c"USER%d.ENC\00"
@.str.17 = [4 x i8] c"ENC\00"
define i32 @convertlists(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca [400 x i8]
%6 = alloca [200 x i8]
store i32 %0, i32* %3
store i32* %1, i32** %4
%7 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%8 = load i32, i32* %3
%9 = call i32 @sprintf(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%11 = load i32, i32* %3
%12 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%15 = load i32*, i32** %4
%16 = call i32 @convertlist(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %13, i8* %14, i32* %15)
%17 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%18 = load i32, i32* %3
%19 = call i32 @sprintf(i8* %17, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%21 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%22 = load i32*, i32** %4
%23 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %20, i8* %21, i32* %22)
%24 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%25 = load i32, i32* %3
%26 = call i32 @sprintf(i8* %24, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%28 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%29 = load i32*, i32** %4
%30 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %27, i8* %28, i32* %29)
%31 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%32 = load i32, i32* %3
%33 = call i32 @sprintf(i8* %31, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%35 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%36 = load i32*, i32** %4
%37 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %34, i8* %35, i32* %36)
%38 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%39 = load i32, i32* %3
%40 = call i32 @sprintf(i8* %38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%42 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%43 = load i32*, i32** %4
%44 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %41, i8* %42, i32* %43)
%45 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%46 = load i32, i32* %3
%47 = call i32 @sprintf(i8* %45, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %46)
%48 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%49 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%50 = load i32*, i32** %4
%51 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %48, i8* %49, i32* %50)
%52 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%53 = load i32, i32* %3
%54 = call i32 @sprintf(i8* %52, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%56 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%57 = load i32*, i32** %4
%58 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %55, i8* %56, i32* %57)
%59 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%60 = load i32, i32* %3
%61 = call i32 @sprintf(i8* %59, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%63 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%64 = load i32*, i32** %4
%65 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %62, i8* %63, i32* %64)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"USER%d\00"
@.str.1 = [10 x i8] c"USER%d.OP\00"
@.str.2 = [3 x i8] c"OP\00"
@.str.3 = [8 x i8] c"ENTRY%d\00"
@.str.4 = [11 x i8] c"USER%d.ASK\00"
@.str.5 = [4 x i8] c"ASK\00"
@.str.6 = [11 x i8] c"USER%d.BAN\00"
@.str.7 = [4 x i8] c"BAN\00"
@.str.8 = [11 x i8] c"USER%d.DCC\00"
@.str.9 = [4 x i8] c"DCC\00"
@.str.10 = [11 x i8] c"USER%d.LGI\00"
@.str.11 = [4 x i8] c"LGI\00"
@.str.12 = [11 x i8] c"USER%d.AOP\00"
@.str.13 = [4 x i8] c"AOP\00"
@.str.14 = [11 x i8] c"USER%d.TRA\00"
@.str.15 = [4 x i8] c"TRA\00"
@.str.16 = [11 x i8] c"USER%d.ENC\00"
@.str.17 = [4 x i8] c"ENC\00"
define i32 @convertlists(i32 %0, i32* %1) {
%3 = alloca [400 x i8]
%4 = alloca [200 x i8]
%5 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%7 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %0)
%8 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%9 = call i32 @convertlist(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%10 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %0)
%11 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%12 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %0)
%13 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%14 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 %0)
%15 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%16 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %0)
%17 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%18 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %0)
%19 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%20 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %0)
%21 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
%22 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %0)
%23 = call i32 @convertlist(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %5, i32* %1)
ret i32 0
}