Skip to content

Commit f759f25

Browse files
Fix new test to run remove_java_new pass
1 parent cb09d8e commit f759f25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unit/pointer-analysis/custom_value_set_analysis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Author: Chris Smowton, [email protected]
1212
#include <langapi/mode.h>
1313
#include <goto-programs/initialize_goto_model.h>
1414
#include <goto-programs/goto_inline.h>
15+
#include <goto-programs/remove_java_new.h>
1516
#include <java_bytecode/java_bytecode_language.h>
1617
#include <java_bytecode/java_types.h>
1718
#include <pointer-analysis/value_set_analysis.h>
@@ -183,6 +184,9 @@ SCENARIO("test_value_set_analysis",
183184

184185
namespacet ns(goto_model.symbol_table);
185186

187+
// VSA doesn't currently support java_new as an allocator
188+
remove_java_new(goto_model, null_output);
189+
186190
// Fully inline the test program, to avoid VSA conflating
187191
// constructor callsites confusing the results we're trying to check:
188192
goto_function_inline(goto_model, TEST_FUNCTION_NAME, null_output);

0 commit comments

Comments
 (0)