{"id":"https://openalex.org/W2597891906","doi":"https://doi.org/10.1109/tse.2017.2688333","title":"Discipline Matters: Refactoring of Preprocessor Directives in the #ifdef Hell","display_name":"Discipline Matters: Refactoring of Preprocessor Directives in the #ifdef Hell","publication_year":2017,"publication_date":"2017-03-28","ids":{"openalex":"https://openalex.org/W2597891906","doi":"https://doi.org/10.1109/tse.2017.2688333","mag":"2597891906"},"language":"en","primary_location":{"id":"doi:10.1109/tse.2017.2688333","is_oa":false,"landing_page_url":"https://doi.org/10.1109/tse.2017.2688333","pdf_url":null,"source":{"id":"https://openalex.org/S8351582","display_name":"IEEE Transactions on Software Engineering","issn_l":"0098-5589","issn":["0098-5589","1939-3520","2326-3881"],"is_oa":false,"is_in_doaj":false,"is_core":true,"host_organization":"https://openalex.org/P4310320439","host_organization_name":"IEEE Computer Society","host_organization_lineage":["https://openalex.org/P4310320439","https://openalex.org/P4310319808"],"host_organization_lineage_names":["IEEE Computer Society","Institute of Electrical and Electronics Engineers"],"type":"journal"},"license":null,"license_id":null,"version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"IEEE Transactions on Software Engineering","raw_type":"journal-article"},"type":"article","indexed_in":["crossref"],"open_access":{"is_oa":false,"oa_status":"closed","oa_url":null,"any_repository_has_fulltext":false},"authorships":[{"author_position":"first","author":{"id":"https://openalex.org/A5017584576","display_name":"Fl\u00e1vio Medeiros","orcid":"https://orcid.org/0000-0002-5142-7499"},"institutions":[{"id":"https://openalex.org/I41455075","display_name":"Universidade Federal de Campina Grande","ror":"https://ror.org/00eftnx64","country_code":"BR","type":"education","lineage":["https://openalex.org/I41455075"]},{"id":"https://openalex.org/I4210155484","display_name":"Federal Institute of Education, Science and Technology Alagoas","ror":"https://ror.org/040ys9e84","country_code":"BR","type":"education","lineage":["https://openalex.org/I4210155484"]}],"countries":["BR"],"is_corresponding":true,"raw_author_name":"Flavio Medeiros","raw_affiliation_strings":["Department of Computing and Systems, Federal University of Campina Grande, PB, Brazil","Federal Institute of Alagoas, AL, Brazil"],"affiliations":[{"raw_affiliation_string":"Department of Computing and Systems, Federal University of Campina Grande, PB, Brazil","institution_ids":["https://openalex.org/I41455075"]},{"raw_affiliation_string":"Federal Institute of Alagoas, AL, Brazil","institution_ids":["https://openalex.org/I4210155484"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5051287042","display_name":"M\u00e1rcio Ribeiro","orcid":"https://orcid.org/0000-0002-4293-4261"},"institutions":[{"id":"https://openalex.org/I79889768","display_name":"Universidade Federal de Alagoas","ror":"https://ror.org/00dna7t83","country_code":"BR","type":"education","lineage":["https://openalex.org/I79889768"]}],"countries":["BR"],"is_corresponding":false,"raw_author_name":"Marcio Ribeiro","raw_affiliation_strings":["Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil"],"affiliations":[{"raw_affiliation_string":"Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil","institution_ids":["https://openalex.org/I79889768"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5075988425","display_name":"Rohit Gheyi","orcid":"https://orcid.org/0000-0002-5562-4449"},"institutions":[{"id":"https://openalex.org/I41455075","display_name":"Universidade Federal de Campina Grande","ror":"https://ror.org/00eftnx64","country_code":"BR","type":"education","lineage":["https://openalex.org/I41455075"]}],"countries":["BR"],"is_corresponding":false,"raw_author_name":"Rohit Gheyi","raw_affiliation_strings":["Department of Computing and Systems, Federal University of Campina Grande, PB, Brazil"],"affiliations":[{"raw_affiliation_string":"Department of Computing and Systems, Federal University of Campina Grande, PB, Brazil","institution_ids":["https://openalex.org/I41455075"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5054951840","display_name":"Sven Apel","orcid":"https://orcid.org/0000-0003-3687-2233"},"institutions":[{"id":"https://openalex.org/I186354981","display_name":"University of Passau","ror":"https://ror.org/05ydjnb78","country_code":"DE","type":"education","lineage":["https://openalex.org/I186354981"]}],"countries":["DE"],"is_corresponding":false,"raw_author_name":"Sven Apel","raw_affiliation_strings":["Department of Informatics and Mathematics, University of Passau, Passau, Germany"],"affiliations":[{"raw_affiliation_string":"Department of Informatics and Mathematics, University of Passau, Passau, Germany","institution_ids":["https://openalex.org/I186354981"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5067467896","display_name":"Christian K\u00e4stner","orcid":"https://orcid.org/0000-0002-4450-4572"},"institutions":[{"id":"https://openalex.org/I74973139","display_name":"Carnegie Mellon University","ror":"https://ror.org/05x2bcf33","country_code":"US","type":"education","lineage":["https://openalex.org/I74973139"]}],"countries":["US"],"is_corresponding":false,"raw_author_name":"Christian Kastner","raw_affiliation_strings":["Institute for Software Research, Carnegie Mellon University, Pittsburgh, PA"],"affiliations":[{"raw_affiliation_string":"Institute for Software Research, Carnegie Mellon University, Pittsburgh, PA","institution_ids":["https://openalex.org/I74973139"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5052448946","display_name":"Bruno Ferreira","orcid":"https://orcid.org/0000-0002-7308-6111"},"institutions":[{"id":"https://openalex.org/I79889768","display_name":"Universidade Federal de Alagoas","ror":"https://ror.org/00dna7t83","country_code":"BR","type":"education","lineage":["https://openalex.org/I79889768"]}],"countries":["BR"],"is_corresponding":false,"raw_author_name":"Bruno Ferreira","raw_affiliation_strings":["Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil"],"affiliations":[{"raw_affiliation_string":"Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil","institution_ids":["https://openalex.org/I79889768"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5067677578","display_name":"Luiz Carlos de S\u00e1 Carvalho","orcid":"https://orcid.org/0009-0002-1915-3720"},"institutions":[{"id":"https://openalex.org/I79889768","display_name":"Universidade Federal de Alagoas","ror":"https://ror.org/00dna7t83","country_code":"BR","type":"education","lineage":["https://openalex.org/I79889768"]}],"countries":["BR"],"is_corresponding":false,"raw_author_name":"Luiz Carvalho","raw_affiliation_strings":["Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil"],"affiliations":[{"raw_affiliation_string":"Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil","institution_ids":["https://openalex.org/I79889768"]}]},{"author_position":"last","author":{"id":"https://openalex.org/A5090231856","display_name":"Baldo\u00edno Fonseca","orcid":"https://orcid.org/0000-0002-0730-0319"},"institutions":[{"id":"https://openalex.org/I79889768","display_name":"Universidade Federal de Alagoas","ror":"https://ror.org/00dna7t83","country_code":"BR","type":"education","lineage":["https://openalex.org/I79889768"]}],"countries":["BR"],"is_corresponding":false,"raw_author_name":"Baldoino Fonseca","raw_affiliation_strings":["Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil"],"affiliations":[{"raw_affiliation_string":"Computing Institute, Federal University of Alagoas, Macei\u00f3, AL, Brazil","institution_ids":["https://openalex.org/I79889768"]}]}],"institutions":[],"countries_distinct_count":3,"institutions_distinct_count":8,"corresponding_author_ids":["https://openalex.org/A5017584576"],"corresponding_institution_ids":["https://openalex.org/I41455075","https://openalex.org/I4210155484"],"apc_list":null,"apc_paid":null,"fwci":11.1233,"has_fulltext":false,"cited_by_count":69,"citation_normalized_percentile":{"value":0.9829839,"is_in_top_1_percent":false,"is_in_top_10_percent":true},"cited_by_percentile_year":{"min":96,"max":99},"biblio":{"volume":"44","issue":"5","first_page":"453","last_page":"469"},"is_retracted":false,"is_paratext":false,"is_xpac":false,"primary_topic":{"id":"https://openalex.org/T10260","display_name":"Software Engineering Research","score":0.9998000264167786,"subfield":{"id":"https://openalex.org/subfields/1710","display_name":"Information Systems"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},"topics":[{"id":"https://openalex.org/T10260","display_name":"Software Engineering Research","score":0.9998000264167786,"subfield":{"id":"https://openalex.org/subfields/1710","display_name":"Information Systems"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T10639","display_name":"Advanced Software Engineering Methodologies","score":0.9993000030517578,"subfield":{"id":"https://openalex.org/subfields/1702","display_name":"Artificial Intelligence"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T12127","display_name":"Software System Performance and Reliability","score":0.9987999796867371,"subfield":{"id":"https://openalex.org/subfields/1705","display_name":"Computer Networks and Communications"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}}],"keywords":[{"id":"https://openalex.org/keywords/code-refactoring","display_name":"Code refactoring","score":0.9767289161682129},{"id":"https://openalex.org/keywords/preprocessor","display_name":"Preprocessor","score":0.8289086818695068},{"id":"https://openalex.org/keywords/computer-science","display_name":"Computer science","score":0.7823193073272705},{"id":"https://openalex.org/keywords/software-portability","display_name":"Software portability","score":0.7665005922317505},{"id":"https://openalex.org/keywords/maintainability","display_name":"Maintainability","score":0.7040526270866394},{"id":"https://openalex.org/keywords/programming-language","display_name":"Programming language","score":0.6481916904449463},{"id":"https://openalex.org/keywords/code","display_name":"Code (set theory)","score":0.621164858341217},{"id":"https://openalex.org/keywords/software-engineering","display_name":"Software engineering","score":0.5309383869171143},{"id":"https://openalex.org/keywords/code-smell","display_name":"Code smell","score":0.42029494047164917},{"id":"https://openalex.org/keywords/software","display_name":"Software","score":0.25432825088500977},{"id":"https://openalex.org/keywords/software-quality","display_name":"Software quality","score":0.21862849593162537},{"id":"https://openalex.org/keywords/software-development","display_name":"Software development","score":0.16001051664352417}],"concepts":[{"id":"https://openalex.org/C152752567","wikidata":"https://www.wikidata.org/wiki/Q116877","display_name":"Code refactoring","level":3,"score":0.9767289161682129},{"id":"https://openalex.org/C34736171","wikidata":"https://www.wikidata.org/wiki/Q918333","display_name":"Preprocessor","level":2,"score":0.8289086818695068},{"id":"https://openalex.org/C41008148","wikidata":"https://www.wikidata.org/wiki/Q21198","display_name":"Computer science","level":0,"score":0.7823193073272705},{"id":"https://openalex.org/C63000827","wikidata":"https://www.wikidata.org/wiki/Q3080428","display_name":"Software portability","level":2,"score":0.7665005922317505},{"id":"https://openalex.org/C160713754","wikidata":"https://www.wikidata.org/wiki/Q1389965","display_name":"Maintainability","level":2,"score":0.7040526270866394},{"id":"https://openalex.org/C199360897","wikidata":"https://www.wikidata.org/wiki/Q9143","display_name":"Programming language","level":1,"score":0.6481916904449463},{"id":"https://openalex.org/C2776760102","wikidata":"https://www.wikidata.org/wiki/Q5139990","display_name":"Code (set theory)","level":3,"score":0.621164858341217},{"id":"https://openalex.org/C115903868","wikidata":"https://www.wikidata.org/wiki/Q80993","display_name":"Software engineering","level":1,"score":0.5309383869171143},{"id":"https://openalex.org/C133237599","wikidata":"https://www.wikidata.org/wiki/Q2295111","display_name":"Code smell","level":5,"score":0.42029494047164917},{"id":"https://openalex.org/C2777904410","wikidata":"https://www.wikidata.org/wiki/Q7397","display_name":"Software","level":2,"score":0.25432825088500977},{"id":"https://openalex.org/C117447612","wikidata":"https://www.wikidata.org/wiki/Q1412670","display_name":"Software quality","level":4,"score":0.21862849593162537},{"id":"https://openalex.org/C529173508","wikidata":"https://www.wikidata.org/wiki/Q638608","display_name":"Software development","level":3,"score":0.16001051664352417},{"id":"https://openalex.org/C177264268","wikidata":"https://www.wikidata.org/wiki/Q1514741","display_name":"Set (abstract data type)","level":2,"score":0.0}],"mesh":[],"locations_count":1,"locations":[{"id":"doi:10.1109/tse.2017.2688333","is_oa":false,"landing_page_url":"https://doi.org/10.1109/tse.2017.2688333","pdf_url":null,"source":{"id":"https://openalex.org/S8351582","display_name":"IEEE Transactions on Software Engineering","issn_l":"0098-5589","issn":["0098-5589","1939-3520","2326-3881"],"is_oa":false,"is_in_doaj":false,"is_core":true,"host_organization":"https://openalex.org/P4310320439","host_organization_name":"IEEE Computer Society","host_organization_lineage":["https://openalex.org/P4310320439","https://openalex.org/P4310319808"],"host_organization_lineage_names":["IEEE Computer Society","Institute of Electrical and Electronics Engineers"],"type":"journal"},"license":null,"license_id":null,"version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"IEEE Transactions on Software Engineering","raw_type":"journal-article"}],"best_oa_location":null,"sustainable_development_goals":[{"score":0.44999998807907104,"display_name":"Partnerships for the goals","id":"https://metadata.un.org/sdg/17"}],"awards":[{"id":"https://openalex.org/G1694173479","display_name":null,"funder_award_id":"AP 206/5","funder_id":"https://openalex.org/F4320320879","funder_display_name":"Deutsche Forschungsgemeinschaft"},{"id":"https://openalex.org/G3389752542","display_name":null,"funder_award_id":"AP 206/4","funder_id":"https://openalex.org/F4320320879","funder_display_name":"Deutsche Forschungsgemeinschaft"},{"id":"https://openalex.org/G3648430758","display_name":null,"funder_award_id":"465614/2014-0","funder_id":"https://openalex.org/F4320322025","funder_display_name":"Conselho Nacional de Desenvolvimento Cient\u00edfico e Tecnol\u00f3gico"},{"id":"https://openalex.org/G6962569482","display_name":null,"funder_award_id":"175956","funder_id":"https://openalex.org/F4320321091","funder_display_name":"Coordena\u00e7\u00e3o de Aperfei\u00e7oamento de Pessoal de N\u00edvel Superior"},{"id":"https://openalex.org/G700599998","display_name":null,"funder_award_id":"306610/2013-2","funder_id":"https://openalex.org/F4320322025","funder_display_name":"Conselho Nacional de Desenvolvimento Cient\u00edfico e Tecnol\u00f3gico"},{"id":"https://openalex.org/G7063828732","display_name":null,"funder_award_id":"AP 206/6","funder_id":"https://openalex.org/F4320320879","funder_display_name":"Deutsche Forschungsgemeinschaft"},{"id":"https://openalex.org/G7490241451","display_name":null,"funder_award_id":"FA8750-16-2-0042","funder_id":"https://openalex.org/F4320332180","funder_display_name":"Defense Advanced Research Projects Agency"},{"id":"https://openalex.org/G849147756","display_name":null,"funder_award_id":"460883/2014-3","funder_id":"https://openalex.org/F4320322025","funder_display_name":"Conselho Nacional de Desenvolvimento Cient\u00edfico e Tecnol\u00f3gico"},{"id":"https://openalex.org/G8547532233","display_name":null,"funder_award_id":"117875","funder_id":"https://openalex.org/F4320321091","funder_display_name":"Coordena\u00e7\u00e3o de Aperfei\u00e7oamento de Pessoal de N\u00edvel Superior"}],"funders":[{"id":"https://openalex.org/F4320320879","display_name":"Deutsche Forschungsgemeinschaft","ror":"https://ror.org/018mejw64"},{"id":"https://openalex.org/F4320321091","display_name":"Coordena\u00e7\u00e3o de Aperfei\u00e7oamento de Pessoal de N\u00edvel Superior","ror":"https://ror.org/00x0ma614"},{"id":"https://openalex.org/F4320322025","display_name":"Conselho Nacional de Desenvolvimento Cient\u00edfico e Tecnol\u00f3gico","ror":"https://ror.org/03swz6y49"},{"id":"https://openalex.org/F4320332180","display_name":"Defense Advanced Research Projects Agency","ror":"https://ror.org/02caytj08"},{"id":"https://openalex.org/F4320338294","display_name":"Air Force Research Laboratory","ror":"https://ror.org/02e2egq70"}],"has_content":{"pdf":false,"grobid_xml":false},"content_urls":null,"referenced_works_count":57,"referenced_works":["https://openalex.org/W397180395","https://openalex.org/W1487664366","https://openalex.org/W1692229780","https://openalex.org/W1807333353","https://openalex.org/W1893938325","https://openalex.org/W1895387792","https://openalex.org/W1914972138","https://openalex.org/W1948541244","https://openalex.org/W1965084634","https://openalex.org/W1983839675","https://openalex.org/W2002295687","https://openalex.org/W2003113483","https://openalex.org/W2005293364","https://openalex.org/W2006617204","https://openalex.org/W2009093319","https://openalex.org/W2009200860","https://openalex.org/W2009288394","https://openalex.org/W2019348938","https://openalex.org/W2048064553","https://openalex.org/W2055818134","https://openalex.org/W2070929035","https://openalex.org/W2086067603","https://openalex.org/W2097355277","https://openalex.org/W2099106391","https://openalex.org/W2101730275","https://openalex.org/W2112594421","https://openalex.org/W2119838293","https://openalex.org/W2120789318","https://openalex.org/W2126267752","https://openalex.org/W2133675710","https://openalex.org/W2134826995","https://openalex.org/W2135268264","https://openalex.org/W2135467250","https://openalex.org/W2144179818","https://openalex.org/W2144258665","https://openalex.org/W2146146776","https://openalex.org/W2147671787","https://openalex.org/W2148305550","https://openalex.org/W2148546387","https://openalex.org/W2155483096","https://openalex.org/W2157151174","https://openalex.org/W2159478700","https://openalex.org/W2165448973","https://openalex.org/W2171002355","https://openalex.org/W2171464342","https://openalex.org/W2173469511","https://openalex.org/W2293865934","https://openalex.org/W2395230091","https://openalex.org/W2495617574","https://openalex.org/W2576538132","https://openalex.org/W4238083723","https://openalex.org/W4241617031","https://openalex.org/W4250450918","https://openalex.org/W6629007499","https://openalex.org/W6637538699","https://openalex.org/W6678051792","https://openalex.org/W6696710211"],"related_works":["https://openalex.org/W2146134503","https://openalex.org/W2088986462","https://openalex.org/W2780981476","https://openalex.org/W2955607951","https://openalex.org/W3166181464","https://openalex.org/W2187939805","https://openalex.org/W2026866620","https://openalex.org/W125071098","https://openalex.org/W2512989791","https://openalex.org/W2517910349"],"abstract_inverted_index":{"The":[0],"C":[1,7,20,134,214,258],"preprocessor":[2,21,42,66,184],"is":[3,50],"used":[4],"in":[5,52,67,104,131,221,256],"many":[6],"projects":[8],"to":[9,151,159,167,198,232],"support":[10,48],"variability":[11],"and":[12,16,30,32,93,116,146,224,238,244],"portability.":[13],"However,":[14],"researchers":[15],"practitioners":[17],"criticize":[18],"the":[19,38,41,44,65,78,82,96,102,106,111,114,118,129,169,175,179,189,213,217,222,230,257],"because":[22],"of":[23,40,46,81,91,98,101,108,113,164,174,178,209,212],"its":[24,33],"negative":[25],"effect":[26],"on":[27],"code":[28,176,181],"understanding":[29],"maintainability":[31],"error":[34],"proneness.":[35],"More":[36],"importantly,":[37],"use":[39,168],"hinders":[43],"development":[45],"tool":[47],"that":[49,73,188],"standard":[51],"other":[53],"languages,":[54],"such":[55],"as":[56],"automated":[57],"refactoring.":[58],"Developers":[59],"aggravate":[60],"these":[61],"problems":[62],"when":[63],"using":[64,206],"undisciplined":[68,153,183],"ways":[69],"(e.g.,":[70],"conditional":[71],"blocks":[72],"do":[74],"not":[75],"align":[76],"with":[77,182],"syntactic":[79],"structure":[80],"code).":[83],"In":[84,136],"this":[85],"article,":[86],"we":[87,94,123,138,147,195,228,242],"proposed":[88],"a":[89,207,210,246],"catalogue":[90],"refactorings":[92,103,119,130,190,231],"evaluated":[95],"number":[97],"application":[99,126],"possibilities":[100,127],"practice,":[105],"opinion":[107],"developers":[109,165],"about":[110],"usefulness":[112],"refactorings,":[115],"whether":[117],"preserve":[120],"behavior.":[121],"Overall,":[122],"found":[124],"5,670":[125],"for":[128],"63":[132,162],"real-world":[133,234],"projects.":[135],"addition,":[137],"performed":[139],"an":[140],"online":[141],"survey":[142],"among":[143],"246":[144],"developers,":[145],"submitted":[148],"28":[149],"patches":[150],"convert":[152],"directives":[154],"into":[155],"disciplined":[156],"ones.":[157],"According":[158],"our":[160],"results,":[161],"percent":[163,251],"prefer":[166],"refactored":[170,225],"(i.e.,":[171],"disciplined)":[172],"version":[173],"instead":[177],"original":[180,223],"usage.":[185],"To":[186],"verify":[187],"are":[191],"indeed":[192],"behavior":[193,255],"preserving,":[194],"applied":[196,229],"them":[197],"more":[199],"than":[200],"36":[201],"thousand":[202],"programs":[203],"generated":[204],"automatically":[205],"model":[208],"subset":[211],"language,":[215],"running":[216],"same":[218],"test":[219],"cases":[220],"programs.":[226],"Furthermore,":[227],"three":[233],"projects:":[235],"BusyBox,":[236],"OpenSSL,":[237],"SQLite.":[239],"This":[240],"way,":[241],"detected":[243],"fixed":[245],"few":[247],"behavioral":[248],"changes,":[249],"62":[250],"caused":[252],"by":[253],"unspecified":[254],"programming":[259],"language.":[260]},"counts_by_year":[{"year":2025,"cited_by_count":5},{"year":2024,"cited_by_count":10},{"year":2023,"cited_by_count":9},{"year":2022,"cited_by_count":9},{"year":2021,"cited_by_count":13},{"year":2020,"cited_by_count":12},{"year":2019,"cited_by_count":5},{"year":2018,"cited_by_count":3},{"year":2017,"cited_by_count":3}],"updated_date":"2025-11-06T03:46:38.306776","created_date":"2025-10-10T00:00:00"}
