@@ -69,9 +69,9 @@ static SmtTerm deserializeAt(JSONObject parentDto, String key) throws Deserializ
6969 * @throws DeserializationException If {@code termDto} is not a valid representation of a function application.
7070 */
7171 private static SmtTerm deserializeApplication (JSONObject termDto ) throws DeserializationException {
72- // deserialize function and return type identifiers
73- Identifier id = Identifier .deserializeAt (termDto , "name" );
74- Identifier returnType = Identifier .deserializeAt (termDto , "returnSort" );
72+ // deserialize function and return type sorts
73+ Sort id = Sort .deserializeAt (termDto , "name" );
74+ Sort returnType = Sort .deserializeAt (termDto , "returnSort" );
7575
7676 // zip together argument terms and argument types
7777 JSONArray argTypes = JsonUtils .getArray (termDto , "argumentSorts" );
@@ -84,9 +84,9 @@ private static SmtTerm deserializeApplication(JSONObject termDto) throws Deseria
8484 Application .TypedTerm [] argTerms = new Application .TypedTerm [argTypes .size ()];
8585 for (int i = 0 ; i < argTerms .length ; i ++) {
8686 // deserialize type
87- Identifier type ;
87+ Sort type ;
8888 try {
89- type = Identifier .deserialize (argTypes .get (i ));
89+ type = Sort .deserialize (argTypes .get (i ));
9090 } catch (DeserializationException e ) {
9191 throw e .prepend ("argumentSorts." + i );
9292 }
@@ -122,7 +122,7 @@ private static SmtTerm deserializeQuantifier(JSONObject termDto, Quantifier.Type
122122 JSONObject bindingDto = bindingsDto .get (i );
123123 try {
124124 bindings [i ] = new TypedVar (JsonUtils .getString (bindingDto , "name" ),
125- Identifier .deserializeAt (bindingDto , "sort" ));
125+ Sort .deserializeAt (bindingDto , "sort" ));
126126 } catch (DeserializationException e ) {
127127 throw e .prepend ("bindings." + i );
128128 }
@@ -180,7 +180,7 @@ private static SmtTerm deserializeMatch(JSONObject termDto) throws Deserializati
180180 * @throws DeserializationException If {@code termDto} is not a valid representation of a variable.
181181 */
182182 private static SmtTerm deserializeVariable (JSONObject termDto ) throws DeserializationException {
183- return new Variable (JsonUtils .getString (termDto , "name" ), Identifier .deserializeAt (termDto , "sort" ));
183+ return new Variable (JsonUtils .getString (termDto , "name" ), Sort .deserializeAt (termDto , "sort" ));
184184 }
185185
186186 /**
@@ -261,11 +261,11 @@ private static int readHexChar(char hexChar) throws DeserializationException {
261261 /**
262262 * Represents a function application in an SMT formula.
263263 *
264- * @param name The identifier for the function.
264+ * @param name The Sort for the function.
265265 * @param returnType The function's return type.
266266 * @param arguments The arguments to the function.
267267 */
268- record Application (Identifier name , Identifier returnType , List <TypedTerm > arguments ) implements SmtTerm {
268+ record Application (Sort name , Sort returnType , List <TypedTerm > arguments ) implements SmtTerm {
269269
270270 @ Override
271271 public String toString () {
@@ -279,7 +279,7 @@ public String toString() {
279279 * @param type The argument type.
280280 * @param term The subterm being passed as an argument.
281281 */
282- public record TypedTerm (Identifier type , SmtTerm term ) {
282+ public record TypedTerm (Sort type , SmtTerm term ) {
283283
284284 @ Override
285285 public String toString () {
@@ -398,9 +398,9 @@ public String toString() {
398398 * Represents a variable in an SMT formula.
399399 *
400400 * @param name The name of the variable.
401- * @param type The identifier for the type of the variable.
401+ * @param type The Sort for the type of the variable.
402402 */
403- record Variable (String name , Identifier type ) implements SmtTerm {
403+ record Variable (String name , Sort type ) implements SmtTerm {
404404
405405 @ Override
406406 public String toString () {
0 commit comments