<commit_before>/*++
Copyright (c) 2011 Microsoft Corporation

Module Name:

    solver.h

Abstract:

    abstract solver interface

Author:

    Leonardo (leonardo) 2011-03-19

Notes:

--*/
#ifndef _SOLVER_H_
#define _SOLVER_H_

#include"check_sat_result.h"
#include"progress_callback.h"
#include"params.h"

struct front_end_params;

/**
   \brief Abstract interface for making solvers available in the Z3
   API and front-ends such as SMT 2.0 and (legacy) SMT 1.0.

   It provides the basic functionality for incremental solvers.
     - assertions
     - push/pop
     - parameter setting (updt_params)
     - statistics
     - results based on check_sat_result API
     - interruption (set_cancel)
     - resets 
*/
class solver : public check_sat_result {
public:
    virtual ~solver() {}
    
    /**
       \brief This method is invoked to allow the solver to access the front_end_params (environment parameters).
       
       \warning This method is used for backward compatibility. The first solver implemented in Z3 used
       front_end_params to store its configuration parameters. 
    */
    virtual void set_front_end_params(front_end_params & p) {} 

    /**
       \brief Update the solver internal settings. 
    */
    virtual void updt_params(params_ref const & p) {}

    /**
       \brief Store in \c r a description of the configuration
       parameters available in this solver.
    */
    virtual void collect_param_descrs(param_descrs & r) {}
    
    /**
       \brief Enable/Disable proof production for this solver object.
    
       It is invoked before init(m, logic).
    */
    virtual void set_produce_proofs(bool f) {}
    /**
       \brief Enable/Disable model generation for this solver object.

       It is invoked before init(m, logic).
    */
    virtual void set_produce_models(bool f) {}
    /**
       \brief Enable/Disable unsat core generation for this solver object.

       It is invoked before init(m, logic).
    */
    virtual void set_produce_unsat_cores(bool f) {}
    <commit_msg>fixed typo<commit_after>/*++
Copyright (c) 2011 Microsoft Corporation

Module Name:

    solver.h

Abstract:

    abstract solver interface

Author:

    Leonardo (leonardo) 2011-03-19

Notes:

--*/
#ifndef _SOLVER_H_
#define _SOLVER_H_

#include"check_sat_result.h"
#include"progress_callback.h"
#include"params.h"

struct front_end_params;

/**
   \brief Abstract interface for making solvers available in the Z3
   API and front-ends such as SMT 2.0 and (legacy) SMT 1.0.

   It provides the basic functionality for incremental solvers.
     - assertions
     - push/pop
     - parameter setting (updt_params)
     - statistics
     - results based on check_sat_result API
     - interruption (set_cancel)
     - resets 
*/
class solver : public check_sat_result {
public:
    virtual ~solver() {}
    
    /**
       \brief This method is invoked to allow the solver to access the front_end_params (environment parameters).
       
       \warning This method is used for backward compatibility. The first solver implemented in Z3 used
       front_end_params to store its configuration parameters. 
    */
    virtual void set_front_end_params(front_end_params & p) {} 

    /**
       \brief Update the solver internal settings. 
    */
    virtual void updt_params(params_ref const & p) {}

    /**
       \brief Store in \c r a description of the configuration
       parameters available in this solver.
    */
    virtual void collect_param_descrs(param_descrs & r) {}
    
    /**
       \brief Enable/Disable proof production for this solver object.
    
       It is invoked after init(m, logic).
    */
    virtual void set_produce_proofs(bool f) {}
    /**
       \brief Enable/Disable model generation for this solver object.

       It is invoked after init(m, logic).
    */
    virtual void set_produce_models(bool f) {}
    /**
       \brief Enable/Disable unsat core generation for this solver object.

       It is invoked after init(m, logic).
    */
    virtual void set_produce_unsat_cores(bool f) {}
    
{'fraction_non_alphanumeric': 0.07870142646335465, 'fraction_numerical': 0.008853910477127398, 'mean_word_length': 2.63125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5858913', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1150, 'n_words': 405}