dfatool icon indicating copy to clipboard operation
dfatool copied to clipboard

Inference of function argument & function call

Open jzy2000 opened this issue 8 years ago • 0 comments

Hi, I've been exploring this tool, seeking for ability to infer value of function arguments such as value of "foo" in sample#1, as well as inferring values of implicit variables, such as value of "fx()" call in sample#2 . Would you please share insights on getting this done with dfatool? Thanks in advance.

Sample#1

function fx(foo) {
    console.log("value of foo is:"+foo);
};
fx("bar");

Sample#1 Variation

(function fx(foo) {
    console.log("value of foo is:"+foo);
})("bar");

Sample#2

function fx() {
  return "foo";
}
console.log("value of fx() is:"+fx());

jzy2000 avatar Nov 02 '17 04:11 jzy2000