{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T18:10:46Z","timestamp":1794679846567,"version":"4.9.1"},"publisher-location":"Cham","reference-count":21,"publisher":"Springer International Publishing","isbn-type":[{"value":"9783030816872","type":"print"},{"value":"9783030816889","type":"electronic"}],"license":[{"start":{"date-parts":[[2021,1,1]],"date-time":"2021-01-01T00:00:00Z","timestamp":1609459200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2021,7,15]],"date-time":"2021-07-15T00:00:00Z","timestamp":1626307200000},"content-version":"vor","delay-in-days":195,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2021]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Verification of instruction encoders and decoders is essential for formalizing manipulation of machine code. The existing approaches cannot guarantee the critical\n                    <jats:italic>consistency<\/jats:italic>\n                    property, i.e., that an encoder and its corresponding decoder are mutual inverses of each other. We observe that consistent encoder-decoder pairs can be automatically derived from bijections inherently embedded in instruction formats. Based on this observation, we develop a framework for writing specifications that capture these bijections, for automatically generating encoders and decoders from these specifications, and for formally validating the consistency and soundness of the generated encoders and decoders by synthesizing proofs in Coq and discharging verification conditions using SMT solvers. We apply this framework to a subset of X86-32 instructions to illustrate its effectiveness in these regards. We also demonstrate that the generated encoders and decoders have reasonable performance.\n                  <\/jats:p>","DOI":"10.1007\/978-3-030-81688-9_34","type":"book-chapter","created":{"date-parts":[[2021,7,16]],"date-time":"2021-07-16T12:20:47Z","timestamp":1626438047000},"page":"728-751","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":3,"title":["Automatic Generation and Validation of Instruction Encoders and Decoders"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6619-781X","authenticated-orcid":false,"given":"Xiangzhe","family":"Xu","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5812-053X","authenticated-orcid":false,"given":"Jinhua","family":"Wu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3990-2418","authenticated-orcid":false,"given":"Yuting","family":"Wang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhenguo","family":"Yin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Pengfei","family":"Li","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2021,7,15]]},"reference":[{"key":"34_CR1","doi-asserted-by":"publisher","unstructured":"Alimarine, A., Smetsers, S., Weelden, A., Eekelen, M., Plasmeijer, R.: There and back again: arrows for invertible programming. In: Proceedings of the 2005 ACM SIGPLAN Workshop on Haskell, pp. 86\u201397. ACM (2005). https:\/\/doi.org\/10.1145\/1088348.1088357","DOI":"10.1145\/1088348.1088357"},{"key":"34_CR2","doi-asserted-by":"publisher","unstructured":"Armstrong, A., et al.: ISA semantics for ARMv8-a, RISC-v, and CHERI-MIPS. Proc. ACM Program. Lang. 3(POPL), 71:1\u201371:31 (2019). https:\/\/doi.org\/10.1145\/3290384","DOI":"10.1145\/3290384"},{"key":"34_CR3","doi-asserted-by":"publisher","unstructured":"Barthwal, A., Norrish, M.: Verified, executable parsing. In: Castagna, G. (ed.) ESOP 2009. LNCS, vol. 5502, pp. 160\u2013174. Springer, Heidelberg (2009). https:\/\/doi.org\/10.1007\/978-3-642-00590-9_12","DOI":"10.1007\/978-3-642-00590-9_12"},{"key":"34_CR4","doi-asserted-by":"publisher","unstructured":"Dasgupta, S., Park, D., Kasampalis, T., Adve, V.S., Ro\u015fu, G.: A complete formal semantics of x86\u201364 user-level instruction set architecture. In: PLDI 2019, pp. 1133\u20131148. ACM (2019). https:\/\/doi.org\/10.1145\/3314221.3314601","DOI":"10.1145\/3314221.3314601"},{"key":"34_CR5","doi-asserted-by":"publisher","unstructured":"De Moura, L.M., Bj\u00f8rner, N.: Z3: An efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J. (eds.) TACAS 2008. LNCS, vol. 4963, pp. 337\u2013340. Springer, Heidelberg (2008). https:\/\/doi.org\/10.1007\/978-3-540-78800-3_24","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"34_CR6","doi-asserted-by":"publisher","unstructured":"Delaware, B., Suriyakarn, S., Pit-Claudel, C., Ye, Q., Chlipala, A.: Narcissus: correct-by-construction derivation of decoders and encoders from binary formats. Proc. ACM Program. Lang. 3(ICFP), 82:1\u201382:29 (2019). https:\/\/doi.org\/10.1145\/3341686","DOI":"10.1145\/3341686"},{"key":"34_CR7","doi-asserted-by":"publisher","unstructured":"Fauth, A., Van Praet, J., Freericks, M.: Describing instruction set processors using NML. In: Proceedings of the European Design and Test Conference, pp. 503\u2013507. IEEE (1995). https:\/\/doi.org\/10.1109\/EDTC.1995.470354","DOI":"10.1109\/EDTC.1995.470354"},{"key":"34_CR8","doi-asserted-by":"publisher","unstructured":"Fox, A.: Directions in ISA specification. In: Beringer, L., Felty, A. (eds.) ITP 2012. LNCS, vol. 7406, pp. 338\u2013344. Springer, Heidelberg (2012). https:\/\/doi.org\/10.1007\/978-3-642-32347-8_23","DOI":"10.1007\/978-3-642-32347-8_23"},{"key":"34_CR9","doi-asserted-by":"publisher","unstructured":"Fox, A., Myreen, M.O.: A trustworthy monadic formalization of the armv7 instruction set architecture. In: Kaufmann, M., Paulson, L.C. (eds.) ITP 2010. LNCS, vol. 6172, pp. 243\u2013258. Springer, Heidelberg (2010). https:\/\/doi.org\/10.1007\/978-3-642-14052-5_18","DOI":"10.1007\/978-3-642-14052-5_18"},{"key":"34_CR10","doi-asserted-by":"publisher","unstructured":"Jansson, P., Jeuring, J.: Polytypic compact printing and parsing. In: Swierstra, S.D. (ed.) ESOP 1999. LNCS, vol. 1576, pp. 273\u2013287. Springer, Heidelberg (1999). https:\/\/doi.org\/10.1007\/3-540-49099-X_18","DOI":"10.1007\/3-540-49099-X_18"},{"key":"34_CR11","doi-asserted-by":"publisher","unstructured":"Jourdan, J.H., Pottier, F., Leroy, X.: Validating lr(1) parsers. In: Seidl, H. (ed.) ESOP 2012. LNCS, vol. 7211, pp. 397\u2013416. Springer, Heidelberg (2012). https:\/\/doi.org\/10.1007\/978-3-642-28869-2_20","DOI":"10.1007\/978-3-642-28869-2_20"},{"key":"34_CR12","doi-asserted-by":"publisher","unstructured":"Larus, J.R., Schnarr, E.: Eel: machine-independent executable editing. In: PLDI 1995, pp. 291\u2013300. ACM (1995). https:\/\/doi.org\/10.1145\/207110.207163","DOI":"10.1145\/207110.207163"},{"key":"34_CR13","unstructured":"Leroy, X.: The CompCert Verified Compiler (2005\u20132021). https:\/\/compcert.org\/"},{"key":"34_CR14","unstructured":"Ramananandro, T., et al.: Everparse: verified secure zero-copy parsers for authenticated message formats. In: USENIX Security Symposium, pp. 1465\u20131482. USENIX Association (2019)"},{"issue":"3","key":"34_CR15","doi-asserted-by":"publisher","first-page":"492","DOI":"10.1145\/256167.256225","volume":"19","author":"N Ramsey","year":"1997","unstructured":"Ramsey, N., Fern\u00e1ndez, M.F.: Specifying representations of machine instructions. ACM Trans. Program. Lang. Syst. 19(3), 492\u2013524 (1997). https:\/\/doi.org\/10.1145\/256167.256225","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"34_CR16","doi-asserted-by":"publisher","unstructured":"Rendel, T., Ostermann, K.: Invertible syntax descriptions: Unifying parsing and pretty printing. In: Proceedings of the 3rd ACM Haskell Symposium on Haskell, pp. 1\u201312. ACM (2010). https:\/\/doi.org\/10.1145\/1863523.1863525","DOI":"10.1145\/1863523.1863525"},{"key":"34_CR17","doi-asserted-by":"publisher","unstructured":"Ridge, T.: Simple, functional, sound and complete parsing for all context-free grammars. In: Jouannaud, J.P., Shao, Z. (eds.) CPP 2011. LNCS, vol. 7086, pp. 103\u2013118. Springer, Heidelberg (2011). https:\/\/doi.org\/10.1007\/978-3-642-25379-9_10","DOI":"10.1007\/978-3-642-25379-9_10"},{"issue":"3","key":"34_CR18","doi-asserted-by":"publisher","first-page":"257","DOI":"10.1007\/s10817-017-9429-1","volume":"60","author":"Gang Tan","year":"2017","unstructured":"Tan, Gang, Morrisett, Greg: Bidirectional grammars for machine-code decoding and encoding. J. Autom. Reason. 60(3), 257\u2013277 (2017). https:\/\/doi.org\/10.1007\/s10817-017-9429-1","journal-title":"J. Autom. Reason."},{"key":"34_CR19","doi-asserted-by":"publisher","unstructured":"Van Geest, M., Swierstra, W.: Generic packet descriptions: verified parsing and pretty printing of low-level data. In: Proceedings of the 2nd ACM SIGPLAN Workshop on Type-Driven Development, pp. 30\u201340. ACM (2017). https:\/\/doi.org\/10.1145\/3122975.3122979","DOI":"10.1145\/3122975.3122979"},{"key":"34_CR20","doi-asserted-by":"publisher","unstructured":"Wang, Y., Xu, X., Wilke, P., Shao, Z.: Compcertelf: verified separate compilation of c programs into elf object files. Proc. ACM Program. Lang. 4(OOPSLA), 197:1\u2013197:28 (2020). https:\/\/doi.org\/10.1145\/3428265","DOI":"10.1145\/3428265"},{"key":"34_CR21","doi-asserted-by":"publisher","unstructured":"Ye, Q., Delaware, B.: A verified protocol buffer compiler. In: CPP 2019, pp. 222\u2013233. ACM (2019). https:\/\/doi.org\/10.1145\/3293880.3294105","DOI":"10.1145\/3293880.3294105"}],"container-title":["Lecture Notes in Computer Science","Computer Aided Verification"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-030-81688-9_34","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2021,7,16]],"date-time":"2021-07-16T12:29:31Z","timestamp":1626438571000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-030-81688-9_34"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021]]},"ISBN":["9783030816872","9783030816889"],"references-count":21,"URL":"https:\/\/doi.org\/10.1007\/978-3-030-81688-9_34","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-030-81688-9","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021]]},"assertion":[{"value":"15 July 2021","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"CAV","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Conference on Computer Aided Verification","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2021","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"20 July 2021","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"23 July 2021","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"33","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"cav2021","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"http:\/\/i-cav.org\/2021\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Double-blind","order":1,"name":"type","label":"Type","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"EasyChair","order":2,"name":"conference_management_system","label":"Conference Management System","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"290","order":3,"name":"number_of_submissions_sent_for_review","label":"Number of Submissions Sent for Review","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"63","order":4,"name":"number_of_full_papers_accepted","label":"Number of Full Papers Accepted","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"0","order":5,"name":"number_of_short_papers_accepted","label":"Number of Short Papers Accepted","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"22% - The value is computed by the equation \"Number of Full Papers Accepted \/ Number of Submissions Sent for Review * 100\" and then rounded to a whole number.","order":6,"name":"acceptance_rate_of_full_papers","label":"Acceptance Rate of Full Papers","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"3","order":7,"name":"average_number_of_reviews_per_paper","label":"Average Number of Reviews per Paper","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"12","order":8,"name":"average_number_of_papers_per_reviewer","label":"Average Number of Papers per Reviewer","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"Yes","order":9,"name":"external_reviewers_involved","label":"External Reviewers Involved","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"16 tool papers and 5 invited papers are also included.","order":10,"name":"additional_info_on_review_process","label":"Additional Info on Review Process","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}}]}}