[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/Makefile simulate.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 4 20:46:00 PDT 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul:

Makefile added (r1.1)
simulate.cpp updated: 1.1 -> 1.2
---
Log message:

Remove infinite loop



---
Diffs of the changes:  (+9 -2)

Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/Makefile
diff -c /dev/null llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/Makefile:1.1
*** /dev/null	Mon Oct  4 22:45:59 2004
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/Makefile	Mon Oct  4 22:45:49 2004
***************
*** 0 ****
--- 1,7 ----
+ LEVEL = ../../../..
+ 
+ PROG     = simul
+ #LIBS  = -lstdc++
+ LDFLAGS = -lstdc++
+ include $(LEVEL)/MultiSource/Makefile.multisrc
+ 


Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/simulate.cpp
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/simulate.cpp:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/simulate.cpp:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/simulate.cpp:1.1	Mon Oct  4 15:01:15 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/simul/simulate.cpp	Mon Oct  4 22:45:49 2004
@@ -248,7 +248,7 @@
   }
 };
 
-main() {
+int main() {
   screen.clear_screen();
   int pop_factor = 1;
   int crawl_factor = 2;
@@ -263,7 +263,7 @@
     }
   int xrand = 5;
   int yrand = 6;
-  while (1) {
+  for (int i = 0; i != 1000000; ++i) {
     int x_location = xrand;
     int y_location = yrand;
     if (s_grid[x_location][y_location])






More information about the llvm-commits mailing list