{"id":{"repo_id":"iastate","oai_identifier":"oai:dr.lib.iastate.edu:20.500.12876/97582"},"canonical_url":"https://search.ndltd.org/etd/iastate/oai:dr.lib.iastate.edu:20.500.12876/97582","repository":{"repo_id":"iastate","name":"Iowa State University","base_url":"https://dr.lib.iastate.edu/server/oai/request"},"display":{"title":"Context-Sensitive Control Flow Graph","abstract":"<p>Control Flow Graph (CFG) is known to be essential in compiler optimizations and quite useful in program comprehension. But visualizing and understanding CFG is hard because the CFG is often too large. The problem becomes harder if one were to understand inter-procedural CFG. Often the user wants to understand specific aspects of the CFG; hence, omitting parts of CFG irrelevant to the user's current interest becomes a desirable approach in working with CFG. We formalize an approach of constructing and visualizing CFG that takes users' interests into account. Users have to specify the program artifacts that are of interest to them, then we define the Context-Sensitive CFG that is relevant to the artifacts. The Context-Sensitive CFG is much smaller in size. The actual compression depends on the context and its spread in the given code. We show some results using the XINU operating system code as the test case. While the Context-Sensitive CFG captures only the relevant details, it could still be of substantial size and complexity. We propose query capability as a next step to help the user by extracting details related to a specific question. For example, the user can apply a query to check if there is an execution path in the CFG along which there is a missing memory deallocation and thus a possible memory leak. This thesis only implements queries that operate solely within the scope of a method (intra-procedural). We have built a proof-of-concept tool that allows the user to visualize Context-Sensitive CFG and make queries.</p>","abstract_html":"&lt;p&gt;Control Flow Graph (CFG) is known to be essential in compiler optimizations and quite useful in program comprehension. But visualizing and understanding CFG is hard because the CFG is often too large. The problem becomes harder if one were to understand inter-procedural CFG. Often the user wants to understand specific aspects of the CFG; hence, omitting parts of CFG irrelevant to the user&#x27;s current interest becomes a desirable approach in working with CFG. We formalize an approach of constructing and visualizing CFG that takes users&#x27; interests into account. Users have to specify the program artifacts that are of interest to them, then we define the Context-Sensitive CFG that is relevant to the artifacts. The Context-Sensitive CFG is much smaller in size. The actual compression depends on the context and its spread in the given code. We show some results using the XINU operating system code as the test case. While the Context-Sensitive CFG captures only the relevant details, it could still be of substantial size and complexity. We propose query capability as a next step to help the user by extracting details related to a specific question. For example, the user can apply a query to check if there is an execution path in the CFG along which there is a missing memory deallocation and thus a possible memory leak. This thesis only implements queries that operate solely within the scope of a method (intra-procedural). We have built a proof-of-concept tool that allows the user to visualize Context-Sensitive CFG and make queries.&lt;/p&gt;","abstract_has_math":false,"creators":["Ng, Jim-Carl"],"institution":null,"degree_name":"Master of Science","degree_level":"thesis","degree_discipline":"Computer Engineering","degree_department":"Department of Electrical and Computer Engineering","school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2004,"date_issued":"2004-01-01","date_published":"2004-01-01","updated_at":"2026-11-19T04:44:32Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/97582"],"render_values":[{"text":"https://dr.lib.iastate.edu/handle/20.500.12876/97582","href":"https://dr.lib.iastate.edu/handle/20.500.12876/97582","code":true}]},{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/20215/"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/20215/","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["21214","18970480"],"render_values":[{"text":"21214","href":null,"code":true},{"text":"18970480","href":null,"code":true}]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/20215/Ng_ISU_2004_N52.pdf|||Fri Jan 14 22:21:35 UTC 2022"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/20215/Ng_ISU_2004_N52.pdf|||Fri Jan 14 22:21:35 UTC 2022","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31274/rtd-20200817-8","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.31274/rtd-20200817-8","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aiastate%3Aoai%3Adr.lib.iastate.edu%3A20.500.12876%2F97582","prefix":"oai_dc"},"source_record":{"url":"https://dr.lib.iastate.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.lib.iastate.edu%3A20.500.12876%2F97582","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["Department of Electrical and Computer Engineering"]},{"key":"dc:creator","label":"Author","values":["Ng, Jim-Carl"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2020-08-21T23:08:12.000"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2021-02-26T08:48:33Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2021-02-26T08:48:33Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["Thu Jan 01 00:00:00 UTC 2004"]},{"key":"dc:date.issued","label":"Date","values":["2004-01-01"]},{"key":"dc:relation.orgunit","label":"Dc Relation Orgunit","values":["a75a044c-d11e-44cd-af4f-dab1d83339ff"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["Electrical and computer engineering","Computer engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/20215/"]},{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.31274/rtd-20200817-8"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["21214","18970480"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/97582"]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/20215/Ng_ISU_2004_N52.pdf|||Fri Jan 14 22:21:35 UTC 2022"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["<p>Control Flow Graph (CFG) is known to be essential in compiler optimizations and quite useful in program comprehension. But visualizing and understanding CFG is hard because the CFG is often too large. The problem becomes harder if one were to understand inter-procedural CFG. Often the user wants to understand specific aspects of the CFG; hence, omitting parts of CFG irrelevant to the user's current interest becomes a desirable approach in working with CFG. We formalize an approach of constructing and visualizing CFG that takes users' interests into account. Users have to specify the program artifacts that are of interest to them, then we define the Context-Sensitive CFG that is relevant to the artifacts. The Context-Sensitive CFG is much smaller in size. The actual compression depends on the context and its spread in the given code. We show some results using the XINU operating system code as the test case. While the Context-Sensitive CFG captures only the relevant details, it could still be of substantial size and complexity. We propose query capability as a next step to help the user by extracting details related to a specific question. For example, the user can apply a query to check if there is an execution path in the CFG along which there is a missing memory deallocation and thus a possible memory leak. This thesis only implements queries that operate solely within the scope of a method (intra-procedural). We have built a proof-of-concept tool that allows the user to visualize Context-Sensitive CFG and make queries.</p>"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Context-Sensitive Control Flow Graph"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:admin","label":"Local Admin","values":["isulib-bepress-aws-west","rtd/20215"]}]}],"canonical_facts":{"dc:contributor.department":["Department of Electrical and Computer Engineering"],"dc:creator":["Ng, Jim-Carl"],"dc:date":["2020-08-21T23:08:12.000"],"dc:date.accessioned":["2021-02-26T08:48:33Z"],"dc:date.available":["2021-02-26T08:48:33Z"],"dc:date.copyright":["Thu Jan 01 00:00:00 UTC 2004"],"dc:date.issued":["2004-01-01"],"dc:description.abstract":["<p>Control Flow Graph (CFG) is known to be essential in compiler optimizations and quite useful in program comprehension. But visualizing and understanding CFG is hard because the CFG is often too large. The problem becomes harder if one were to understand inter-procedural CFG. Often the user wants to understand specific aspects of the CFG; hence, omitting parts of CFG irrelevant to the user's current interest becomes a desirable approach in working with CFG. We formalize an approach of constructing and visualizing CFG that takes users' interests into account. Users have to specify the program artifacts that are of interest to them, then we define the Context-Sensitive CFG that is relevant to the artifacts. The Context-Sensitive CFG is much smaller in size. The actual compression depends on the context and its spread in the given code. We show some results using the XINU operating system code as the test case. While the Context-Sensitive CFG captures only the relevant details, it could still be of substantial size and complexity. We propose query capability as a next step to help the user by extracting details related to a specific question. For example, the user can apply a query to check if there is an execution path in the CFG along which there is a missing memory deallocation and thus a possible memory leak. This thesis only implements queries that operate solely within the scope of a method (intra-procedural). We have built a proof-of-concept tool that allows the user to visualize Context-Sensitive CFG and make queries.</p>"],"dc:format.mimetype":["application/pdf"],"dc:identifier":["archive/lib.dr.iastate.edu/rtd/20215/"],"dc:identifier.doi":["https://doi.org/10.31274/rtd-20200817-8"],"dc:identifier.other":["21214","18970480"],"dc:identifier.uri":["https://dr.lib.iastate.edu/handle/20.500.12876/97582"],"dc:language.iso":["en"],"dc:relation.orgunit":["a75a044c-d11e-44cd-af4f-dab1d83339ff"],"dc:subject.keyword":["Electrical and computer engineering","Computer engineering"],"dc:title":["Context-Sensitive Control Flow Graph"],"dc:type":["thesis"],"dspace:entity.type":["Publication"],"local:admin":["isulib-bepress-aws-west","rtd/20215"],"mods:identifier.filename":["archive/lib.dr.iastate.edu/rtd/20215/Ng_ISU_2004_N52.pdf|||Fri Jan 14 22:21:35 UTC 2022"],"thesis:degree_discipline":["Computer Engineering"],"thesis:degree_level":["thesis"],"thesis:degree_name":["Master of Science"]},"updated_at":"2026-11-19T04:44:32Z"}