factorize function to draw branch in calltree in c_function_calltree class