Skip to content

Commit 5e2bf4b

Browse files
authored
Merge pull request #340 from yushan87/prover-immutable-vc
Prover Immutable VC Representation
2 parents 7b7c6b2 + 16e7e57 commit 5e2bf4b

File tree

5 files changed

+1977
-365
lines changed

5 files changed

+1977
-365
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* NotPSymbolException.java
3+
* ---------------------------------
4+
* Copyright (c) 2019
5+
* RESOLVE Software Research Group
6+
* School of Computing
7+
* Clemson University
8+
* All rights reserved.
9+
* ---------------------------------
10+
* This file is subject to the terms and conditions defined in
11+
* file 'LICENSE.txt', which is part of this source code package.
12+
*/
13+
package edu.clemson.cs.rsrg.prover.exception;
14+
15+
import edu.clemson.cs.rsrg.prover.absyn.PExp;
16+
import edu.clemson.cs.rsrg.prover.absyn.expressions.PSymbol;
17+
import edu.clemson.cs.rsrg.statushandling.exception.CompilerException;
18+
19+
/**
20+
* <p>A {@code NotPSymbolException} indicates we encountered an expression
21+
* that isn't of type {@link PSymbol}.</p>
22+
*
23+
* @author Yu-Shan Sun
24+
* @version 1.0
25+
*/
26+
public class NotPSymbolException extends CompilerException {
27+
28+
// ===========================================================
29+
// Member Fields
30+
// ===========================================================
31+
32+
/** <p>Serial version for Serializable objects</p> */
33+
private static final long serialVersionUID = -6126191138057900190L;
34+
35+
// ==========================================================
36+
// Constructors
37+
// ==========================================================
38+
39+
/**
40+
* <p>This constructor creates an exception that indicates the
41+
* automated prover encountered a non-{@link PSymbol} expression.</p>
42+
*/
43+
public NotPSymbolException(PExp exp) {
44+
super("unhandled PExp: " + exp.toString(), (Throwable) null);
45+
}
46+
47+
}

0 commit comments

Comments
 (0)