#include "sleep.h" #include #include int main(void){uint64_t roots[8],v;assert(sleep_tree_index(0,0)==0);assert(sleep_tree_index(1,0)==1);assert(sleep_tree_index(0,1)==2);assert(sleep_tree_parent(0)==1);assert(sleep_tree_left_child(1,&v)==0&&v==0);assert(sleep_tree_right_child(1,&v)==0&&v==2);assert(sleep_tree_full_roots(6,roots,8)==2);assert(roots[0]==1&&roots[1]==4);return 0;}