I am interested in zcash (https://github.com/zcash/zcash) and the theory behind it. Therefore, I download the source codes of zcash to trace it. The codes comprise C++,python and shell scripts. How to determine the behavior of these codes quickly? I tried UML revere engineering, but doesn't really help.
Asked
Active
Viewed 193 times
1 Answers
3
If you're interested in the theory, then read the papers written for it. If you're interested in how the code runs, then hopefully someone wrote documentation for that. If you want a quick, automatic way of learning this, you are out of luck because static analysis cannot, in general, describe the behavior of a computer program (the halting problem). Finally, if you want a quick way to determine the behavior for yourself, I can only give general advice like "work backwards from the main function" and "figure out what each function or class does". Program design is an art.

Ryan Reich
- 264
main
. Try applying the "figure out what each function or class does" to everything inmain
– Caleth Aug 21 '17 at 08:29AppInit
, which calls a lot of other functions. I recommend to use a debugger, set a break point at a suitable line in the code and step through it. – Doc Brown Aug 21 '17 at 09:11