Skip to content

Commit

Permalink
removed nbBoolKt
Browse files Browse the repository at this point in the history
  • Loading branch information
tochilinak committed Jun 10, 2024
1 parent fef890b commit d0d2fd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ public static void notifyNbBool(ConcolicRunContext context, SymbolForCPython sym
if (symbol.obj == null)
return;
context.curOperation = new MockHeader(NbBoolMethod.INSTANCE, Collections.singletonList(symbol.obj), symbol.obj);
nbBoolKt(context, symbol.obj);
// We probably don't want to put constraints after nb_bool (maybe in the future?)
}

@CPythonAdapterJavaMethod(cName = "nb_int")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ import org.usvm.machine.types.HasTpRichcmp
import org.usvm.machine.types.HasTpSetattro
import org.usvm.machine.types.MockType

@Suppress("unused_parameter")
fun nbBoolKt(context: ConcolicRunContext, on: UninterpretedSymbolicPythonObject) {
context.curState ?: return
}

fun nbIntKt(context: ConcolicRunContext, on: UninterpretedSymbolicPythonObject) {
context.curState ?: return
on.addSupertypeSoft(context, HasNbInt)
Expand Down

0 comments on commit d0d2fd3

Please sign in to comment.