The code works with Joern version v1.0.170. If you are using any other version then you will require a different script for 'graph-for-funcs.sc'.