As your example illustrates, when we are discussing such past situations we normally use past perfect in the if-clause, followed by would have + past participle in the main clause. Compare the ...
Some results have been hidden because they may be inaccessible to you