Concepedia

Publication | Open Access

ProgramTransformer: A tool for generating semantically equivalent transformed programs

10

Citations

3

References

2022

Year

Abstract

We propose a tool, referred to as ProgramTransformer, to generate new transformed programs that aim at maintaining the semantics of original programs with different syntactical changes. Given the input and output directories, the tool applies a set of transformations to the methods of programs in the input directory and saves the generated transformed programs into the output directory. The goal is to evaluate the generalizability and robustness of models by observing their predictions on the semantically equivalent transformed programs. Those transformed programs can additionally be useful for improving code representation, data diversity, and counterfactual reasoning of code intelligence models.

References

YearCitations

Page 1