We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e24b9c commit ff1e5c6Copy full SHA for ff1e5c6
src/goto-programs/show_goto_functions.cpp
@@ -10,6 +10,7 @@ Author: Peter Schrammel
10
11
#include <util/xml.h>
12
#include <util/json.h>
13
+#include <util/json_expr.h>
14
#include <util/i2string.h>
15
#include <util/xml_expr.h>
16
#include <util/cprover_prefix.h>
@@ -69,6 +70,8 @@ void show_goto_functions(
69
70
json_objectt &json_function=
71
json_functions.push_back(jsont()).make_object();
72
json_function["name"]=json_stringt(id2string(it->first));
73
+ const symbolt &symbol=ns.lookup(it->first);
74
+ json_function["sourceLocation"]=json(symbol.location);
75
json_function["isBodyAvailable"]=
76
jsont::json_boolean(it->second.body_available());
77
bool is_internal=(has_prefix(id2string(it->first), CPROVER_PREFIX) ||
0 commit comments