کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433193 1441643 2015 28 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Shape analysis in a functional language by using regular languages
ترجمه فارسی عنوان
تجزیه و تحلیل شکل در یک زبان کاربردی با استفاده از زبان های منظم
کلمات کلیدی
زبانهای کاربردی تفسیر چکیده، تجزیه و تحلیل شکل، امتیاز به تجزیه و تحلیل، زبان های منظم
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی

Shape analysis is concerned with the compile-time determination of the ‘shape’ the heap may take at runtime, meaning by this the pointer chains that may happen within, and between, the data structures built by the program. This includes detecting alias and sharing between the program variables.Functional languages facilitate somehow this task due to the absence of variable updating. Even though, sharing and aliasing are still possible. We present an abstract interpretation-based analysis computing precise information about these relations. In fact, the analysis gives an information more precise than just the existence of sharing. It informs about the paths through which this sharing takes place. This information is critical in order to get a modular analysis and not to lose precision when calling an already analysed function.The motivation for the analysis in our case is the need of knowing at compile time which variables are at risk of containing dangling pointers at runtime, in a language with explicit memory disposal primitives.The main innovation with respect to the literature is the use of regular languages to specify the possible pointer paths from a variable to its descendants. This additional information makes the analysis much more precise while still being affordable in terms of efficiency. We have implemented it and give convincing examples of its precision.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 111, Part 1, 1 November 2015, Pages 51–78
نویسندگان
, , ,