#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 */

/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, long long, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ sscanf(char *, char *, long long *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
char *strstr(char *, char *);
char *strtok(char *, char *);
void practiceOne() {
  struct QQInfo {
    long long qqnumber;
    char password[20];
  };
  struct QQInfos {
    struct QQInfo *infos;
    int length;
  };
  char str[1024] = "12345-qwerty,23456-wertyu,34567-ertyui,45678-rtyuio,56789-"
                   "tyuiop,67890-yuiopa";
  int count = 0;
  for (char *pstr = strstr(str, "-"); pstr != NULL;
       pstr = strstr(pstr + 1, "-")) {
    count++;
  }
  struct QQInfos qqinfos;
  qqinfos.infos = (struct QQInfo *)malloc(sizeof(struct QQInfo) * count);
  qqinfos.length = count;
  int i = 0;
  for (char *pstr = strtok(str, ","); pstr != NULL;
       pstr = strtok(pstr + strlen(pstr) + 1, ","), i++) {
    char *pstrcpy = (char *)malloc(sizeof(char) * (strlen(pstr) + 1));
    strcpy(pstrcpy, pstr);
    char *ptemp = strstr(pstrcpy, "-");
    *ptemp = '\0';
    sscanf(pstrcpy, "%lld", &((qqinfos.infos + i)->qqnumber));
    sprintf((qqinfos.infos + i)->password, "%s", ptemp + 1);
    free(pstrcpy);
  }
  for (int i = 0; i < qqinfos.length; i++) {
    printf("QQ号码：%lld, 密码：%s\n", qqinfos.infos[i].qqnumber,
           qqinfos.infos[i].password);
  }
}


x86 assembly (clang, -O0):
<practiceOne>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
lea    -0x400(%rbp),%rdi
lea    0xe47(%rip),%rsi
mov    $0x400,%edx
call   1070 <memcpy@plt>
movl   $0x0,-0x404(%rbp)
lea    -0x400(%rbp),%rdi
lea    0x1225(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x410(%rbp)
cmpq   $0x0,-0x410(%rbp)
je     1227 <practiceOne+0x87>
mov    -0x404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x404(%rbp)
mov    -0x410(%rbp),%rdi
add    $0x1,%rdi
lea    0x11ea(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x410(%rbp)
jmp    11e7 <practiceOne+0x47>
movslq -0x404(%rbp),%rax
shl    $0x5,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x420(%rbp)
mov    -0x404(%rbp),%eax
mov    %eax,-0x418(%rbp)
movl   $0x0,-0x424(%rbp)
lea    -0x400(%rbp),%rdi
lea    0x119e(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x430(%rbp)
cmpq   $0x0,-0x430(%rbp)
je     138d <practiceOne+0x1ed>
mov    -0x430(%rbp),%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rdi
mov    -0x430(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x438(%rbp),%rdi
lea    0x113e(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x440(%rbp)
mov    -0x440(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x438(%rbp),%rdi
mov    -0x420(%rbp),%rdx
movslq -0x424(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdx
lea    0x1109(%rip),%rsi
call   1090 <sscanf@plt>
mov    -0x420(%rbp),%rdi
movslq -0x424(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
add    $0x8,%rdi
mov    -0x440(%rbp),%rdx
add    $0x1,%rdx
lea    0x10de(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x438(%rbp),%rdi
call   1030 <free@plt>
mov    -0x430(%rbp),%rax
mov    %rax,-0x450(%rbp)
mov    -0x430(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x450(%rbp),%rdi
cltq
add    %rax,%rdi
add    $0x1,%rdi
lea    0x1095(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x430(%rbp)
mov    -0x424(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x424(%rbp)
jmp    1270 <practiceOne+0xd0>
movl   $0x0,-0x444(%rbp)
mov    -0x444(%rbp),%eax
cmp    -0x418(%rbp),%eax
jge    13fa <practiceOne+0x25a>
mov    -0x420(%rbp),%rax
movslq -0x444(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
mov    -0x420(%rbp),%rdx
movslq -0x444(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdx
add    $0x8,%rdx
lea    0x102b(%rip),%rdi
call   1060 <printf@plt>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    1397 <practiceOne+0x1f7>
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<practiceOne>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
lea    0xe58(%rip),%rsi
mov    %rsp,%rbx
mov    $0x400,%edx
mov    %rbx,%rdi
call   1080 <memcpy@plt>
mov    %rbx,%rdi
mov    $0x2d,%esi
call   1060 <strchr@plt>
xor    %r12d,%r12d
test   %rax,%rax
je     11ea <practiceOne+0x5a>
nopl   (%rax)
add    $0x1,%r12d
add    $0x1,%rax
mov    %rax,%rdi
mov    $0x2d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
jne    11d0 <practiceOne+0x40>
mov    %r12d,%edi
shl    $0x5,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
lea    0x1201(%rip),%rsi
mov    %rsp,%rdi
call   10b0 <strtok@plt>
test   %rax,%rax
je     12a9 <practiceOne+0x119>
mov    %rax,%r13
mov    %r14,%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r13,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    $0x2d,%esi
call   1060 <strchr@plt>
mov    %rax,%r15
movb   $0x0,(%rax)
mov    %rbp,%rdi
lea    0x11a7(%rip),%rsi
mov    %rbx,%rdx
call   10a0 <sscanf@plt>
lea    0x8(%rbx),%rdi
add    $0x1,%r15
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1050 <strlen@plt>
cltq
lea    (%rax,%r13,1),%rdi
add    $0x1,%rdi
lea    0x116c(%rip),%rsi
call   10b0 <strtok@plt>
mov    %rax,%r13
add    $0x20,%rbx
test   %rax,%rax
jne    1220 <practiceOne+0x90>
test   %r12d,%r12d
je     12d9 <practiceOne+0x149>
mov    %r12d,%ebp
add    $0x8,%r14
lea    0x114b(%rip),%rbx
nopl   0x0(%rax)
mov    -0x8(%r14),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1070 <printf@plt>
add    $0x20,%r14
add    $0xffffffffffffffff,%rbp
jne    12c0 <practiceOne+0x130>
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.QQInfos = type { %struct.QQInfo*, i32 }
%struct.QQInfo = type { i64, [20 x i8] }
@__const.practiceOne.str = [1024 x i8] c"12345-qwerty,23456-wertyu,34567-ertyui,45678-rtyuio,56789-tyuiop,67890-yuiopa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [2 x i8] c"-\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [30 x i8] c"QQ\E5\8F\B7\E7\A0\81\EF\BC\9A%lld, \E5\AF\86\E7\A0\81\EF\BC\9A%s\0A\00"
define void @practiceOne() {
%1 = alloca [1024 x i8]
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.QQInfos
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = bitcast [1024 x i8]* %1 to i8*
store i32 0, i32* %2
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%12 = call i8* @strstr(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %12, i8** %3
br label %13
13: ; preds = %19, %0
%14 = load i8*, i8** %3
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %19
19: ; preds = %16
%20 = load i8*, i8** %3
%21 = getelementptr inbounds i8, i8* %20, i64 1
%22 = call i8* @strstr(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %22, i8** %3
br label %13
23: ; preds = %13
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = mul i64 32, %25
%27 = trunc i64 %26 to i32
%28 = call i64 @malloc(i32 %27)
%29 = inttoptr i64 %28 to %struct.QQInfo*
%30 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 0
store %struct.QQInfo* %29, %struct.QQInfo** %30
%31 = load i32, i32* %2
%32 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 1
store i32 %31, i32* %32
store i32 0, i32* %5
%33 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%34 = call i8* @strtok(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %34, i8** %6
br label %35
35: ; preds = %73, %23
%36 = load i8*, i8** %6
%37 = icmp ne i8* %36, null
br i1 %37, label %38, label %83
38: ; preds = %35
%39 = load i8*, i8** %6
%40 = call i32 @strlen(i8* %39)
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to i8*
store i8* %46, i8** %7
%47 = load i8*, i8** %7
%48 = load i8*, i8** %6
%49 = call i32 @strcpy(i8* %47, i8* %48)
%50 = load i8*, i8** %7
%51 = call i8* @strstr(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %51, i8** %8
%52 = load i8*, i8** %8
store i8 0, i8* %52
%53 = load i8*, i8** %7
%54 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 0
%55 = load %struct.QQInfo*, %struct.QQInfo** %54
%56 = load i32, i32* %5
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %55, i64 %57
%59 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %58, i32 0, i32 0
%60 = call i32 @sscanf(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %59)
%61 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 0
%62 = load %struct.QQInfo*, %struct.QQInfo** %61
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %62, i64 %64
%66 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %65, i32 0, i32 1
%67 = getelementptr inbounds [20 x i8], [20 x i8]* %66, i64 0, i64 0
%68 = load i8*, i8** %8
%69 = getelementptr inbounds i8, i8* %68, i64 1
%70 = call i32 @sprintf(i8* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %69)
%71 = load i8*, i8** %7
%72 = call i32 @free(i8* %71)
br label %73
73: ; preds = %38
%74 = load i8*, i8** %6
%75 = load i8*, i8** %6
%76 = call i32 @strlen(i8* %75)
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %74, i64 %77
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = call i8* @strtok(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %80, i8** %6
%81 = load i32, i32* %5
%82 = add nsw i32 %81, 1
store i32 %82, i32* %5
br label %35
83: ; preds = %35
store i32 0, i32* %9
br label %84
84: ; preds = %105, %83
%85 = load i32, i32* %9
%86 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 1
%87 = load i32, i32* %86
%88 = icmp slt i32 %85, %87
br i1 %88, label %89, label %108
89: ; preds = %84
%90 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 0
%91 = load %struct.QQInfo*, %struct.QQInfo** %90
%92 = load i32, i32* %9
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %91, i64 %93
%95 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %94, i32 0, i32 0
%96 = load i64, i64* %95
%97 = getelementptr inbounds %struct.QQInfos, %struct.QQInfos* %4, i32 0, i32 0
%98 = load %struct.QQInfo*, %struct.QQInfo** %97
%99 = load i32, i32* %9
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %98, i64 %100
%102 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %101, i32 0, i32 1
%103 = getelementptr inbounds [20 x i8], [20 x i8]* %102, i64 0, i64 0
%104 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i64 %96, i8* %103)
br label %105
105: ; preds = %89
%106 = load i32, i32* %9
%107 = add nsw i32 %106, 1
store i32 %107, i32* %9
br label %84
108: ; preds = %84
ret void
}

LLVM IR (-O2):
%struct.QQInfo = type { i64, [20 x i8] }
@__const.practiceOne.str = [1024 x i8] c"12345-qwerty,23456-wertyu,34567-ertyui,45678-rtyuio,56789-tyuiop,67890-yuiopa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.4 = [30 x i8] c"QQ\E5\8F\B7\E7\A0\81\EF\BC\9A%lld, \E5\AF\86\E7\A0\81\EF\BC\9A%s\0A\00"
define void @practiceOne() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i8* @strchr(i8* %2, i32 45)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %12
5: ; preds = %12, %0
%6 = phi i32 [ 0, %0 ], [ %15, %12 ]
%7 = shl i32 %6, 5
%8 = call i64 @malloc(i32 %7)
%9 = inttoptr i64 %8 to %struct.QQInfo*
%10 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i8* %10, null
br i1 %11, label %19, label %23
12: ; preds = %0, %12
%13 = phi i32 [ %15, %12 ], [ 0, %0 ]
%14 = phi i8* [ %17, %12 ], [ %3, %0 ]
%15 = add nuw nsw i32 %13, 1
%16 = getelementptr inbounds i8, i8* %14, i64 1
%17 = call i8* @strchr(i8* %16, i32 45)
%18 = icmp eq i8* %17, null
br i1 %18, label %5, label %12
19: ; preds = %23, %5
%20 = icmp eq i32 %6, 0
br i1 %20, label %45, label %21
21: ; preds = %19
%22 = zext i32 %6 to i64
br label %46
23: ; preds = %5, %23
%24 = phi i64 [ %43, %23 ], [ 0, %5 ]
%25 = phi i8* [ %42, %23 ], [ %10, %5 ]
%26 = call i32 @strlen(i8* %25)
%27 = add nsw i32 %26, 1
%28 = call i64 @malloc(i32 %27)
%29 = inttoptr i64 %28 to i8*
%30 = call i32 @strcpy(i8* %29, i8* %25)
%31 = call i8* @strchr(i8* dereferenceable(1) %29, i32 45)
store i8 0, i8* %31
%32 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %9, i64 %24, i32 0
%33 = call i32 @sscanf(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %32)
%34 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %9, i64 %24, i32 1, i64 0
%35 = getelementptr inbounds i8, i8* %31, i64 1
%36 = call i8* bitcast (i32 (i8*, i8*)* @strcpy to i8* (i8*, i8*)*)(i8* %34, i8* %35)
%37 = call i32 @free(i8* %29)
%38 = call i32 @strlen(i8* %25)
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %25, i64 1
%41 = getelementptr inbounds i8, i8* %40, i64 %39
%42 = call i8* @strtok(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%43 = add nuw i64 %24, 1
%44 = icmp eq i8* %42, null
br i1 %44, label %19, label %23
45: ; preds = %46, %19
ret void
46: ; preds = %21, %46
%47 = phi i64 [ 0, %21 ], [ %52, %46 ]
%48 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %9, i64 %47, i32 0
%49 = load i64, i64* %48
%50 = getelementptr inbounds %struct.QQInfo, %struct.QQInfo* %9, i64 %47, i32 1, i64 0
%51 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i64 %49, i8* %50)
%52 = add nuw nsw i64 %47, 1
%53 = icmp eq i64 %52, %22
br i1 %53, label %45, label %46
}