Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hi alehander42

I've been searching for something like this, so my question is

I have almost identical program in version 1 and 1.01 and I need to find how their behaviour changed

So, I run both of them ./binary1.exe input.txt ./binary2 input.txt and record their execution with your tool

And now, I'd want to extract such data from your tool:

Visited functions and how locals were changing. e.g

int test(int n) {

    n++;

    std::cout << n << std::endl

    n += 15;

    if (n > 22)
    {
      n--;
    }
    return n + 1;
}

int main(int argc, char* argv) {

    auto result = test(argv[1]);

    std::cout << result << std::endl
}

Visited Function: main with arguments (argc: 2, argv ["path", 7])

Visited Function test with arguments (n: 7)

test: N set to 8

test: N set to 23

test: Entered If (n > 22):

N set to 22

Exit If (n > 22)

test: N set to 23

Exit function test

Main: result set to 23

Exit function main

Can I achieve it with your tool / recording data format?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: