MCPcopy Create free account
hub / github.com/Z3Prover/z3 / create

Method create

src/api/java/Sort.java:116–152  ·  view source on GitHub ↗
(Context ctx, long obj)

Source from the content-addressed store, hash-verified

114 }
115
116 static Sort create(Context ctx, long obj)
117 {
118 Z3_sort_kind sk = Z3_sort_kind.fromInt(Native.getSortKind(ctx.nCtx(), obj));
119 switch (sk)
120 {
121 case Z3_ARRAY_SORT:
122 return new ArraySort<>(ctx, obj);
123 case Z3_BOOL_SORT:
124 return new BoolSort(ctx, obj);
125 case Z3_BV_SORT:
126 return new BitVecSort(ctx, obj);
127 case Z3_DATATYPE_SORT:
128 return new DatatypeSort<>(ctx, obj);
129 case Z3_INT_SORT:
130 return new IntSort(ctx, obj);
131 case Z3_REAL_SORT:
132 return new RealSort(ctx, obj);
133 case Z3_UNINTERPRETED_SORT:
134 return new UninterpretedSort(ctx, obj);
135 case Z3_FINITE_DOMAIN_SORT:
136 return new FiniteDomainSort(ctx, obj);
137 case Z3_RELATION_SORT:
138 return new RelationSort(ctx, obj);
139 case Z3_FLOATING_POINT_SORT:
140 return new FPSort(ctx, obj);
141 case Z3_ROUNDING_MODE_SORT:
142 return new FPRMSort(ctx, obj);
143 case Z3_SEQ_SORT:
144 return new SeqSort<>(ctx, obj);
145 case Z3_RE_SORT:
146 return new ReSort<>(ctx, obj);
147 case Z3_CHAR_SORT:
148 return new CharSort(ctx, obj);
149 default:
150 throw new Z3Exception("Unknown sort kind");
151 }
152 }
153}

Callers 11

createMethod · 0.95
getSortMethod · 0.95
getDomainMethod · 0.95
getRangeMethod · 0.95
getParametersMethod · 0.95
getColumnSortsMethod · 0.95
getBoundVariableSortsMethod · 0.95
getBoundVariableSortsMethod · 0.95
getSortsMethod · 0.95
getDomainMethod · 0.95
getRangeMethod · 0.95

Calls 3

fromIntMethod · 0.80
getSortKindMethod · 0.80
nCtxMethod · 0.80

Tested by

no test coverage detected