fix src/treebuilder.c
fix merge_analysis
segment fault