regtest.go and modified analyse.go