// 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 | |
] |