Search International and National Patent Collections

1. (WO2018196963) DIFFERENTIAL OPTIMISING CODE TRANSFORMATION

Pub. No.:    WO/2018/196963    International Application No.:    PCT/EP2017/059846
Publication Date: Fri Nov 02 00:59:59 CET 2018 International Filing Date: Thu Apr 27 01:59:59 CEST 2017
IPC: G06F 9/44
Applicants: EVERYNET BV
Inventors: SHIROKOV, Igor
KLEBAN, Vitaly
Title: DIFFERENTIAL OPTIMISING CODE TRANSFORMATION
Abstract:
A computer-implemented method for iterative modification of a minification program (T1) for minifying a source code with the following steps: Step 1: Applying the minification program (T1) to an initial source code (A1) to obtain a minified initial source code (F1) and an initial transformation log (L1); Step 2: Applying an intermediate minification program (T') to the target source code (A2), wherein the intermediate minification program (T') uses at least the initial identifier renaming dictionary (D1) to obtain an intermediate identifier renaming dictionary (D'), and uses the intermediate identifier renaming dictionary (D') to minify the target source code (A2) and to obtain an intermediate minified target source code (F') and an intermediate transformation log (L'), wherein the intermediate transformation log (L') comprises at least the intermediate identifier renaming dictionary (D'); Step 3: Determining an edit distance (Δ) between the minified initial source code (F1) and the intermediate minified target source code (F') and checking the edit distance (Δ) against at least one pre-determined stopping criterion; Step 4: Repeating Steps 2 and 3 until the at least one pre-determined stopping criterion is met, wherein every time Step 2 is carried out, a new version of the intermediate identifier renaming dictionary (Dnew) is generated and a new version of the intermediate minified target source code (F') is obtained; Step 5: After the at least one predetermined stopping criterion is met, obtaining a modified minification program (T2), a minified target source code (F2) and a target transformation log (L2), wherein the target transformation log (L2) comprises at least a target identifier renaming dictionary (D2); Step 6: Outputting the modified minification (T2), the minified target source code (F2) and the target transformation log (L2).