Getting Started
Installation Guide
Tutorial
Issue Tracker
Tools
Verifier
Alpinist
VeSUV
VeyMont
Showcases
Publications
About
VerCors Team
News
Contact
Credits
License
Overloading in Java
Verifying overloaded methods in Java.
General Information
Backend
: Silicon
Language
: Java
Features
:
Path to Example File
: classes/Overloading.java
Should Verify
: Yes
Date
: 2017-06-15
Lines of Code
: 30 (comments not included)
Lines of Specification
: 5 (16.7% of total)
Computation Time
: 26.4 seconds
// -*- tab-width:2 ; indent-tabs-mode:nil -*- //:: cases JavaOverloading //:: tools silicon class Overloading { void m(int x){ //@ assert 1+1 == 2; } void m(float x){ //@ assert 1+1 == 2; } void m(boolean ... x){ //@ assert 1+1 == 2; } /*@ context Perm(main,write); context Perm(instance,write); @*/ void main(int i){ m(1); m((float)1); //m(true,false); main(42); main=37; instance=42; } static int main; int instance; }
Language:
PVL
Java
Cuda
C / OpenMP / OpenCL
Viper