Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Executor.sol#L386-L440
This function eventually gets called when proving the batches, now as tagged by @audit, evidently, if the proof is not empty, it gets verified, due to the if block.
Where as one might look at this and assume there to be a logical error, as naturally if we are having an if/else conditional arrangement, then the else block should entain a different execution, but here thats not the case cause the preprocessor is going to remove one of the _verifyProof(proofPublicInput, _proof);
Bad code structure, unclear documentation.
Correctly apply the documentations attached to this.
