Skip to content

Commit 91c2139

Browse files
just use std::string
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent fe6f38a commit 91c2139

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/smt2print_parse.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Copyright (c) 2015 Microsoft Corporation
1010
#include "api/z3.h"
1111
#include "util/debug.h"
1212
#include <iostream>
13-
#include <cstdlib>
1413

1514
void test_print(Z3_context ctx, Z3_ast_vector av) {
1615
Z3_set_ast_print_mode(ctx, Z3_PRINT_SMTLIB2_COMPLIANT);
@@ -192,7 +191,7 @@ void test_name(Z3_string spec, Z3_string expected_name) {
192191
Z3_func_decl decl = Z3_get_app_decl(ctx, app);
193192
Z3_symbol symbol = Z3_get_decl_name(ctx, decl);
194193
Z3_string name = Z3_get_symbol_string(ctx, symbol);
195-
bool success = strcmp(name, expected_name) == 0;
194+
bool success = std::string(name) == std::string(expected_name);
196195
Z3_dec_ref(ctx, c);
197196
Z3_ast_vector_dec_ref(ctx, a);
198197
Z3_del_context(ctx);

0 commit comments

Comments
 (0)