×

Recompiling with generic to specific replacement

  • US 8,726,255 B2
  • Filed: 05/01/2012
  • Issued: 05/13/2014
  • Est. Priority Date: 05/01/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving a set of executable code;

    instrumenting said executable code;

    executing said executable code to collect data while said executable code executes;

    decompiling said set of executable code;

    determining variables in said executable code for replacement with constant values, wherein said determining comprises;

    receiving a semantic definition of said executable code, said semantic definition being used to identify at least one occurrence of a first variable; and

    said semantic definition being debugger symbols;

    determining a first constant value for a first variable in said executable code, said first constant value being identified from said data; and

    for each occurrence of said first variable, replacing said first variable with said first constant value to create a first modified set of executable code;

    after determining and replacing variables for constant values, analyzing said first modified set of executable code to identify conditions that are satisfied when said first variable is defined as said first constant value;

    for each of said conditions, removing said conditions from said first modified set of executable code by replacing the condition statements with a jump instruction; and

    recompiling said first modified set of executable code to create a second set of executable code.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×