Skip to content

Commit b93aad9

Browse files
committed
Add comments
1 parent 55a6434 commit b93aad9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ksmt-core/src/main/kotlin/io/ksmt/expr/rewrite/simplify/StringSimplificationRules.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ inline fun KContext.simplifyStringBasicContainsExpr(
174174
* Substring expressions simplifications
175175
* */
176176

177+
/** Eval constants. */
177178
inline fun KContext.simplifyStringSingletonSubExprBasic(
178179
arg0: KExpr<KStringSort>,
179180
arg1: KExpr<KIntSort>,
@@ -198,6 +199,7 @@ inline fun KContext.simplifyStringSingletonSubExprBasic(
198199
}
199200
}
200201

202+
/** Eval constants. */
201203
inline fun KContext.simplifyStringSubExprBasic(
202204
arg0: KExpr<KStringSort>,
203205
arg1: KExpr<KIntSort>,
@@ -220,10 +222,11 @@ inline fun KContext.simplifyStringSubExprBasic(
220222
}
221223
}
222224

225+
/** Eval constants. */
223226
inline fun KContext.simplifyStringIndexOfExprBasic(
224-
arg0: KExpr<KStringSort>, // Исходная строка (s)
225-
arg1: KExpr<KStringSort>, // Подстрока для поиска (t)
226-
arg2: KExpr<KIntSort>, // Начальная позиция (i)
227+
arg0: KExpr<KStringSort>,
228+
arg1: KExpr<KStringSort>,
229+
arg2: KExpr<KIntSort>,
227230
cont: (KExpr<KStringSort>, KExpr<KStringSort>, KExpr<KIntSort>) -> KExpr<KIntSort>
228231
): KExpr<KIntSort> = with(arg0.ctx) {
229232

0 commit comments

Comments
 (0)