首页 > 其他分享 >CMPT 477/777 Formal Verification

CMPT 477/777 Formal Verification

时间:2024-11-18 20:40:49浏览次数:1  
标签:11 777 CMPT PT 59pm points Verification array Nov

CMPT 477/777 Formal Verification

Programming Assignment 3

This assignment is due by 11:59pm PT on Friday Nov 15, 2024. Please submit it to Canvas.

Late policy:

Suppose you can get n (out of 100) points based on your code and report

  • If you submit before the deadline, you can get all n points.
  • If you submit between 11:59pm PT Nov 15 and 11:59pm PT Nov 16, you get n 10 points.
  • If you submit between 11:59pm PT Nov 16 and 11:59pm PT Nov 17, you get n 20 points.
  • If you submit after 11:59pm PT Nov 17, you get 0 points.
  1. (20 points) Verify the program in Algorithm 1. Note that you cannot change the existing implementation.Algorithm 1 Find an element in the arraymethod Find(a : arrayint, v : int) returns (index : int)ensures index 0 index < a.Length a[index] = v ensures index < 0 → ∀k. 0 k < a.Length a[k] = v
  1. 1 (30 points) Given a non-empty array of integers, write a method called ArrayMin that finds the minimumvalue min in the array. Verify the method can ensure
  • min is less than or equal to all elements in the array
  • min is equal to some element in the array
  1. (30 points) Given an array of coins showing either Front or Back side on top, write a program with aSortCoins method that sorts the coins. Verify it can ensure
  • All coins showing the Front side occur before those showing Back
  • The sorted array is a permutation of the original array

Deliverable A zip file called P3 SFUID.zip that contains at least the followings:

  • A file called P3 SFUID.dfy that contains Dafny programs for the above four questions.
  • A report called P3 SFUID.pdf that explains the design choices, features, issues (if any), and anythingelse that you want to explain about your programs.

 

标签:11,777,CMPT,PT,59pm,points,Verification,array,Nov
From: https://www.cnblogs.com/comp9021T2/p/18550697

相关文章

  • http://192.168.1.1/ http://3232235777/
    提供的两个链接分别是:http://192.168.1.1/http://3232235777/1. http://192.168.1.1/ ——IP地址表示法(点分十进制)这是一个典型的IPv4地址,表示一个私有局域网(LAN)地址。IPv4地址由四个字节(32位)组成,每个字节的范围是从0到255。表示方法是将每个字节用点(.)分隔开,并使......
  • CMPT 401 Create Image From
    CMPT401–Assignment1(DueOct11th23:59)InstructionsYouaregoingtosubmitAssignment1.cpp,Solution1.pngandSolution2.png.FilloutthefunctionsCreateImageFromTextFile()andDiamondFilter()inAssignment1.cpp.UseCreateImageFromTextFile()......
  • CMPT 477 / 777 Formal Verification Programming
    CMPT477/777FormalVerificationProgrammingAssignment1Thisassignmentisdueby11:59pmPTonWednesdayOct2,2024.PleasesubmitittoCanvas.Latepolicy:Supposeyoucangetn(outof100)pointsbasedonyourcodeandreportIfyousubmitbefor......
  • python3 SSLCertVerificationError 研究结论
    上一篇博客已经分析ssl流程,这次直接说报错的结果方法:对于pip3安装第三方包失败:1.建议直接退出代理charles2.命令行前输入: exportREQUESTS_CA_BUNDLE=~/Documents/charles-ssl-proxying-certificate.pem,然后执行pip3命令。 这个文件pem可以使用charles导出 如果需要......
  • 统信uos安装软件包提示“failed the verification”无法安装软件
    问题描述:uos-专业版-1070,需要安装第三方云桌面软件,如open-ssh等,将软件上传至桌面,使用以下命令安装open-ssh,提示需要root用户才安装,当sudosu切换root用户时,提示“需要进入开发者模式”,另外进入开发者模式后,安装离线deb包,提示“failedtheverificationpleasegotoSecurity......
  • module verification failed: signature and/or required key missing - tainting ker
    不同的机器编译同一个版本的内核源码生成的签名密钥(`signing_key.pem`)是不相同的。以下是原因和详细解释:签名密钥(`signing_key.pem`)的生成过程当你在编译内核时,默认情况下,内核编译过程会生成一个新的签名密钥对(包括`signing_key.pem`和`signing_key.x509`)。这个过程......
  • 777java jsp SSM水果蔬菜商品商城管理系统(源码+文档+运行视频+讲解视频)
     项目技术:SSM+Maven+Vue等等组成,B/S模式+Maven管理等等。环境需要1.运行环境:最好是javajdk1.8,我们在这个平台上运行的。其他版本理论上也可以。2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;3.tomcat环境:Tomcat7.x,8.x,9.x版本均可4.硬件环境:windows7/8/1......
  • Luogu P1777 帮助 题解 [ 紫 ] [ 线性 dp ] [ 状压 dp ]
    帮助:大毒瘤!!!调了我2h,拍了我2h,最后没调出来,重写才AC。wdnmd。思路这题主要是线性dp,而状压dp只是最后在统计答案时的一个辅助。首先定义\(dp[i][j][k]\)为考虑前\(i\)本书,已经抽出来了\(j\)本,最后没被抽出来的一本书是高度\(k\)的最小混乱度。每次放入的书与最后一位......
  • 数学四则运算批计算软件Four mathematical operations Batch Software Cmpt4 download
    数学四则运算批计算软件FourmathematicaloperationsBatchSoftwareCmpt4download该软件能批量计算输入数据的自定义的四则计算。算是一个小型的数学自动化计算的软件。本软件是共享软件,支持Windows64位系统,也可以在兼容WinXP的32位系统上运行。本软件注册费用是48人民币......
  • Towards Practical Binary Code Similarity Detection: Vulnerability Verification v
    "迈向实用的二进制代码相似性检测:通过补丁语义分析进行漏洞验证"0x0Abstruct二进制代码相似性检测方法可以有效地搜索二进制软件中代码共享引入的重复出现的漏洞(1day)。然而,这些方法存在较高的误报率(FPR),因为它们通常将修补的函数视为易受攻击的函数,并且当使用不同的编译设置编译......