statement stringlengths 1 11.2k | proof stringlengths 0 11.2k | type stringclasses 6
values | symbolic_name stringlengths 1 117 | library stringclasses 106
values | filename stringlengths 31 86 | imports listlengths 0 0 | deps listlengths 0 32 | docstring stringclasses 1
value | source_url stringclasses 1
value | commit stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
Wrap | {
WrappedInt(
data: Int
)
} | adt | Wrap | test.resources.adt | src/test/resources/adt/postconditions.vpr | [] | [
"data"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
wrap(
data: Int
): Wrap
ensures result.data == data | function | wrap | test.resources.adt | src/test/resources/adt/postconditions.vpr | [] | [
"Wrap",
"data"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
wrapNot(
data: Int
): Wrap
ensures result.data != data | function | wrapNot | test.resources.adt | src/test/resources/adt/postconditions.vpr | [] | [
"Wrap",
"data"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
wrapTest() | {
var x: Wrap := wrap(1)
assert(x.data == 1)
var y: Wrap := wrapNot(1)
//:: ExpectedOutput(assert.failed:assertion.false)
assert(y.data == 1)
} | method | wrapTest | test.resources.adt | src/test/resources/adt/postconditions.vpr | [] | [
"Wrap",
"wrap",
"wrapNot"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
soundness_1() | {
//:: ExpectedOutput(assert.failed:assertion.false)
assert false
} | method | soundness_1 | test.resources.adt | src/test/resources/adt/soundness_1.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
Val | {} | domain | Val | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
List[V] | {
Nil()
Cons(value: V, tail: List[V])
} | adt | List | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"tail",
"value"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len(l: List[Val]): Int
ensures result >= 0
decreases l | {
l.isNil ? 0 : 1 + len(l.tail)
} | function | len | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len2(l: List[Val]): Int
ensures result >= 0
decreases l | {
l.isNil ? 0 : (l.tail.isNil ? 1 : 2 + len2(l.tail.tail))
} | function | len2 | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
lenBad(l: List[Val], v: Val): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
lenBad(Cons(v, Nil()), v)
} | function | lenBad | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
lenBad2(l: List[Val]): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
1 + lenBad2(l)
} | function | lenBad2 | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
IntList | {
INil()
ICons(ivalue: Int, itail: IntList)
} | adt | IntList | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
ilen(l: IntList): Int
ensures result >= 0
decreases l | {
l.isINil ? 0 : 1 + ilen(l.itail)
} | function | ilen | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"IntList"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
ilen2(l: IntList): Int
ensures result >= 0
decreases l | {
l.isINil ? 0 : (l.itail.isINil ? 1 : 2 + ilen2(l.itail.itail))
} | function | ilen2 | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"IntList"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
ilenBad(l: IntList, v: Int): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
ilenBad(ICons(v, INil()), v)
} | function | ilenBad | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"IntList"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
Pair[T, V] | {
pair(fst: T, snd: V)
} | adt | Pair | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"pair"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
stupidFunc(p: Pair[Int, Val]): Val
decreases p | {
//:: ExpectedOutput(termination.failed:tuple.false)
stupidFunc(p)
} | function | stupidFunc | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"Pair",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
DList[V, T] | {
DNil()
DCons(dvalue1: V, dvalue2: T, dtail: DList[V, T])
} | adt | DList | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
dlen(l: DList[Int, Val]): Int
ensures result >= 0
decreases l | {
l.isDNil ? 0 : 1 + dlen(l.dtail)
} | function | dlen | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"DList",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
dlenBad(l: DList[Int, Val]): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
l.isDNil ? 0 : 1 + dlenBad(l)
} | function | dlenBad | test.resources.adt | src/test/resources/adt/termination_1.vpr | [] | [
"DList",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
ListWellFoundedOrder[W] | {
// Domain already being present will prevent auto-generation of axioms.
// Thus, we should not be able to prove termination based on List measures here.
} | domain | ListWellFoundedOrder | test.resources.adt | src/test/resources/adt/termination_3.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len(l: List[Val]): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
l.isNil ? 0 : 1 + len(l.tail)
} | function | len | test.resources.adt | src/test/resources/adt/termination_3.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len2(l: List[Val]): Int
ensures result >= 0
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
l.isNil ? 0 : (l.tail.isNil ? 1 : 2 + len2(l.tail.tail))
} | function | len2 | test.resources.adt | src/test/resources/adt/termination_3.vpr | [] | [
"List",
"Val"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
List1 | {
RList1(x: Int, l: List2)
} | adt | List1 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
List2 | {
Empty()
NonEmpty(x: Int, l: List1)
} | adt | List2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len2(l: List2): Int
decreases l | {
l == Empty()? 0 : 1 + len2(l.l.l)
} | function | len2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len2Bad(l: List2): Int
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
l == Empty()? 0 : 1 + len2Bad(l)
} | function | len2Bad | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len1(l: List1): Int
decreases l | {
l.l == Empty()? 0 : 1 + len1(l.l.l)
} | function | len1 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
len1Bad(l: List1): Int
decreases l | {
//:: ExpectedOutput(termination.failed:tuple.false)
l.l == Empty()? 0 : 1 + len1Bad(l)
} | function | len1Bad | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"List1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
MList1 | {
MRList1(x: Int, y: MList2)
} | adt | MList1 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"MList2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
MList2 | {
MEmpty()
MNonEmpty(y: Int, l: MList1)
} | adt | MList2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"MList1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mlen2(l: MList2): Int
decreases l | {
l == MEmpty()? 0 : 1 + mlen2(l.l.y)
} | function | mlen2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"MList2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
Triple1 | {
triple1(x: Triple2)
} | adt | Triple1 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
Triple2 | {
triple2(x: Triple3)
} | adt | Triple2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple3"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
Triple3 | {
triple3(x: Triple1)
nil(i: Int)
} | adt | Triple3 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen1(t: Triple1): Int
decreases t | {
2 + (t.x.x.isnil ? 0 : tripleLen1(t.x.x.x))
} | function | tripleLen1 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen2(t: Triple2): Int
decreases t | {
1 + (t.x.isnil ? 0 : (1 + tripleLen2(t.x.x.x)))
} | function | tripleLen2 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen3(t: Triple3): Int
decreases t | {
t.isnil ? 0 : (3 + tripleLen3(t.x.x.x))
} | function | tripleLen3 | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple3"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen1Bad(t: Triple1): Int
decreases t | {
//:: ExpectedOutput(termination.failed:tuple.false)
2 + (t.x.x.isnil ? 0 : tripleLen1Bad(t))
} | function | tripleLen1Bad | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple1"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen2Bad(t: Triple2): Int
decreases t | {
//:: ExpectedOutput(termination.failed:tuple.false)
1 + (t.x.isnil ? 0 : (1 + tripleLen2Bad(t)))
} | function | tripleLen2Bad | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
tripleLen3Bad(t: Triple3): Int
decreases t | {
//:: ExpectedOutput(termination.failed:tuple.false)
t.isnil ? 0 : (3 + tripleLen3Bad(t))
} | function | tripleLen3Bad | test.resources.adt | src/test/resources/adt/termination_mutual_1.vpr | [] | [
"Triple3"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
type_ascriptions_1() | {
assert (Nil(): List[Bool]) == (Nil(): List[Bool])
assert (Nil(): List[List[Int]]) == (Nil(): List[List[Int]])
// This should trigger a warning but currently there is no way of testing this
assert Nil() == Nil()
} | method | type_ascriptions_1 | test.resources.adt | src/test/resources/adt/type_ascriptions_1.vpr | [] | [
"List"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
var_decls_1a() | {
var list1: List[Int]
var list2: List[List[Bool]]
var list3: List[List[List[Int]]]
var list4: List[List[List[List[Bool]]]]
var list5: List[Seq[Int]]
var list6: List[Set[Bool]]
var list7: List[Map[Int, Int]]
var list8: List[Map[Int, List[Int]]]
} | method | var_decls_1a | test.resources.adt | src/test/resources/adt/variable_declarations_1.vpr | [] | [
"List",
"list2",
"list5"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
var_decls_1b() | {
var slist1: SpecialList[Bool, List[Int]]
var slist2: SpecialList[Int, Seq[Int]]
var slist3: SpecialList[List[List[List[List[Bool]]]], List[List[List[List[Bool]]]]]
var slist4: SpecialList[SpecialList[SpecialList[SpecialList[Int, Int], SpecialList[Bool, Bool]], Int], SpecialList[Bool, SpecialList[Speci... | method | var_decls_1b | test.resources.adt | src/test/resources/adt/variable_declarations_1.vpr | [] | [
"List",
"SpecialList"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
var_decls_2a() | {
//:: ExpectedOutput(typechecker.error)
var list1: List[Int, Int]
//:: ExpectedOutput(typechecker.error)
var list2: List
} | method | var_decls_2a | test.resources.adt | src/test/resources/adt/variable_declarations_2.vpr | [] | [
"List",
"list2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
var_decls_2b() | {
//:: ExpectedOutput(typechecker.error)
var slist: SpecialList[SpecialList[SpecialList[SpecialList[Int, Int], SpecialList[Bool]], Int], SpecialList[Bool, SpecialList[SpecialList[Int, Int], SpecialList[Bool, Bool]]]]
} | method | var_decls_2b | test.resources.adt | src/test/resources/adt/variable_declarations_2.vpr | [] | [
"SpecialList"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f: Int
// We test annotations by using annotations that make Silicon less complete and making sure we get the expected
// errors. Carbon should ignore the annotations and thus verify everything.
// We mark the errors as "unexpected" and stemming from a Silicon issue s.t. the tests pass in Carbon if there are
// no err... | field | f | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
testMin1(r: Ref, b: Bool) | {
inhale acc(r.f, 1/2)
inhale acc(r.f, 1/2)
//:: UnexpectedOutput(exhale.failed:insufficient.permission, /silicon/issue/000/)
exhale acc(r.f)
}
@stateConsolidationMode("0") | method | testMin1 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testMin2(r: Ref, b: Bool) | {
inhale acc(r.f, 1/2)
inhale acc(r.f, 1/2)
//:: UnexpectedOutput(exhale.failed:insufficient.permission, /silicon/issue/000/)
exhale acc(r.f)
} | method | testMin2 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testMin3(r: Ref, b: Bool) | {
inhale acc(r.f, 1/2)
inhale acc(r.f, 1/2)
exhale acc(r.f)
}
@stateConsolidationMode("default") | method | testMin3 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testMin4(r: Ref, b: Bool) | {
inhale acc(r.f, 1/2)
inhale acc(r.f, 1/2)
exhale acc(r.f)
}
@stateConsolidationMode("minimal")
@moreJoins("all") | method | testMin4 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [
"all"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testJoin1(r: Ref, b: Bool) | {
if (b) {
inhale acc(r.f)
} else {
inhale acc(r.f)
}
//:: UnexpectedOutput(exhale.failed:insufficient.permission, /silicon/issue/000/)
exhale acc(r.f)
}
@stateConsolidationMode("minimal")
@moreJoins("2") | method | testJoin1 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testJoin2(r: Ref, b: Bool) | {
if (b) {
inhale acc(r.f)
} else {
inhale acc(r.f)
}
//:: UnexpectedOutput(exhale.failed:insufficient.permission, /silicon/issue/000/)
exhale acc(r.f)
}
@stateConsolidationMode("minimal") | method | testJoin2 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testJoin3(r: Ref, b: Bool) | {
if (b) {
inhale acc(r.f)
} else {
inhale acc(r.f)
}
exhale acc(r.f)
}
@stateConsolidationMode("minimal")
@moreJoins("0") | method | testJoin3 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testJoin4(r: Ref, b: Bool) | {
if (b) {
inhale acc(r.f)
} else {
inhale acc(r.f)
}
exhale acc(r.f)
}
@stateConsolidationMode("minimal")
@moreJoins("1") | method | testJoin4 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
testJoin5(r: Ref, b: Bool) | {
if (b) {
inhale acc(r.f)
} else {
inhale acc(r.f)
}
exhale acc(r.f)
} | method | testJoin5 | test.resources.all.annotation | src/test/resources/all/annotation/annotationJoinsStateCons.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f: Int | field | f | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
disjAlias(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
//:: UnexpectedOutput(assignment.failed:insufficient.permission, /silicon/issue/000/)
r3.f := 4
}
@exhaleMode("1") | method | disjAlias | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
disjAlias1(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
r3.f := 4
}
@exhaleMode("invalid") | method | disjAlias1 | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
disjAlias2(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
//:: UnexpectedOutput(assignment.failed:insufficient.permission, /silicon/issue/000/)
r3.f := 4
}
@exhaleMode("moreCompleteExhale") | method | disjAlias2 | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
disjAlias3(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
r3.f := 4
}
@exhaleMode("0") | method | disjAlias3 | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
disjAlias4(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
//:: UnexpectedOutput(assignment.failed:insufficient.permission, /silicon/issue/000/)
r3.f := 4
}
@exhaleMode("greedy") | method | disjAlias4 | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
disjAlias5(r1: Ref, r2: Ref, r3: Ref)
requires acc(r1.f)
requires acc(r2.f)
requires r3 == r1 || r3 == r2 | {
//:: UnexpectedOutput(assignment.failed:insufficient.permission, /silicon/issue/000/)
r3.f := 4
} | method | disjAlias5 | test.resources.all.annotation | src/test/resources/all/annotation/annotationMCE.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f1(i: Int, i2: Int): Int
requires i >= 0
requires i2 >= 0
ensures result >= 0 | {
i * i2
}
@proverConfigArgs("smt.arith.nl=false") | function | f1 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f2(i: Int, i2: Int): Int
requires i >= 0
requires i2 >= 0
//:: UnexpectedOutput(postcondition.violated:assertion.false, /silicon/issue/000/)
ensures result >= 0 | {
i * i2
}
@proverConfigArgs("smt.arith.nl=true") | function | f2 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f3(i: Int, i2: Int): Int
requires i >= 0
requires i2 >= 0
ensures result >= 0 | {
i * i2
} | function | f3 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
m1(i: Int, i2: Int)
requires i >= 0
requires i2 >= 0 | {
assert i * i2 >= 0
}
@proverConfigArgs("smt.arith.nl=false") | method | m1 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
m2(i: Int, i2: Int)
requires i >= 0
requires i2 >= 0 | {
//:: UnexpectedOutput(assert.failed:assertion.false, /silicon/issue/000/)
assert i * i2 >= 0
}
@proverConfigArgs("smt.arith.nl=true") | method | m2 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
m3(i: Int, i2: Int)
requires i >= 0
requires i2 >= 0 | {
assert i * i2 >= 0
} | method | m3 | test.resources.all.annotation | src/test/resources/all/annotation/annotationProverConfigArgs.vpr | [] | [
"i2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f: Int
@inlining("never", "inmylife") | field | f | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
fun01(x: Ref, y: Ref, b: Bool): Int
requires b ? acc(x.f) : acc(y.f) | function | fun01 | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
fun02(x: Ref, y: Ref, b: Bool): Int
requires acc(x.f, b ? write : none)
requires acc(y.f, !b ? write : none)
@inline("never", "ever")
@inline("ever") | function | fun02 | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
P(x: Ref)
@interp("some smtlib thingy") | predicate | P | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [
"interp"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
MyType | {
@asd("test 123")
@asdd("test 123")
function id(MyType): MyType
@asd("test 123")
axiom {
@asd("test 123", "huh")
@asdasd()
true
}
}
@setting("donotverify")
@verifier("none", "atall") | domain | MyType | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [
"asdasd",
"huh",
"id",
"test"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
m(x: Ref, y: Ref)
requires acc(x.f)
requires acc(y.f) | {
var tmp: Int
@annotating.a.statement("the assignment")
tmp := @asd("test 123") fun02(x, @ann("this is ugly") y, true)
y.f := 1
assert tmp == fun02(x, y, true)
} | method | m | test.resources.all.annotation | src/test/resources/all/annotation/annotationSuccess.vpr | [] | [
"fun02",
"test"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
f: Int
@opaque() | field | f | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | ||
isGreaterOne(i: Int): Bool
requires i > -60
ensures (i > 60) ==> result | { i > 1 }
@opaque() | function | isGreaterOne | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne2(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result | { isGreaterOne(r.f) }
@opaque() | function | isGreaterOne2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne22(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result
//:: ExpectedOutput(postcondition.violated:assertion.false)
ensures result == r.f > 1 // fail | { isGreaterOne(r.f) }
@opaque() | function | isGreaterOne22 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne3(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result | { @reveal() isGreaterOne(r.f) }
@opaque() | function | isGreaterOne3 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne32(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result
ensures result == r.f > 1 | { @reveal() isGreaterOne(r.f) }
@opaque() | function | isGreaterOne32 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne33(r: Ref): Bool
requires acc(r.f)
ensures (r.f > 60) ==> result
//:: ExpectedOutput(application.precondition:assertion.false) | { @reveal() isGreaterOne(r.f) } | function | isGreaterOne33 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne34(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result | { @reveal() isGreaterOne(r.f) } | function | isGreaterOne34 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
isGreaterOne35(r: Ref): Bool
requires acc(r.f) && r.f > -38
ensures (r.f > 60) ==> result | { isGreaterOne(r.f) } | function | isGreaterOne35 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mPre(j: Int) | {
var tmp : Bool
//:: ExpectedOutput(application.precondition:assertion.false)
tmp := isGreaterOne(j)
} | method | mPre | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mPre2(j: Int) | {
var tmp : Bool
//:: ExpectedOutput(application.precondition:assertion.false)
tmp := @reveal() isGreaterOne(j)
} | method | mPre2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mPost() | {
var tmp : Bool
tmp := isGreaterOne(70)
assert tmp
} | method | mPost | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mPost2() | {
var tmp : Bool
tmp := @reveal() isGreaterOne(70)
assert tmp
} | method | mPost2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mDef(j: Int)
requires j > -50 | {
assume isGreaterOne(j)
//:: ExpectedOutput(assert.failed:assertion.false)
assert j > 1
} | method | mDef | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mDef2(j: Int)
requires j > -50 | {
assume @reveal() isGreaterOne(j)
assert j > 1
} | method | mDef2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mProveFun(j: Int)
requires j > 1 | {
//:: ExpectedOutput(assert.failed:assertion.false)
assert isGreaterOne(j)
} | method | mProveFun | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mProveFun2(j: Int)
requires j > 1 | {
assert @reveal() isGreaterOne(j)
} | method | mProveFun2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mProveRevealed(j: Int)
requires j > -40 | {
assume isGreaterOne(j)
assert @reveal() isGreaterOne(j)
assert j > 1
} | method | mProveRevealed | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mProveRevealed2(j: Int)
requires j > -40 | {
assume isGreaterOne(j)
//:: ExpectedOutput(assert.failed:assertion.false)
assert j > 1
} | method | mProveRevealed2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mProveOpaque(j: Int)
requires j > -40 | {
assume @reveal() isGreaterOne(j)
assert isGreaterOne(j)
//:: ExpectedOutput(assert.failed:assertion.false)
assert false
} | method | mProveOpaque | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mNestedFunc(r: Ref)
requires acc(r.f) && r.f > -20 | {
assume isGreaterOne2(r)
//:: ExpectedOutput(assert.failed:assertion.false)
assert r.f > 1
} | method | mNestedFunc | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mNestedFunc2(r: Ref)
requires acc(r.f) && r.f > -20 | {
assume @reveal() isGreaterOne2(r)
//:: ExpectedOutput(assert.failed:assertion.false)
assert r.f > 1
} | method | mNestedFunc2 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne2"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mNestedFunc3(r: Ref)
requires acc(r.f) && r.f > -20 | {
assume isGreaterOne3(r)
//:: ExpectedOutput(assert.failed:assertion.false)
assert r.f > 1
} | method | mNestedFunc3 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne3"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mNestedFunc4(r: Ref)
requires acc(r.f) && r.f > -20 | {
assume @reveal() isGreaterOne3(r)
assert r.f > 1
} | method | mNestedFunc4 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne3"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 | |
mNestedFunc5(r: Ref)
requires acc(r.f) && r.f > -20 | {
assume isGreaterOne34(r)
assert r.f > 1
} | method | mNestedFunc5 | test.resources.all.annotation | src/test/resources/all/annotation/opaque.vpr | [] | [
"isGreaterOne34"
] | https://github.com/viperproject/silver | efc0caa6f46ad79d49f337d8d640460a49cfd757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.