blob: f549fee70f572c36ad8bdd2c614e56ddbd4b2e4e [file] [log] [blame]
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s --polynomial-threshold=1.7
// REQUIRES: asserts,no_asan
enum Operation {
case binaryOperation((Double, Double) -> Double)
}
var operations: [String: Operation] = [
"+" : .binaryOperation({ $0 + $1 }),
%for i in range(1, N):
"-" : .binaryOperation({ $0 - $1 }),
"×" : .binaryOperation({ $0 * $1 }),
"÷" : .binaryOperation({ $0 / $1 }),
%end
]