Patent ID: 8393003

Claim:
A computer-implemented method for tamper-protecting computer program code, the method comprising: obtaining, by the computer, an input representation of the computer program code; identifying, by the computer, a conditional program statement for causing a data processing system to selectively execute one of at least a first set and a second set of program statements when the computer program code is executed by a data processing system, the conditional program statement including a condition; and replacing the identified conditional program statement and the first and second sets of program statements with a set of transformed program statements to obtain obfuscated program code; wherein the set of transformed program statements is adapted to cause the data processing system to execute at least a part of each of the transformed program statements when the computer program code is executed by the data processing system; and replacing comprises merging distinct execution paths into straight-line code by conditioning execution of each program statement of the first set of program statements on the condition included in the identified conditional program statement and by conditioning execution of each program statement of the second set of program statements on the condition not being fulfilled.