مقاله‌ی دسترسی آزاد

Data-Parallel String-Manipulating Programs

چکیده(به انگلیسی؛ چکیده‌ی فارسی در دسترس نیست)

String-manipulating programs are an important class of programs with applications in malware detection, graphics, input sanitization for Web security, and large-scale HTML processing. This paper extends prior work on BEK, an expressive domain-specific language for writing string-manipulating programs, with algorithmic insights that make BEK both analyzable and data-parallel. By analyzable we mean that unlike most general purpose programming languages, many algebraic properties of a BEK program are decidable (i.e., one can check whether two programs commute or compute the inverse of a program). By data-parallel we mean that a BEK program can compute on arbitrary subsections of its input in parallel, thus exploiting parallel hardware. This latter requirement is particularly important for programs which operate on large data: without data parallelism, a programmer cannot hide the latency of reading data from various storage media (i.e., reading a terabyte of data from a modern hard drive takes about 3 hours). With a data-parallel approach, the system can split data across multiple disks and thus hide the latency of reading the data. A BEK program is expressive: a programmer can use conditionals, switch statements, and registers--or local variables--in order to implement common string-manipulating programs. Unfortunately, this expressivity induces data dependencies, which are an obstacle to parallelism. The key contribution of this paper is an algorithm which automatically removes these data dependencies by mapping a B EK program into a intermediate format consisting of symbolic transducers, which extend classical transducers with symbolic predicates and symbolic assignments. We present a novel algorithm that we call exploration which performs symbolic loop unrolling of these transducers to obtain simplified versions of the original program. We show how these simplified versions can then be lifted to a stateless form, and from there compiled to data-parallel hardware. To evaluate the efficacy of our approach, we demonstrate up to 8x speedups for a number of real-world, BEK programs, (e.g., HTML encoder and decoder) on data-parallel hardware. To the best of our knowledge, these are the first data parallel implementation of these programs. To validate that our approach is correct, we use an automatic testing technique to compare our generated code to the original implementations and find no semantic deviations.

اسناد مشابه

  • Verification of String Manipulating Programs Using Multi-Track Automata

    سند علمی۲۰۰۹Fang Yu, Tevfik Bultan, Oscar H. Ibarra

    Verification of string manipulation operations is a crucial problem in computer security. We present a new symbolic string verification technique that can be used to prove that vulnerabilities that result from improper string manipulation do not exist in a given program. We forma

  • Decision procedures for path feasibility of string-manipulating programs with complex operations

    مقاله‌ی دسترسی آزاد۲۰۱۹Proceedings of the ACM on Programming LanguagesTaolueChen, MatthewHague, Anthony W.Lin, PhilippRümmer

    The design and implementation of decision procedures for checking path feasibility in string-manipulating programs is an important problem, with such applications as symbolic execution of programs with strings and automated detection of cross-site scripting (XSS) vulnerabilities

  • Static Analysis for ECMAScript String Manipulation Programs

    مقاله‌ی دسترسی آزاد۲۰۲۰Applied SciencesVincenzoArceri, IsabellaMastroeni, SunyiXu

    In recent years, dynamic languages, such as JavaScript or Python, have been increasingly used in a wide range of fields and applications. Their tricky and misunderstood behaviors pose a great challenge for static analysis of these languages. A key aspect of any dynamic language p

  • Automatic Test Generation for String Manipulation Programs using Symbolic Execution

    سند علمی۲۰۱۵Anitha Gollamudi, Zehra Naz

    S ymbolic execution of string manipulation programs is challenging as the constraint solvers do not typically support logic over strings and non-string operations. KLEE[1] is a symbolic execution tool used to generate test cases with high coverage. It uses Simple Theorem Prover (

  • Path Feasibility Analysis for String-Manipulating Programs

    سند علمی۲۰۰۹TACASNikolaj Bjørner, Nikolai Tillmann, Andrei Voronkov

    We discuss the problem of path feasibility for programs manipulating strings using a collection of standard string library functions. We prove results on the complexity of this problem, including its undecidability in the general case and decidability of some special cases. In th

  • Data-parallelism versus Functional Programming: the Contribution of Pei

    سند علمی۱۹۹۵Eric Violard

    A lot of research works have been done to examine connections between data-parallel and functional programming, as 8, 2] for example, who deene the denotational semantics of a data-parallel language. Some others show how interesting it is to keep or associate a geometry with data