view final_main/src/enumerate-inputs.c @ 2:93d26c4576d3

add picture
author ryokka
date Thu, 01 Feb 2018 01:17:55 +0900
parents
children
line wrap: on
line source

void enumerateInputs(struct Context* context,
                     struct Node* node) {
    if (context->loopCount > LIMIT_OF_VERIFICATION_SIZE) {
        return meta(context, Exit);
    }

    node->key     = nondet_int();
    node->value   = node->key;
    context->next = VerifySpecification;
    context->loopCount++;

    return meta(context, Put);
}