#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 */
struct sf_root {
  int dummy;
};
typedef int /*<<< orphan*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char **, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sf_tree_add_user(struct sf_root *, char *);
struct sf_root *sf_tree_init(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strtok(char *, char *);
int /*<<< orphan*/ update_daysBeforeWarning(struct sf_root *, char *, int);
int /*<<< orphan*/ update_daysSinceChanged(struct sf_root *, char *, int);
int /*<<< orphan*/ update_daysSinceDeactivation(struct sf_root *, char *, int);
int /*<<< orphan*/ update_daysUntilCanChange(struct sf_root *, char *, int);
int /*<<< orphan*/ update_daysUntilExpiration(struct sf_root *, char *, int);
int /*<<< orphan*/ update_daysUntilMustChange(struct sf_root *, char *, int);
int /*<<< orphan*/ update_hash(struct sf_root *, char *, char *);
struct sf_root *init_parse(char *fname, char *path) {
  FILE *fin;
  struct sf_root *sf;
  char hash[33];
  char *token;
  int dsc;
  int dcc;
  int dmc;
  int warn;
  int expire;
  int dse;
  char user[16];
  fin = fopen(fname, "r");
  sf = sf_tree_init(path);
  char line[256];
  while (fgets(&line, sizeof(line), fin) != NULL) {
    strcpy(user, strtok(line, ":"));
    if (!strcmp(user, "")) {
      printf("Parse error, username not found\n");
      fclose(fin);
      return sf;
    }
    sf_tree_add_user(sf, user);
    strcpy(hash, strtok(NULL, ":"));
    if (!strcmp(hash, "")) {
      printf("Parse error, no password hash found\n");
      fclose(fin);
      return sf;
    }
    update_hash(sf, user, hash);
    token = strtok(NULL, ":");
    dsc = (token == NULL) ? 0 : atoi(token);
    update_daysSinceChanged(sf, user, dsc);
    token = strtok(NULL, ":");
    dcc = (token == NULL) ? 0 : atoi(token);
    update_daysUntilCanChange(sf, user, dcc);
    token = strtok(NULL, ":");
    dmc = (token == NULL) ? 0 : atoi(token);
    update_daysUntilMustChange(sf, user, dmc);
    token = strtok(NULL, ":");
    warn = (token == NULL) ? 0 : atoi(token);
    update_daysBeforeWarning(sf, user, warn);
    token = strtok(NULL, ":");
    expire = (token == NULL) ? 0 : atoi(token);
    update_daysUntilExpiration(sf, user, expire);
    token = strtok(NULL, ":");
    dse = (token == NULL) ? 0 : atoi(token);
    update_daysSinceDeactivation(sf, user, dse);
  }
  return sf;
  fclose(fin);
}


x86 assembly (clang, -O0):
<init_parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdd2(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1080 <sf_tree_init@plt>
mov    %rax,-0x28(%rbp)
lea    -0x180(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x100,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
je     154b <init_parse+0x33b>
lea    -0x80(%rbp),%rax
mov    %rax,-0x188(%rbp)
lea    -0x180(%rbp),%rdi
lea    0xd86(%rip),%rsi
call   1100 <strtok@plt>
mov    -0x188(%rbp),%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
lea    -0x80(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    12cb <init_parse+0xbb>
lea    0xd54(%rip),%rdi
call   1090 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1553 <init_parse+0x343>
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1130 <sf_tree_add_user@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x190(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xd14(%rip),%rsi
call   1100 <strtok@plt>
mov    -0x190(%rbp),%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    133d <init_parse+0x12d>
lea    0xd03(%rip),%rdi
call   1090 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1553 <init_parse+0x343>
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1070 <update_hash@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xca9(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    137a <init_parse+0x16a>
xor    %eax,%eax
mov    %eax,-0x194(%rbp)
jmp    1389 <init_parse+0x179>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x194(%rbp)
mov    -0x194(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x5c(%rbp),%edx
call   10d0 <update_daysSinceChanged@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc55(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    13ce <init_parse+0x1be>
xor    %eax,%eax
mov    %eax,-0x198(%rbp)
jmp    13dd <init_parse+0x1cd>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x198(%rbp)
mov    -0x198(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x60(%rbp),%edx
call   10e0 <update_daysUntilCanChange@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc01(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    1422 <init_parse+0x212>
xor    %eax,%eax
mov    %eax,-0x19c(%rbp)
jmp    1431 <init_parse+0x221>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x64(%rbp),%edx
call   10b0 <update_daysUntilMustChange@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xbad(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    1476 <init_parse+0x266>
xor    %eax,%eax
mov    %eax,-0x1a0(%rbp)
jmp    1485 <init_parse+0x275>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x1a0(%rbp)
mov    -0x1a0(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x68(%rbp),%edx
call   1050 <update_daysBeforeWarning@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xb59(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    14ca <init_parse+0x2ba>
xor    %eax,%eax
mov    %eax,-0x1a4(%rbp)
jmp    14d9 <init_parse+0x2c9>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x6c(%rbp),%edx
call   1120 <update_daysUntilExpiration@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xb05(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    151e <init_parse+0x30e>
xor    %eax,%eax
mov    %eax,-0x1a8(%rbp)
jmp    152d <init_parse+0x31d>
mov    -0x58(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x70(%rbp),%edx
call   1030 <update_daysSinceDeactivation@plt>
jmp    1244 <init_parse+0x34>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_parse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
mov    %rsi,%rbx
lea    0xde5(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1090 <sf_tree_init@plt>
mov    %rax,%rbx
lea    0x50(%rsp),%rdi
mov    $0x100,%esi
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     1408 <init_parse+0x208>
lea    0xdad(%rip),%r12
lea    0x50(%rsp),%r14
lea    0x10(%rsp),%r15
lea    0x20(%rsp),%rbp
jmp    129d <init_parse+0x9d>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
call   1030 <update_daysSinceDeactivation@plt>
mov    %r14,%rdi
mov    $0x100,%esi
mov    0x8(%rsp),%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
lea    0x20(%rsp),%rbp
je     1408 <init_parse+0x208>
mov    %r14,%rdi
mov    %r12,%rsi
call   10f0 <strtok@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
cmpb   $0x0,0x10(%rsp)
je     13e9 <init_parse+0x1e9>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1120 <sf_tree_add_user@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
cmpb   $0x0,0x20(%rsp)
je     13f2 <init_parse+0x1f2>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1080 <update_hash@plt>
xor    %r13d,%r13d
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
mov    $0x0,%edx
test   %rax,%rax
je     1318 <init_parse+0x118>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10c0 <update_daysSinceChanged@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
test   %rax,%rax
je     133d <init_parse+0x13d>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r13d,%edx
call   10d0 <update_daysUntilCanChange@plt>
xor    %ebp,%ebp
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
mov    $0x0,%edx
test   %rax,%rax
je     136b <init_parse+0x16b>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <update_daysUntilMustChange@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
test   %rax,%rax
je     138f <init_parse+0x18f>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
call   1060 <update_daysBeforeWarning@plt>
xor    %ebp,%ebp
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
mov    $0x0,%edx
test   %rax,%rax
je     13bc <init_parse+0x1bc>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1110 <update_daysUntilExpiration@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   10f0 <strtok@plt>
test   %rax,%rax
je     1270 <init_parse+0x70>
mov    %rax,%rdi
call   1100 <atoi@plt>
mov    %eax,%ebp
jmp    1270 <init_parse+0x70>
lea    0xc14(%rip),%rdi
jmp    13f9 <init_parse+0x1f9>
lea    0xc2b(%rip),%rdi
call   1050 <puts@plt>
mov    0x8(%rsp),%rdi
call   1070 <fclose@plt>
mov    %rbx,%rax
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sf_root = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c":\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [33 x i8] c"Parse error, username not found\0A\00"
@.str.4 = [37 x i8] c"Parse error, no password hash found\0A\00"
define %struct.sf_root* @init_parse(i8* %0, i8* %1) {
%3 = alloca %struct.sf_root*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca %struct.sf_root*
%8 = alloca [33 x i8]
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [16 x i8]
%17 = alloca [256 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
%18 = load i8*, i8** %4
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %19, i32** %6
%20 = load i8*, i8** %5
%21 = call %struct.sf_root* @sf_tree_init(i8* %20)
store %struct.sf_root* %21, %struct.sf_root** %7
br label %22
22: ; preds = %132, %2
%23 = bitcast [256 x i8]* %17 to i8**
%24 = load i32*, i32** %6
%25 = call i32* @fgets(i8** %23, i32 256, i32* %24)
%26 = icmp ne i32* %25, null
br i1 %26, label %27, label %138
27: ; preds = %22
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %17, i64 0, i64 0
%30 = call i8* @strtok(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @strcpy(i8* %28, i8* %30)
%32 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp ne i32 %33, 0
br i1 %34, label %40, label %35
35: ; preds = %27
%36 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%37 = load i32*, i32** %6
%38 = call i32 @fclose(i32* %37)
%39 = load %struct.sf_root*, %struct.sf_root** %7
store %struct.sf_root* %39, %struct.sf_root** %3
br label %140
40: ; preds = %27
%41 = load %struct.sf_root*, %struct.sf_root** %7
%42 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%43 = call i32 @sf_tree_add_user(%struct.sf_root* %41, i8* %42)
%44 = getelementptr inbounds [33 x i8], [33 x i8]* %8, i64 0, i64 0
%45 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%46 = call i32 @strcpy(i8* %44, i8* %45)
%47 = getelementptr inbounds [33 x i8], [33 x i8]* %8, i64 0, i64 0
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%49 = icmp ne i32 %48, 0
br i1 %49, label %55, label %50
50: ; preds = %40
%51 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%52 = load i32*, i32** %6
%53 = call i32 @fclose(i32* %52)
%54 = load %struct.sf_root*, %struct.sf_root** %7
store %struct.sf_root* %54, %struct.sf_root** %3
br label %140
55: ; preds = %40
%56 = load %struct.sf_root*, %struct.sf_root** %7
%57 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%58 = getelementptr inbounds [33 x i8], [33 x i8]* %8, i64 0, i64 0
%59 = call i32 @update_hash(%struct.sf_root* %56, i8* %57, i8* %58)
%60 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %60, i8** %9
%61 = load i8*, i8** %9
%62 = icmp eq i8* %61, null
br i1 %62, label %63, label %64
63: ; preds = %55
br label %67
64: ; preds = %55
%65 = load i8*, i8** %9
%66 = call i32 @atoi(i8* %65)
br label %67
67: ; preds = %64, %63
%68 = phi i32 [ 0, %63 ], [ %66, %64 ]
store i32 %68, i32* %10
%69 = load %struct.sf_root*, %struct.sf_root** %7
%70 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%71 = load i32, i32* %10
%72 = call i32 @update_daysSinceChanged(%struct.sf_root* %69, i8* %70, i32 %71)
%73 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %73, i8** %9
%74 = load i8*, i8** %9
%75 = icmp eq i8* %74, null
br i1 %75, label %76, label %77
76: ; preds = %67
br label %80
77: ; preds = %67
%78 = load i8*, i8** %9
%79 = call i32 @atoi(i8* %78)
br label %80
80: ; preds = %77, %76
%81 = phi i32 [ 0, %76 ], [ %79, %77 ]
store i32 %81, i32* %11
%82 = load %struct.sf_root*, %struct.sf_root** %7
%83 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%84 = load i32, i32* %11
%85 = call i32 @update_daysUntilCanChange(%struct.sf_root* %82, i8* %83, i32 %84)
%86 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %86, i8** %9
%87 = load i8*, i8** %9
%88 = icmp eq i8* %87, null
br i1 %88, label %89, label %90
89: ; preds = %80
br label %93
90: ; preds = %80
%91 = load i8*, i8** %9
%92 = call i32 @atoi(i8* %91)
br label %93
93: ; preds = %90, %89
%94 = phi i32 [ 0, %89 ], [ %92, %90 ]
store i32 %94, i32* %12
%95 = load %struct.sf_root*, %struct.sf_root** %7
%96 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%97 = load i32, i32* %12
%98 = call i32 @update_daysUntilMustChange(%struct.sf_root* %95, i8* %96, i32 %97)
%99 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %99, i8** %9
%100 = load i8*, i8** %9
%101 = icmp eq i8* %100, null
br i1 %101, label %102, label %103
102: ; preds = %93
br label %106
103: ; preds = %93
%104 = load i8*, i8** %9
%105 = call i32 @atoi(i8* %104)
br label %106
106: ; preds = %103, %102
%107 = phi i32 [ 0, %102 ], [ %105, %103 ]
store i32 %107, i32* %13
%108 = load %struct.sf_root*, %struct.sf_root** %7
%109 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%110 = load i32, i32* %13
%111 = call i32 @update_daysBeforeWarning(%struct.sf_root* %108, i8* %109, i32 %110)
%112 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %112, i8** %9
%113 = load i8*, i8** %9
%114 = icmp eq i8* %113, null
br i1 %114, label %115, label %116
115: ; preds = %106
br label %119
116: ; preds = %106
%117 = load i8*, i8** %9
%118 = call i32 @atoi(i8* %117)
br label %119
119: ; preds = %116, %115
%120 = phi i32 [ 0, %115 ], [ %118, %116 ]
store i32 %120, i32* %14
%121 = load %struct.sf_root*, %struct.sf_root** %7
%122 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%123 = load i32, i32* %14
%124 = call i32 @update_daysUntilExpiration(%struct.sf_root* %121, i8* %122, i32 %123)
%125 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %125, i8** %9
%126 = load i8*, i8** %9
%127 = icmp eq i8* %126, null
br i1 %127, label %128, label %129
128: ; preds = %119
br label %132
129: ; preds = %119
%130 = load i8*, i8** %9
%131 = call i32 @atoi(i8* %130)
br label %132
132: ; preds = %129, %128
%133 = phi i32 [ 0, %128 ], [ %131, %129 ]
store i32 %133, i32* %15
%134 = load %struct.sf_root*, %struct.sf_root** %7
%135 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%136 = load i32, i32* %15
%137 = call i32 @update_daysSinceDeactivation(%struct.sf_root* %134, i8* %135, i32 %136)
br label %22
138: ; preds = %22
%139 = load %struct.sf_root*, %struct.sf_root** %7
store %struct.sf_root* %139, %struct.sf_root** %3
br label %140
140: ; preds = %138, %50, %35
%141 = load %struct.sf_root*, %struct.sf_root** %3
ret %struct.sf_root* %141
}

LLVM IR (-O2):
%struct.sf_root = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c":\00"
@str = [32 x i8] c"Parse error, username not found\00"
@str.5 = [36 x i8] c"Parse error, no password hash found\00"
define %struct.sf_root* @init_parse(i8* nocapture %0, i8* %1) {
%3 = alloca [33 x i8]
%4 = alloca [16 x i8]
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%8 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = tail call %struct.sf_root* @sf_tree_init(i8* %1)
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%11 = bitcast [256 x i8]* %5 to i8**
%12 = call i32* @fgets(i8** %11, i32 256, i32* %8)
%13 = icmp eq i32* %12, null
br i1 %13, label %75, label %14
14: ; preds = %2, %66
%15 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @strcpy(i8* %7, i8* %15)
%17 = load i8, i8* %7
%18 = icmp eq i8 %17, 0
br i1 %18, label %71, label %19
19: ; preds = %14
%20 = call i32 @sf_tree_add_user(%struct.sf_root* %9, i8* %7)
%21 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @strcpy(i8* %6, i8* %21)
%23 = load i8, i8* %6
%24 = icmp eq i8 %23, 0
br i1 %24, label %71, label %25
25: ; preds = %19
%26 = call i32 @update_hash(%struct.sf_root* %9, i8* %7, i8* %6)
%27 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp eq i8* %27, null
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = call i32 @atoi(i8* %27)
br label %31
31: ; preds = %25, %29
%32 = phi i32 [ %30, %29 ], [ 0, %25 ]
%33 = call i32 @update_daysSinceChanged(%struct.sf_root* %9, i8* %7, i32 %32)
%34 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = icmp eq i8* %34, null
br i1 %35, label %38, label %36
36: ; preds = %31
%37 = call i32 @atoi(i8* %34)
br label %38
38: ; preds = %31, %36
%39 = phi i32 [ %37, %36 ], [ 0, %31 ]
%40 = call i32 @update_daysUntilCanChange(%struct.sf_root* %9, i8* %7, i32 %39)
%41 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp eq i8* %41, null
br i1 %42, label %45, label %43
43: ; preds = %38
%44 = call i32 @atoi(i8* %41)
br label %45
45: ; preds = %38, %43
%46 = phi i32 [ %44, %43 ], [ 0, %38 ]
%47 = call i32 @update_daysUntilMustChange(%struct.sf_root* %9, i8* %7, i32 %46)
%48 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%49 = icmp eq i8* %48, null
br i1 %49, label %52, label %50
50: ; preds = %45
%51 = call i32 @atoi(i8* %48)
br label %52
52: ; preds = %45, %50
%53 = phi i32 [ %51, %50 ], [ 0, %45 ]
%54 = call i32 @update_daysBeforeWarning(%struct.sf_root* %9, i8* %7, i32 %53)
%55 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%56 = icmp eq i8* %55, null
br i1 %56, label %59, label %57
57: ; preds = %52
%58 = call i32 @atoi(i8* %55)
br label %59
59: ; preds = %52, %57
%60 = phi i32 [ %58, %57 ], [ 0, %52 ]
%61 = call i32 @update_daysUntilExpiration(%struct.sf_root* %9, i8* %7, i32 %60)
%62 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%63 = icmp eq i8* %62, null
br i1 %63, label %66, label %64
64: ; preds = %59
%65 = call i32 @atoi(i8* %62)
br label %66
66: ; preds = %59, %64
%67 = phi i32 [ %65, %64 ], [ 0, %59 ]
%68 = call i32 @update_daysSinceDeactivation(%struct.sf_root* %9, i8* %7, i32 %67)
%69 = call i32* @fgets(i8** %11, i32 256, i32* %8)
%70 = icmp eq i32* %69, null
br i1 %70, label %75, label %14
71: ; preds = %19, %14
%72 = phi i8* [ getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0), %14 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @str.5, i64 0, i64 0), %19 ]
%73 = call i32 @puts(i8* dereferenceable(1) %72)
%74 = call i32 @fclose(i32* %8)
br label %75
75: ; preds = %66, %71, %2
ret %struct.sf_root* %9
}