view paper/final_main/src/enumerate-inputs.c @ 4:0f938112b48e

add paper
author suruga
date Thu, 15 Feb 2018 14:48:08 +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);
}