/test/language/gc/ISMM98/MNoLfO/test_bench.e

http://github.com/tybor/Liberty · Specman e · 60 lines · 33 code · 6 blank · 21 comment · 0 complexity · e154bc3e46825c07a89f04d302246a29 MD5 · raw file

  1. -- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
  2. -- See the Copyright notice at the end of this file.
  3. --
  4. class TEST_BENCH
  5. create {}
  6. make
  7. feature {ANY}
  8. array: ARRAY[TRIANGLE]
  9. t: TRIANGLE
  10. p1, p2, p3: POINT
  11. make
  12. local
  13. i, j: INTEGER
  14. do
  15. from
  16. i := 4_000
  17. create array.make(1, 2_000)
  18. until
  19. i = 0
  20. loop
  21. from
  22. j := 2_000
  23. until
  24. j = 0
  25. loop
  26. create p1.make(1.0, 1.0)
  27. create p2.make(2.0, 2.0)
  28. create p3.make(3.0, 3.0)
  29. create t.make(p1, p2, p3)
  30. array.put(t, j)
  31. j := j - 1
  32. end
  33. i := i - 1
  34. end
  35. end
  36. end -- class TEST_BENCH
  37. --
  38. -- ------------------------------------------------------------------------------------------------------------------------------
  39. -- Copyright notice below. Please read.
  40. --
  41. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  42. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  43. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  44. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  45. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  46. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  47. --
  48. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  49. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  50. --
  51. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  52. --
  53. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  54. -- ------------------------------------------------------------------------------------------------------------------------------