All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
dfpnstat.cc File Reference
#include "osl/checkmate/dfpn.h"
#include "osl/checkmate/dfpnParallel.h"
#include "osl/record/csaString.h"
#include "osl/record/csaRecord.h"
#include "osl/record/csaIOError.h"
#include "osl/state/numEffectState.h"
#include "osl/misc/perfmon.h"
#include "osl/misc/milliSeconds.h"
#include "osl/move_generator/legalMoves.h"
#include "osl/checkmate/dfpnRecord.h"
#include "osl/hash/hashRandomPair.h"
#include "osl/oslConfig.h"
#include <boost/scoped_ptr.hpp>
#include <boost/foreach.hpp>
#include <string>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <unistd.h>
#include <bitset>
Include dependency graph for dfpnstat.cc:

Go to the source code of this file.

Functions

template<class DfpnSearch >
void search (DfpnSearch &, const char *filename)
 
void usage (const char *program_name)
 
int main (int argc, char **argv)
 
template<class DfpnSearch >
void analyzeCheckmate (DfpnSearch &searcher, const NumEffectState &state, Move checkmate_move)
 
template<class DfpnSearch >
void testWinOrLose (const char *filename, DfpnSearch &searcher, const SimpleState &sstate, int limit, ProofDisproof &result, Move &best_move, const vector< Move > &moves)
 

Variables

unsigned int dovetailing_seed = 0
 
unsigned int dovetailing_prob = 0
 
bool verbose =false
 
unsigned long long total_cycles =0
 
bool show_escape_filename = false
 
bool force_attack = false
 
int num_checkmate =0
 
int num_nocheckmate =0
 
int num_escape =0
 
int num_unkown =0
 
double total_nodes =0
 
double total_tables =0
 
int limit = 100000
 
bool blocking_verify = true
 
size_t table_growth_limit = 8000000
 
bool debug = false
 
int forward_moves = 0
 
double real_seconds = 0.0
 

Function Documentation

template<class DfpnSearch >
void analyzeCheckmate ( DfpnSearch &  searcher,
const NumEffectState &  state,
Move  checkmate_move 
)
int main ( int  argc,
char **  argv 
)
template<class DfpnSearch >
void search ( DfpnSearch &  searcher,
const char *  filename 
)
template<class DfpnSearch >
void testWinOrLose ( const char *  filename,
DfpnSearch &  searcher,
const SimpleState &  sstate,
int  limit,
ProofDisproof result,
Move best_move,
const vector< Move > &  moves 
)
void usage ( const char *  program_name)

Definition at line 47 of file dfpnstat.cc.

Referenced by main().

Variable Documentation

bool blocking_verify = true

Definition at line 40 of file dfpnstat.cc.

Referenced by osl::checkmate::Dfpn::defense(), and main().

bool debug = false

Definition at line 42 of file dfpnstat.cc.

Referenced by main(), and testWinOrLose().

unsigned int dovetailing_prob = 0

Definition at line 31 of file dfpnstat.cc.

Referenced by main().

unsigned int dovetailing_seed = 0

Definition at line 30 of file dfpnstat.cc.

Referenced by main().

bool force_attack = false

Definition at line 36 of file dfpnstat.cc.

Referenced by main(), search(), and testWinOrLose().

int forward_moves = 0

Definition at line 43 of file dfpnstat.cc.

Referenced by main(), and search().

int limit = 100000
int num_checkmate =0

Definition at line 37 of file dfpnstat.cc.

Referenced by main(), search(), and testWinOrLose().

int num_escape =0

Definition at line 37 of file dfpnstat.cc.

Referenced by main(), search(), and testWinOrLose().

int num_nocheckmate =0

Definition at line 37 of file dfpnstat.cc.

Referenced by main(), and testWinOrLose().

int num_unkown =0

Definition at line 37 of file dfpnstat.cc.

Referenced by main(), search(), and testWinOrLose().

double real_seconds = 0.0

Definition at line 132 of file dfpnstat.cc.

Referenced by search(), and testWinOrLose().

bool show_escape_filename = false

Definition at line 35 of file dfpnstat.cc.

size_t table_growth_limit = 8000000

Definition at line 41 of file dfpnstat.cc.

Referenced by main(), and search().

unsigned long long total_cycles =0

Definition at line 34 of file dfpnstat.cc.

Referenced by main(), qsearch(), run(), search(), and testWinOrLose().

double total_nodes =0

Definition at line 38 of file dfpnstat.cc.

Referenced by main(), and search().

double total_tables =0

Definition at line 38 of file dfpnstat.cc.

Referenced by main(), and search().

bool verbose =false