Skip to content

kanigsson/uniq-vec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of SPARK using Vectors

This small example shows the implementation and proof of Uniq in SPARK, to answer this challenge. The example defines a function that accepts a vector as argument, and returns a vector that contains the same elements, with duplicates removed.

You can verify the proof using SPARK as follows:

$ gnatprove -P uniq --prover=cvc4,z3

and compile and run the simple test case as follows using GNAT Pro:

$ gprbuild -p -P uniq
$ ./obj/test_uniq

About

Unique vector implementation in SPARK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages