Artifact evaluation for the ECMAScript Memory Model Evaluator (EMME) tool

This dataset contains the artifact evaluation for the ECMAScript Memory Model Evaluator (EMME) tool.<br><br>For more information how to use the tool, we refer to the README.txt file within the archive, or the web page <p><a href=""></a></p><br><div>The EMME tool is held in a single .zip archive. The subdirectory <b>EMME-master </b>holds scripts, configurations, models, tests and examples to run the evaluator. The subdirectory <b>TACAS18-tests </b>contains the test outputs for valid executions as described in the related TACAS 2018 proceedings paper linked from this data record.</div><div><br></div><div>EMME is available here in open source Python format (<b>.py</b>). The input to EMME is a program with shared memory accesses. The tool interacts with the Alloy Analyzer (<a href=""></a>) to perform the formal analyses described in Section 4 of the related paper, which include the enumeration of valid executions and the generation of behavioral coverage constraints.<br></div><div><br></div><div>Briefly, given a JavaScript-like SharedArrayBuffer bounded execution program (see <b>.bex</b> files in the examples folder), EMME computes all valid executions according with the ECMA specification (<a href=""></a>). The valid executions are provided as: 1) a set of graphviz files representing the memory model relations (i.e., <b>mm*.dot</b>), and 2) an assertion on the automatically generated JavaScript program (i.e., <b>program.js</b>).</div><div><br></div><div><b>Background</b></div><div><br></div><div>Nearly all web-based interfaces are written in JavaScript. Given its prevalence, the support for high performance JavaScript code is crucial. The ECMA Technical Committee 39 (TC39) has recently extended the ECMAScript language (i.e., JavaScript) to support shared memory accesses between different threads. The extension is given in terms of a natural language memory model specification. In this paper we describe a formal approach for validating both the memory model and its implementations in various JavaScript engines. The related publication introduces a formal version of the memory model and reports results on checking the model for consistency and other properties. We then introduce our tool, EMME, built on top of the Alloy analyzer, which leverages the model to generate all possible valid executions of a given JavaScript program. Finally, we report results using EMME together with small test programs to analyze industrial JavaScript engines. </div><div><br></div>