Add a new max_with_block predicate for more convenient usage
Add a new max_with_block predicate for more convenient usage

Based on Shawn's Prolog examples from the last Gerrit User Summit this
predicate should become a part of the standard library supplied by
Gerrit to rules.

For example, the typical default submit rule can be implemented as:

  submit_rule(submit(V, CR)) :-
    max_with_block(-2, 2, 'Code-Review', CR),
    max_with_block(-1, 1, 'Verified', V).

Change-Id: Id6d9d248e5b131f8625a912f62f30492b9ebf564
Signed-off-by: Sasa Zivkov <775dd86fe46441c1e1c2b705dfb34c9461d8acd3@sap.com>

jackminicloud/test,GerritCodeReview/gerrit,supriyantomaftuh/gerrit,quyixia/gerrit,quyixia/gerrit,bpollack/gerrit,gerrit-review/gerrit,midnightradio/gerrit,MerritCR/merrit,WANdisco/gerrit,dwhipstock/gerrit,quyixia/gerrit,dwhipstock/gerrit,ckamm/gerrit,bootstraponline-archive/gerrit-mirror,supriyantomaftuh/gerrit,MerritCR/merrit,supriyantomaftuh/gerrit,thinkernel/gerrit,TonyChai24/test,thinkernel/gerrit,WANdisco/gerrit,GerritCodeReview/gerrit,Distrotech/gerrit,supriyantomaftuh/gerrit,gcoders/gerrit,Team-OctOS/host_gerrit,pkdevbox/gerrit,qtproject/qtqa-gerrit,Saulis/gerrit,TonyChai24/test,Saulis/gerrit,netroby/gerrit,gerrit-review/gerrit,thinkernel/gerrit,gracefullife/gerrit,quyixia/gerrit,hdost/gerrit,pkdevbox/gerrit,TonyChai24/test,GerritCodeReview/gerrit,netroby/gerrit,Seinlin/gerrit,renchaorevee/gerrit,hdost/gerrit,thinkernel/gerrit,thesamet/gerrit,teamblueridge/gerrit,GerritCodeReview/gerrit,WANdisco/gerrit,Seinlin/gerrit,midnightradio/gerrit,basilgor/gerrit,anminhsu/gerrit,quyixia/gerrit,MerritCR/merrit,dwhipstock/gerrit,jackminicloud/test,gerrit-review/gerrit,midnightradio/gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,supriyantomaftuh/gerrit,WANdisco/gerrit,basilgor/gerrit,thesamet/gerrit,thesamet/gerrit,joshuawilson/merrit,TonyChai24/test,netroby/gerrit,Overruler/gerrit,Seinlin/gerrit,Overruler/gerrit,gerrit-review/gerrit,thesamet/gerrit,Seinlin/gerrit,ckamm/gerrit,pkdevbox/gerrit,bpollack/gerrit,WANdisco/gerrit,hdost/gerrit,Seinlin/gerrit,jackminicloud/test,Seinlin/gerrit,gracefullife/gerrit,bpollack/gerrit,renchaorevee/gerrit,midnightradio/gerrit,midnightradio/gerrit,teamblueridge/gerrit,gcoders/gerrit,zommarin/gerrit,pkdevbox/gerrit,hdost/gerrit,Team-OctOS/host_gerrit,thinkernel/gerrit,supriyantomaftuh/gerrit,gerrit-review/gerrit,netroby/gerrit,Overruler/gerrit,Team-OctOS/host_gerrit,gerrit-review/gerrit,TonyChai24/test,Team-OctOS/host_gerrit,basilgor/gerrit,renchaorevee/gerrit,dwhipstock/gerrit,zommarin/gerrit,teamblueridge/gerrit,Team-OctOS/host_gerrit,Seinlin/gerrit,joshuawilson/merrit,TonyChai24/test,MerritCR/merrit,gcoders/gerrit,bpollack/gerrit,anminhsu/gerrit,MerritCR/merrit,quyixia/gerrit,bootstraponline-archive/gerrit-mirror,gcoders/gerrit,joshuawilson/merrit,bootstraponline-archive/gerrit-mirror,renchaorevee/gerrit,qtproject/qtqa-gerrit,bootstraponline-archive/gerrit-mirror,thesamet/gerrit,ckamm/gerrit,Saulis/gerrit,gracefullife/gerrit,ckamm/gerrit,supriyantomaftuh/gerrit,Overruler/gerrit,renchaorevee/gerrit,gracefullife/gerrit,joshuawilson/merrit,netroby/gerrit,dwhipstock/gerrit,joshuawilson/merrit,jackminicloud/test,pkdevbox/gerrit,teamblueridge/gerrit,pkdevbox/gerrit,gcoders/gerrit,Distrotech/gerrit,midnightradio/gerrit,netroby/gerrit,anminhsu/gerrit,jackminicloud/test,hdost/gerrit,bootstraponline-archive/gerrit-mirror,Distrotech/gerrit,gcoders/gerrit,thesamet/gerrit,bpollack/gerrit,pkdevbox/gerrit,GerritCodeReview/gerrit,TonyChai24/test,qtproject/qtqa-gerrit,Distrotech/gerrit,GerritCodeReview/gerrit,joshuawilson/merrit,hdost/gerrit,ckamm/gerrit,MerritCR/merrit,renchaorevee/gerrit,netroby/gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,basilgor/gerrit,Saulis/gerrit,zommarin/gerrit,Distrotech/gerrit,Distrotech/gerrit,quyixia/gerrit,renchaorevee/gerrit,gerrit-review/gerrit,MerritCR/merrit,thesamet/gerrit,dwhipstock/gerrit,dwhipstock/gerrit,jackminicloud/test,Team-OctOS/host_gerrit,thinkernel/gerrit,joshuawilson/merrit,WANdisco/gerrit,gcoders/gerrit,zommarin/gerrit,gracefullife/gerrit,zommarin/gerrit,Saulis/gerrit,teamblueridge/gerrit,jackminicloud/test,Overruler/gerrit,basilgor/gerrit,hdost/gerrit,Team-OctOS/host_gerrit,bpollack/gerrit,WANdisco/gerrit,Distrotech/gerrit,Overruler/gerrit,bootstraponline-archive/gerrit-mirror,anminhsu/gerrit,joshuawilson/merrit,thinkernel/gerrit,anminhsu/gerrit,Saulis/gerrit,anminhsu/gerrit,GerritCodeReview/gerrit,MerritCR/merrit,anminhsu/gerrit