Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ok_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,13 @@ static uint16_t okj_measure_container(const char *start, const char *end)
/* Skip opening quote */
p++;

//@ assert p == p_entry + 1;

/*@
// INNER LOOP INVARIANTS
loop invariant \base_addr(p) == \base_addr(start);
loop invariant start <= p <= end;
loop invariant p >= p_entry + 1;

loop assigns p;
loop variant end - p;
Expand All @@ -756,6 +759,8 @@ static uint16_t okj_measure_container(const char *start, const char *end)
{
p++;
}

//@ assert p > p_entry;
}
else
{
Expand Down
Loading