I’m working on a project where I translate C programs into Rust using different techniques and I want to measure how much structural similarity is preserved between the original C code and the translated Rust code. What is the best way of achieving this aside from manually cross checking the codes?
I think you can just compare number of structures and function in both programs.