Author: laurov Date: Wed Aug 8 13:32:57 2007 New Revision: 40934 URL: http://llvm.org/viewvc/llvm-project?rev=40934&view=rev Log: - Define SMALL_PROBLEM_SIZE - Ignore the maxtime to make the test deterministic.
Modified: test-suite/trunk/MultiSource/Applications/hexxagon/hexxagon.cpp test-suite/trunk/MultiSource/Applications/hexxagon/hexxagonmove.cpp Modified: test-suite/trunk/MultiSource/Applications/hexxagon/hexxagon.cpp URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/hexxagon/hexxagon.cpp?rev=40934&r1=40933&r2=40934&view=diff ============================================================================== --- test-suite/trunk/MultiSource/Applications/hexxagon/hexxagon.cpp (original) +++ test-suite/trunk/MultiSource/Applications/hexxagon/hexxagon.cpp Wed Aug 8 13:32:57 2007 @@ -151,8 +151,11 @@ int quit = 0; int mode = 1; - - int level = 4; +#ifdef SMALL_PROBLEM_SIZE + int level = 3; +#else + int level = 4; +#endif int time = 12; int llvm_index; Modified: test-suite/trunk/MultiSource/Applications/hexxagon/hexxagonmove.cpp URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/hexxagon/hexxagonmove.cpp?rev=40934&r1=40933&r2=40934&view=diff ============================================================================== --- test-suite/trunk/MultiSource/Applications/hexxagon/hexxagonmove.cpp (original) +++ test-suite/trunk/MultiSource/Applications/hexxagon/hexxagonmove.cpp Wed Aug 8 13:32:57 2007 @@ -158,13 +158,13 @@ { int t = getTime(); - for(int i = 1; (i < depth) && (getTime() - t <= maxtime); i++) + for(int i = 1; (i < depth)/* && (getTime() - t <= maxtime) */; i++) { int best = -SCR_INFINITY; int alpha = -SCR_INFINITY; int beta = SCR_INFINITY; - for(int j = 0; (j < getNrMoves()) && (getTime() - t <= maxtime) && (best < beta); j++) + for(int j = 0; (j < getNrMoves()) && /* (getTime() - t <= maxtime) && */ (best < beta); j++) { if(best > alpha) alpha = best; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits