static void clear_commits(BDRVVVFATState* s)

{

    int i;

DLOG(fprintf(stderr, "clear_commits (%d commits)\n", s->commits.next));

    for (i = 0; i < s->commits.next; i++) {

	commit_t* commit = array_get(&(s->commits), i);

	assert(commit->path || commit->action == ACTION_WRITEOUT);

	if (commit->action != ACTION_WRITEOUT) {

	    assert(commit->path);

	    free(commit->path);

	} else

	    assert(commit->path == NULL);

    }

    s->commits.next = 0;

}

static void clear_commits(BDRVVVFATState* s)

{

    int i;

DLOG(fprintf(stderr, "clear_commits (%d commits)\n", s->commits.next));

    for (i = 0; i < s->commits.next; i++) {

	commit_t* commit = array_get(&(s->commits), i);

	assert(commit->path || commit->action == ACTION_WRITEOUT);

	if (commit->action != ACTION_WRITEOUT) {

	    assert(commit->path);

	    free(commit->path);

	} else

	    assert(commit->path == NULL);

    }

    s->commits.next = 0;

}

	    free(commit->path);
static void FUNC_0(BDRVVVFATState* VAR_0)

{

    int VAR_1;

DLOG(fprintf(stderr, "FUNC_0 (%d commits)\n", VAR_0->commits.next));

    for (VAR_1 = 0; VAR_1 < VAR_0->commits.next; VAR_1++) {

	commit_t* commit = array_get(&(VAR_0->commits), VAR_1);

	assert(commit->path || commit->action == ACTION_WRITEOUT);

	if (commit->action != ACTION_WRITEOUT) {

	    assert(commit->path);

	    free(commit->path);

	} else

	    assert(commit->path == NULL);

    }

    VAR_0->commits.next = 0;

}

static void FUNC_0(BDRVVVFATState* VAR_0)
{ int VAR_1; DLOG(fprintf(stderr, "FUNC_0 (%d commits)\n", VAR_0->commits.next)); for (VAR_1 = 0; VAR_1 < VAR_0->commits.next; VAR_1++) { commit_t* commit = array_get(&(VAR_0->commits), VAR_1); assert(commit->path || commit->action == ACTION_WRITEOUT); if (commit->action != ACTION_WRITEOUT) { assert(commit->path); free(commit->path); } else assert(commit->path == NULL); } VAR_0->commits.next = 0; }