Skip to content

Instantly share code, notes, and snippets.

@Vagabond
Last active January 6, 2016 01:47
Show Gist options
  • Save Vagabond/020b78ef9752e07af6dc to your computer and use it in GitHub Desktop.
Save Vagabond/020b78ef9752e07af6dc to your computer and use it in GitHub Desktop.
-record(state, {hashmap=undefined,
size,
map=[]}).
hashmap_create_pre(S) ->
S#state.hashmap == undefined.
hashmap_create_args(_S) ->
[eqc_gen:choose(4,10)].
hashmap_create(Size) ->
HM = eqc_c:alloc({struct, hashmap_t}),
hashmap:hashmap_create(HM, Size),
HM.
hashmap_create_next(S, R, [_Size]) ->
S#state{hashmap=R}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment