From 5ccc6ef766e775117e27c5abcde1ff5dfac41865 Mon Sep 17 00:00:00 2001 From: quaelnix <122357328+quaelnix@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:11:14 +0200 Subject: [PATCH] Exploit constant expression optimization in fastbike.brf --- misc/profiles2/fastbike.brf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/profiles2/fastbike.brf b/misc/profiles2/fastbike.brf index effeb57..5c9e6a5 100644 --- a/misc/profiles2/fastbike.brf +++ b/misc/profiles2/fastbike.brf @@ -155,6 +155,8 @@ assign hascycleway = not and ( or cycleway= cycleway=no|none ) and ( or cycleway:left= cycleway:left=no ) ( or cycleway:right= cycleway:right=no ) assign trafficpenalty0 = + if consider_traffic then + ( if highway=primary|primary_link then ( if estimated_traffic_class=4 then 0.2 @@ -179,6 +181,8 @@ assign trafficpenalty0 = else 0 ) else 0 + ) + else 0 assign trafficpenalty = if consider_traffic then