Merging Equivalent Contexts for Scalable Heap-Cloning-Based Context-Sensitive Points-To Analysis∗

Total Page:16

File Type:pdf, Size:1020Kb

Merging Equivalent Contexts for Scalable Heap-Cloning-Based Context-Sensitive Points-To Analysis∗ Merging Equivalent Contexts for Scalable Heap-Cloning-Based Context-Sensitive Points-to Analysis∗ Guoqing Xu Atanas Rountev Computer Science and Engineering Computer Science and Engineering Ohio State University Ohio State University [email protected] [email protected] ABSTRACT General Terms A context-sensitive points-to analysis maintains separate points- Algorithms, measurement, experimentation to relationships for each possible (abstract) calling context of a method. Previous work has shown that a large number of equiv- Keywords alence classes exists in the representation of calling contexts. Such Pointer analysis, points-to analysis, context sensitivity equivalent contexts provide opportunities for context-sensitive anal- yses based on binary decision diagrams (BDDs), in which BDDs 1. INTRODUCTION automatically merge equivalent points-to relationships. However, Context sensitivity in points-to analyses has been studied exten- the use of a BDD “black box” introduces additional overhead for sively; some of this work is summarized in [11, 8, 28]. Most such analysis running time. Furthermore, with heap cloning (i.e., using analyses compute a complete points-to solution for all variables in context-sensitive object allocation sites), BDDs are not as effective a program. Such algorithms usually have to sacrifice analysis pre- because the number of equivalence classes increases significantly. cision for practical scalability. An alternative is a refinement-based A further step must be taken to look inside the BDD black box to approach that performs points-to analysis by answering pointer- investigate where the equivalence comes from, and what tradeoffs related queries raised by a compiler or a client analysis on demand can be employed to enable practical large-scale heap cloning. [32, 31]. The precision of this approach can be proportional to the This paper presents an analysis for Java that exploits equivalence resource constraints (such as time and memory) allowed to answer classes in context representation. For a particular pointer variable queries. The analysis can be more precise than those that compute or heap object, all abstract contexts within an equivalence class can a complete points-to solution, if its full precision is reached (i.e., be merged. This technique naturally results in a new non-BDD the result is fully refined). However, this algorithm may not scale context-sensitive points-to analysis. Based on these equivalence when computing solutions for a large number of variables [30], and classes, the analysis employs a last-k-substring merging approach therefore is not suitable for analyses that depend on points-to infor- to define scalability and precision tradeoffs. We show that small mation for the entire program. In this paper we focus on analyses values for k can enable scalable heap cloning for large Java pro- that compute complete points-to information, and propose an al- grams. The proposed analysis has been implemented and evaluated gorithm whose precision approaches that of the refinement-based on a large set of Java programs. The experimental results show im- algorithm, and that scales well to large Java programs. provements over an existing 1-object-sensitive analysis with heap In context-sensitive analyses a standard approach is to use a call- cloning, which is the most precise scalable analysis implemented ing context abstraction that is a string of the call graph edges lead- in the state-of-the-art Paddle analysis framework. For computing a ing to the analyzed method. The length of each string is usually points-to solution for an entire program, our approach is an order limited to a fixed number k. A different technique, used in [34, of magnitude faster compared to this BDD-based analysis and to a 36], does not limit the length of a context string, but excludes all related non-BDD refinement-based analysis. contexts corresponding to call edges that are in a cycle in a pre- computed call graph. Orthogonal to the context abstraction is the Categories and Subject Descriptors decision as to where to apply context sensitivity. All existing anal- F.3.2 [Logics and Meaning of Programs]: Semantics of Program- yses use context-sensitive treatment of local variables, and some ming Languages—Program Analysis algorithms also do this for heap objects. Context-sensitive model- ing of objects is sometimes also referred to as heap cloning [26]. ∗ This material is based upon work supported by the National Science Foun- Higher precision requires a longer context string, with enabled heap dation under CAREER grant CCF-0546040. cloning. Of these two factors, heap cloning has been shown [20, 15] to be more important, because it allows analyses to distinguish dif- ferent instances of a logical data structure. The importance of heap cloning can especially be seen in object-oriented programs [15]. Permission to make digital or hard copies of all or part of this work for To achieve scalability, binary decision diagrams (BDDs) have personal or classroom use is granted without fee provided that copies are been employed [19, 34, 36, 3, 16] to avoid redundant representa- not made or distributed for profit or commercial advantage and that copies tion of similar points-to relationships. A BDD provides an effective bear this notice and the full citation on the first page. To copy otherwise, to representation for context-sensitive analysis because many contexts republish, to post on servers or to redistribute to lists, requires prior specific are equivalent, in the sense that the points-to relationships com- permission and/or a fee. ISSTA’08, July 20–24, 2008, Seattle, Washington, USA. puted under these contexts are the same [20]. A BDD automatically Copyright2008ACM978-1-60558-050-0/08/07 ...$5.00. merges the representation of equivalent points-to relationships. 225 BDDs may add overhead and increase the running time of the is invoked is allocated in addName, and this object does not affect analysis. In [10], the BDD implementation of a points-to analysis and is not affected by the callers of addName. for C is on average two times slower than an implementation using This definition is coarse-grained as it requires all pointer vari- a sparse bitmap. If we can identify the source of the equivalence, ables in a method to have the same equivalence classes. However, and then design a non-BDD analysis that explicitly merges points- the equivalent contexts for different variables in a method can dif- to relationships that have equivalent abstract contexts, we would be fer. Consider the constructor of Vector in the example. We denote able to reduce analysis running time while still keeping the size of a context-insensitive heap object abstraction by oi,wherei is the the solution as small as that of a BDD-based implementation. line number for the allocation site. Similarly, a context-insensitive A context-sensitive analysis with heap cloning may not benefit pointer variable abstraction is denoted by pi,wherep is the name of as much from BDDs. Only short context strings can be used in the variable, and i is the line number where p is first used/defined. such an analysis even if BDDs are employed [20], while an analysis Using this notation, pointer variable t3 can be decided to point to without heap cloning [34, 36] can use context strings of arbitrary object o3 within the constructor. Since no callers of the constructor length. The effectiveness of BDDs decreases in the presence of can affect the points-to pair (t3,o3), all contexts for t3 are equiv- heap cloning because there are many more equivalence classes of alent (i.e., there is only one equivalence class of contexts for this contexts and as a result fewer points-to relationships can be merged. variable). However, variable this 4 points to objects outside the Our proposal. The focus in this paper is a cloning-based context- constructor and its points-to pairs are affected by the callers of the sensitive analysis with arbitrary callstring length as the representa- constructor (e.g., the points-to sets for this in contexts containing tion of contexts. We first present a characterization of equivalence call graph edge i and ones containing edge j are different). In gen- classes of contexts for pointer variables and pointer targets. This eral, the set of equivalence classes for a method m as defined in can be captured by an abstraction function that takes as input a full [20] treats uniformly all variables in m, which may lead to unnec- context string cp for a pointer variable p and a full context co string essary equivalent classes for some variables. Our goal is to provide for a pointer target o, and produces a pair of context substrings a finer-grained definition of equivalent contexts in terms of pointer (sub1, sub2) that defines an equivalence class. All pairs (cp,co) variables and heap objects, in order to exploit greater similarity such that cp maps to sub1 and co maps to sub2 belong to the corre- (i.e., fewer equivalence classes for some variables). sponding equivalence class. The points-to relationships under the Equivalence classes for recursion-free programs. Consider a contexts within an equivalence class are guaranteed to be the same, context-insensitive points-to relationship of the form (p, o) where and all these contexts can be merged without loss of precision. p is a pointer variable and o is an object allocation site. A context- Based on this characterization, we propose a new flow-insensitive sensitive points-to relationship in a heap-cloning analysis is a 4- context-sensitive points-to analysis for Java. First, an intraproce- tuple (p, cp,o,co),wherecp is a full context (callstring) that goes dural phase builds a symbolic points-to graph for each method, us- from main to the method mp that defines p, co is a full context ing symbolic objects as placeholders for the objects that are not that goes from main to the method mo that contains o,andp under visible in the method.
Recommended publications
  • Technological Advancement in Object Oriented Programming Paradigm for Software Development
    International Journal of Applied Engineering Research ISSN 0973-4562 Volume 14, Number 8 (2019) pp. 1835-1841 © Research India Publications. http://www.ripublication.com Technological Advancement in Object Oriented Programming Paradigm for Software Development Achi Ifeanyi Isaiah1, Agwu Chukwuemeka Odi2, Alo Uzoma Rita3, Anikwe Chioma Verginia4, Okemiri Henry Anaya5 1Department of Maths/Comp Sci/Stats/Info., Faculty of science, Alex Ekwueme University, Ndufu-Alike 2Department of Computer Science, Ebonyi State University-Abakaliki. 3Alex Ekwueme University, Ndufu-Alike, 4Department of Maths/Comp Sci/Stats/Info., Faculty of science, Alex Ekwueme University, Ndufu-Alike 5Department of Maths/Comp Sci/Stats/Info., Faculty of science, Alex Ekwueme University, Ndufu-Alike Abstract and personalization problems. Take for instance, a lot of sophisticated apps are being produced and release in the Object oriented programming paradigm in software market today through the application of OOP. Almost desktop development is one of the most popular methods in the apps are being converted to mobile apps through Java, C++, information technology industry and academia as well as in PHP & MySQL, R, Python etc platform which form the many other forms of engineering design. Software testimony of OOP in the software industries. Software development is a field of engineering that came into existence developer has been revolving using procedural language for owing to the various problems that developers of software the past decade before the advent of OOP. The relationships faced while developing software projects. This paper analyzes between them is that procedural languages focus on the some of the most important technological innovations in algorithm but OOP focuses on the object model itself, object oriented software engineering in recent times.
    [Show full text]
  • Eliminating the Call Stack to Save RAM
    Eliminating the Call Stack to Save RAM Xuejun Yang Nathan Cooprider John Regehr University of Utah BAE Systems AIT University of Utah [email protected] [email protected] [email protected] Abstract it is likely to use some of its RAM to store one or more call stacks: Most programming languages support a call stack in the program- chains of activation records representing the state of executing ming model and also in the runtime system. We show that for appli- functions. From the point of view of the compiler, targeting a run- cations targeting low-power embedded microcontrollers (MCUs), time system based on a callstack has important benefits. First, the RAM usage can be significantly decreased by partially or com- stack is memory-efficient: variables live only as long as they are pletely eliminating the runtime callstack. We present flattening, needed. Second, the stack is time-efficient, supporting allocation a transformation that absorbs a function into its caller, replacing and deallocation in a handful of clock cycles. Third, compilers can function invocations and returns with jumps. Unlike inlining, flat- rapidly generate high-quality code by compiling one function at tening does not duplicate the bodies of functions that have multiple a time; the small size of the typical function makes it possible to callsites. Applied aggressively, flattening results in stack elimina- run aggressive intraprocedural optimizations while also achieving tion. Flattening is most useful in conjunction with a lifting transfor- short compile times. mation that moves global variables into a local scope. Our thesis is that despite these well-known benefits: Partially or Flattening and lifting can save RAM.
    [Show full text]
  • Preview ES6 Tutorial (PDF Version)
    ES6 ES6 About the Tutorial European Computer Manufacturers Association (ECMAScript) or (ES) is a standard for scripting languages like JavaScript, ActionScript and JScript. It was initially created to standardize JavaScript, which is the most popular implementation of ECMAScript. This tutorial adopts a simple and practical approach through JavaScript to describe the new features in ECMAScript 2015 (ES6), ECMAScript 2016 (ES7), ECMAScript 2017(ES8) and ECMAScript 2018 (ES9). Audience This tutorial is designed for the stemplate oftware programmers who have already worked with JavaScript and wishes to gain in-depth knowledge about the ECMAScript. The tutorial will give you enough understanding on the functionalities of ECMAScript and also about ES6, ES7, ES8 and ES9. Prerequisites An understanding of JavaScript programming concepts is necessary to gain maximum knowledge from this tutorial. Disclaimer & Copyright Copyright 2019 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected].
    [Show full text]
  • Difference Between Shallow and Reference Copy Java
    Difference Between Shallow And Reference Copy Java Noland is betwixt venous after unescapable Emmott take-overs his menhirs handsomely. Garold is overnice and hum altogether as faithless Brant fulminate reprehensively and Atticize astuciously. Fourfold Thom bestialising or kyanized some decreets meteorically, however flavourless Torrey gardens jovially or induct. How to convert map stream method as the previous example illustrated in origional object variable is shallow and using serializable and both reference of the object to Depth: Become a Complete Java Engineer! If we use static fields in java and copy. Subscribe to submit your print the difference between shallow reference and copy? It is not going to work correctly if we apply the same method to arrays. Modifications to original object when b are correct me of singleton pattern, lazy copying comes down arrows to become a reference between and shallow copy java. If one of the properties in the original object is an object itself, are we fine now? Later modifications to the content of either are immediately reflected on the contents of ALL other lists. Please enter a valid date. Suitable links to external documentation for common libraries. How To Remove White Spaces from String In Java? Net Shallow copy and deep copy are used for copying data between objects. What is transient variable? In this way you can retrieve the masks in case you need them in the future. Unlike shallow copy, once created, with your way you do not need to pass the object being copied. Joey, a bit by bit copy of the field is performed.
    [Show full text]
  • Cloning-Based Context-Sensitive Pointer Alias Analysis Using Binary Decision Diagrams
    Cloning-Based Context-Sensitive Pointer Alias Analysis Using Binary Decision Diagrams John Whaley Monica S. Lam Computer Science Department Stanford University Stanford, CA 94305 {jwhaley, lam}@stanford.edu ABSTRACT 1. INTRODUCTION This paper presents the first scalable context-sensitive, inclusion- Many applications of program analysis, such as program opti- based pointer alias analysis for Java programs. Our approach to mization, parallelization, error detection and program understand- context sensitivity is to create a clone of a method for every con- ing, need pointer alias information. Scalable pointer analyses text of interest, and run a context-insensitive algorithm over the ex- developed to date are imprecise because they are either context- panded call graph to get context-sensitive results. For precision, insensitive[3, 17, 19, 33] or unification-based[15, 16]. A context- we generate a clone for every acyclic path through a program’s call insensitive analysis does not distinguish between different calling graph, treating methods in a strongly connected component as a sin- contexts of a method and allows information from one caller to gle node. Normally, this formulation is hopelessly intractable as a propagate erroneously to another caller of the same method. In call graph often has 1014 acyclic paths or more. We show that these unification-based approaches, pointers are assumed to be either un- exponential relations can be computed efficiently using binary de- aliased or are pointing to the same set of locations[28]. In contrast, cision diagrams (BDDs). Key to the scalability of the technique is inclusion-based approaches are more efficient but also more expen- a context numbering scheme that exposes the commonalities across sive, as they allow two aliased pointers to point to overlapping but contexts.
    [Show full text]
  • The Impact of Programming Languages in Code Cloning
    The Impact of Programming Languages in Code Cloning Jaime Filipe Jorge1 and António Menezes Leitão2 1 Instituto Superior Técnico Av. Rovisco Pais 1, 1049-001 Lisboa, Portugal [email protected] 2 Instituto Superior Técnico Av. Rovisco Pais 1, 1049-001 Lisboa, Portugal [email protected] Abstract Code cloning is a duplication of source code fragments that frequently occurs in large software systems. Although different studies exist that evidence cloning benefits, several others expose its harmfulness, specifically upon inconsistent clone management. One important cause for the creation of software clones is the inherent abstraction capabilities and terseness of the programming language being used. This paper focuses on the features of two different programming languages, namely Java and Scala, and studies how different language constructs can induce or reduce code cloning. This study was further developed using our tool Kamino which provided clone detection and concrete values. 1998 ACM Subject Classification K.6.3 Software Management Keywords and phrases Clone Detection, Software Engineering, Programming Languages, Soft- ware Management Digital Object Identifier 10.4230/OASIcs.SLATE.2012.107 1 Introduction There are a number of bad smells in the process of writing software systems[1]. Code cloning is one of them. A code clone is a duplication of source code where programs are copied from one location and subsequently pasted onto other locations. Studies found that code cloning is ubiquitous in software systems[2][3][4]. Some authors consider cloning to be harmful to software development [2][3][5][6]. A study[7] reports that in some systems half of the changes to code clone groups are inconsistent and that corrective changes following inconsistent changes are rare.
    [Show full text]
  • Applying Prototype-Based Programming Techniques for the Organization of Mobile Systems
    Vrije Universiteit Brussel Faculty of Sciences In Collaboration with Ecole´ des Mines de Nantes 2001-2002 Applying Prototype-Based Programming Techniques for the Organization of Mobile Systems A Thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Computer Science (Thesis research conducted in the EMOOSE exchange project funded by the European Community) By: Boris Mej´ıas Promotor: Prof. Theo D’Hondt (VUB) Advisor: Wolfgang De Meuter (VUB) Abstract Agents succeeded as mobile entities that properly solved problems on mobile systems. They can move around the network in a transparent way, and communi- cate with other agents by sending messages. But the relationship between agents does not have a strong structure, and big multi agent systems become hard to maintain and to understand. The primary aim of this work is to provide a way to organize agents in mobile systems. Objects help us to have a structured way of programming, but if we want ob- jects moving around different address spaces, we need them to be self-supporting. When objects depends on a class, we also need to move the class everywhere the object goes, and to have a sophisticated system for type checking. We decided to use Prototype-Based Programming, a paradigm to program without classes, which has a proper way of reasoning about sharing, an important property for our purpose to organize the system. We extend Borg, a language to implement autonomous agents in a wide area network. The extension provides methods to create prototypes that can move and be extended through the network.
    [Show full text]
  • Sheep Cloning with Ownership Types
    Sheep Cloning with Ownership Types Paley Li Nicholas Cameron James Noble Victoria University of Mozilla Corporation Victoria University of Wellington [email protected] Wellington New Zealand New Zealand [email protected] [email protected] ABSTRACT There are cases when it is not obvious which cloning tech- Object-oriented programmers often need to clone objects. nique would produce the more suitable clone, and there are Mainstream languages, such as C# and Java, typically de- even cases when neither technique is suitable. In all of these fault to shallow cloning, which copies just one object and cases, languages tend to offer little support, forcing program- aliases references from that object. Other languages, such mers to design and implement a custom cloning implemen- as Eiffel, provide deep cloning. A deep clone is a copy of the tation themselves. entire object graph reachable from the cloned object, which could include many unnecessary objects. Alternatively, pro- Ownership types enforce the heap into a hierarchically struc- grammers can implement their own object cloning functions, tured, by introducing an owner object for every object [10]. however, this is often difficult and error prone. The term context is used to mean the formal set of objects owned by an object, and the term representation means Sheep Cloning is an automated cloning technique which uses the set of objects which are conceptually part of an object, ownership information to provide the benefits of both shal- therefore ownership types help describe an object's repre- low and deep cloning without the costs. We describe, for- sentation.
    [Show full text]
  • BYOB Version
    The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives By completing this lab exercise, you should learn to ● Understand and work with layering of multiple sprites (applied to make a side-scrolling background); ● Be able to use object-oriented programming as supported by BYOB; ● Program self-cloning “projectiles” for use in a game; and ● Merge separately developed programs into one larger program to support development by teams. Background (Pre-Lab Reading) You should read this section before coming to the lab. It describes how various things work in BYOB and provides pictures to show what they look like in BYOB. You only need to read this material to get familiar with it. There is no need to actually do the actions described in this section, but you certainly can do them if it would help you follow along with the examples. The purpose of this lab is to introduce a few new concepts and techniques that are important for developing larger projects, and games in particular, in BYOB. These are techniques that will be useful in many of your final projects, so are important to know and understand! Image Layers In the activities and examples we’ve done up until now, sprites have been separate and have not overlapped - what if that is not the case? For example, in the very first lab we added the dragon sprite to the initial Alonzo sprite, and both sprites started in the center of the screen and had to be dragged apart. But before we separated them, how did BYOB decide whether Alonzo or the Dragon should be displayed in those locations where they overlap? This uses the concept of layers, which is common now in graphics programs as well as in the drawing tools of programs like PowerPoint or Word.
    [Show full text]
  • SELF: the Power of Simplicity*
    To be published in: LISP AND SYMBOLIC COMPUTATION: An International Journal, 4, 3, 1991 © 1991 Kluwer Academic Publishers - Manufactured in The Netherlands SELF: The Power of Simplicity* DAVID UNGAR† ([email protected]) Computer Systems Laboratory, Stanford University, Stanford, California 94305 RANDALL B. SMITH† ([email protected]) Xerox Palo Alto Research Center, Palo Alto, California 94304 Abstract. SELF is an object-oriented language for exploratory programming based on a small number of simple and concrete ideas: prototypes, slots, and behavior. Prototypes combine inheritance and instantiation to provide a framework that is simpler and more flexible than most object-oriented languages. Slots unite variables and procedures into a single construct. This permits the inheritance hierarchy to take over the function of lexical scoping in conventional languages. Finally, because SELF does not distinguish state from behavior, it narrows the gaps between ordinary objects, procedures, and closures. SELF’s simplicity and expressiveness offer new insights into object- oriented computation. To thine own self be true. —William Shakespeare 1 Introduction Object-oriented programming languages are gaining acceptance, partly because they offer a useful perspective for designing computer programs. However, they do not all offer exactly the same perspective; there are many different ideas about the nature of object-oriented computation. In this paper, we present SELF, a program- ming language with a new perspective on objects and message passing. Like the 1 Smalltalk-80 language [6], SELF is designed to support exploratory programming *This work is partially supported by Xerox, and partially by National Science Foundation Presidential Young Investigator Grant #CCR-8657631, Sun Microsystems, the Powell Foundation, IBM, Apple Computer, DEC, NCR, Texas Instruments, and Cray Laboratories.
    [Show full text]
  • Client-Driven Pointer Analysis
    Client-Driven Pointer Analysis Samuel Z. Guyer and Calvin Lin Department of Computer Sciences, The University of Texas at Austin, Austin, TX 78712, USA, ¡ sammy,lin ¢ @cs.utexas.edu Abstract. This paper presents a new client-driven pointer analysis algorithm that automatically adjusts its precision in response to the needs of client analyses. We evaluate our algorithm on 18 real C programs, using five significant error detec- tion problems as clients. We compare the accuracy and performance of our al- gorithm against several commonly-used fixed-precision algorithms. We find that the client-driven approach effectively balances cost and precision, often produc- ing results as accurate as fixed-precision algorithms that are many times more costly. Our algorithm works because many client problems only need a small amount of extra precision applied to the right places in each input program. 1 Introduction Pointer analysis is critical for effectively analyzing programs written in languages like C, C++, and Java, which make heavy use of pointers and pointer-based data structures. Pointer analysis attempts to disambiguate indirect memory references, so that subse- quent compiler passes have a more accurate view of program behavior. In this sense, pointer analysis is not a stand-alone task: its purpose is to provide pointer information to other client analyses. Existing pointer analysis algorithms differ considerably in their precision. Previous research has generally agreed that more precise algorithms are often significantly more costly to compute, but has disagreed on whether more precise algorithms yield more accurate results, and whether these results are worth the additional cost [23, 22, 16, 10, 20].
    [Show full text]
  • Object Cloning for Ownership Systems
    Object Cloning for Ownership Systems by Paley Guangping Li A thesis submitted to the Victoria University of Wellington in fulfilment of the requirements for the degree of Doctor of Philosophy in Computer Science. Victoria University of Wellington 2015 Abstract Modern object-oriented programming languages frequently need the ability to clone, duplicate, and copy objects. The usual approaches taken by languages are rudimentary, primarily because these approaches op- erate with little understanding of the object being cloned. Deep cloning naively copies every object that has a reachable reference path from the object being cloned, even if the objects being copied have no innate rela- tionship with that object. For more sophisticated cloning operations, lan- guages usually only provide the capacity for programmers to define their own cloning operations for specific objects, and with no help from the type system. Sheep cloning is an automated operation that clones objects by lever- aging information about those objects’ structures, which the programmer imparts into their programs with ownership types. Ownership types are a language mechanism that defines an owner for every object in the pro- gram. Ownership types create a hierarchical structure for the heap. In this thesis, we construct an extensible formal model for an object- oriented language with ownership types (Core), and use it to explore dif- ferent formalisms of sheep cloning. We formalise three distinct operational semantics of sheep cloning, and for each approach we include proofs or proof outlines where appropriate, and provide a comparative analysis of each model’s benefits. Our main contribution is the descripSC formal model of sheep cloning and its proof of type soundness.
    [Show full text]