Mercurial > hg > Members > Moririn
view src/parallel_execution/verifier/verify_put_cs.c @ 438:7679093bdd72
Work CUDAtwice
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 06 Nov 2017 00:11:43 +0900 |
parents | e6bc0a4c2c36 |
children |
line wrap: on
line source
/* Verification of LLRB-Tree height in put operations. * LLRB-Tree allows (max-height) <= 2*(min-height). */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include "llrbContextWithVerifier.h" __code meta(struct Context* context, enum Code next) { if (next == Put) { verify_tree_height(context->data[Tree]->tree.root); } goto (context->code[next])(context); } __code start_code(struct Context* context, enum Code next) { unsigned int seed = (unsigned int)time(NULL); printf("--- srand(%u)\n", seed); goto meta(context, next); } __code exit_code(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); }