Skip to content

Commit

Permalink
just use std::string
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Oct 31, 2023
1 parent fe6f38a commit 91c2139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/smt2print_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Copyright (c) 2015 Microsoft Corporation
#include "api/z3.h"
#include "util/debug.h"
#include <iostream>
#include <cstdlib>

void test_print(Z3_context ctx, Z3_ast_vector av) {
Z3_set_ast_print_mode(ctx, Z3_PRINT_SMTLIB2_COMPLIANT);
Expand Down Expand Up @@ -192,7 +191,7 @@ void test_name(Z3_string spec, Z3_string expected_name) {
Z3_func_decl decl = Z3_get_app_decl(ctx, app);
Z3_symbol symbol = Z3_get_decl_name(ctx, decl);
Z3_string name = Z3_get_symbol_string(ctx, symbol);
bool success = strcmp(name, expected_name) == 0;
bool success = std::string(name) == std::string(expected_name);
Z3_dec_ref(ctx, c);
Z3_ast_vector_dec_ref(ctx, a);
Z3_del_context(ctx);
Expand Down

0 comments on commit 91c2139

Please sign in to comment.