Skip to content

Commit

Permalink
Because we do an on-demend call graph construction and symbiotic poin…
Browse files Browse the repository at this point in the history
…ter analysis, we can't compute anything if there is no call to the function.
  • Loading branch information
khatchad committed Dec 7, 2023
1 parent e3ae621 commit b4955aa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package edu.cuny.hunter.hybridize.tests;

import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.CANT_APPROXIMATE_RECURSION;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.HAS_NO_TENSOR_PARAMETERS;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.HAS_PYTHON_SIDE_EFFECTS;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.HAS_TENSOR_PARAMETERS;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.IS_RECURSIVE;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.UNDETERMINABLE_SIDE_EFFECTS;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionFailure.UNDETERMINABLE_TENSOR_PARAMETER;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionSuccess.P1;
import static edu.cuny.hunter.hybridize.core.analysis.PreconditionSuccess.P2;
Expand Down Expand Up @@ -4425,6 +4427,8 @@ public void testHasLikelyTensorParameter149() throws Exception {
assertNull(function.getPassingPrecondition());
assertTrue(function.getTransformations().isEmpty());
assertTrue(function.getStatus().hasError());
assertNotNull(function.getEntryMatchingFailure(UNDETERMINABLE_SIDE_EFFECTS));
assertNotNull(function.getEntryMatchingFailure(CANT_APPROXIMATE_RECURSION));
assertNotNull(function.getEntryMatchingFailure(UNDETERMINABLE_TENSOR_PARAMETER));
}

Expand Down

0 comments on commit b4955aa

Please sign in to comment.