{"title":"A Variation of Quicksort for Model Checking with Promela and SPIN","authors":"Chu Luo, Xu Ma, Yanshan Tian, Yuehui Zhang, Zewen Xu","doi":"10.1109/iicspi.2018.8690479","DOIUrl":null,"url":null,"abstract":"Because of the speed and memory efficiency of sorting, quicksort is often the best choice in software development. However, in model checking with SPIN, it is difficult to implement quicksort using Promela. Regular recursion-based implementations are not suitable for Promela due to the lack of function definition. Even, Promela does not have stack in its data structures, increasing the difficulty to do quicksort. In this paper, we propose a variation of quicksort for Promela without using recursion and stack. Our variation of quicksort can be applied to SPIN-based model checking requiring a quicksort algorithm. Other computer programs can also use our variation, if recursion, function definition and stack are not available or banned.","PeriodicalId":6673,"journal":{"name":"2018 IEEE International Conference of Safety Produce Informatization (IICSPI)","volume":"19 1","pages":"484-488"},"PeriodicalIF":0.0000,"publicationDate":"2018-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 IEEE International Conference of Safety Produce Informatization (IICSPI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/iicspi.2018.8690479","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Because of the speed and memory efficiency of sorting, quicksort is often the best choice in software development. However, in model checking with SPIN, it is difficult to implement quicksort using Promela. Regular recursion-based implementations are not suitable for Promela due to the lack of function definition. Even, Promela does not have stack in its data structures, increasing the difficulty to do quicksort. In this paper, we propose a variation of quicksort for Promela without using recursion and stack. Our variation of quicksort can be applied to SPIN-based model checking requiring a quicksort algorithm. Other computer programs can also use our variation, if recursion, function definition and stack are not available or banned.