Add functions to execute diagram from main.cc
delete  to include all llvm libraries