[llvm-commits] [test-suite] r40934 - in /test-suite/trunk/MultiSource/Applications/hexxagon: hexxagon.cpp hexxagonmove.cpp

Lauro Ramos Venancio lauro.venancio at gmail.com
Wed Aug 8 11:32:58 PDT 2007


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;





More information about the llvm-commits mailing list