Measuring code behavioral similarity for programming and software engineering education
The DOI matches its Crossref record; 30 of the 30 references it cites were found in a registry or an index.
Abstract
In recent years, online programming and software engineering education via information technology has gained a lot of popularity. Typically, popular courses often have hundreds or thousands of students but only a few course staff members. Tool automation is needed to maintain the quality of education. In this paper, we envision that the capability of quantifying behavioral similarity between programs is helpful for teaching and learning programming and software engineering, and propose three metrics that approximate the computation of behavioral similarity. Specifically, we leverage random testing and dynamic symbolic execution (DSE) to generate test inputs, and run programs on these test inputs to compute metric values of the behavioral similarity. We evaluate our metrics on three real-world data sets from the Pex4Fun platform (which so far has accumulated more than 1.7 million game-play interactions). The results show that our metrics provide highly accurate approximation to the behavioral similarity. We also demonstrate a number of practical applications of our metrics including hint generation, progress indication, and automatic grading.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Measuring functional equivalence is not the purpose of BPlag as there are already tools that exist to measure similarity through functional equivalence (e.g.[14], [31], [32], [34], [35]).”
From Academic Source Code Plagiarism Detection by Measuring Program Behavioral Similarity (2021) · cites this paper as [14]
Citations
Cites
de Moura, L., & Bjørner, N. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-78800-3_24 · Cited by 6,595 · cited 1×
“Dynamic symbolic execution (DSE) [11,23,26] is a technique that executes a program both symbolically and concretely to collect constraints from branches and systematically negates part of the collected constraints to generate new program inputs.”
BackgroundDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065036 · Cited by 2,067
CCFinder: a multilinguistic token-based code clone detection system for large scale source code
Kamiya, T., Kusumoto, S., & Inoue, K. (2002) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2002.1019480 · Cited by 1,711
CUTE: a concolic unit testing engine for C
Sen, K., Marinov, D., & Agha, G. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081750 · Cited by 1,651
DART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065036 · Cited by 1,570
Clone detection using abstract syntax trees
Baxter, I. D., Yahin, A., Moura, L., Sant'Anna, M., & Bier, L. (2002) · Proceedings. International Conference on Software Maintenance (Cat. No. 98CB36272) · doi:10.1109/icsm.1998.738528 · Cited by 1,277 · cited 1×
“…proposed approaches that compute similarities of various representations of code fragments to automatically identify code clones, such as tokenized statements [17], abstract syntax trees [4], program dependence graphs [18], and metrics based on syntactic units (e.g., classes and functions) [8, 20].”
BackgroundAutomated Whitebox Fuzz Testing.
Godefroid, P., Levin, M. Y., & Molnar, D. A. (2008) · Cited by 1,095
Feedback-Directed Random Test Generation
Pacheco, C., Lahiri, S. K., Ernst, M. D., & Ball, T. (2007) · 29th International Conference on Software Engineering (ICSE'07) · doi:10.1109/icse.2007.37 · Cited by 863
Pex–White Box Test Generation for .NET
Tillmann, N., & de Halleux, J. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-79124-9_10 · Cited by 791
Self-citationUsing Slicing to Identify Duplication in Source Code
Komondoor, R., & Horwitz, S. (2001) · Lecture Notes in Computer Science · doi:10.1007/3-540-47764-0_3 · Cited by 527
Research works printed but not linked: 6
- 10.5555/850947.853341 · doi:10.5555/850947.853341
- 10.5555/1792734.1792766 · doi:10.5555/1792734.1792766
- 10.5555/645543.655704 · doi:10.5555/645543.655704
- 10.5555/647170.718283 · doi:10.5555/647170.718283
- 10.5555/1018431.1021448 · doi:10.5555/1018431.1021448
- 10.5555/1792786.1792798 · doi:10.5555/1792786.1792798
Cited by
Hahn, M. G., Navarro, S. M. B., De La Fuente Valentin, L., & Burgos, D. (2021) · IEEE Access · doi:10.1109/access.2021.3100890 · Cited by 111
“These include mathematics [47], code [22], and controlled environments such as simulations [40].”
BackgroundF a C o Y: a code-to-code search engine
Kim, K., Kim, D., Bissyandé, T. F., Choi, E., Li, L., Klein, J., & Traon, Y. L. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3180187 · Cited by 117
“State-of-the-art dynamic approaches generate random inputs [35], rely on symbolic [55] or concolic execution [50] and check abstract memory states [45] to compute function similarity based on execution outputs.”
BackgroundBuilding a Comprehensive Automated Programming Assessment System
Mekterovic, I., Brkic, L., Milasinovic, B., & Baranovic, M. (2020) · IEEE Access · doi:10.1109/access.2020.2990980 · Cited by 74
Academic Source Code Plagiarism Detection by Measuring Program Behavioral Similarity
Cheers, H., Lin, Y., & Smith, S. P. (2021) · IEEE Access · doi:10.1109/access.2021.3069367 · Cited by 59
“For example, analysing the functional equivalence of a program [14], [31], the use of data at runtime [32], identifying similar interactions”
BackgroundCode relatives: detecting similarly behaving software
Su, F.-H., Bell, J., Harvey, K., Sethumadhavan, S., Kaiser, G. E., & Jebara, T. (2016) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/2950290.2950321 · Cited by 71
“Li et al. detect functional similarity between code fragments using dynamic symbolic execution to generate inputs [34].”
BackgroundAutomating the correctness assessment of AI-generated code for security contexts
Cotroneo, D., Foggia, A., Improta, C., Liguori, P., & Natella, R. (2024) · Journal of Systems and Software · doi:10.1016/j.jss.2024.112113 · Cited by 56
“Li et al. [52] leveraged random testing and dynamic symbolic execution (DSE), i.e., a software testing technique that simulates the execution of a program by providing symbolic inputs instead of concrete values.”
MethodTest migration for efficient large-scale assessment of mobile app coding assignments
Behrang, F., & Orso, A. (2018) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3213846.3213854 · Cited by 33
“One of the main challenges, in this context, is assessing student assignments [13, 34].”
BackgroundEarly Detection of Smart Ponzi Scheme Contracts Based on Behavior Forest Similarity
Sun, W., Xu, G., Yang, Z., & Chen, Z. (2020) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs51102.2020.00047 · Cited by 35
“Sihan et al. [18] regard the proportion of inputs producing the same output on both programs over the specific input domain as the behavioral similarity between two programs.”
BackgroundKeller, P., Kaboré, A. K., Plein, L., Klein, J., Traon, Y. L., & Bissyandé, T. F. (2021) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3485135 · Cited by 36
“To find similarly behaving code fragments, researchers have relied upon dynamic or concolic code similarity detection which consists in identifying programs that yield similar outputs for the same inputs [18, 22, 24, 26, 42].”
BackgroundAutomatic Extraction of AST Patterns for Debugging Student Programs
Lazar, T., Možina, M., & Ivan Bratko, A. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-61425-0_14 · Cited by 20
Similarity-based analyses on software applications: A systematic literature review
Auch, M., Weber, M., Mandl, P., & Wolff, C. G. (2020) · Journal of Systems and Software · doi:10.1016/j.jss.2020.110669 · Cited by 27
Big Code Search: A Bibliography
Kim, K., Ghatpande, S., Kim, D., Zhou, X., Liu, K., Bissyandé, T. F., Klein, J., & Traon, Y. L. (2023) · ACM Computing Surveys · doi:10.1145/3604905 · Cited by 21
“EQMINER [120] generates random test input generation by using symbolic [148] or concolic execution [135], then checks the abstract memory states [131] to compute function similarity based on execution outputs.”
MethodSeSaMe: A Data Set of Semantically Similar Java Methods
Kamp, M., Kreutzer, P., & Philippsen, M. (2019) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr.2019.00079 · Cited by 20
“Other data sets from educational contexts (like the one used by Li et al. [12]) show similar shortcomings.”
MethodJuízes Online são suficientes ou precisamos de um VAR?
Barbosa, A. D. A., Costa, E. D. B., & Brito, P. H. S. (2023) · doi:10.5753/educomp.2023.228224 · Cited by 11
MAF: Method-Anchored Test Fragmentation for Test Code Plagiarism Detection
Sun, W., Wang, X., Wu, H., Duan, D., Sun, Z., & Chen, Z. (2019) · IEEE/ACM International Conference on Software Engineering: Software Engineering Education and Training (ICSE-SEET) · doi:10.1109/icse-seet.2019.00020 · Cited by 13
“The online programming platforms allow large-scale students, but it needs to maintain the quality of education [5].”
BackgroundSANRAZOR: Reducing redundant sanitizer checks in C/C++ programs
Zhang, J., Wang, S., Rigger, M., He, P., & Su, Z. (2021) · Rare & Special e-Zone (The Hong Kong University of Science and Technology) · Cited by 46
Regression verification for automated evaluation of students programs
Janičić, M. V., & Marić, F. (2019) · Computer Science and Information Systems · doi:10.2298/csis181220019v · Cited by 7
“Another kind of feedback is generated by computing behavioral similarity between two programs [45].”
BackgroundAdaptive Clustering of Codes for Assessment in Introductory Programming Courses
Barbosa, A. D. A., Costa, E. D. B., & Brito, P. H. S. (2018) · Lecture notes in computer science · doi:10.1007/978-3-319-91464-0_2 · Cited by 6
Obfuscation resilient search through executable classification
Su, F.-H., Bell, J., Kaiser, G. E., & Ray, B. (2018) · ACM SIGPLAN International Workshop on Machine Learning and Programming Languages (MAPL) · doi:10.1145/3211346.3211352 · Cited by 7
“WhileMacneto uses PCA as a proxy for application behavior, a variety of other systems use input/output behavior [21, 22, 47], call graph similarity [16, 46], or dynamic symbolic execution [26, 28, 35] at method level.”
MethodIdentifying Plagiarised Programming Assignments with Detection Tool Consensus
Cheers, H., Lin, Y., & Yan, W. (2022) · Informatics in Education · doi:10.15388/infedu.2023.05 · Cited by 6
Reducing Manual Efforts in Equivalence Analysis in Mutation Testing
Amorim, S., Fernandes, L., Ribeiro, M., Gheyi, R., Delamaro, M. E., Guimarães, M., & Santos, A. L. M. (2024) · Journal of Software Engineering Research and Development · doi:10.5753/jserd.2024.3588 · Cited by 4
“Tools such as EvoSuite (Fraser and Arcuri, 2011), Randoop (Pacheco et al., 2007), and IntelliTest (Li et al., 2016) implement such approaches.”
MethodGrading-Based Test Suite Augmentation
Osei‐Owusu, J., Astorga, A., Butler, L., Xie, T., & Challen, G. W. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00030 · Cited by 9
“2We use Pex because of its effectiveness in previous related work [5].”
MethodSelf-citationAutomated Property Directed Self Composition
Shenoy, A., Prabhu, S., Madhukar, K., Shemer, R., & Srivas, M. K. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-45332-8_7 · Cited by 2
A SOLO-Adapted Evaluation Methodology for Quantifying Learning Transitions on Algorithms
Ramabu, T. J., Sanders, I. D., & Schoeman, M. A. (2025) · Communications in computer and information science · doi:10.1007/978-3-031-82478-4_7 · Cited by 3
Source Code Comments: Overlooked in the Realm of Code Clone DetectionPreprint
Kuttal, S. K., & Ghosh, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.14505 · Cited by 4
“The state-of-the-art semantic clone detection techniques [95], [101] rely on programs that yield the same outputs using dynamic code similarity detection [29], [51], [82], and identify similar behaviors of different programs by comparing instruction-level execution [21].”
MethodIncremental Repair Feedback on Automated Assessment of Programming Assignments
Paiva, J. C., Leal, J. P., & Figueira, Á. (2025) · Electronics · doi:10.3390/electronics14040819 · Cited by 6
Direct Construction of Program Alignment Automata for Equivalence CheckingPreprint
Goyal, M., Azeem, M., Madhukar, K., & Venkatesh, R. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.01864 · Cited by 1
“…is an important problem due to its many diverse applications, including translation validation and compiler correctness [21,13,19], code refactoring [23], program synthesis [3], hypersafety verification [1,8,26], superoptimization [24,5], and software engineering education [16], amongst many others.”
VCAT: an automatic assessment model for visual programming languages
de Souza, L. M. (2023) · Digital Library of Theses and Dissertations (Universidade de São Paulo) · doi:10.11606/d.45.2023.tde-17012024-190825 · Cited by 1
SABER: Identifying SimilAr BEhavioR for Program Comprehension
Sridhar, A., Qiao, G., & Kaiser, G. E. (2020)
Mitigation of vulnerabilities and incompatibility in open-source ecosystem
Zhang, L. (2024) · DR-NTU (Nanyang Technological University) · doi:10.32657/10356/181586 · Cited by 1
Metadata
- Authors
- Li, S., Xiao, X., Bassett, B., Xie, T., & Tillmann, N.
- Affiliations
- University of Illinois Urbana-Champaign (US)
- NEC Laboratories America, Princeton, NJ
- Microsoft (United States) (US)
- Venue
- Proceedings of the 38th International Conference on Software Engineering Companion
- Publisher
- ACM
- Published
- 2016-05-14
- Pages
- 501-510
- ISSN
- 0270-5257 (ISSN-L)
- OpenAlex
- W2400080339
- Semantic Scholar
- e98b8b543d461b79df6c5677e9574127d152bc15
- Cited by
- 30
- References
- 30
- Citations by year
- 2025: 2 · 2024: 3 · 2023: 4 · 2022: 1 · 2021: 5 · 2020: 5 · 2019: 4 · 2018: 4 · 2017: 1 · 2016: 1
- FWCI
- 2.66
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) (publishedVersion)
- Funders
- National Science Foundation
- Topics
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Keywords
- behavioral similarity, online programming education, software engineering education, dynamic symbolic execution, random testing, test data generation, hint generation, automated grading
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.